Imported Upstream version 1.5.1
[platform/upstream/gpgme.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for gpgme 1.5.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.5.1'
594 PACKAGE_STRING='gpgme 1.5.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 LIBASSUAN_LIBS
651 LIBASSUAN_CFLAGS
652 LIBASSUAN_CONFIG
653 GPG_ERROR_LIBS
654 GPG_ERROR_CFLAGS
655 GPG_ERROR_CONFIG
656 GLIBC21
657 LIBOBJS
658 API__SSIZE_T
659 API__OFF_T
660 INSERT__TYPEDEFS_FOR_GPGME_H
661 NEED__FILE_OFFSET_BITS
662 RUN_G13_TESTS_FALSE
663 RUN_G13_TESTS_TRUE
664 RUN_GPGSM_TESTS_FALSE
665 RUN_GPGSM_TESTS_TRUE
666 RUN_GPG_TESTS_FALSE
667 RUN_GPG_TESTS_TRUE
668 RUN_GPGCONF_TESTS_FALSE
669 RUN_GPGCONF_TESTS_TRUE
670 BUILD_TIMESTAMP
671 BUILD_FILEVERSION
672 BUILD_REVISION
673 HAVE_PTHREAD_FALSE
674 HAVE_PTHREAD_TRUE
675 BUILD_W32_QT_FALSE
676 BUILD_W32_QT_TRUE
677 BUILD_W32_GLIB_FALSE
678 BUILD_W32_GLIB_TRUE
679 HAVE_ANDROID_SYSTEM_FALSE
680 HAVE_ANDROID_SYSTEM_TRUE
681 HAVE_W32CE_SYSTEM_FALSE
682 HAVE_W32CE_SYSTEM_TRUE
683 HAVE_W64_SYSTEM_FALSE
684 HAVE_W64_SYSTEM_TRUE
685 HAVE_W32_SYSTEM_FALSE
686 HAVE_W32_SYSTEM_TRUE
687 HAVE_DOSISH_SYSTEM_FALSE
688 HAVE_DOSISH_SYSTEM_TRUE
689 QT4_CORE_LIBS
690 QT4_CORE_CFLAGS
691 GLIB_MKENUMS
692 GOBJECT_QUERY
693 GLIB_GENMARSHAL
694 GLIB_LIBS
695 GLIB_CFLAGS
696 PKG_CONFIG
697 HAVE_LD_VERSION_SCRIPT_FALSE
698 HAVE_LD_VERSION_SCRIPT_TRUE
699 RC
700 CXXCPP
701 OTOOL64
702 OTOOL
703 LIPO
704 NMEDIT
705 DSYMUTIL
706 MANIFEST_TOOL
707 RANLIB
708 ac_ct_AR
709 AR
710 LN_S
711 NM
712 ac_ct_DUMPBIN
713 DUMPBIN
714 LD
715 FGREP
716 SED
717 LIBTOOL
718 OBJDUMP
719 DLLTOOL
720 AS
721 VERSION_NUMBER
722 LIBGPGME_LT_REVISION
723 LIBGPGME_LT_AGE
724 LIBGPGME_LT_CURRENT
725 GITLOG_TO_CHANGELOG
726 am__fastdepCXX_FALSE
727 am__fastdepCXX_TRUE
728 CXXDEPMODE
729 ac_ct_CXX
730 CXXFLAGS
731 CXX
732 EGREP
733 GREP
734 CPP
735 am__fastdepCC_FALSE
736 am__fastdepCC_TRUE
737 CCDEPMODE
738 am__nodep
739 AMDEPBACKSLASH
740 AMDEP_FALSE
741 AMDEP_TRUE
742 am__quote
743 am__include
744 DEPDIR
745 OBJEXT
746 EXEEXT
747 ac_ct_CC
748 CPPFLAGS
749 LDFLAGS
750 CFLAGS
751 CC
752 AM_BACKSLASH
753 AM_DEFAULT_VERBOSITY
754 AM_DEFAULT_V
755 AM_V
756 host_os
757 host_vendor
758 host_cpu
759 host
760 build_os
761 build_vendor
762 build_cpu
763 build
764 MAINT
765 MAINTAINER_MODE_FALSE
766 MAINTAINER_MODE_TRUE
767 am__untar
768 am__tar
769 AMTAR
770 am__leading_dot
771 SET_MAKE
772 AWK
773 mkdir_p
774 MKDIR_P
775 INSTALL_STRIP_PROGRAM
776 STRIP
777 install_sh
778 MAKEINFO
779 AUTOHEADER
780 AUTOMAKE
781 AUTOCONF
782 ACLOCAL
783 VERSION
784 PACKAGE
785 CYGPATH_W
786 am__isrc
787 INSTALL_DATA
788 INSTALL_SCRIPT
789 INSTALL_PROGRAM
790 target_alias
791 host_alias
792 build_alias
793 LIBS
794 ECHO_T
795 ECHO_N
796 ECHO_C
797 DEFS
798 mandir
799 localedir
800 libdir
801 psdir
802 pdfdir
803 dvidir
804 htmldir
805 infodir
806 docdir
807 oldincludedir
808 includedir
809 localstatedir
810 sharedstatedir
811 sysconfdir
812 datadir
813 datarootdir
814 libexecdir
815 sbindir
816 bindir
817 program_transform_name
818 prefix
819 exec_prefix
820 PACKAGE_URL
821 PACKAGE_BUGREPORT
822 PACKAGE_STRING
823 PACKAGE_VERSION
824 PACKAGE_TARNAME
825 PACKAGE_NAME
826 PATH_SEPARATOR
827 SHELL'
828 ac_subst_files=''
829 ac_user_opts='
830 enable_option_checking
831 enable_maintainer_mode
832 enable_silent_rules
833 enable_dependency_tracking
834 enable_static
835 enable_shared
836 with_pic
837 enable_fast_install
838 with_gnu_ld
839 with_sysroot
840 enable_libtool_lock
841 enable_glibtest
842 enable_w32_glib
843 enable_w32_qt
844 enable_fixed_path
845 enable_gpgconf_test
846 enable_gpg_test
847 enable_gpgsm_test
848 enable_g13_test
849 enable_largefile
850 with_libgpg_error_prefix
851 with_gpg_error_prefix
852 with_libassuan_prefix
853 enable_fd_passing
854 '
855       ac_precious_vars='build_alias
856 host_alias
857 target_alias
858 CC
859 CFLAGS
860 LDFLAGS
861 LIBS
862 CPPFLAGS
863 CPP
864 CXX
865 CXXFLAGS
866 CCC
867 CXXCPP'
868
869
870 # Initialize some variables set by options.
871 ac_init_help=
872 ac_init_version=false
873 ac_unrecognized_opts=
874 ac_unrecognized_sep=
875 # The variables have the same names as the options, with
876 # dashes changed to underlines.
877 cache_file=/dev/null
878 exec_prefix=NONE
879 no_create=
880 no_recursion=
881 prefix=NONE
882 program_prefix=NONE
883 program_suffix=NONE
884 program_transform_name=s,x,x,
885 silent=
886 site=
887 srcdir=
888 verbose=
889 x_includes=NONE
890 x_libraries=NONE
891
892 # Installation directory options.
893 # These are left unexpanded so users can "make install exec_prefix=/foo"
894 # and all the variables that are supposed to be based on exec_prefix
895 # by default will actually change.
896 # Use braces instead of parens because sh, perl, etc. also accept them.
897 # (The list follows the same order as the GNU Coding Standards.)
898 bindir='${exec_prefix}/bin'
899 sbindir='${exec_prefix}/sbin'
900 libexecdir='${exec_prefix}/libexec'
901 datarootdir='${prefix}/share'
902 datadir='${datarootdir}'
903 sysconfdir='${prefix}/etc'
904 sharedstatedir='${prefix}/com'
905 localstatedir='${prefix}/var'
906 includedir='${prefix}/include'
907 oldincludedir='/usr/include'
908 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
909 infodir='${datarootdir}/info'
910 htmldir='${docdir}'
911 dvidir='${docdir}'
912 pdfdir='${docdir}'
913 psdir='${docdir}'
914 libdir='${exec_prefix}/lib'
915 localedir='${datarootdir}/locale'
916 mandir='${datarootdir}/man'
917
918 ac_prev=
919 ac_dashdash=
920 for ac_option
921 do
922   # If the previous option needs an argument, assign it.
923   if test -n "$ac_prev"; then
924     eval $ac_prev=\$ac_option
925     ac_prev=
926     continue
927   fi
928
929   case $ac_option in
930   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
931   *=)   ac_optarg= ;;
932   *)    ac_optarg=yes ;;
933   esac
934
935   # Accept the important Cygnus configure options, so we can diagnose typos.
936
937   case $ac_dashdash$ac_option in
938   --)
939     ac_dashdash=yes ;;
940
941   -bindir | --bindir | --bindi | --bind | --bin | --bi)
942     ac_prev=bindir ;;
943   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
944     bindir=$ac_optarg ;;
945
946   -build | --build | --buil | --bui | --bu)
947     ac_prev=build_alias ;;
948   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
949     build_alias=$ac_optarg ;;
950
951   -cache-file | --cache-file | --cache-fil | --cache-fi \
952   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
953     ac_prev=cache_file ;;
954   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
955   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
956     cache_file=$ac_optarg ;;
957
958   --config-cache | -C)
959     cache_file=config.cache ;;
960
961   -datadir | --datadir | --datadi | --datad)
962     ac_prev=datadir ;;
963   -datadir=* | --datadir=* | --datadi=* | --datad=*)
964     datadir=$ac_optarg ;;
965
966   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
967   | --dataroo | --dataro | --datar)
968     ac_prev=datarootdir ;;
969   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
970   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
971     datarootdir=$ac_optarg ;;
972
973   -disable-* | --disable-*)
974     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
975     # Reject names that are not valid shell variable names.
976     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
977       as_fn_error $? "invalid feature name: $ac_useropt"
978     ac_useropt_orig=$ac_useropt
979     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
980     case $ac_user_opts in
981       *"
982 "enable_$ac_useropt"
983 "*) ;;
984       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
985          ac_unrecognized_sep=', ';;
986     esac
987     eval enable_$ac_useropt=no ;;
988
989   -docdir | --docdir | --docdi | --doc | --do)
990     ac_prev=docdir ;;
991   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
992     docdir=$ac_optarg ;;
993
994   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
995     ac_prev=dvidir ;;
996   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
997     dvidir=$ac_optarg ;;
998
999   -enable-* | --enable-*)
1000     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1001     # Reject names that are not valid shell variable names.
1002     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1003       as_fn_error $? "invalid feature name: $ac_useropt"
1004     ac_useropt_orig=$ac_useropt
1005     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1006     case $ac_user_opts in
1007       *"
1008 "enable_$ac_useropt"
1009 "*) ;;
1010       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1011          ac_unrecognized_sep=', ';;
1012     esac
1013     eval enable_$ac_useropt=\$ac_optarg ;;
1014
1015   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1016   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1017   | --exec | --exe | --ex)
1018     ac_prev=exec_prefix ;;
1019   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1020   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1021   | --exec=* | --exe=* | --ex=*)
1022     exec_prefix=$ac_optarg ;;
1023
1024   -gas | --gas | --ga | --g)
1025     # Obsolete; use --with-gas.
1026     with_gas=yes ;;
1027
1028   -help | --help | --hel | --he | -h)
1029     ac_init_help=long ;;
1030   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1031     ac_init_help=recursive ;;
1032   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1033     ac_init_help=short ;;
1034
1035   -host | --host | --hos | --ho)
1036     ac_prev=host_alias ;;
1037   -host=* | --host=* | --hos=* | --ho=*)
1038     host_alias=$ac_optarg ;;
1039
1040   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1041     ac_prev=htmldir ;;
1042   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1043   | --ht=*)
1044     htmldir=$ac_optarg ;;
1045
1046   -includedir | --includedir | --includedi | --included | --include \
1047   | --includ | --inclu | --incl | --inc)
1048     ac_prev=includedir ;;
1049   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1050   | --includ=* | --inclu=* | --incl=* | --inc=*)
1051     includedir=$ac_optarg ;;
1052
1053   -infodir | --infodir | --infodi | --infod | --info | --inf)
1054     ac_prev=infodir ;;
1055   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1056     infodir=$ac_optarg ;;
1057
1058   -libdir | --libdir | --libdi | --libd)
1059     ac_prev=libdir ;;
1060   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1061     libdir=$ac_optarg ;;
1062
1063   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1064   | --libexe | --libex | --libe)
1065     ac_prev=libexecdir ;;
1066   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1067   | --libexe=* | --libex=* | --libe=*)
1068     libexecdir=$ac_optarg ;;
1069
1070   -localedir | --localedir | --localedi | --localed | --locale)
1071     ac_prev=localedir ;;
1072   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1073     localedir=$ac_optarg ;;
1074
1075   -localstatedir | --localstatedir | --localstatedi | --localstated \
1076   | --localstate | --localstat | --localsta | --localst | --locals)
1077     ac_prev=localstatedir ;;
1078   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1079   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1080     localstatedir=$ac_optarg ;;
1081
1082   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1083     ac_prev=mandir ;;
1084   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1085     mandir=$ac_optarg ;;
1086
1087   -nfp | --nfp | --nf)
1088     # Obsolete; use --without-fp.
1089     with_fp=no ;;
1090
1091   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1092   | --no-cr | --no-c | -n)
1093     no_create=yes ;;
1094
1095   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1096   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1097     no_recursion=yes ;;
1098
1099   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1100   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1101   | --oldin | --oldi | --old | --ol | --o)
1102     ac_prev=oldincludedir ;;
1103   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1104   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1105   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1106     oldincludedir=$ac_optarg ;;
1107
1108   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1109     ac_prev=prefix ;;
1110   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1111     prefix=$ac_optarg ;;
1112
1113   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1114   | --program-pre | --program-pr | --program-p)
1115     ac_prev=program_prefix ;;
1116   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1117   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1118     program_prefix=$ac_optarg ;;
1119
1120   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1121   | --program-suf | --program-su | --program-s)
1122     ac_prev=program_suffix ;;
1123   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1124   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1125     program_suffix=$ac_optarg ;;
1126
1127   -program-transform-name | --program-transform-name \
1128   | --program-transform-nam | --program-transform-na \
1129   | --program-transform-n | --program-transform- \
1130   | --program-transform | --program-transfor \
1131   | --program-transfo | --program-transf \
1132   | --program-trans | --program-tran \
1133   | --progr-tra | --program-tr | --program-t)
1134     ac_prev=program_transform_name ;;
1135   -program-transform-name=* | --program-transform-name=* \
1136   | --program-transform-nam=* | --program-transform-na=* \
1137   | --program-transform-n=* | --program-transform-=* \
1138   | --program-transform=* | --program-transfor=* \
1139   | --program-transfo=* | --program-transf=* \
1140   | --program-trans=* | --program-tran=* \
1141   | --progr-tra=* | --program-tr=* | --program-t=*)
1142     program_transform_name=$ac_optarg ;;
1143
1144   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1145     ac_prev=pdfdir ;;
1146   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1147     pdfdir=$ac_optarg ;;
1148
1149   -psdir | --psdir | --psdi | --psd | --ps)
1150     ac_prev=psdir ;;
1151   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1152     psdir=$ac_optarg ;;
1153
1154   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1155   | -silent | --silent | --silen | --sile | --sil)
1156     silent=yes ;;
1157
1158   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1159     ac_prev=sbindir ;;
1160   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1161   | --sbi=* | --sb=*)
1162     sbindir=$ac_optarg ;;
1163
1164   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1165   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1166   | --sharedst | --shareds | --shared | --share | --shar \
1167   | --sha | --sh)
1168     ac_prev=sharedstatedir ;;
1169   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1170   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1171   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1172   | --sha=* | --sh=*)
1173     sharedstatedir=$ac_optarg ;;
1174
1175   -site | --site | --sit)
1176     ac_prev=site ;;
1177   -site=* | --site=* | --sit=*)
1178     site=$ac_optarg ;;
1179
1180   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1181     ac_prev=srcdir ;;
1182   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1183     srcdir=$ac_optarg ;;
1184
1185   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1186   | --syscon | --sysco | --sysc | --sys | --sy)
1187     ac_prev=sysconfdir ;;
1188   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1189   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1190     sysconfdir=$ac_optarg ;;
1191
1192   -target | --target | --targe | --targ | --tar | --ta | --t)
1193     ac_prev=target_alias ;;
1194   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1195     target_alias=$ac_optarg ;;
1196
1197   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1198     verbose=yes ;;
1199
1200   -version | --version | --versio | --versi | --vers | -V)
1201     ac_init_version=: ;;
1202
1203   -with-* | --with-*)
1204     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1205     # Reject names that are not valid shell variable names.
1206     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1207       as_fn_error $? "invalid package name: $ac_useropt"
1208     ac_useropt_orig=$ac_useropt
1209     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1210     case $ac_user_opts in
1211       *"
1212 "with_$ac_useropt"
1213 "*) ;;
1214       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1215          ac_unrecognized_sep=', ';;
1216     esac
1217     eval with_$ac_useropt=\$ac_optarg ;;
1218
1219   -without-* | --without-*)
1220     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1221     # Reject names that are not valid shell variable names.
1222     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1223       as_fn_error $? "invalid package name: $ac_useropt"
1224     ac_useropt_orig=$ac_useropt
1225     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1226     case $ac_user_opts in
1227       *"
1228 "with_$ac_useropt"
1229 "*) ;;
1230       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1231          ac_unrecognized_sep=', ';;
1232     esac
1233     eval with_$ac_useropt=no ;;
1234
1235   --x)
1236     # Obsolete; use --with-x.
1237     with_x=yes ;;
1238
1239   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1240   | --x-incl | --x-inc | --x-in | --x-i)
1241     ac_prev=x_includes ;;
1242   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1243   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1244     x_includes=$ac_optarg ;;
1245
1246   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1247   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1248     ac_prev=x_libraries ;;
1249   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1250   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1251     x_libraries=$ac_optarg ;;
1252
1253   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1254 Try \`$0 --help' for more information"
1255     ;;
1256
1257   *=*)
1258     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1259     # Reject names that are not valid shell variable names.
1260     case $ac_envvar in #(
1261       '' | [0-9]* | *[!_$as_cr_alnum]* )
1262       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1263     esac
1264     eval $ac_envvar=\$ac_optarg
1265     export $ac_envvar ;;
1266
1267   *)
1268     # FIXME: should be removed in autoconf 3.0.
1269     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1270     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1271       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1272     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1273     ;;
1274
1275   esac
1276 done
1277
1278 if test -n "$ac_prev"; then
1279   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1280   as_fn_error $? "missing argument to $ac_option"
1281 fi
1282
1283 if test -n "$ac_unrecognized_opts"; then
1284   case $enable_option_checking in
1285     no) ;;
1286     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1287     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1288   esac
1289 fi
1290
1291 # Check all directory arguments for consistency.
1292 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1293                 datadir sysconfdir sharedstatedir localstatedir includedir \
1294                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1295                 libdir localedir mandir
1296 do
1297   eval ac_val=\$$ac_var
1298   # Remove trailing slashes.
1299   case $ac_val in
1300     */ )
1301       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1302       eval $ac_var=\$ac_val;;
1303   esac
1304   # Be sure to have absolute directory names.
1305   case $ac_val in
1306     [\\/$]* | ?:[\\/]* )  continue;;
1307     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1308   esac
1309   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1310 done
1311
1312 # There might be people who depend on the old broken behavior: `$host'
1313 # used to hold the argument of --host etc.
1314 # FIXME: To remove some day.
1315 build=$build_alias
1316 host=$host_alias
1317 target=$target_alias
1318
1319 # FIXME: To remove some day.
1320 if test "x$host_alias" != x; then
1321   if test "x$build_alias" = x; then
1322     cross_compiling=maybe
1323   elif test "x$build_alias" != "x$host_alias"; then
1324     cross_compiling=yes
1325   fi
1326 fi
1327
1328 ac_tool_prefix=
1329 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1330
1331 test "$silent" = yes && exec 6>/dev/null
1332
1333
1334 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1335 ac_ls_di=`ls -di .` &&
1336 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1337   as_fn_error $? "working directory cannot be determined"
1338 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1339   as_fn_error $? "pwd does not report name of working directory"
1340
1341
1342 # Find the source files, if location was not specified.
1343 if test -z "$srcdir"; then
1344   ac_srcdir_defaulted=yes
1345   # Try the directory containing this script, then the parent directory.
1346   ac_confdir=`$as_dirname -- "$as_myself" ||
1347 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1348          X"$as_myself" : 'X\(//\)[^/]' \| \
1349          X"$as_myself" : 'X\(//\)$' \| \
1350          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1351 $as_echo X"$as_myself" |
1352     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1353             s//\1/
1354             q
1355           }
1356           /^X\(\/\/\)[^/].*/{
1357             s//\1/
1358             q
1359           }
1360           /^X\(\/\/\)$/{
1361             s//\1/
1362             q
1363           }
1364           /^X\(\/\).*/{
1365             s//\1/
1366             q
1367           }
1368           s/.*/./; q'`
1369   srcdir=$ac_confdir
1370   if test ! -r "$srcdir/$ac_unique_file"; then
1371     srcdir=..
1372   fi
1373 else
1374   ac_srcdir_defaulted=no
1375 fi
1376 if test ! -r "$srcdir/$ac_unique_file"; then
1377   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1378   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1379 fi
1380 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1381 ac_abs_confdir=`(
1382         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1383         pwd)`
1384 # When building in place, set srcdir=.
1385 if test "$ac_abs_confdir" = "$ac_pwd"; then
1386   srcdir=.
1387 fi
1388 # Remove unnecessary trailing slashes from srcdir.
1389 # Double slashes in file names in object file debugging info
1390 # mess up M-x gdb in Emacs.
1391 case $srcdir in
1392 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1393 esac
1394 for ac_var in $ac_precious_vars; do
1395   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1396   eval ac_env_${ac_var}_value=\$${ac_var}
1397   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1398   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1399 done
1400
1401 #
1402 # Report the --help message.
1403 #
1404 if test "$ac_init_help" = "long"; then
1405   # Omit some internal or obsolete options to make the list less imposing.
1406   # This message is too long to be a string in the A/UX 3.1 sh.
1407   cat <<_ACEOF
1408 \`configure' configures gpgme 1.5.1 to adapt to many kinds of systems.
1409
1410 Usage: $0 [OPTION]... [VAR=VALUE]...
1411
1412 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1413 VAR=VALUE.  See below for descriptions of some of the useful variables.
1414
1415 Defaults for the options are specified in brackets.
1416
1417 Configuration:
1418   -h, --help              display this help and exit
1419       --help=short        display options specific to this package
1420       --help=recursive    display the short help of all the included packages
1421   -V, --version           display version information and exit
1422   -q, --quiet, --silent   do not print \`checking ...' messages
1423       --cache-file=FILE   cache test results in FILE [disabled]
1424   -C, --config-cache      alias for \`--cache-file=config.cache'
1425   -n, --no-create         do not create output files
1426       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1427
1428 Installation directories:
1429   --prefix=PREFIX         install architecture-independent files in PREFIX
1430                           [$ac_default_prefix]
1431   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1432                           [PREFIX]
1433
1434 By default, \`make install' will install all the files in
1435 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1436 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1437 for instance \`--prefix=\$HOME'.
1438
1439 For better control, use the options below.
1440
1441 Fine tuning of the installation directories:
1442   --bindir=DIR            user executables [EPREFIX/bin]
1443   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1444   --libexecdir=DIR        program executables [EPREFIX/libexec]
1445   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1446   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1447   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1448   --libdir=DIR            object code libraries [EPREFIX/lib]
1449   --includedir=DIR        C header files [PREFIX/include]
1450   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1451   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1452   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1453   --infodir=DIR           info documentation [DATAROOTDIR/info]
1454   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1455   --mandir=DIR            man documentation [DATAROOTDIR/man]
1456   --docdir=DIR            documentation root [DATAROOTDIR/doc/gpgme]
1457   --htmldir=DIR           html documentation [DOCDIR]
1458   --dvidir=DIR            dvi documentation [DOCDIR]
1459   --pdfdir=DIR            pdf documentation [DOCDIR]
1460   --psdir=DIR             ps documentation [DOCDIR]
1461 _ACEOF
1462
1463   cat <<\_ACEOF
1464
1465 Program names:
1466   --program-prefix=PREFIX            prepend PREFIX to installed program names
1467   --program-suffix=SUFFIX            append SUFFIX to installed program names
1468   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1469
1470 System types:
1471   --build=BUILD     configure for building on BUILD [guessed]
1472   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1473 _ACEOF
1474 fi
1475
1476 if test -n "$ac_init_help"; then
1477   case $ac_init_help in
1478      short | recursive ) echo "Configuration of gpgme 1.5.1:";;
1479    esac
1480   cat <<\_ACEOF
1481
1482 Optional Features:
1483   --disable-option-checking  ignore unrecognized --enable/--with options
1484   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1485   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1486   --enable-maintainer-mode  enable make rules and dependencies not useful
1487                           (and sometimes confusing) to the casual installer
1488   --enable-silent-rules          less verbose build output (undo: `make V=1')
1489   --disable-silent-rules         verbose build output (undo: `make V=0')
1490   --disable-dependency-tracking  speeds up one-time build
1491   --enable-dependency-tracking   do not reject slow dependency extractors
1492   --enable-static[=PKGS]  build static libraries [default=no]
1493   --enable-shared[=PKGS]  build shared libraries [default=yes]
1494   --enable-fast-install[=PKGS]
1495                           optimize for fast installation [default=yes]
1496   --disable-libtool-lock  avoid locking (might break parallel builds)
1497   --disable-glibtest      do not try to compile and run a test GLIB program
1498   --enable-w32-glib       build GPGME Glib for W32
1499   --enable-w32-qt         build GPGME Qt for W32
1500   --enable-fixed-path=PATH
1501                           locate binaries only via this PATH
1502   --disable-gpgconf-test  disable GPGCONF regression test
1503   --disable-gpg-test      disable GPG regression test
1504   --disable-gpgsm-test    disable GPGSM regression test
1505   --disable-g13-test      disable G13 regression test
1506   --disable-largefile     omit support for large files
1507   --disable-fd-passing    do not use FD passing
1508
1509 Optional Packages:
1510   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1511   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1512   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1513                           both]
1514   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1515   --with-sysroot=DIR Search for dependent libraries within DIR
1516                         (or the compiler's sysroot if not specified).
1517   --with-libgpg-error-prefix=PFX
1518                           prefix where GPG Error is installed (optional)
1519
1520   --with-libassuan-prefix=PFX
1521                           prefix where LIBASSUAN is installed (optional)
1522
1523 Some influential environment variables:
1524   CC          C compiler command
1525   CFLAGS      C compiler flags
1526   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1527               nonstandard directory <lib dir>
1528   LIBS        libraries to pass to the linker, e.g. -l<library>
1529   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1530               you have headers in a nonstandard directory <include dir>
1531   CPP         C preprocessor
1532   CXX         C++ compiler command
1533   CXXFLAGS    C++ compiler flags
1534   CXXCPP      C++ preprocessor
1535
1536 Use these variables to override the choices made by `configure' or to help
1537 it to find libraries and programs with nonstandard names/locations.
1538
1539 Report bugs to <http://bugs.gnupg.org>.
1540 _ACEOF
1541 ac_status=$?
1542 fi
1543
1544 if test "$ac_init_help" = "recursive"; then
1545   # If there are subdirs, report their specific --help.
1546   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1547     test -d "$ac_dir" ||
1548       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1549       continue
1550     ac_builddir=.
1551
1552 case "$ac_dir" in
1553 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1554 *)
1555   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1556   # A ".." for each directory in $ac_dir_suffix.
1557   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1558   case $ac_top_builddir_sub in
1559   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1560   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1561   esac ;;
1562 esac
1563 ac_abs_top_builddir=$ac_pwd
1564 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1565 # for backward compatibility:
1566 ac_top_builddir=$ac_top_build_prefix
1567
1568 case $srcdir in
1569   .)  # We are building in place.
1570     ac_srcdir=.
1571     ac_top_srcdir=$ac_top_builddir_sub
1572     ac_abs_top_srcdir=$ac_pwd ;;
1573   [\\/]* | ?:[\\/]* )  # Absolute name.
1574     ac_srcdir=$srcdir$ac_dir_suffix;
1575     ac_top_srcdir=$srcdir
1576     ac_abs_top_srcdir=$srcdir ;;
1577   *) # Relative name.
1578     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1579     ac_top_srcdir=$ac_top_build_prefix$srcdir
1580     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1581 esac
1582 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1583
1584     cd "$ac_dir" || { ac_status=$?; continue; }
1585     # Check for guested configure.
1586     if test -f "$ac_srcdir/configure.gnu"; then
1587       echo &&
1588       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1589     elif test -f "$ac_srcdir/configure"; then
1590       echo &&
1591       $SHELL "$ac_srcdir/configure" --help=recursive
1592     else
1593       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1594     fi || ac_status=$?
1595     cd "$ac_pwd" || { ac_status=$?; break; }
1596   done
1597 fi
1598
1599 test -n "$ac_init_help" && exit $ac_status
1600 if $ac_init_version; then
1601   cat <<\_ACEOF
1602 gpgme configure 1.5.1
1603 generated by GNU Autoconf 2.69
1604
1605 Copyright (C) 2012 Free Software Foundation, Inc.
1606 This configure script is free software; the Free Software Foundation
1607 gives unlimited permission to copy, distribute and modify it.
1608 _ACEOF
1609   exit
1610 fi
1611
1612 ## ------------------------ ##
1613 ## Autoconf initialization. ##
1614 ## ------------------------ ##
1615
1616 # ac_fn_c_try_compile LINENO
1617 # --------------------------
1618 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1619 ac_fn_c_try_compile ()
1620 {
1621   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622   rm -f conftest.$ac_objext
1623   if { { ac_try="$ac_compile"
1624 case "(($ac_try" in
1625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1626   *) ac_try_echo=$ac_try;;
1627 esac
1628 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1629 $as_echo "$ac_try_echo"; } >&5
1630   (eval "$ac_compile") 2>conftest.err
1631   ac_status=$?
1632   if test -s conftest.err; then
1633     grep -v '^ *+' conftest.err >conftest.er1
1634     cat conftest.er1 >&5
1635     mv -f conftest.er1 conftest.err
1636   fi
1637   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1638   test $ac_status = 0; } && {
1639          test -z "$ac_c_werror_flag" ||
1640          test ! -s conftest.err
1641        } && test -s conftest.$ac_objext; then :
1642   ac_retval=0
1643 else
1644   $as_echo "$as_me: failed program was:" >&5
1645 sed 's/^/| /' conftest.$ac_ext >&5
1646
1647         ac_retval=1
1648 fi
1649   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1650   as_fn_set_status $ac_retval
1651
1652 } # ac_fn_c_try_compile
1653
1654 # ac_fn_c_try_cpp LINENO
1655 # ----------------------
1656 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1657 ac_fn_c_try_cpp ()
1658 {
1659   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660   if { { ac_try="$ac_cpp conftest.$ac_ext"
1661 case "(($ac_try" in
1662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1663   *) ac_try_echo=$ac_try;;
1664 esac
1665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1666 $as_echo "$ac_try_echo"; } >&5
1667   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1668   ac_status=$?
1669   if test -s conftest.err; then
1670     grep -v '^ *+' conftest.err >conftest.er1
1671     cat conftest.er1 >&5
1672     mv -f conftest.er1 conftest.err
1673   fi
1674   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1675   test $ac_status = 0; } > conftest.i && {
1676          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1677          test ! -s conftest.err
1678        }; then :
1679   ac_retval=0
1680 else
1681   $as_echo "$as_me: failed program was:" >&5
1682 sed 's/^/| /' conftest.$ac_ext >&5
1683
1684     ac_retval=1
1685 fi
1686   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1687   as_fn_set_status $ac_retval
1688
1689 } # ac_fn_c_try_cpp
1690
1691 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1692 # -------------------------------------------------------
1693 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1694 # the include files in INCLUDES and setting the cache variable VAR
1695 # accordingly.
1696 ac_fn_c_check_header_mongrel ()
1697 {
1698   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1699   if eval \${$3+:} false; then :
1700   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1701 $as_echo_n "checking for $2... " >&6; }
1702 if eval \${$3+:} false; then :
1703   $as_echo_n "(cached) " >&6
1704 fi
1705 eval ac_res=\$$3
1706                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1707 $as_echo "$ac_res" >&6; }
1708 else
1709   # Is the header compilable?
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1711 $as_echo_n "checking $2 usability... " >&6; }
1712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1713 /* end confdefs.h.  */
1714 $4
1715 #include <$2>
1716 _ACEOF
1717 if ac_fn_c_try_compile "$LINENO"; then :
1718   ac_header_compiler=yes
1719 else
1720   ac_header_compiler=no
1721 fi
1722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1724 $as_echo "$ac_header_compiler" >&6; }
1725
1726 # Is the header present?
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1728 $as_echo_n "checking $2 presence... " >&6; }
1729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1730 /* end confdefs.h.  */
1731 #include <$2>
1732 _ACEOF
1733 if ac_fn_c_try_cpp "$LINENO"; then :
1734   ac_header_preproc=yes
1735 else
1736   ac_header_preproc=no
1737 fi
1738 rm -f conftest.err conftest.i conftest.$ac_ext
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1740 $as_echo "$ac_header_preproc" >&6; }
1741
1742 # So?  What about this header?
1743 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1744   yes:no: )
1745     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1746 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1747     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1748 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1749     ;;
1750   no:yes:* )
1751     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1752 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1753     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1754 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1755     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1756 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1757     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1758 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1759     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1760 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1761 ( $as_echo "## ------------------------------------ ##
1762 ## Report this to http://bugs.gnupg.org ##
1763 ## ------------------------------------ ##"
1764      ) | sed "s/^/$as_me: WARNING:     /" >&2
1765     ;;
1766 esac
1767   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1768 $as_echo_n "checking for $2... " >&6; }
1769 if eval \${$3+:} false; then :
1770   $as_echo_n "(cached) " >&6
1771 else
1772   eval "$3=\$ac_header_compiler"
1773 fi
1774 eval ac_res=\$$3
1775                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1776 $as_echo "$ac_res" >&6; }
1777 fi
1778   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1779
1780 } # ac_fn_c_check_header_mongrel
1781
1782 # ac_fn_c_try_run LINENO
1783 # ----------------------
1784 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1785 # that executables *can* be run.
1786 ac_fn_c_try_run ()
1787 {
1788   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789   if { { ac_try="$ac_link"
1790 case "(($ac_try" in
1791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1792   *) ac_try_echo=$ac_try;;
1793 esac
1794 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1795 $as_echo "$ac_try_echo"; } >&5
1796   (eval "$ac_link") 2>&5
1797   ac_status=$?
1798   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1799   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1800   { { case "(($ac_try" in
1801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802   *) ac_try_echo=$ac_try;;
1803 esac
1804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805 $as_echo "$ac_try_echo"; } >&5
1806   (eval "$ac_try") 2>&5
1807   ac_status=$?
1808   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809   test $ac_status = 0; }; }; then :
1810   ac_retval=0
1811 else
1812   $as_echo "$as_me: program exited with status $ac_status" >&5
1813        $as_echo "$as_me: failed program was:" >&5
1814 sed 's/^/| /' conftest.$ac_ext >&5
1815
1816        ac_retval=$ac_status
1817 fi
1818   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1819   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1820   as_fn_set_status $ac_retval
1821
1822 } # ac_fn_c_try_run
1823
1824 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1825 # -------------------------------------------------------
1826 # Tests whether HEADER exists and can be compiled using the include files in
1827 # INCLUDES, setting the cache variable VAR accordingly.
1828 ac_fn_c_check_header_compile ()
1829 {
1830   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1832 $as_echo_n "checking for $2... " >&6; }
1833 if eval \${$3+:} false; then :
1834   $as_echo_n "(cached) " >&6
1835 else
1836   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1837 /* end confdefs.h.  */
1838 $4
1839 #include <$2>
1840 _ACEOF
1841 if ac_fn_c_try_compile "$LINENO"; then :
1842   eval "$3=yes"
1843 else
1844   eval "$3=no"
1845 fi
1846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1847 fi
1848 eval ac_res=\$$3
1849                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1850 $as_echo "$ac_res" >&6; }
1851   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1852
1853 } # ac_fn_c_check_header_compile
1854
1855 # ac_fn_cxx_try_compile LINENO
1856 # ----------------------------
1857 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1858 ac_fn_cxx_try_compile ()
1859 {
1860   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861   rm -f conftest.$ac_objext
1862   if { { ac_try="$ac_compile"
1863 case "(($ac_try" in
1864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1865   *) ac_try_echo=$ac_try;;
1866 esac
1867 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1868 $as_echo "$ac_try_echo"; } >&5
1869   (eval "$ac_compile") 2>conftest.err
1870   ac_status=$?
1871   if test -s conftest.err; then
1872     grep -v '^ *+' conftest.err >conftest.er1
1873     cat conftest.er1 >&5
1874     mv -f conftest.er1 conftest.err
1875   fi
1876   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1877   test $ac_status = 0; } && {
1878          test -z "$ac_cxx_werror_flag" ||
1879          test ! -s conftest.err
1880        } && test -s conftest.$ac_objext; then :
1881   ac_retval=0
1882 else
1883   $as_echo "$as_me: failed program was:" >&5
1884 sed 's/^/| /' conftest.$ac_ext >&5
1885
1886         ac_retval=1
1887 fi
1888   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889   as_fn_set_status $ac_retval
1890
1891 } # ac_fn_cxx_try_compile
1892
1893 # ac_fn_c_try_link LINENO
1894 # -----------------------
1895 # Try to link conftest.$ac_ext, and return whether this succeeded.
1896 ac_fn_c_try_link ()
1897 {
1898   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899   rm -f conftest.$ac_objext conftest$ac_exeext
1900   if { { ac_try="$ac_link"
1901 case "(($ac_try" in
1902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1903   *) ac_try_echo=$ac_try;;
1904 esac
1905 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1906 $as_echo "$ac_try_echo"; } >&5
1907   (eval "$ac_link") 2>conftest.err
1908   ac_status=$?
1909   if test -s conftest.err; then
1910     grep -v '^ *+' conftest.err >conftest.er1
1911     cat conftest.er1 >&5
1912     mv -f conftest.er1 conftest.err
1913   fi
1914   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1915   test $ac_status = 0; } && {
1916          test -z "$ac_c_werror_flag" ||
1917          test ! -s conftest.err
1918        } && test -s conftest$ac_exeext && {
1919          test "$cross_compiling" = yes ||
1920          test -x conftest$ac_exeext
1921        }; then :
1922   ac_retval=0
1923 else
1924   $as_echo "$as_me: failed program was:" >&5
1925 sed 's/^/| /' conftest.$ac_ext >&5
1926
1927         ac_retval=1
1928 fi
1929   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1930   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1931   # interfere with the next link command; also delete a directory that is
1932   # left behind by Apple's compiler.  We do this before executing the actions.
1933   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1934   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935   as_fn_set_status $ac_retval
1936
1937 } # ac_fn_c_try_link
1938
1939 # ac_fn_c_check_func LINENO FUNC VAR
1940 # ----------------------------------
1941 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1942 ac_fn_c_check_func ()
1943 {
1944   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1945   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1946 $as_echo_n "checking for $2... " >&6; }
1947 if eval \${$3+:} false; then :
1948   $as_echo_n "(cached) " >&6
1949 else
1950   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1951 /* end confdefs.h.  */
1952 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1953    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1954 #define $2 innocuous_$2
1955
1956 /* System header to define __stub macros and hopefully few prototypes,
1957     which can conflict with char $2 (); below.
1958     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1959     <limits.h> exists even on freestanding compilers.  */
1960
1961 #ifdef __STDC__
1962 # include <limits.h>
1963 #else
1964 # include <assert.h>
1965 #endif
1966
1967 #undef $2
1968
1969 /* Override any GCC internal prototype to avoid an error.
1970    Use char because int might match the return type of a GCC
1971    builtin and then its argument prototype would still apply.  */
1972 #ifdef __cplusplus
1973 extern "C"
1974 #endif
1975 char $2 ();
1976 /* The GNU C library defines this for functions which it implements
1977     to always fail with ENOSYS.  Some functions are actually named
1978     something starting with __ and the normal name is an alias.  */
1979 #if defined __stub_$2 || defined __stub___$2
1980 choke me
1981 #endif
1982
1983 int
1984 main ()
1985 {
1986 return $2 ();
1987   ;
1988   return 0;
1989 }
1990 _ACEOF
1991 if ac_fn_c_try_link "$LINENO"; then :
1992   eval "$3=yes"
1993 else
1994   eval "$3=no"
1995 fi
1996 rm -f core conftest.err conftest.$ac_objext \
1997     conftest$ac_exeext conftest.$ac_ext
1998 fi
1999 eval ac_res=\$$3
2000                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2001 $as_echo "$ac_res" >&6; }
2002   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2003
2004 } # ac_fn_c_check_func
2005
2006 # ac_fn_cxx_try_cpp LINENO
2007 # ------------------------
2008 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2009 ac_fn_cxx_try_cpp ()
2010 {
2011   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2012   if { { ac_try="$ac_cpp conftest.$ac_ext"
2013 case "(($ac_try" in
2014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2015   *) ac_try_echo=$ac_try;;
2016 esac
2017 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2018 $as_echo "$ac_try_echo"; } >&5
2019   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2020   ac_status=$?
2021   if test -s conftest.err; then
2022     grep -v '^ *+' conftest.err >conftest.er1
2023     cat conftest.er1 >&5
2024     mv -f conftest.er1 conftest.err
2025   fi
2026   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2027   test $ac_status = 0; } > conftest.i && {
2028          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2029          test ! -s conftest.err
2030        }; then :
2031   ac_retval=0
2032 else
2033   $as_echo "$as_me: failed program was:" >&5
2034 sed 's/^/| /' conftest.$ac_ext >&5
2035
2036     ac_retval=1
2037 fi
2038   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2039   as_fn_set_status $ac_retval
2040
2041 } # ac_fn_cxx_try_cpp
2042
2043 # ac_fn_cxx_try_link LINENO
2044 # -------------------------
2045 # Try to link conftest.$ac_ext, and return whether this succeeded.
2046 ac_fn_cxx_try_link ()
2047 {
2048   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2049   rm -f conftest.$ac_objext conftest$ac_exeext
2050   if { { ac_try="$ac_link"
2051 case "(($ac_try" in
2052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2053   *) ac_try_echo=$ac_try;;
2054 esac
2055 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2056 $as_echo "$ac_try_echo"; } >&5
2057   (eval "$ac_link") 2>conftest.err
2058   ac_status=$?
2059   if test -s conftest.err; then
2060     grep -v '^ *+' conftest.err >conftest.er1
2061     cat conftest.er1 >&5
2062     mv -f conftest.er1 conftest.err
2063   fi
2064   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2065   test $ac_status = 0; } && {
2066          test -z "$ac_cxx_werror_flag" ||
2067          test ! -s conftest.err
2068        } && test -s conftest$ac_exeext && {
2069          test "$cross_compiling" = yes ||
2070          test -x conftest$ac_exeext
2071        }; then :
2072   ac_retval=0
2073 else
2074   $as_echo "$as_me: failed program was:" >&5
2075 sed 's/^/| /' conftest.$ac_ext >&5
2076
2077         ac_retval=1
2078 fi
2079   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2080   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2081   # interfere with the next link command; also delete a directory that is
2082   # left behind by Apple's compiler.  We do this before executing the actions.
2083   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2084   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2085   as_fn_set_status $ac_retval
2086
2087 } # ac_fn_cxx_try_link
2088
2089 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2090 # --------------------------------------------
2091 # Tries to find the compile-time value of EXPR in a program that includes
2092 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2093 # computed
2094 ac_fn_c_compute_int ()
2095 {
2096   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2097   if test "$cross_compiling" = yes; then
2098     # Depending upon the size, compute the lo and hi bounds.
2099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2100 /* end confdefs.h.  */
2101 $4
2102 int
2103 main ()
2104 {
2105 static int test_array [1 - 2 * !(($2) >= 0)];
2106 test_array [0] = 0;
2107 return test_array [0];
2108
2109   ;
2110   return 0;
2111 }
2112 _ACEOF
2113 if ac_fn_c_try_compile "$LINENO"; then :
2114   ac_lo=0 ac_mid=0
2115   while :; do
2116     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2117 /* end confdefs.h.  */
2118 $4
2119 int
2120 main ()
2121 {
2122 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2123 test_array [0] = 0;
2124 return test_array [0];
2125
2126   ;
2127   return 0;
2128 }
2129 _ACEOF
2130 if ac_fn_c_try_compile "$LINENO"; then :
2131   ac_hi=$ac_mid; break
2132 else
2133   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2134                         if test $ac_lo -le $ac_mid; then
2135                           ac_lo= ac_hi=
2136                           break
2137                         fi
2138                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2139 fi
2140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2141   done
2142 else
2143   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144 /* end confdefs.h.  */
2145 $4
2146 int
2147 main ()
2148 {
2149 static int test_array [1 - 2 * !(($2) < 0)];
2150 test_array [0] = 0;
2151 return test_array [0];
2152
2153   ;
2154   return 0;
2155 }
2156 _ACEOF
2157 if ac_fn_c_try_compile "$LINENO"; then :
2158   ac_hi=-1 ac_mid=-1
2159   while :; do
2160     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2161 /* end confdefs.h.  */
2162 $4
2163 int
2164 main ()
2165 {
2166 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2167 test_array [0] = 0;
2168 return test_array [0];
2169
2170   ;
2171   return 0;
2172 }
2173 _ACEOF
2174 if ac_fn_c_try_compile "$LINENO"; then :
2175   ac_lo=$ac_mid; break
2176 else
2177   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2178                         if test $ac_mid -le $ac_hi; then
2179                           ac_lo= ac_hi=
2180                           break
2181                         fi
2182                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2183 fi
2184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2185   done
2186 else
2187   ac_lo= ac_hi=
2188 fi
2189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2190 fi
2191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2192 # Binary search between lo and hi bounds.
2193 while test "x$ac_lo" != "x$ac_hi"; do
2194   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2195   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2196 /* end confdefs.h.  */
2197 $4
2198 int
2199 main ()
2200 {
2201 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2202 test_array [0] = 0;
2203 return test_array [0];
2204
2205   ;
2206   return 0;
2207 }
2208 _ACEOF
2209 if ac_fn_c_try_compile "$LINENO"; then :
2210   ac_hi=$ac_mid
2211 else
2212   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2213 fi
2214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2215 done
2216 case $ac_lo in #((
2217 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2218 '') ac_retval=1 ;;
2219 esac
2220   else
2221     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2222 /* end confdefs.h.  */
2223 $4
2224 static long int longval () { return $2; }
2225 static unsigned long int ulongval () { return $2; }
2226 #include <stdio.h>
2227 #include <stdlib.h>
2228 int
2229 main ()
2230 {
2231
2232   FILE *f = fopen ("conftest.val", "w");
2233   if (! f)
2234     return 1;
2235   if (($2) < 0)
2236     {
2237       long int i = longval ();
2238       if (i != ($2))
2239         return 1;
2240       fprintf (f, "%ld", i);
2241     }
2242   else
2243     {
2244       unsigned long int i = ulongval ();
2245       if (i != ($2))
2246         return 1;
2247       fprintf (f, "%lu", i);
2248     }
2249   /* Do not output a trailing newline, as this causes \r\n confusion
2250      on some platforms.  */
2251   return ferror (f) || fclose (f) != 0;
2252
2253   ;
2254   return 0;
2255 }
2256 _ACEOF
2257 if ac_fn_c_try_run "$LINENO"; then :
2258   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2259 else
2260   ac_retval=1
2261 fi
2262 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2263   conftest.$ac_objext conftest.beam conftest.$ac_ext
2264 rm -f conftest.val
2265
2266   fi
2267   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2268   as_fn_set_status $ac_retval
2269
2270 } # ac_fn_c_compute_int
2271
2272 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2273 # -------------------------------------------
2274 # Tests whether TYPE exists after having included INCLUDES, setting cache
2275 # variable VAR accordingly.
2276 ac_fn_c_check_type ()
2277 {
2278   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2279   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2280 $as_echo_n "checking for $2... " >&6; }
2281 if eval \${$3+:} false; then :
2282   $as_echo_n "(cached) " >&6
2283 else
2284   eval "$3=no"
2285   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2286 /* end confdefs.h.  */
2287 $4
2288 int
2289 main ()
2290 {
2291 if (sizeof ($2))
2292          return 0;
2293   ;
2294   return 0;
2295 }
2296 _ACEOF
2297 if ac_fn_c_try_compile "$LINENO"; then :
2298   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2299 /* end confdefs.h.  */
2300 $4
2301 int
2302 main ()
2303 {
2304 if (sizeof (($2)))
2305             return 0;
2306   ;
2307   return 0;
2308 }
2309 _ACEOF
2310 if ac_fn_c_try_compile "$LINENO"; then :
2311
2312 else
2313   eval "$3=yes"
2314 fi
2315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2316 fi
2317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2318 fi
2319 eval ac_res=\$$3
2320                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2321 $as_echo "$ac_res" >&6; }
2322   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2323
2324 } # ac_fn_c_check_type
2325
2326 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2327 # ---------------------------------------------
2328 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2329 # accordingly.
2330 ac_fn_c_check_decl ()
2331 {
2332   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2333   as_decl_name=`echo $2|sed 's/ *(.*//'`
2334   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2335   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2336 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2337 if eval \${$3+:} false; then :
2338   $as_echo_n "(cached) " >&6
2339 else
2340   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2341 /* end confdefs.h.  */
2342 $4
2343 int
2344 main ()
2345 {
2346 #ifndef $as_decl_name
2347 #ifdef __cplusplus
2348   (void) $as_decl_use;
2349 #else
2350   (void) $as_decl_name;
2351 #endif
2352 #endif
2353
2354   ;
2355   return 0;
2356 }
2357 _ACEOF
2358 if ac_fn_c_try_compile "$LINENO"; then :
2359   eval "$3=yes"
2360 else
2361   eval "$3=no"
2362 fi
2363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2364 fi
2365 eval ac_res=\$$3
2366                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2367 $as_echo "$ac_res" >&6; }
2368   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2369
2370 } # ac_fn_c_check_decl
2371
2372 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2373 # ----------------------------------------------------
2374 # Tries to find if the field MEMBER exists in type AGGR, after including
2375 # INCLUDES, setting cache variable VAR accordingly.
2376 ac_fn_c_check_member ()
2377 {
2378   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2379   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2380 $as_echo_n "checking for $2.$3... " >&6; }
2381 if eval \${$4+:} false; then :
2382   $as_echo_n "(cached) " >&6
2383 else
2384   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2385 /* end confdefs.h.  */
2386 $5
2387 int
2388 main ()
2389 {
2390 static $2 ac_aggr;
2391 if (ac_aggr.$3)
2392 return 0;
2393   ;
2394   return 0;
2395 }
2396 _ACEOF
2397 if ac_fn_c_try_compile "$LINENO"; then :
2398   eval "$4=yes"
2399 else
2400   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2401 /* end confdefs.h.  */
2402 $5
2403 int
2404 main ()
2405 {
2406 static $2 ac_aggr;
2407 if (sizeof ac_aggr.$3)
2408 return 0;
2409   ;
2410   return 0;
2411 }
2412 _ACEOF
2413 if ac_fn_c_try_compile "$LINENO"; then :
2414   eval "$4=yes"
2415 else
2416   eval "$4=no"
2417 fi
2418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2419 fi
2420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2421 fi
2422 eval ac_res=\$$4
2423                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2424 $as_echo "$ac_res" >&6; }
2425   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2426
2427 } # ac_fn_c_check_member
2428 cat >config.log <<_ACEOF
2429 This file contains any messages produced by compilers while
2430 running configure, to aid debugging if configure makes a mistake.
2431
2432 It was created by gpgme $as_me 1.5.1, which was
2433 generated by GNU Autoconf 2.69.  Invocation command line was
2434
2435   $ $0 $@
2436
2437 _ACEOF
2438 exec 5>>config.log
2439 {
2440 cat <<_ASUNAME
2441 ## --------- ##
2442 ## Platform. ##
2443 ## --------- ##
2444
2445 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2446 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2447 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2448 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2449 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2450
2451 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2452 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2453
2454 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2455 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2456 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2457 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2458 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2459 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2460 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2461
2462 _ASUNAME
2463
2464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2465 for as_dir in $PATH
2466 do
2467   IFS=$as_save_IFS
2468   test -z "$as_dir" && as_dir=.
2469     $as_echo "PATH: $as_dir"
2470   done
2471 IFS=$as_save_IFS
2472
2473 } >&5
2474
2475 cat >&5 <<_ACEOF
2476
2477
2478 ## ----------- ##
2479 ## Core tests. ##
2480 ## ----------- ##
2481
2482 _ACEOF
2483
2484
2485 # Keep a trace of the command line.
2486 # Strip out --no-create and --no-recursion so they do not pile up.
2487 # Strip out --silent because we don't want to record it for future runs.
2488 # Also quote any args containing shell meta-characters.
2489 # Make two passes to allow for proper duplicate-argument suppression.
2490 ac_configure_args=
2491 ac_configure_args0=
2492 ac_configure_args1=
2493 ac_must_keep_next=false
2494 for ac_pass in 1 2
2495 do
2496   for ac_arg
2497   do
2498     case $ac_arg in
2499     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2500     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2501     | -silent | --silent | --silen | --sile | --sil)
2502       continue ;;
2503     *\'*)
2504       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2505     esac
2506     case $ac_pass in
2507     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2508     2)
2509       as_fn_append ac_configure_args1 " '$ac_arg'"
2510       if test $ac_must_keep_next = true; then
2511         ac_must_keep_next=false # Got value, back to normal.
2512       else
2513         case $ac_arg in
2514           *=* | --config-cache | -C | -disable-* | --disable-* \
2515           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2516           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2517           | -with-* | --with-* | -without-* | --without-* | --x)
2518             case "$ac_configure_args0 " in
2519               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2520             esac
2521             ;;
2522           -* ) ac_must_keep_next=true ;;
2523         esac
2524       fi
2525       as_fn_append ac_configure_args " '$ac_arg'"
2526       ;;
2527     esac
2528   done
2529 done
2530 { ac_configure_args0=; unset ac_configure_args0;}
2531 { ac_configure_args1=; unset ac_configure_args1;}
2532
2533 # When interrupted or exit'd, cleanup temporary files, and complete
2534 # config.log.  We remove comments because anyway the quotes in there
2535 # would cause problems or look ugly.
2536 # WARNING: Use '\'' to represent an apostrophe within the trap.
2537 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2538 trap 'exit_status=$?
2539   # Save into config.log some information that might help in debugging.
2540   {
2541     echo
2542
2543     $as_echo "## ---------------- ##
2544 ## Cache variables. ##
2545 ## ---------------- ##"
2546     echo
2547     # The following way of writing the cache mishandles newlines in values,
2548 (
2549   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2550     eval ac_val=\$$ac_var
2551     case $ac_val in #(
2552     *${as_nl}*)
2553       case $ac_var in #(
2554       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2555 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2556       esac
2557       case $ac_var in #(
2558       _ | IFS | as_nl) ;; #(
2559       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2560       *) { eval $ac_var=; unset $ac_var;} ;;
2561       esac ;;
2562     esac
2563   done
2564   (set) 2>&1 |
2565     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2566     *${as_nl}ac_space=\ *)
2567       sed -n \
2568         "s/'\''/'\''\\\\'\'''\''/g;
2569           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2570       ;; #(
2571     *)
2572       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2573       ;;
2574     esac |
2575     sort
2576 )
2577     echo
2578
2579     $as_echo "## ----------------- ##
2580 ## Output variables. ##
2581 ## ----------------- ##"
2582     echo
2583     for ac_var in $ac_subst_vars
2584     do
2585       eval ac_val=\$$ac_var
2586       case $ac_val in
2587       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2588       esac
2589       $as_echo "$ac_var='\''$ac_val'\''"
2590     done | sort
2591     echo
2592
2593     if test -n "$ac_subst_files"; then
2594       $as_echo "## ------------------- ##
2595 ## File substitutions. ##
2596 ## ------------------- ##"
2597       echo
2598       for ac_var in $ac_subst_files
2599       do
2600         eval ac_val=\$$ac_var
2601         case $ac_val in
2602         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2603         esac
2604         $as_echo "$ac_var='\''$ac_val'\''"
2605       done | sort
2606       echo
2607     fi
2608
2609     if test -s confdefs.h; then
2610       $as_echo "## ----------- ##
2611 ## confdefs.h. ##
2612 ## ----------- ##"
2613       echo
2614       cat confdefs.h
2615       echo
2616     fi
2617     test "$ac_signal" != 0 &&
2618       $as_echo "$as_me: caught signal $ac_signal"
2619     $as_echo "$as_me: exit $exit_status"
2620   } >&5
2621   rm -f core *.core core.conftest.* &&
2622     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2623     exit $exit_status
2624 ' 0
2625 for ac_signal in 1 2 13 15; do
2626   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2627 done
2628 ac_signal=0
2629
2630 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2631 rm -f -r conftest* confdefs.h
2632
2633 $as_echo "/* confdefs.h */" > confdefs.h
2634
2635 # Predefined preprocessor variables.
2636
2637 cat >>confdefs.h <<_ACEOF
2638 #define PACKAGE_NAME "$PACKAGE_NAME"
2639 _ACEOF
2640
2641 cat >>confdefs.h <<_ACEOF
2642 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2643 _ACEOF
2644
2645 cat >>confdefs.h <<_ACEOF
2646 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2647 _ACEOF
2648
2649 cat >>confdefs.h <<_ACEOF
2650 #define PACKAGE_STRING "$PACKAGE_STRING"
2651 _ACEOF
2652
2653 cat >>confdefs.h <<_ACEOF
2654 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2655 _ACEOF
2656
2657 cat >>confdefs.h <<_ACEOF
2658 #define PACKAGE_URL "$PACKAGE_URL"
2659 _ACEOF
2660
2661
2662 # Let the site file select an alternate cache file if it wants to.
2663 # Prefer an explicitly selected file to automatically selected ones.
2664 ac_site_file1=NONE
2665 ac_site_file2=NONE
2666 if test -n "$CONFIG_SITE"; then
2667   # We do not want a PATH search for config.site.
2668   case $CONFIG_SITE in #((
2669     -*)  ac_site_file1=./$CONFIG_SITE;;
2670     */*) ac_site_file1=$CONFIG_SITE;;
2671     *)   ac_site_file1=./$CONFIG_SITE;;
2672   esac
2673 elif test "x$prefix" != xNONE; then
2674   ac_site_file1=$prefix/share/config.site
2675   ac_site_file2=$prefix/etc/config.site
2676 else
2677   ac_site_file1=$ac_default_prefix/share/config.site
2678   ac_site_file2=$ac_default_prefix/etc/config.site
2679 fi
2680 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2681 do
2682   test "x$ac_site_file" = xNONE && continue
2683   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2684     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2685 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2686     sed 's/^/| /' "$ac_site_file" >&5
2687     . "$ac_site_file" \
2688       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2689 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2690 as_fn_error $? "failed to load site script $ac_site_file
2691 See \`config.log' for more details" "$LINENO" 5; }
2692   fi
2693 done
2694
2695 if test -r "$cache_file"; then
2696   # Some versions of bash will fail to source /dev/null (special files
2697   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2698   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2699     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2700 $as_echo "$as_me: loading cache $cache_file" >&6;}
2701     case $cache_file in
2702       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2703       *)                      . "./$cache_file";;
2704     esac
2705   fi
2706 else
2707   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2708 $as_echo "$as_me: creating cache $cache_file" >&6;}
2709   >$cache_file
2710 fi
2711
2712 as_fn_append ac_header_list " locale.h"
2713 as_fn_append ac_header_list " sys/select.h"
2714 as_fn_append ac_header_list " sys/uio.h"
2715 as_fn_append ac_header_list " argp.h"
2716 as_fn_append ac_header_list " unistd.h"
2717 as_fn_append ac_header_list " sys/time.h"
2718 as_fn_append ac_header_list " sys/types.h"
2719 as_fn_append ac_header_list " sys/stat.h"
2720 # Check that the precious variables saved in the cache have kept the same
2721 # value.
2722 ac_cache_corrupted=false
2723 for ac_var in $ac_precious_vars; do
2724   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2725   eval ac_new_set=\$ac_env_${ac_var}_set
2726   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2727   eval ac_new_val=\$ac_env_${ac_var}_value
2728   case $ac_old_set,$ac_new_set in
2729     set,)
2730       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2731 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2732       ac_cache_corrupted=: ;;
2733     ,set)
2734       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2735 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2736       ac_cache_corrupted=: ;;
2737     ,);;
2738     *)
2739       if test "x$ac_old_val" != "x$ac_new_val"; then
2740         # differences in whitespace do not lead to failure.
2741         ac_old_val_w=`echo x $ac_old_val`
2742         ac_new_val_w=`echo x $ac_new_val`
2743         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2744           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2745 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2746           ac_cache_corrupted=:
2747         else
2748           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2749 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2750           eval $ac_var=\$ac_old_val
2751         fi
2752         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2753 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2754         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2755 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2756       fi;;
2757   esac
2758   # Pass precious variables to config.status.
2759   if test "$ac_new_set" = set; then
2760     case $ac_new_val in
2761     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2762     *) ac_arg=$ac_var=$ac_new_val ;;
2763     esac
2764     case " $ac_configure_args " in
2765       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2766       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2767     esac
2768   fi
2769 done
2770 if $ac_cache_corrupted; then
2771   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2772 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2773   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2774 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2775   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2776 fi
2777 ## -------------------- ##
2778 ## Main body of script. ##
2779 ## -------------------- ##
2780
2781 ac_ext=c
2782 ac_cpp='$CPP $CPPFLAGS'
2783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2786
2787
2788
2789 # LT Version numbers, remember to change them just *before* a release.
2790 #   (Code changed:                      REVISION++)
2791 #   (Interfaces added/removed/changed:  CURRENT++, REVISION=0)
2792 #   (Interfaces added:                  AGE++)
2793 #   (Interfaces removed/changed:        AGE=0)
2794 #
2795 LIBGPGME_LT_CURRENT=24
2796 # Subtract 2 from this value if you want to make the LFS transition an
2797 # ABI break.  [Note to self: Remove this comment with the next regular break.]
2798 LIBGPGME_LT_AGE=13
2799 LIBGPGME_LT_REVISION=0
2800
2801 # If the API is changed in an incompatible way: increment the next counter.
2802 GPGME_CONFIG_API_VERSION=1
2803 ##############################################
2804
2805 NEED_GPG_ERROR_VERSION=1.11
2806 NEED_LIBASSUAN_API=2
2807 NEED_LIBASSUAN_VERSION=2.0.2
2808
2809
2810 PACKAGE=$PACKAGE_NAME
2811 VERSION=$PACKAGE_VERSION
2812
2813 ac_aux_dir=
2814 for ac_dir in build-aux "$srcdir"/build-aux; do
2815   if test -f "$ac_dir/install-sh"; then
2816     ac_aux_dir=$ac_dir
2817     ac_install_sh="$ac_aux_dir/install-sh -c"
2818     break
2819   elif test -f "$ac_dir/install.sh"; then
2820     ac_aux_dir=$ac_dir
2821     ac_install_sh="$ac_aux_dir/install.sh -c"
2822     break
2823   elif test -f "$ac_dir/shtool"; then
2824     ac_aux_dir=$ac_dir
2825     ac_install_sh="$ac_aux_dir/shtool install -c"
2826     break
2827   fi
2828 done
2829 if test -z "$ac_aux_dir"; then
2830   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2831 fi
2832
2833 # These three variables are undocumented and unsupported,
2834 # and are intended to be withdrawn in a future Autoconf release.
2835 # They can cause serious problems if a builder's source tree is in a directory
2836 # whose full name contains unusual characters.
2837 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2838 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2839 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2840
2841
2842
2843
2844 ac_config_headers="$ac_config_headers config.h"
2845
2846 # Note: For automake 1.13 add the option
2847 #          serial-tests
2848 am__api_version='1.11'
2849
2850 # Find a good install program.  We prefer a C program (faster),
2851 # so one script is as good as another.  But avoid the broken or
2852 # incompatible versions:
2853 # SysV /etc/install, /usr/sbin/install
2854 # SunOS /usr/etc/install
2855 # IRIX /sbin/install
2856 # AIX /bin/install
2857 # AmigaOS /C/install, which installs bootblocks on floppy discs
2858 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2859 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2860 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2861 # OS/2's system install, which has a completely different semantic
2862 # ./install, which can be erroneously created by make from ./install.sh.
2863 # Reject install programs that cannot install multiple files.
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2865 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2866 if test -z "$INSTALL"; then
2867 if ${ac_cv_path_install+:} false; then :
2868   $as_echo_n "(cached) " >&6
2869 else
2870   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2871 for as_dir in $PATH
2872 do
2873   IFS=$as_save_IFS
2874   test -z "$as_dir" && as_dir=.
2875     # Account for people who put trailing slashes in PATH elements.
2876 case $as_dir/ in #((
2877   ./ | .// | /[cC]/* | \
2878   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2879   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2880   /usr/ucb/* ) ;;
2881   *)
2882     # OSF1 and SCO ODT 3.0 have their own names for install.
2883     # Don't use installbsd from OSF since it installs stuff as root
2884     # by default.
2885     for ac_prog in ginstall scoinst install; do
2886       for ac_exec_ext in '' $ac_executable_extensions; do
2887         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2888           if test $ac_prog = install &&
2889             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2890             # AIX install.  It has an incompatible calling convention.
2891             :
2892           elif test $ac_prog = install &&
2893             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2894             # program-specific install script used by HP pwplus--don't use.
2895             :
2896           else
2897             rm -rf conftest.one conftest.two conftest.dir
2898             echo one > conftest.one
2899             echo two > conftest.two
2900             mkdir conftest.dir
2901             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2902               test -s conftest.one && test -s conftest.two &&
2903               test -s conftest.dir/conftest.one &&
2904               test -s conftest.dir/conftest.two
2905             then
2906               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2907               break 3
2908             fi
2909           fi
2910         fi
2911       done
2912     done
2913     ;;
2914 esac
2915
2916   done
2917 IFS=$as_save_IFS
2918
2919 rm -rf conftest.one conftest.two conftest.dir
2920
2921 fi
2922   if test "${ac_cv_path_install+set}" = set; then
2923     INSTALL=$ac_cv_path_install
2924   else
2925     # As a last resort, use the slow shell script.  Don't cache a
2926     # value for INSTALL within a source directory, because that will
2927     # break other packages using the cache if that directory is
2928     # removed, or if the value is a relative name.
2929     INSTALL=$ac_install_sh
2930   fi
2931 fi
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2933 $as_echo "$INSTALL" >&6; }
2934
2935 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2936 # It thinks the first close brace ends the variable substitution.
2937 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2938
2939 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2940
2941 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2942
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2944 $as_echo_n "checking whether build environment is sane... " >&6; }
2945 # Just in case
2946 sleep 1
2947 echo timestamp > conftest.file
2948 # Reject unsafe characters in $srcdir or the absolute working directory
2949 # name.  Accept space and tab only in the latter.
2950 am_lf='
2951 '
2952 case `pwd` in
2953   *[\\\"\#\$\&\'\`$am_lf]*)
2954     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2955 esac
2956 case $srcdir in
2957   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2958     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2959 esac
2960
2961 # Do `set' in a subshell so we don't clobber the current shell's
2962 # arguments.  Must try -L first in case configure is actually a
2963 # symlink; some systems play weird games with the mod time of symlinks
2964 # (eg FreeBSD returns the mod time of the symlink's containing
2965 # directory).
2966 if (
2967    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2968    if test "$*" = "X"; then
2969       # -L didn't work.
2970       set X `ls -t "$srcdir/configure" conftest.file`
2971    fi
2972    rm -f conftest.file
2973    if test "$*" != "X $srcdir/configure conftest.file" \
2974       && test "$*" != "X conftest.file $srcdir/configure"; then
2975
2976       # If neither matched, then we have a broken ls.  This can happen
2977       # if, for instance, CONFIG_SHELL is bash and it inherits a
2978       # broken ls alias from the environment.  This has actually
2979       # happened.  Such a system could not be considered "sane".
2980       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2981 alias in your environment" "$LINENO" 5
2982    fi
2983
2984    test "$2" = conftest.file
2985    )
2986 then
2987    # Ok.
2988    :
2989 else
2990    as_fn_error $? "newly created file is older than distributed files!
2991 Check your system clock" "$LINENO" 5
2992 fi
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2994 $as_echo "yes" >&6; }
2995 test "$program_prefix" != NONE &&
2996   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2997 # Use a double $ so make ignores it.
2998 test "$program_suffix" != NONE &&
2999   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3000 # Double any \ or $.
3001 # By default was `s,x,x', remove it if useless.
3002 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3003 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3004
3005 # expand $ac_aux_dir to an absolute path
3006 am_aux_dir=`cd $ac_aux_dir && pwd`
3007
3008 if test x"${MISSING+set}" != xset; then
3009   case $am_aux_dir in
3010   *\ * | *\     *)
3011     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3012   *)
3013     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3014   esac
3015 fi
3016 # Use eval to expand $SHELL
3017 if eval "$MISSING --run true"; then
3018   am_missing_run="$MISSING --run "
3019 else
3020   am_missing_run=
3021   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3022 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3023 fi
3024
3025 if test x"${install_sh}" != xset; then
3026   case $am_aux_dir in
3027   *\ * | *\     *)
3028     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3029   *)
3030     install_sh="\${SHELL} $am_aux_dir/install-sh"
3031   esac
3032 fi
3033
3034 # Installed binaries are usually stripped using `strip' when the user
3035 # run `make install-strip'.  However `strip' might not be the right
3036 # tool to use in cross-compilation environments, therefore Automake
3037 # will honor the `STRIP' environment variable to overrule this program.
3038 if test "$cross_compiling" != no; then
3039   if test -n "$ac_tool_prefix"; then
3040   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3041 set dummy ${ac_tool_prefix}strip; ac_word=$2
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3043 $as_echo_n "checking for $ac_word... " >&6; }
3044 if ${ac_cv_prog_STRIP+:} false; then :
3045   $as_echo_n "(cached) " >&6
3046 else
3047   if test -n "$STRIP"; then
3048   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3049 else
3050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3051 for as_dir in $PATH
3052 do
3053   IFS=$as_save_IFS
3054   test -z "$as_dir" && as_dir=.
3055     for ac_exec_ext in '' $ac_executable_extensions; do
3056   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3057     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3058     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3059     break 2
3060   fi
3061 done
3062   done
3063 IFS=$as_save_IFS
3064
3065 fi
3066 fi
3067 STRIP=$ac_cv_prog_STRIP
3068 if test -n "$STRIP"; then
3069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3070 $as_echo "$STRIP" >&6; }
3071 else
3072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3073 $as_echo "no" >&6; }
3074 fi
3075
3076
3077 fi
3078 if test -z "$ac_cv_prog_STRIP"; then
3079   ac_ct_STRIP=$STRIP
3080   # Extract the first word of "strip", so it can be a program name with args.
3081 set dummy strip; ac_word=$2
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3083 $as_echo_n "checking for $ac_word... " >&6; }
3084 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3085   $as_echo_n "(cached) " >&6
3086 else
3087   if test -n "$ac_ct_STRIP"; then
3088   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3089 else
3090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3091 for as_dir in $PATH
3092 do
3093   IFS=$as_save_IFS
3094   test -z "$as_dir" && as_dir=.
3095     for ac_exec_ext in '' $ac_executable_extensions; do
3096   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3097     ac_cv_prog_ac_ct_STRIP="strip"
3098     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3099     break 2
3100   fi
3101 done
3102   done
3103 IFS=$as_save_IFS
3104
3105 fi
3106 fi
3107 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3108 if test -n "$ac_ct_STRIP"; then
3109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3110 $as_echo "$ac_ct_STRIP" >&6; }
3111 else
3112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3113 $as_echo "no" >&6; }
3114 fi
3115
3116   if test "x$ac_ct_STRIP" = x; then
3117     STRIP=":"
3118   else
3119     case $cross_compiling:$ac_tool_warned in
3120 yes:)
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3122 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3123 ac_tool_warned=yes ;;
3124 esac
3125     STRIP=$ac_ct_STRIP
3126   fi
3127 else
3128   STRIP="$ac_cv_prog_STRIP"
3129 fi
3130
3131 fi
3132 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3133
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3135 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3136 if test -z "$MKDIR_P"; then
3137   if ${ac_cv_path_mkdir+:} false; then :
3138   $as_echo_n "(cached) " >&6
3139 else
3140   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3141 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3142 do
3143   IFS=$as_save_IFS
3144   test -z "$as_dir" && as_dir=.
3145     for ac_prog in mkdir gmkdir; do
3146          for ac_exec_ext in '' $ac_executable_extensions; do
3147            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3148            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3149              'mkdir (GNU coreutils) '* | \
3150              'mkdir (coreutils) '* | \
3151              'mkdir (fileutils) '4.1*)
3152                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3153                break 3;;
3154            esac
3155          done
3156        done
3157   done
3158 IFS=$as_save_IFS
3159
3160 fi
3161
3162   test -d ./--version && rmdir ./--version
3163   if test "${ac_cv_path_mkdir+set}" = set; then
3164     MKDIR_P="$ac_cv_path_mkdir -p"
3165   else
3166     # As a last resort, use the slow shell script.  Don't cache a
3167     # value for MKDIR_P within a source directory, because that will
3168     # break other packages using the cache if that directory is
3169     # removed, or if the value is a relative name.
3170     MKDIR_P="$ac_install_sh -d"
3171   fi
3172 fi
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3174 $as_echo "$MKDIR_P" >&6; }
3175
3176 mkdir_p="$MKDIR_P"
3177 case $mkdir_p in
3178   [\\/$]* | ?:[\\/]*) ;;
3179   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3180 esac
3181
3182 for ac_prog in gawk mawk nawk awk
3183 do
3184   # Extract the first word of "$ac_prog", so it can be a program name with args.
3185 set dummy $ac_prog; ac_word=$2
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3187 $as_echo_n "checking for $ac_word... " >&6; }
3188 if ${ac_cv_prog_AWK+:} false; then :
3189   $as_echo_n "(cached) " >&6
3190 else
3191   if test -n "$AWK"; then
3192   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3193 else
3194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3195 for as_dir in $PATH
3196 do
3197   IFS=$as_save_IFS
3198   test -z "$as_dir" && as_dir=.
3199     for ac_exec_ext in '' $ac_executable_extensions; do
3200   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3201     ac_cv_prog_AWK="$ac_prog"
3202     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3203     break 2
3204   fi
3205 done
3206   done
3207 IFS=$as_save_IFS
3208
3209 fi
3210 fi
3211 AWK=$ac_cv_prog_AWK
3212 if test -n "$AWK"; then
3213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3214 $as_echo "$AWK" >&6; }
3215 else
3216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3217 $as_echo "no" >&6; }
3218 fi
3219
3220
3221   test -n "$AWK" && break
3222 done
3223
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3225 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3226 set x ${MAKE-make}
3227 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3228 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3229   $as_echo_n "(cached) " >&6
3230 else
3231   cat >conftest.make <<\_ACEOF
3232 SHELL = /bin/sh
3233 all:
3234         @echo '@@@%%%=$(MAKE)=@@@%%%'
3235 _ACEOF
3236 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3237 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3238   *@@@%%%=?*=@@@%%%*)
3239     eval ac_cv_prog_make_${ac_make}_set=yes;;
3240   *)
3241     eval ac_cv_prog_make_${ac_make}_set=no;;
3242 esac
3243 rm -f conftest.make
3244 fi
3245 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3247 $as_echo "yes" >&6; }
3248   SET_MAKE=
3249 else
3250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3251 $as_echo "no" >&6; }
3252   SET_MAKE="MAKE=${MAKE-make}"
3253 fi
3254
3255 rm -rf .tst 2>/dev/null
3256 mkdir .tst 2>/dev/null
3257 if test -d .tst; then
3258   am__leading_dot=.
3259 else
3260   am__leading_dot=_
3261 fi
3262 rmdir .tst 2>/dev/null
3263
3264 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3265   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3266   # is not polluted with repeated "-I."
3267   am__isrc=' -I$(srcdir)'
3268   # test to see if srcdir already configured
3269   if test -f $srcdir/config.status; then
3270     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3271   fi
3272 fi
3273
3274 # test whether we have cygpath
3275 if test -z "$CYGPATH_W"; then
3276   if (cygpath --version) >/dev/null 2>/dev/null; then
3277     CYGPATH_W='cygpath -w'
3278   else
3279     CYGPATH_W=echo
3280   fi
3281 fi
3282
3283
3284 # Define the identity of the package.
3285  PACKAGE='gpgme'
3286  VERSION='1.5.1'
3287
3288
3289 cat >>confdefs.h <<_ACEOF
3290 #define PACKAGE "$PACKAGE"
3291 _ACEOF
3292
3293
3294 cat >>confdefs.h <<_ACEOF
3295 #define VERSION "$VERSION"
3296 _ACEOF
3297
3298 # Some tools Automake needs.
3299
3300 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3301
3302
3303 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3304
3305
3306 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3307
3308
3309 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3310
3311
3312 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3313
3314 # We need awk for the "check" target.  The system "awk" is bad on
3315 # some platforms.
3316 # Always define AMTAR for backward compatibility.  Yes, it's still used
3317 # in the wild :-(  We should find a proper way to deprecate it ...
3318 AMTAR='$${TAR-tar}'
3319
3320 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3321
3322
3323
3324
3325
3326
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3328 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3329     # Check whether --enable-maintainer-mode was given.
3330 if test "${enable_maintainer_mode+set}" = set; then :
3331   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3332 else
3333   USE_MAINTAINER_MODE=no
3334 fi
3335
3336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3337 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3338    if test $USE_MAINTAINER_MODE = yes; then
3339   MAINTAINER_MODE_TRUE=
3340   MAINTAINER_MODE_FALSE='#'
3341 else
3342   MAINTAINER_MODE_TRUE='#'
3343   MAINTAINER_MODE_FALSE=
3344 fi
3345
3346   MAINT=$MAINTAINER_MODE_TRUE
3347
3348
3349 # Make sure we can run config.sub.
3350 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3351   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3352
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3354 $as_echo_n "checking build system type... " >&6; }
3355 if ${ac_cv_build+:} false; then :
3356   $as_echo_n "(cached) " >&6
3357 else
3358   ac_build_alias=$build_alias
3359 test "x$ac_build_alias" = x &&
3360   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3361 test "x$ac_build_alias" = x &&
3362   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3363 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3364   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3365
3366 fi
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3368 $as_echo "$ac_cv_build" >&6; }
3369 case $ac_cv_build in
3370 *-*-*) ;;
3371 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3372 esac
3373 build=$ac_cv_build
3374 ac_save_IFS=$IFS; IFS='-'
3375 set x $ac_cv_build
3376 shift
3377 build_cpu=$1
3378 build_vendor=$2
3379 shift; shift
3380 # Remember, the first character of IFS is used to create $*,
3381 # except with old shells:
3382 build_os=$*
3383 IFS=$ac_save_IFS
3384 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3385
3386
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3388 $as_echo_n "checking host system type... " >&6; }
3389 if ${ac_cv_host+:} false; then :
3390   $as_echo_n "(cached) " >&6
3391 else
3392   if test "x$host_alias" = x; then
3393   ac_cv_host=$ac_cv_build
3394 else
3395   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3396     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3397 fi
3398
3399 fi
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3401 $as_echo "$ac_cv_host" >&6; }
3402 case $ac_cv_host in
3403 *-*-*) ;;
3404 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3405 esac
3406 host=$ac_cv_host
3407 ac_save_IFS=$IFS; IFS='-'
3408 set x $ac_cv_host
3409 shift
3410 host_cpu=$1
3411 host_vendor=$2
3412 shift; shift
3413 # Remember, the first character of IFS is used to create $*,
3414 # except with old shells:
3415 host_os=$*
3416 IFS=$ac_save_IFS
3417 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3418
3419
3420 # Check whether --enable-silent-rules was given.
3421 if test "${enable_silent_rules+set}" = set; then :
3422   enableval=$enable_silent_rules;
3423 fi
3424
3425 case $enable_silent_rules in
3426 yes) AM_DEFAULT_VERBOSITY=0;;
3427 no)  AM_DEFAULT_VERBOSITY=1;;
3428 *)   AM_DEFAULT_VERBOSITY=1;;
3429 esac
3430 am_make=${MAKE-make}
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3432 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3433 if ${am_cv_make_support_nested_variables+:} false; then :
3434   $as_echo_n "(cached) " >&6
3435 else
3436   if $as_echo 'TRUE=$(BAR$(V))
3437 BAR0=false
3438 BAR1=true
3439 V=1
3440 am__doit:
3441         @$(TRUE)
3442 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3443   am_cv_make_support_nested_variables=yes
3444 else
3445   am_cv_make_support_nested_variables=no
3446 fi
3447 fi
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3449 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3450 if test $am_cv_make_support_nested_variables = yes; then
3451     AM_V='$(V)'
3452   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3453 else
3454   AM_V=$AM_DEFAULT_VERBOSITY
3455   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3456 fi
3457 AM_BACKSLASH='\'
3458
3459
3460 # Enable GNU extensions on systems that have them.
3461 DEPDIR="${am__leading_dot}deps"
3462
3463 ac_config_commands="$ac_config_commands depfiles"
3464
3465
3466 am_make=${MAKE-make}
3467 cat > confinc << 'END'
3468 am__doit:
3469         @echo this is the am__doit target
3470 .PHONY: am__doit
3471 END
3472 # If we don't find an include directive, just comment out the code.
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3474 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3475 am__include="#"
3476 am__quote=
3477 _am_result=none
3478 # First try GNU make style include.
3479 echo "include confinc" > confmf
3480 # Ignore all kinds of additional output from `make'.
3481 case `$am_make -s -f confmf 2> /dev/null` in #(
3482 *the\ am__doit\ target*)
3483   am__include=include
3484   am__quote=
3485   _am_result=GNU
3486   ;;
3487 esac
3488 # Now try BSD make style include.
3489 if test "$am__include" = "#"; then
3490    echo '.include "confinc"' > confmf
3491    case `$am_make -s -f confmf 2> /dev/null` in #(
3492    *the\ am__doit\ target*)
3493      am__include=.include
3494      am__quote="\""
3495      _am_result=BSD
3496      ;;
3497    esac
3498 fi
3499
3500
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3502 $as_echo "$_am_result" >&6; }
3503 rm -f confinc confmf
3504
3505 # Check whether --enable-dependency-tracking was given.
3506 if test "${enable_dependency_tracking+set}" = set; then :
3507   enableval=$enable_dependency_tracking;
3508 fi
3509
3510 if test "x$enable_dependency_tracking" != xno; then
3511   am_depcomp="$ac_aux_dir/depcomp"
3512   AMDEPBACKSLASH='\'
3513   am__nodep='_no'
3514 fi
3515  if test "x$enable_dependency_tracking" != xno; then
3516   AMDEP_TRUE=
3517   AMDEP_FALSE='#'
3518 else
3519   AMDEP_TRUE='#'
3520   AMDEP_FALSE=
3521 fi
3522
3523
3524 ac_ext=c
3525 ac_cpp='$CPP $CPPFLAGS'
3526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3529 if test -n "$ac_tool_prefix"; then
3530   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3531 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3533 $as_echo_n "checking for $ac_word... " >&6; }
3534 if ${ac_cv_prog_CC+:} false; then :
3535   $as_echo_n "(cached) " >&6
3536 else
3537   if test -n "$CC"; then
3538   ac_cv_prog_CC="$CC" # Let the user override the test.
3539 else
3540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3541 for as_dir in $PATH
3542 do
3543   IFS=$as_save_IFS
3544   test -z "$as_dir" && as_dir=.
3545     for ac_exec_ext in '' $ac_executable_extensions; do
3546   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3547     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3548     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3549     break 2
3550   fi
3551 done
3552   done
3553 IFS=$as_save_IFS
3554
3555 fi
3556 fi
3557 CC=$ac_cv_prog_CC
3558 if test -n "$CC"; then
3559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3560 $as_echo "$CC" >&6; }
3561 else
3562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3563 $as_echo "no" >&6; }
3564 fi
3565
3566
3567 fi
3568 if test -z "$ac_cv_prog_CC"; then
3569   ac_ct_CC=$CC
3570   # Extract the first word of "gcc", so it can be a program name with args.
3571 set dummy gcc; ac_word=$2
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3573 $as_echo_n "checking for $ac_word... " >&6; }
3574 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3575   $as_echo_n "(cached) " >&6
3576 else
3577   if test -n "$ac_ct_CC"; then
3578   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3579 else
3580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3581 for as_dir in $PATH
3582 do
3583   IFS=$as_save_IFS
3584   test -z "$as_dir" && as_dir=.
3585     for ac_exec_ext in '' $ac_executable_extensions; do
3586   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3587     ac_cv_prog_ac_ct_CC="gcc"
3588     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3589     break 2
3590   fi
3591 done
3592   done
3593 IFS=$as_save_IFS
3594
3595 fi
3596 fi
3597 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3598 if test -n "$ac_ct_CC"; then
3599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3600 $as_echo "$ac_ct_CC" >&6; }
3601 else
3602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3603 $as_echo "no" >&6; }
3604 fi
3605
3606   if test "x$ac_ct_CC" = x; then
3607     CC=""
3608   else
3609     case $cross_compiling:$ac_tool_warned in
3610 yes:)
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3612 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3613 ac_tool_warned=yes ;;
3614 esac
3615     CC=$ac_ct_CC
3616   fi
3617 else
3618   CC="$ac_cv_prog_CC"
3619 fi
3620
3621 if test -z "$CC"; then
3622           if test -n "$ac_tool_prefix"; then
3623     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3624 set dummy ${ac_tool_prefix}cc; ac_word=$2
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3626 $as_echo_n "checking for $ac_word... " >&6; }
3627 if ${ac_cv_prog_CC+:} false; then :
3628   $as_echo_n "(cached) " >&6
3629 else
3630   if test -n "$CC"; then
3631   ac_cv_prog_CC="$CC" # Let the user override the test.
3632 else
3633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3634 for as_dir in $PATH
3635 do
3636   IFS=$as_save_IFS
3637   test -z "$as_dir" && as_dir=.
3638     for ac_exec_ext in '' $ac_executable_extensions; do
3639   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3640     ac_cv_prog_CC="${ac_tool_prefix}cc"
3641     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3642     break 2
3643   fi
3644 done
3645   done
3646 IFS=$as_save_IFS
3647
3648 fi
3649 fi
3650 CC=$ac_cv_prog_CC
3651 if test -n "$CC"; then
3652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3653 $as_echo "$CC" >&6; }
3654 else
3655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3656 $as_echo "no" >&6; }
3657 fi
3658
3659
3660   fi
3661 fi
3662 if test -z "$CC"; then
3663   # Extract the first word of "cc", so it can be a program name with args.
3664 set dummy cc; ac_word=$2
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3666 $as_echo_n "checking for $ac_word... " >&6; }
3667 if ${ac_cv_prog_CC+:} false; then :
3668   $as_echo_n "(cached) " >&6
3669 else
3670   if test -n "$CC"; then
3671   ac_cv_prog_CC="$CC" # Let the user override the test.
3672 else
3673   ac_prog_rejected=no
3674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3675 for as_dir in $PATH
3676 do
3677   IFS=$as_save_IFS
3678   test -z "$as_dir" && as_dir=.
3679     for ac_exec_ext in '' $ac_executable_extensions; do
3680   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3681     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3682        ac_prog_rejected=yes
3683        continue
3684      fi
3685     ac_cv_prog_CC="cc"
3686     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3687     break 2
3688   fi
3689 done
3690   done
3691 IFS=$as_save_IFS
3692
3693 if test $ac_prog_rejected = yes; then
3694   # We found a bogon in the path, so make sure we never use it.
3695   set dummy $ac_cv_prog_CC
3696   shift
3697   if test $# != 0; then
3698     # We chose a different compiler from the bogus one.
3699     # However, it has the same basename, so the bogon will be chosen
3700     # first if we set CC to just the basename; use the full file name.
3701     shift
3702     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3703   fi
3704 fi
3705 fi
3706 fi
3707 CC=$ac_cv_prog_CC
3708 if test -n "$CC"; then
3709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3710 $as_echo "$CC" >&6; }
3711 else
3712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3713 $as_echo "no" >&6; }
3714 fi
3715
3716
3717 fi
3718 if test -z "$CC"; then
3719   if test -n "$ac_tool_prefix"; then
3720   for ac_prog in cl.exe
3721   do
3722     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3723 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3725 $as_echo_n "checking for $ac_word... " >&6; }
3726 if ${ac_cv_prog_CC+:} false; then :
3727   $as_echo_n "(cached) " >&6
3728 else
3729   if test -n "$CC"; then
3730   ac_cv_prog_CC="$CC" # Let the user override the test.
3731 else
3732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3733 for as_dir in $PATH
3734 do
3735   IFS=$as_save_IFS
3736   test -z "$as_dir" && as_dir=.
3737     for ac_exec_ext in '' $ac_executable_extensions; do
3738   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3739     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3740     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3741     break 2
3742   fi
3743 done
3744   done
3745 IFS=$as_save_IFS
3746
3747 fi
3748 fi
3749 CC=$ac_cv_prog_CC
3750 if test -n "$CC"; then
3751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3752 $as_echo "$CC" >&6; }
3753 else
3754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3755 $as_echo "no" >&6; }
3756 fi
3757
3758
3759     test -n "$CC" && break
3760   done
3761 fi
3762 if test -z "$CC"; then
3763   ac_ct_CC=$CC
3764   for ac_prog in cl.exe
3765 do
3766   # Extract the first word of "$ac_prog", so it can be a program name with args.
3767 set dummy $ac_prog; ac_word=$2
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3769 $as_echo_n "checking for $ac_word... " >&6; }
3770 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3771   $as_echo_n "(cached) " >&6
3772 else
3773   if test -n "$ac_ct_CC"; then
3774   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3775 else
3776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3777 for as_dir in $PATH
3778 do
3779   IFS=$as_save_IFS
3780   test -z "$as_dir" && as_dir=.
3781     for ac_exec_ext in '' $ac_executable_extensions; do
3782   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3783     ac_cv_prog_ac_ct_CC="$ac_prog"
3784     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3785     break 2
3786   fi
3787 done
3788   done
3789 IFS=$as_save_IFS
3790
3791 fi
3792 fi
3793 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3794 if test -n "$ac_ct_CC"; then
3795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3796 $as_echo "$ac_ct_CC" >&6; }
3797 else
3798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3799 $as_echo "no" >&6; }
3800 fi
3801
3802
3803   test -n "$ac_ct_CC" && break
3804 done
3805
3806   if test "x$ac_ct_CC" = x; then
3807     CC=""
3808   else
3809     case $cross_compiling:$ac_tool_warned in
3810 yes:)
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3812 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3813 ac_tool_warned=yes ;;
3814 esac
3815     CC=$ac_ct_CC
3816   fi
3817 fi
3818
3819 fi
3820
3821
3822 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3823 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3824 as_fn_error $? "no acceptable C compiler found in \$PATH
3825 See \`config.log' for more details" "$LINENO" 5; }
3826
3827 # Provide some information about the compiler.
3828 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3829 set X $ac_compile
3830 ac_compiler=$2
3831 for ac_option in --version -v -V -qversion; do
3832   { { ac_try="$ac_compiler $ac_option >&5"
3833 case "(($ac_try" in
3834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3835   *) ac_try_echo=$ac_try;;
3836 esac
3837 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3838 $as_echo "$ac_try_echo"; } >&5
3839   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3840   ac_status=$?
3841   if test -s conftest.err; then
3842     sed '10a\
3843 ... rest of stderr output deleted ...
3844          10q' conftest.err >conftest.er1
3845     cat conftest.er1 >&5
3846   fi
3847   rm -f conftest.er1 conftest.err
3848   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3849   test $ac_status = 0; }
3850 done
3851
3852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3853 /* end confdefs.h.  */
3854
3855 int
3856 main ()
3857 {
3858
3859   ;
3860   return 0;
3861 }
3862 _ACEOF
3863 ac_clean_files_save=$ac_clean_files
3864 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3865 # Try to create an executable without -o first, disregard a.out.
3866 # It will help us diagnose broken compilers, and finding out an intuition
3867 # of exeext.
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3869 $as_echo_n "checking whether the C compiler works... " >&6; }
3870 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3871
3872 # The possible output files:
3873 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3874
3875 ac_rmfiles=
3876 for ac_file in $ac_files
3877 do
3878   case $ac_file in
3879     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3880     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3881   esac
3882 done
3883 rm -f $ac_rmfiles
3884
3885 if { { ac_try="$ac_link_default"
3886 case "(($ac_try" in
3887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3888   *) ac_try_echo=$ac_try;;
3889 esac
3890 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3891 $as_echo "$ac_try_echo"; } >&5
3892   (eval "$ac_link_default") 2>&5
3893   ac_status=$?
3894   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3895   test $ac_status = 0; }; then :
3896   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3897 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3898 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3899 # so that the user can short-circuit this test for compilers unknown to
3900 # Autoconf.
3901 for ac_file in $ac_files ''
3902 do
3903   test -f "$ac_file" || continue
3904   case $ac_file in
3905     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3906         ;;
3907     [ab].out )
3908         # We found the default executable, but exeext='' is most
3909         # certainly right.
3910         break;;
3911     *.* )
3912         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3913         then :; else
3914            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3915         fi
3916         # We set ac_cv_exeext here because the later test for it is not
3917         # safe: cross compilers may not add the suffix if given an `-o'
3918         # argument, so we may need to know it at that point already.
3919         # Even if this section looks crufty: it has the advantage of
3920         # actually working.
3921         break;;
3922     * )
3923         break;;
3924   esac
3925 done
3926 test "$ac_cv_exeext" = no && ac_cv_exeext=
3927
3928 else
3929   ac_file=''
3930 fi
3931 if test -z "$ac_file"; then :
3932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3933 $as_echo "no" >&6; }
3934 $as_echo "$as_me: failed program was:" >&5
3935 sed 's/^/| /' conftest.$ac_ext >&5
3936
3937 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3938 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3939 as_fn_error 77 "C compiler cannot create executables
3940 See \`config.log' for more details" "$LINENO" 5; }
3941 else
3942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3943 $as_echo "yes" >&6; }
3944 fi
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3946 $as_echo_n "checking for C compiler default output file name... " >&6; }
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3948 $as_echo "$ac_file" >&6; }
3949 ac_exeext=$ac_cv_exeext
3950
3951 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3952 ac_clean_files=$ac_clean_files_save
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3954 $as_echo_n "checking for suffix of executables... " >&6; }
3955 if { { ac_try="$ac_link"
3956 case "(($ac_try" in
3957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3958   *) ac_try_echo=$ac_try;;
3959 esac
3960 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3961 $as_echo "$ac_try_echo"; } >&5
3962   (eval "$ac_link") 2>&5
3963   ac_status=$?
3964   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3965   test $ac_status = 0; }; then :
3966   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3967 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3968 # work properly (i.e., refer to `conftest.exe'), while it won't with
3969 # `rm'.
3970 for ac_file in conftest.exe conftest conftest.*; do
3971   test -f "$ac_file" || continue
3972   case $ac_file in
3973     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3974     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3975           break;;
3976     * ) break;;
3977   esac
3978 done
3979 else
3980   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3981 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3982 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3983 See \`config.log' for more details" "$LINENO" 5; }
3984 fi
3985 rm -f conftest conftest$ac_cv_exeext
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3987 $as_echo "$ac_cv_exeext" >&6; }
3988
3989 rm -f conftest.$ac_ext
3990 EXEEXT=$ac_cv_exeext
3991 ac_exeext=$EXEEXT
3992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3993 /* end confdefs.h.  */
3994 #include <stdio.h>
3995 int
3996 main ()
3997 {
3998 FILE *f = fopen ("conftest.out", "w");
3999  return ferror (f) || fclose (f) != 0;
4000
4001   ;
4002   return 0;
4003 }
4004 _ACEOF
4005 ac_clean_files="$ac_clean_files conftest.out"
4006 # Check that the compiler produces executables we can run.  If not, either
4007 # the compiler is broken, or we cross compile.
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4009 $as_echo_n "checking whether we are cross compiling... " >&6; }
4010 if test "$cross_compiling" != yes; then
4011   { { ac_try="$ac_link"
4012 case "(($ac_try" in
4013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4014   *) ac_try_echo=$ac_try;;
4015 esac
4016 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4017 $as_echo "$ac_try_echo"; } >&5
4018   (eval "$ac_link") 2>&5
4019   ac_status=$?
4020   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4021   test $ac_status = 0; }
4022   if { ac_try='./conftest$ac_cv_exeext'
4023   { { case "(($ac_try" in
4024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4025   *) ac_try_echo=$ac_try;;
4026 esac
4027 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4028 $as_echo "$ac_try_echo"; } >&5
4029   (eval "$ac_try") 2>&5
4030   ac_status=$?
4031   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4032   test $ac_status = 0; }; }; then
4033     cross_compiling=no
4034   else
4035     if test "$cross_compiling" = maybe; then
4036         cross_compiling=yes
4037     else
4038         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4039 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4040 as_fn_error $? "cannot run C compiled programs.
4041 If you meant to cross compile, use \`--host'.
4042 See \`config.log' for more details" "$LINENO" 5; }
4043     fi
4044   fi
4045 fi
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4047 $as_echo "$cross_compiling" >&6; }
4048
4049 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4050 ac_clean_files=$ac_clean_files_save
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4052 $as_echo_n "checking for suffix of object files... " >&6; }
4053 if ${ac_cv_objext+:} false; then :
4054   $as_echo_n "(cached) " >&6
4055 else
4056   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4057 /* end confdefs.h.  */
4058
4059 int
4060 main ()
4061 {
4062
4063   ;
4064   return 0;
4065 }
4066 _ACEOF
4067 rm -f conftest.o conftest.obj
4068 if { { ac_try="$ac_compile"
4069 case "(($ac_try" in
4070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4071   *) ac_try_echo=$ac_try;;
4072 esac
4073 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4074 $as_echo "$ac_try_echo"; } >&5
4075   (eval "$ac_compile") 2>&5
4076   ac_status=$?
4077   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4078   test $ac_status = 0; }; then :
4079   for ac_file in conftest.o conftest.obj conftest.*; do
4080   test -f "$ac_file" || continue;
4081   case $ac_file in
4082     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4083     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4084        break;;
4085   esac
4086 done
4087 else
4088   $as_echo "$as_me: failed program was:" >&5
4089 sed 's/^/| /' conftest.$ac_ext >&5
4090
4091 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4092 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4093 as_fn_error $? "cannot compute suffix of object files: cannot compile
4094 See \`config.log' for more details" "$LINENO" 5; }
4095 fi
4096 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4097 fi
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4099 $as_echo "$ac_cv_objext" >&6; }
4100 OBJEXT=$ac_cv_objext
4101 ac_objext=$OBJEXT
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4103 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4104 if ${ac_cv_c_compiler_gnu+:} false; then :
4105   $as_echo_n "(cached) " >&6
4106 else
4107   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4108 /* end confdefs.h.  */
4109
4110 int
4111 main ()
4112 {
4113 #ifndef __GNUC__
4114        choke me
4115 #endif
4116
4117   ;
4118   return 0;
4119 }
4120 _ACEOF
4121 if ac_fn_c_try_compile "$LINENO"; then :
4122   ac_compiler_gnu=yes
4123 else
4124   ac_compiler_gnu=no
4125 fi
4126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4127 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4128
4129 fi
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4131 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4132 if test $ac_compiler_gnu = yes; then
4133   GCC=yes
4134 else
4135   GCC=
4136 fi
4137 ac_test_CFLAGS=${CFLAGS+set}
4138 ac_save_CFLAGS=$CFLAGS
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4140 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4141 if ${ac_cv_prog_cc_g+:} false; then :
4142   $as_echo_n "(cached) " >&6
4143 else
4144   ac_save_c_werror_flag=$ac_c_werror_flag
4145    ac_c_werror_flag=yes
4146    ac_cv_prog_cc_g=no
4147    CFLAGS="-g"
4148    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4149 /* end confdefs.h.  */
4150
4151 int
4152 main ()
4153 {
4154
4155   ;
4156   return 0;
4157 }
4158 _ACEOF
4159 if ac_fn_c_try_compile "$LINENO"; then :
4160   ac_cv_prog_cc_g=yes
4161 else
4162   CFLAGS=""
4163       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4164 /* end confdefs.h.  */
4165
4166 int
4167 main ()
4168 {
4169
4170   ;
4171   return 0;
4172 }
4173 _ACEOF
4174 if ac_fn_c_try_compile "$LINENO"; then :
4175
4176 else
4177   ac_c_werror_flag=$ac_save_c_werror_flag
4178          CFLAGS="-g"
4179          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4180 /* end confdefs.h.  */
4181
4182 int
4183 main ()
4184 {
4185
4186   ;
4187   return 0;
4188 }
4189 _ACEOF
4190 if ac_fn_c_try_compile "$LINENO"; then :
4191   ac_cv_prog_cc_g=yes
4192 fi
4193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4194 fi
4195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4196 fi
4197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4198    ac_c_werror_flag=$ac_save_c_werror_flag
4199 fi
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4201 $as_echo "$ac_cv_prog_cc_g" >&6; }
4202 if test "$ac_test_CFLAGS" = set; then
4203   CFLAGS=$ac_save_CFLAGS
4204 elif test $ac_cv_prog_cc_g = yes; then
4205   if test "$GCC" = yes; then
4206     CFLAGS="-g -O2"
4207   else
4208     CFLAGS="-g"
4209   fi
4210 else
4211   if test "$GCC" = yes; then
4212     CFLAGS="-O2"
4213   else
4214     CFLAGS=
4215   fi
4216 fi
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4218 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4219 if ${ac_cv_prog_cc_c89+:} false; then :
4220   $as_echo_n "(cached) " >&6
4221 else
4222   ac_cv_prog_cc_c89=no
4223 ac_save_CC=$CC
4224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4225 /* end confdefs.h.  */
4226 #include <stdarg.h>
4227 #include <stdio.h>
4228 struct stat;
4229 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4230 struct buf { int x; };
4231 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4232 static char *e (p, i)
4233      char **p;
4234      int i;
4235 {
4236   return p[i];
4237 }
4238 static char *f (char * (*g) (char **, int), char **p, ...)
4239 {
4240   char *s;
4241   va_list v;
4242   va_start (v,p);
4243   s = g (p, va_arg (v,int));
4244   va_end (v);
4245   return s;
4246 }
4247
4248 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4249    function prototypes and stuff, but not '\xHH' hex character constants.
4250    These don't provoke an error unfortunately, instead are silently treated
4251    as 'x'.  The following induces an error, until -std is added to get
4252    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4253    array size at least.  It's necessary to write '\x00'==0 to get something
4254    that's true only with -std.  */
4255 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4256
4257 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4258    inside strings and character constants.  */
4259 #define FOO(x) 'x'
4260 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4261
4262 int test (int i, double x);
4263 struct s1 {int (*f) (int a);};
4264 struct s2 {int (*f) (double a);};
4265 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4266 int argc;
4267 char **argv;
4268 int
4269 main ()
4270 {
4271 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4272   ;
4273   return 0;
4274 }
4275 _ACEOF
4276 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4277         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4278 do
4279   CC="$ac_save_CC $ac_arg"
4280   if ac_fn_c_try_compile "$LINENO"; then :
4281   ac_cv_prog_cc_c89=$ac_arg
4282 fi
4283 rm -f core conftest.err conftest.$ac_objext
4284   test "x$ac_cv_prog_cc_c89" != "xno" && break
4285 done
4286 rm -f conftest.$ac_ext
4287 CC=$ac_save_CC
4288
4289 fi
4290 # AC_CACHE_VAL
4291 case "x$ac_cv_prog_cc_c89" in
4292   x)
4293     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4294 $as_echo "none needed" >&6; } ;;
4295   xno)
4296     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4297 $as_echo "unsupported" >&6; } ;;
4298   *)
4299     CC="$CC $ac_cv_prog_cc_c89"
4300     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4301 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4302 esac
4303 if test "x$ac_cv_prog_cc_c89" != xno; then :
4304
4305 fi
4306
4307 ac_ext=c
4308 ac_cpp='$CPP $CPPFLAGS'
4309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4312
4313 depcc="$CC"   am_compiler_list=
4314
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4316 $as_echo_n "checking dependency style of $depcc... " >&6; }
4317 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4318   $as_echo_n "(cached) " >&6
4319 else
4320   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4321   # We make a subdir and do the tests there.  Otherwise we can end up
4322   # making bogus files that we don't know about and never remove.  For
4323   # instance it was reported that on HP-UX the gcc test will end up
4324   # making a dummy file named `D' -- because `-MD' means `put the output
4325   # in D'.
4326   rm -rf conftest.dir
4327   mkdir conftest.dir
4328   # Copy depcomp to subdir because otherwise we won't find it if we're
4329   # using a relative directory.
4330   cp "$am_depcomp" conftest.dir
4331   cd conftest.dir
4332   # We will build objects and dependencies in a subdirectory because
4333   # it helps to detect inapplicable dependency modes.  For instance
4334   # both Tru64's cc and ICC support -MD to output dependencies as a
4335   # side effect of compilation, but ICC will put the dependencies in
4336   # the current directory while Tru64 will put them in the object
4337   # directory.
4338   mkdir sub
4339
4340   am_cv_CC_dependencies_compiler_type=none
4341   if test "$am_compiler_list" = ""; then
4342      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4343   fi
4344   am__universal=false
4345   case " $depcc " in #(
4346      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4347      esac
4348
4349   for depmode in $am_compiler_list; do
4350     # Setup a source with many dependencies, because some compilers
4351     # like to wrap large dependency lists on column 80 (with \), and
4352     # we should not choose a depcomp mode which is confused by this.
4353     #
4354     # We need to recreate these files for each test, as the compiler may
4355     # overwrite some of them when testing with obscure command lines.
4356     # This happens at least with the AIX C compiler.
4357     : > sub/conftest.c
4358     for i in 1 2 3 4 5 6; do
4359       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4360       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4361       # Solaris 8's {/usr,}/bin/sh.
4362       touch sub/conftst$i.h
4363     done
4364     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4365
4366     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4367     # mode.  It turns out that the SunPro C++ compiler does not properly
4368     # handle `-M -o', and we need to detect this.  Also, some Intel
4369     # versions had trouble with output in subdirs
4370     am__obj=sub/conftest.${OBJEXT-o}
4371     am__minus_obj="-o $am__obj"
4372     case $depmode in
4373     gcc)
4374       # This depmode causes a compiler race in universal mode.
4375       test "$am__universal" = false || continue
4376       ;;
4377     nosideeffect)
4378       # after this tag, mechanisms are not by side-effect, so they'll
4379       # only be used when explicitly requested
4380       if test "x$enable_dependency_tracking" = xyes; then
4381         continue
4382       else
4383         break
4384       fi
4385       ;;
4386     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4387       # This compiler won't grok `-c -o', but also, the minuso test has
4388       # not run yet.  These depmodes are late enough in the game, and
4389       # so weak that their functioning should not be impacted.
4390       am__obj=conftest.${OBJEXT-o}
4391       am__minus_obj=
4392       ;;
4393     none) break ;;
4394     esac
4395     if depmode=$depmode \
4396        source=sub/conftest.c object=$am__obj \
4397        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4398        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4399          >/dev/null 2>conftest.err &&
4400        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4401        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4402        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4403        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4404       # icc doesn't choke on unknown options, it will just issue warnings
4405       # or remarks (even with -Werror).  So we grep stderr for any message
4406       # that says an option was ignored or not supported.
4407       # When given -MP, icc 7.0 and 7.1 complain thusly:
4408       #   icc: Command line warning: ignoring option '-M'; no argument required
4409       # The diagnosis changed in icc 8.0:
4410       #   icc: Command line remark: option '-MP' not supported
4411       if (grep 'ignoring option' conftest.err ||
4412           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4413         am_cv_CC_dependencies_compiler_type=$depmode
4414         break
4415       fi
4416     fi
4417   done
4418
4419   cd ..
4420   rm -rf conftest.dir
4421 else
4422   am_cv_CC_dependencies_compiler_type=none
4423 fi
4424
4425 fi
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4427 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4428 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4429
4430  if
4431   test "x$enable_dependency_tracking" != xno \
4432   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4433   am__fastdepCC_TRUE=
4434   am__fastdepCC_FALSE='#'
4435 else
4436   am__fastdepCC_TRUE='#'
4437   am__fastdepCC_FALSE=
4438 fi
4439
4440
4441
4442 ac_ext=c
4443 ac_cpp='$CPP $CPPFLAGS'
4444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4448 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4449 # On Suns, sometimes $CPP names a directory.
4450 if test -n "$CPP" && test -d "$CPP"; then
4451   CPP=
4452 fi
4453 if test -z "$CPP"; then
4454   if ${ac_cv_prog_CPP+:} false; then :
4455   $as_echo_n "(cached) " >&6
4456 else
4457       # Double quotes because CPP needs to be expanded
4458     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4459     do
4460       ac_preproc_ok=false
4461 for ac_c_preproc_warn_flag in '' yes
4462 do
4463   # Use a header file that comes with gcc, so configuring glibc
4464   # with a fresh cross-compiler works.
4465   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4466   # <limits.h> exists even on freestanding compilers.
4467   # On the NeXT, cc -E runs the code through the compiler's parser,
4468   # not just through cpp. "Syntax error" is here to catch this case.
4469   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4470 /* end confdefs.h.  */
4471 #ifdef __STDC__
4472 # include <limits.h>
4473 #else
4474 # include <assert.h>
4475 #endif
4476                      Syntax error
4477 _ACEOF
4478 if ac_fn_c_try_cpp "$LINENO"; then :
4479
4480 else
4481   # Broken: fails on valid input.
4482 continue
4483 fi
4484 rm -f conftest.err conftest.i conftest.$ac_ext
4485
4486   # OK, works on sane cases.  Now check whether nonexistent headers
4487   # can be detected and how.
4488   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4489 /* end confdefs.h.  */
4490 #include <ac_nonexistent.h>
4491 _ACEOF
4492 if ac_fn_c_try_cpp "$LINENO"; then :
4493   # Broken: success on invalid input.
4494 continue
4495 else
4496   # Passes both tests.
4497 ac_preproc_ok=:
4498 break
4499 fi
4500 rm -f conftest.err conftest.i conftest.$ac_ext
4501
4502 done
4503 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4504 rm -f conftest.i conftest.err conftest.$ac_ext
4505 if $ac_preproc_ok; then :
4506   break
4507 fi
4508
4509     done
4510     ac_cv_prog_CPP=$CPP
4511
4512 fi
4513   CPP=$ac_cv_prog_CPP
4514 else
4515   ac_cv_prog_CPP=$CPP
4516 fi
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4518 $as_echo "$CPP" >&6; }
4519 ac_preproc_ok=false
4520 for ac_c_preproc_warn_flag in '' yes
4521 do
4522   # Use a header file that comes with gcc, so configuring glibc
4523   # with a fresh cross-compiler works.
4524   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4525   # <limits.h> exists even on freestanding compilers.
4526   # On the NeXT, cc -E runs the code through the compiler's parser,
4527   # not just through cpp. "Syntax error" is here to catch this case.
4528   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4529 /* end confdefs.h.  */
4530 #ifdef __STDC__
4531 # include <limits.h>
4532 #else
4533 # include <assert.h>
4534 #endif
4535                      Syntax error
4536 _ACEOF
4537 if ac_fn_c_try_cpp "$LINENO"; then :
4538
4539 else
4540   # Broken: fails on valid input.
4541 continue
4542 fi
4543 rm -f conftest.err conftest.i conftest.$ac_ext
4544
4545   # OK, works on sane cases.  Now check whether nonexistent headers
4546   # can be detected and how.
4547   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4548 /* end confdefs.h.  */
4549 #include <ac_nonexistent.h>
4550 _ACEOF
4551 if ac_fn_c_try_cpp "$LINENO"; then :
4552   # Broken: success on invalid input.
4553 continue
4554 else
4555   # Passes both tests.
4556 ac_preproc_ok=:
4557 break
4558 fi
4559 rm -f conftest.err conftest.i conftest.$ac_ext
4560
4561 done
4562 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4563 rm -f conftest.i conftest.err conftest.$ac_ext
4564 if $ac_preproc_ok; then :
4565
4566 else
4567   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4568 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4569 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4570 See \`config.log' for more details" "$LINENO" 5; }
4571 fi
4572
4573 ac_ext=c
4574 ac_cpp='$CPP $CPPFLAGS'
4575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4578
4579
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4581 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4582 if ${ac_cv_path_GREP+:} false; then :
4583   $as_echo_n "(cached) " >&6
4584 else
4585   if test -z "$GREP"; then
4586   ac_path_GREP_found=false
4587   # Loop through the user's path and test for each of PROGNAME-LIST
4588   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4589 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4590 do
4591   IFS=$as_save_IFS
4592   test -z "$as_dir" && as_dir=.
4593     for ac_prog in grep ggrep; do
4594     for ac_exec_ext in '' $ac_executable_extensions; do
4595       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4596       as_fn_executable_p "$ac_path_GREP" || continue
4597 # Check for GNU ac_path_GREP and select it if it is found.
4598   # Check for GNU $ac_path_GREP
4599 case `"$ac_path_GREP" --version 2>&1` in
4600 *GNU*)
4601   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4602 *)
4603   ac_count=0
4604   $as_echo_n 0123456789 >"conftest.in"
4605   while :
4606   do
4607     cat "conftest.in" "conftest.in" >"conftest.tmp"
4608     mv "conftest.tmp" "conftest.in"
4609     cp "conftest.in" "conftest.nl"
4610     $as_echo 'GREP' >> "conftest.nl"
4611     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4612     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4613     as_fn_arith $ac_count + 1 && ac_count=$as_val
4614     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4615       # Best one so far, save it but keep looking for a better one
4616       ac_cv_path_GREP="$ac_path_GREP"
4617       ac_path_GREP_max=$ac_count
4618     fi
4619     # 10*(2^10) chars as input seems more than enough
4620     test $ac_count -gt 10 && break
4621   done
4622   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4623 esac
4624
4625       $ac_path_GREP_found && break 3
4626     done
4627   done
4628   done
4629 IFS=$as_save_IFS
4630   if test -z "$ac_cv_path_GREP"; then
4631     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4632   fi
4633 else
4634   ac_cv_path_GREP=$GREP
4635 fi
4636
4637 fi
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4639 $as_echo "$ac_cv_path_GREP" >&6; }
4640  GREP="$ac_cv_path_GREP"
4641
4642
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4644 $as_echo_n "checking for egrep... " >&6; }
4645 if ${ac_cv_path_EGREP+:} false; then :
4646   $as_echo_n "(cached) " >&6
4647 else
4648   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4649    then ac_cv_path_EGREP="$GREP -E"
4650    else
4651      if test -z "$EGREP"; then
4652   ac_path_EGREP_found=false
4653   # Loop through the user's path and test for each of PROGNAME-LIST
4654   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4655 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4656 do
4657   IFS=$as_save_IFS
4658   test -z "$as_dir" && as_dir=.
4659     for ac_prog in egrep; do
4660     for ac_exec_ext in '' $ac_executable_extensions; do
4661       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4662       as_fn_executable_p "$ac_path_EGREP" || continue
4663 # Check for GNU ac_path_EGREP and select it if it is found.
4664   # Check for GNU $ac_path_EGREP
4665 case `"$ac_path_EGREP" --version 2>&1` in
4666 *GNU*)
4667   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4668 *)
4669   ac_count=0
4670   $as_echo_n 0123456789 >"conftest.in"
4671   while :
4672   do
4673     cat "conftest.in" "conftest.in" >"conftest.tmp"
4674     mv "conftest.tmp" "conftest.in"
4675     cp "conftest.in" "conftest.nl"
4676     $as_echo 'EGREP' >> "conftest.nl"
4677     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4678     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4679     as_fn_arith $ac_count + 1 && ac_count=$as_val
4680     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4681       # Best one so far, save it but keep looking for a better one
4682       ac_cv_path_EGREP="$ac_path_EGREP"
4683       ac_path_EGREP_max=$ac_count
4684     fi
4685     # 10*(2^10) chars as input seems more than enough
4686     test $ac_count -gt 10 && break
4687   done
4688   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4689 esac
4690
4691       $ac_path_EGREP_found && break 3
4692     done
4693   done
4694   done
4695 IFS=$as_save_IFS
4696   if test -z "$ac_cv_path_EGREP"; then
4697     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4698   fi
4699 else
4700   ac_cv_path_EGREP=$EGREP
4701 fi
4702
4703    fi
4704 fi
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4706 $as_echo "$ac_cv_path_EGREP" >&6; }
4707  EGREP="$ac_cv_path_EGREP"
4708
4709
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4711 $as_echo_n "checking for ANSI C header files... " >&6; }
4712 if ${ac_cv_header_stdc+:} false; then :
4713   $as_echo_n "(cached) " >&6
4714 else
4715   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4716 /* end confdefs.h.  */
4717 #include <stdlib.h>
4718 #include <stdarg.h>
4719 #include <string.h>
4720 #include <float.h>
4721
4722 int
4723 main ()
4724 {
4725
4726   ;
4727   return 0;
4728 }
4729 _ACEOF
4730 if ac_fn_c_try_compile "$LINENO"; then :
4731   ac_cv_header_stdc=yes
4732 else
4733   ac_cv_header_stdc=no
4734 fi
4735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4736
4737 if test $ac_cv_header_stdc = yes; then
4738   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4739   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4740 /* end confdefs.h.  */
4741 #include <string.h>
4742
4743 _ACEOF
4744 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4745   $EGREP "memchr" >/dev/null 2>&1; then :
4746
4747 else
4748   ac_cv_header_stdc=no
4749 fi
4750 rm -f conftest*
4751
4752 fi
4753
4754 if test $ac_cv_header_stdc = yes; then
4755   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4756   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4757 /* end confdefs.h.  */
4758 #include <stdlib.h>
4759
4760 _ACEOF
4761 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4762   $EGREP "free" >/dev/null 2>&1; then :
4763
4764 else
4765   ac_cv_header_stdc=no
4766 fi
4767 rm -f conftest*
4768
4769 fi
4770
4771 if test $ac_cv_header_stdc = yes; then
4772   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4773   if test "$cross_compiling" = yes; then :
4774   :
4775 else
4776   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4777 /* end confdefs.h.  */
4778 #include <ctype.h>
4779 #include <stdlib.h>
4780 #if ((' ' & 0x0FF) == 0x020)
4781 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4782 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4783 #else
4784 # define ISLOWER(c) \
4785                    (('a' <= (c) && (c) <= 'i') \
4786                      || ('j' <= (c) && (c) <= 'r') \
4787                      || ('s' <= (c) && (c) <= 'z'))
4788 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4789 #endif
4790
4791 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4792 int
4793 main ()
4794 {
4795   int i;
4796   for (i = 0; i < 256; i++)
4797     if (XOR (islower (i), ISLOWER (i))
4798         || toupper (i) != TOUPPER (i))
4799       return 2;
4800   return 0;
4801 }
4802 _ACEOF
4803 if ac_fn_c_try_run "$LINENO"; then :
4804
4805 else
4806   ac_cv_header_stdc=no
4807 fi
4808 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4809   conftest.$ac_objext conftest.beam conftest.$ac_ext
4810 fi
4811
4812 fi
4813 fi
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4815 $as_echo "$ac_cv_header_stdc" >&6; }
4816 if test $ac_cv_header_stdc = yes; then
4817
4818 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4819
4820 fi
4821
4822 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4823 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4824                   inttypes.h stdint.h unistd.h
4825 do :
4826   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4827 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4828 "
4829 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4830   cat >>confdefs.h <<_ACEOF
4831 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4832 _ACEOF
4833
4834 fi
4835
4836 done
4837
4838
4839
4840   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4841 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4842   MINIX=yes
4843 else
4844   MINIX=
4845 fi
4846
4847
4848   if test "$MINIX" = yes; then
4849
4850 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4851
4852
4853 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4854
4855
4856 $as_echo "#define _MINIX 1" >>confdefs.h
4857
4858   fi
4859
4860
4861   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4862 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4863 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4864   $as_echo_n "(cached) " >&6
4865 else
4866   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4867 /* end confdefs.h.  */
4868
4869 #         define __EXTENSIONS__ 1
4870           $ac_includes_default
4871 int
4872 main ()
4873 {
4874
4875   ;
4876   return 0;
4877 }
4878 _ACEOF
4879 if ac_fn_c_try_compile "$LINENO"; then :
4880   ac_cv_safe_to_define___extensions__=yes
4881 else
4882   ac_cv_safe_to_define___extensions__=no
4883 fi
4884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4885 fi
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4887 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4888   test $ac_cv_safe_to_define___extensions__ = yes &&
4889     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4890
4891   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4892
4893   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4894
4895   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4896
4897   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4898
4899
4900
4901
4902
4903
4904 ac_ext=c
4905 ac_cpp='$CPP $CPPFLAGS'
4906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4909 if test -n "$ac_tool_prefix"; then
4910   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4911 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4913 $as_echo_n "checking for $ac_word... " >&6; }
4914 if ${ac_cv_prog_CC+:} false; then :
4915   $as_echo_n "(cached) " >&6
4916 else
4917   if test -n "$CC"; then
4918   ac_cv_prog_CC="$CC" # Let the user override the test.
4919 else
4920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4921 for as_dir in $PATH
4922 do
4923   IFS=$as_save_IFS
4924   test -z "$as_dir" && as_dir=.
4925     for ac_exec_ext in '' $ac_executable_extensions; do
4926   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4927     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4928     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4929     break 2
4930   fi
4931 done
4932   done
4933 IFS=$as_save_IFS
4934
4935 fi
4936 fi
4937 CC=$ac_cv_prog_CC
4938 if test -n "$CC"; then
4939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4940 $as_echo "$CC" >&6; }
4941 else
4942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4943 $as_echo "no" >&6; }
4944 fi
4945
4946
4947 fi
4948 if test -z "$ac_cv_prog_CC"; then
4949   ac_ct_CC=$CC
4950   # Extract the first word of "gcc", so it can be a program name with args.
4951 set dummy gcc; ac_word=$2
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4953 $as_echo_n "checking for $ac_word... " >&6; }
4954 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4955   $as_echo_n "(cached) " >&6
4956 else
4957   if test -n "$ac_ct_CC"; then
4958   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4959 else
4960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4961 for as_dir in $PATH
4962 do
4963   IFS=$as_save_IFS
4964   test -z "$as_dir" && as_dir=.
4965     for ac_exec_ext in '' $ac_executable_extensions; do
4966   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4967     ac_cv_prog_ac_ct_CC="gcc"
4968     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4969     break 2
4970   fi
4971 done
4972   done
4973 IFS=$as_save_IFS
4974
4975 fi
4976 fi
4977 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4978 if test -n "$ac_ct_CC"; then
4979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4980 $as_echo "$ac_ct_CC" >&6; }
4981 else
4982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4983 $as_echo "no" >&6; }
4984 fi
4985
4986   if test "x$ac_ct_CC" = x; then
4987     CC=""
4988   else
4989     case $cross_compiling:$ac_tool_warned in
4990 yes:)
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4992 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4993 ac_tool_warned=yes ;;
4994 esac
4995     CC=$ac_ct_CC
4996   fi
4997 else
4998   CC="$ac_cv_prog_CC"
4999 fi
5000
5001 if test -z "$CC"; then
5002           if test -n "$ac_tool_prefix"; then
5003     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5004 set dummy ${ac_tool_prefix}cc; ac_word=$2
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5006 $as_echo_n "checking for $ac_word... " >&6; }
5007 if ${ac_cv_prog_CC+:} false; then :
5008   $as_echo_n "(cached) " >&6
5009 else
5010   if test -n "$CC"; then
5011   ac_cv_prog_CC="$CC" # Let the user override the test.
5012 else
5013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5014 for as_dir in $PATH
5015 do
5016   IFS=$as_save_IFS
5017   test -z "$as_dir" && as_dir=.
5018     for ac_exec_ext in '' $ac_executable_extensions; do
5019   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5020     ac_cv_prog_CC="${ac_tool_prefix}cc"
5021     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5022     break 2
5023   fi
5024 done
5025   done
5026 IFS=$as_save_IFS
5027
5028 fi
5029 fi
5030 CC=$ac_cv_prog_CC
5031 if test -n "$CC"; then
5032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5033 $as_echo "$CC" >&6; }
5034 else
5035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5036 $as_echo "no" >&6; }
5037 fi
5038
5039
5040   fi
5041 fi
5042 if test -z "$CC"; then
5043   # Extract the first word of "cc", so it can be a program name with args.
5044 set dummy cc; ac_word=$2
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5046 $as_echo_n "checking for $ac_word... " >&6; }
5047 if ${ac_cv_prog_CC+:} false; then :
5048   $as_echo_n "(cached) " >&6
5049 else
5050   if test -n "$CC"; then
5051   ac_cv_prog_CC="$CC" # Let the user override the test.
5052 else
5053   ac_prog_rejected=no
5054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5055 for as_dir in $PATH
5056 do
5057   IFS=$as_save_IFS
5058   test -z "$as_dir" && as_dir=.
5059     for ac_exec_ext in '' $ac_executable_extensions; do
5060   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5061     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5062        ac_prog_rejected=yes
5063        continue
5064      fi
5065     ac_cv_prog_CC="cc"
5066     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5067     break 2
5068   fi
5069 done
5070   done
5071 IFS=$as_save_IFS
5072
5073 if test $ac_prog_rejected = yes; then
5074   # We found a bogon in the path, so make sure we never use it.
5075   set dummy $ac_cv_prog_CC
5076   shift
5077   if test $# != 0; then
5078     # We chose a different compiler from the bogus one.
5079     # However, it has the same basename, so the bogon will be chosen
5080     # first if we set CC to just the basename; use the full file name.
5081     shift
5082     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5083   fi
5084 fi
5085 fi
5086 fi
5087 CC=$ac_cv_prog_CC
5088 if test -n "$CC"; then
5089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5090 $as_echo "$CC" >&6; }
5091 else
5092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5093 $as_echo "no" >&6; }
5094 fi
5095
5096
5097 fi
5098 if test -z "$CC"; then
5099   if test -n "$ac_tool_prefix"; then
5100   for ac_prog in cl.exe
5101   do
5102     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5103 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5105 $as_echo_n "checking for $ac_word... " >&6; }
5106 if ${ac_cv_prog_CC+:} false; then :
5107   $as_echo_n "(cached) " >&6
5108 else
5109   if test -n "$CC"; then
5110   ac_cv_prog_CC="$CC" # Let the user override the test.
5111 else
5112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5113 for as_dir in $PATH
5114 do
5115   IFS=$as_save_IFS
5116   test -z "$as_dir" && as_dir=.
5117     for ac_exec_ext in '' $ac_executable_extensions; do
5118   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5119     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5120     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5121     break 2
5122   fi
5123 done
5124   done
5125 IFS=$as_save_IFS
5126
5127 fi
5128 fi
5129 CC=$ac_cv_prog_CC
5130 if test -n "$CC"; then
5131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5132 $as_echo "$CC" >&6; }
5133 else
5134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5135 $as_echo "no" >&6; }
5136 fi
5137
5138
5139     test -n "$CC" && break
5140   done
5141 fi
5142 if test -z "$CC"; then
5143   ac_ct_CC=$CC
5144   for ac_prog in cl.exe
5145 do
5146   # Extract the first word of "$ac_prog", so it can be a program name with args.
5147 set dummy $ac_prog; ac_word=$2
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5149 $as_echo_n "checking for $ac_word... " >&6; }
5150 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5151   $as_echo_n "(cached) " >&6
5152 else
5153   if test -n "$ac_ct_CC"; then
5154   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5155 else
5156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5157 for as_dir in $PATH
5158 do
5159   IFS=$as_save_IFS
5160   test -z "$as_dir" && as_dir=.
5161     for ac_exec_ext in '' $ac_executable_extensions; do
5162   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5163     ac_cv_prog_ac_ct_CC="$ac_prog"
5164     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5165     break 2
5166   fi
5167 done
5168   done
5169 IFS=$as_save_IFS
5170
5171 fi
5172 fi
5173 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5174 if test -n "$ac_ct_CC"; then
5175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5176 $as_echo "$ac_ct_CC" >&6; }
5177 else
5178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5179 $as_echo "no" >&6; }
5180 fi
5181
5182
5183   test -n "$ac_ct_CC" && break
5184 done
5185
5186   if test "x$ac_ct_CC" = x; then
5187     CC=""
5188   else
5189     case $cross_compiling:$ac_tool_warned in
5190 yes:)
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5192 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5193 ac_tool_warned=yes ;;
5194 esac
5195     CC=$ac_ct_CC
5196   fi
5197 fi
5198
5199 fi
5200
5201
5202 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5203 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5204 as_fn_error $? "no acceptable C compiler found in \$PATH
5205 See \`config.log' for more details" "$LINENO" 5; }
5206
5207 # Provide some information about the compiler.
5208 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5209 set X $ac_compile
5210 ac_compiler=$2
5211 for ac_option in --version -v -V -qversion; do
5212   { { ac_try="$ac_compiler $ac_option >&5"
5213 case "(($ac_try" in
5214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5215   *) ac_try_echo=$ac_try;;
5216 esac
5217 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5218 $as_echo "$ac_try_echo"; } >&5
5219   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5220   ac_status=$?
5221   if test -s conftest.err; then
5222     sed '10a\
5223 ... rest of stderr output deleted ...
5224          10q' conftest.err >conftest.er1
5225     cat conftest.er1 >&5
5226   fi
5227   rm -f conftest.er1 conftest.err
5228   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5229   test $ac_status = 0; }
5230 done
5231
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5233 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5234 if ${ac_cv_c_compiler_gnu+:} false; then :
5235   $as_echo_n "(cached) " >&6
5236 else
5237   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5238 /* end confdefs.h.  */
5239
5240 int
5241 main ()
5242 {
5243 #ifndef __GNUC__
5244        choke me
5245 #endif
5246
5247   ;
5248   return 0;
5249 }
5250 _ACEOF
5251 if ac_fn_c_try_compile "$LINENO"; then :
5252   ac_compiler_gnu=yes
5253 else
5254   ac_compiler_gnu=no
5255 fi
5256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5257 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5258
5259 fi
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5261 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5262 if test $ac_compiler_gnu = yes; then
5263   GCC=yes
5264 else
5265   GCC=
5266 fi
5267 ac_test_CFLAGS=${CFLAGS+set}
5268 ac_save_CFLAGS=$CFLAGS
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5270 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5271 if ${ac_cv_prog_cc_g+:} false; then :
5272   $as_echo_n "(cached) " >&6
5273 else
5274   ac_save_c_werror_flag=$ac_c_werror_flag
5275    ac_c_werror_flag=yes
5276    ac_cv_prog_cc_g=no
5277    CFLAGS="-g"
5278    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5279 /* end confdefs.h.  */
5280
5281 int
5282 main ()
5283 {
5284
5285   ;
5286   return 0;
5287 }
5288 _ACEOF
5289 if ac_fn_c_try_compile "$LINENO"; then :
5290   ac_cv_prog_cc_g=yes
5291 else
5292   CFLAGS=""
5293       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5294 /* end confdefs.h.  */
5295
5296 int
5297 main ()
5298 {
5299
5300   ;
5301   return 0;
5302 }
5303 _ACEOF
5304 if ac_fn_c_try_compile "$LINENO"; then :
5305
5306 else
5307   ac_c_werror_flag=$ac_save_c_werror_flag
5308          CFLAGS="-g"
5309          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5310 /* end confdefs.h.  */
5311
5312 int
5313 main ()
5314 {
5315
5316   ;
5317   return 0;
5318 }
5319 _ACEOF
5320 if ac_fn_c_try_compile "$LINENO"; then :
5321   ac_cv_prog_cc_g=yes
5322 fi
5323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5324 fi
5325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5326 fi
5327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5328    ac_c_werror_flag=$ac_save_c_werror_flag
5329 fi
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5331 $as_echo "$ac_cv_prog_cc_g" >&6; }
5332 if test "$ac_test_CFLAGS" = set; then
5333   CFLAGS=$ac_save_CFLAGS
5334 elif test $ac_cv_prog_cc_g = yes; then
5335   if test "$GCC" = yes; then
5336     CFLAGS="-g -O2"
5337   else
5338     CFLAGS="-g"
5339   fi
5340 else
5341   if test "$GCC" = yes; then
5342     CFLAGS="-O2"
5343   else
5344     CFLAGS=
5345   fi
5346 fi
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5348 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5349 if ${ac_cv_prog_cc_c89+:} false; then :
5350   $as_echo_n "(cached) " >&6
5351 else
5352   ac_cv_prog_cc_c89=no
5353 ac_save_CC=$CC
5354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5355 /* end confdefs.h.  */
5356 #include <stdarg.h>
5357 #include <stdio.h>
5358 struct stat;
5359 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5360 struct buf { int x; };
5361 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5362 static char *e (p, i)
5363      char **p;
5364      int i;
5365 {
5366   return p[i];
5367 }
5368 static char *f (char * (*g) (char **, int), char **p, ...)
5369 {
5370   char *s;
5371   va_list v;
5372   va_start (v,p);
5373   s = g (p, va_arg (v,int));
5374   va_end (v);
5375   return s;
5376 }
5377
5378 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5379    function prototypes and stuff, but not '\xHH' hex character constants.
5380    These don't provoke an error unfortunately, instead are silently treated
5381    as 'x'.  The following induces an error, until -std is added to get
5382    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5383    array size at least.  It's necessary to write '\x00'==0 to get something
5384    that's true only with -std.  */
5385 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5386
5387 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5388    inside strings and character constants.  */
5389 #define FOO(x) 'x'
5390 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5391
5392 int test (int i, double x);
5393 struct s1 {int (*f) (int a);};
5394 struct s2 {int (*f) (double a);};
5395 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5396 int argc;
5397 char **argv;
5398 int
5399 main ()
5400 {
5401 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5402   ;
5403   return 0;
5404 }
5405 _ACEOF
5406 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5407         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5408 do
5409   CC="$ac_save_CC $ac_arg"
5410   if ac_fn_c_try_compile "$LINENO"; then :
5411   ac_cv_prog_cc_c89=$ac_arg
5412 fi
5413 rm -f core conftest.err conftest.$ac_objext
5414   test "x$ac_cv_prog_cc_c89" != "xno" && break
5415 done
5416 rm -f conftest.$ac_ext
5417 CC=$ac_save_CC
5418
5419 fi
5420 # AC_CACHE_VAL
5421 case "x$ac_cv_prog_cc_c89" in
5422   x)
5423     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5424 $as_echo "none needed" >&6; } ;;
5425   xno)
5426     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5427 $as_echo "unsupported" >&6; } ;;
5428   *)
5429     CC="$CC $ac_cv_prog_cc_c89"
5430     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5431 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5432 esac
5433 if test "x$ac_cv_prog_cc_c89" != xno; then :
5434
5435 fi
5436
5437 ac_ext=c
5438 ac_cpp='$CPP $CPPFLAGS'
5439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5442
5443 depcc="$CC"   am_compiler_list=
5444
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5446 $as_echo_n "checking dependency style of $depcc... " >&6; }
5447 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5448   $as_echo_n "(cached) " >&6
5449 else
5450   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5451   # We make a subdir and do the tests there.  Otherwise we can end up
5452   # making bogus files that we don't know about and never remove.  For
5453   # instance it was reported that on HP-UX the gcc test will end up
5454   # making a dummy file named `D' -- because `-MD' means `put the output
5455   # in D'.
5456   rm -rf conftest.dir
5457   mkdir conftest.dir
5458   # Copy depcomp to subdir because otherwise we won't find it if we're
5459   # using a relative directory.
5460   cp "$am_depcomp" conftest.dir
5461   cd conftest.dir
5462   # We will build objects and dependencies in a subdirectory because
5463   # it helps to detect inapplicable dependency modes.  For instance
5464   # both Tru64's cc and ICC support -MD to output dependencies as a
5465   # side effect of compilation, but ICC will put the dependencies in
5466   # the current directory while Tru64 will put them in the object
5467   # directory.
5468   mkdir sub
5469
5470   am_cv_CC_dependencies_compiler_type=none
5471   if test "$am_compiler_list" = ""; then
5472      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5473   fi
5474   am__universal=false
5475   case " $depcc " in #(
5476      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5477      esac
5478
5479   for depmode in $am_compiler_list; do
5480     # Setup a source with many dependencies, because some compilers
5481     # like to wrap large dependency lists on column 80 (with \), and
5482     # we should not choose a depcomp mode which is confused by this.
5483     #
5484     # We need to recreate these files for each test, as the compiler may
5485     # overwrite some of them when testing with obscure command lines.
5486     # This happens at least with the AIX C compiler.
5487     : > sub/conftest.c
5488     for i in 1 2 3 4 5 6; do
5489       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5490       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5491       # Solaris 8's {/usr,}/bin/sh.
5492       touch sub/conftst$i.h
5493     done
5494     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5495
5496     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5497     # mode.  It turns out that the SunPro C++ compiler does not properly
5498     # handle `-M -o', and we need to detect this.  Also, some Intel
5499     # versions had trouble with output in subdirs
5500     am__obj=sub/conftest.${OBJEXT-o}
5501     am__minus_obj="-o $am__obj"
5502     case $depmode in
5503     gcc)
5504       # This depmode causes a compiler race in universal mode.
5505       test "$am__universal" = false || continue
5506       ;;
5507     nosideeffect)
5508       # after this tag, mechanisms are not by side-effect, so they'll
5509       # only be used when explicitly requested
5510       if test "x$enable_dependency_tracking" = xyes; then
5511         continue
5512       else
5513         break
5514       fi
5515       ;;
5516     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5517       # This compiler won't grok `-c -o', but also, the minuso test has
5518       # not run yet.  These depmodes are late enough in the game, and
5519       # so weak that their functioning should not be impacted.
5520       am__obj=conftest.${OBJEXT-o}
5521       am__minus_obj=
5522       ;;
5523     none) break ;;
5524     esac
5525     if depmode=$depmode \
5526        source=sub/conftest.c object=$am__obj \
5527        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5528        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5529          >/dev/null 2>conftest.err &&
5530        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5531        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5532        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5533        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5534       # icc doesn't choke on unknown options, it will just issue warnings
5535       # or remarks (even with -Werror).  So we grep stderr for any message
5536       # that says an option was ignored or not supported.
5537       # When given -MP, icc 7.0 and 7.1 complain thusly:
5538       #   icc: Command line warning: ignoring option '-M'; no argument required
5539       # The diagnosis changed in icc 8.0:
5540       #   icc: Command line remark: option '-MP' not supported
5541       if (grep 'ignoring option' conftest.err ||
5542           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5543         am_cv_CC_dependencies_compiler_type=$depmode
5544         break
5545       fi
5546     fi
5547   done
5548
5549   cd ..
5550   rm -rf conftest.dir
5551 else
5552   am_cv_CC_dependencies_compiler_type=none
5553 fi
5554
5555 fi
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5557 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5558 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5559
5560  if
5561   test "x$enable_dependency_tracking" != xno \
5562   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5563   am__fastdepCC_TRUE=
5564   am__fastdepCC_FALSE='#'
5565 else
5566   am__fastdepCC_TRUE='#'
5567   am__fastdepCC_FALSE=
5568 fi
5569
5570
5571 ac_ext=cpp
5572 ac_cpp='$CXXCPP $CPPFLAGS'
5573 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5574 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5575 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5576 if test -z "$CXX"; then
5577   if test -n "$CCC"; then
5578     CXX=$CCC
5579   else
5580     if test -n "$ac_tool_prefix"; then
5581   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5582   do
5583     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5584 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5586 $as_echo_n "checking for $ac_word... " >&6; }
5587 if ${ac_cv_prog_CXX+:} false; then :
5588   $as_echo_n "(cached) " >&6
5589 else
5590   if test -n "$CXX"; then
5591   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5592 else
5593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5594 for as_dir in $PATH
5595 do
5596   IFS=$as_save_IFS
5597   test -z "$as_dir" && as_dir=.
5598     for ac_exec_ext in '' $ac_executable_extensions; do
5599   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5600     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5601     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5602     break 2
5603   fi
5604 done
5605   done
5606 IFS=$as_save_IFS
5607
5608 fi
5609 fi
5610 CXX=$ac_cv_prog_CXX
5611 if test -n "$CXX"; then
5612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5613 $as_echo "$CXX" >&6; }
5614 else
5615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5616 $as_echo "no" >&6; }
5617 fi
5618
5619
5620     test -n "$CXX" && break
5621   done
5622 fi
5623 if test -z "$CXX"; then
5624   ac_ct_CXX=$CXX
5625   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5626 do
5627   # Extract the first word of "$ac_prog", so it can be a program name with args.
5628 set dummy $ac_prog; ac_word=$2
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5630 $as_echo_n "checking for $ac_word... " >&6; }
5631 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5632   $as_echo_n "(cached) " >&6
5633 else
5634   if test -n "$ac_ct_CXX"; then
5635   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5636 else
5637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5638 for as_dir in $PATH
5639 do
5640   IFS=$as_save_IFS
5641   test -z "$as_dir" && as_dir=.
5642     for ac_exec_ext in '' $ac_executable_extensions; do
5643   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5644     ac_cv_prog_ac_ct_CXX="$ac_prog"
5645     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5646     break 2
5647   fi
5648 done
5649   done
5650 IFS=$as_save_IFS
5651
5652 fi
5653 fi
5654 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5655 if test -n "$ac_ct_CXX"; then
5656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5657 $as_echo "$ac_ct_CXX" >&6; }
5658 else
5659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5660 $as_echo "no" >&6; }
5661 fi
5662
5663
5664   test -n "$ac_ct_CXX" && break
5665 done
5666
5667   if test "x$ac_ct_CXX" = x; then
5668     CXX="g++"
5669   else
5670     case $cross_compiling:$ac_tool_warned in
5671 yes:)
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5673 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5674 ac_tool_warned=yes ;;
5675 esac
5676     CXX=$ac_ct_CXX
5677   fi
5678 fi
5679
5680   fi
5681 fi
5682 # Provide some information about the compiler.
5683 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5684 set X $ac_compile
5685 ac_compiler=$2
5686 for ac_option in --version -v -V -qversion; do
5687   { { ac_try="$ac_compiler $ac_option >&5"
5688 case "(($ac_try" in
5689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5690   *) ac_try_echo=$ac_try;;
5691 esac
5692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5693 $as_echo "$ac_try_echo"; } >&5
5694   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5695   ac_status=$?
5696   if test -s conftest.err; then
5697     sed '10a\
5698 ... rest of stderr output deleted ...
5699          10q' conftest.err >conftest.er1
5700     cat conftest.er1 >&5
5701   fi
5702   rm -f conftest.er1 conftest.err
5703   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5704   test $ac_status = 0; }
5705 done
5706
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5708 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5709 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5710   $as_echo_n "(cached) " >&6
5711 else
5712   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5713 /* end confdefs.h.  */
5714
5715 int
5716 main ()
5717 {
5718 #ifndef __GNUC__
5719        choke me
5720 #endif
5721
5722   ;
5723   return 0;
5724 }
5725 _ACEOF
5726 if ac_fn_cxx_try_compile "$LINENO"; then :
5727   ac_compiler_gnu=yes
5728 else
5729   ac_compiler_gnu=no
5730 fi
5731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5732 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5733
5734 fi
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5736 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5737 if test $ac_compiler_gnu = yes; then
5738   GXX=yes
5739 else
5740   GXX=
5741 fi
5742 ac_test_CXXFLAGS=${CXXFLAGS+set}
5743 ac_save_CXXFLAGS=$CXXFLAGS
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5745 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5746 if ${ac_cv_prog_cxx_g+:} false; then :
5747   $as_echo_n "(cached) " >&6
5748 else
5749   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5750    ac_cxx_werror_flag=yes
5751    ac_cv_prog_cxx_g=no
5752    CXXFLAGS="-g"
5753    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5754 /* end confdefs.h.  */
5755
5756 int
5757 main ()
5758 {
5759
5760   ;
5761   return 0;
5762 }
5763 _ACEOF
5764 if ac_fn_cxx_try_compile "$LINENO"; then :
5765   ac_cv_prog_cxx_g=yes
5766 else
5767   CXXFLAGS=""
5768       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5769 /* end confdefs.h.  */
5770
5771 int
5772 main ()
5773 {
5774
5775   ;
5776   return 0;
5777 }
5778 _ACEOF
5779 if ac_fn_cxx_try_compile "$LINENO"; then :
5780
5781 else
5782   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5783          CXXFLAGS="-g"
5784          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5785 /* end confdefs.h.  */
5786
5787 int
5788 main ()
5789 {
5790
5791   ;
5792   return 0;
5793 }
5794 _ACEOF
5795 if ac_fn_cxx_try_compile "$LINENO"; then :
5796   ac_cv_prog_cxx_g=yes
5797 fi
5798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5799 fi
5800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5801 fi
5802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5803    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5804 fi
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5806 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5807 if test "$ac_test_CXXFLAGS" = set; then
5808   CXXFLAGS=$ac_save_CXXFLAGS
5809 elif test $ac_cv_prog_cxx_g = yes; then
5810   if test "$GXX" = yes; then
5811     CXXFLAGS="-g -O2"
5812   else
5813     CXXFLAGS="-g"
5814   fi
5815 else
5816   if test "$GXX" = yes; then
5817     CXXFLAGS="-O2"
5818   else
5819     CXXFLAGS=
5820   fi
5821 fi
5822 ac_ext=c
5823 ac_cpp='$CPP $CPPFLAGS'
5824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5827
5828 depcc="$CXX"  am_compiler_list=
5829
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5831 $as_echo_n "checking dependency style of $depcc... " >&6; }
5832 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5833   $as_echo_n "(cached) " >&6
5834 else
5835   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5836   # We make a subdir and do the tests there.  Otherwise we can end up
5837   # making bogus files that we don't know about and never remove.  For
5838   # instance it was reported that on HP-UX the gcc test will end up
5839   # making a dummy file named `D' -- because `-MD' means `put the output
5840   # in D'.
5841   rm -rf conftest.dir
5842   mkdir conftest.dir
5843   # Copy depcomp to subdir because otherwise we won't find it if we're
5844   # using a relative directory.
5845   cp "$am_depcomp" conftest.dir
5846   cd conftest.dir
5847   # We will build objects and dependencies in a subdirectory because
5848   # it helps to detect inapplicable dependency modes.  For instance
5849   # both Tru64's cc and ICC support -MD to output dependencies as a
5850   # side effect of compilation, but ICC will put the dependencies in
5851   # the current directory while Tru64 will put them in the object
5852   # directory.
5853   mkdir sub
5854
5855   am_cv_CXX_dependencies_compiler_type=none
5856   if test "$am_compiler_list" = ""; then
5857      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5858   fi
5859   am__universal=false
5860   case " $depcc " in #(
5861      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5862      esac
5863
5864   for depmode in $am_compiler_list; do
5865     # Setup a source with many dependencies, because some compilers
5866     # like to wrap large dependency lists on column 80 (with \), and
5867     # we should not choose a depcomp mode which is confused by this.
5868     #
5869     # We need to recreate these files for each test, as the compiler may
5870     # overwrite some of them when testing with obscure command lines.
5871     # This happens at least with the AIX C compiler.
5872     : > sub/conftest.c
5873     for i in 1 2 3 4 5 6; do
5874       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5875       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5876       # Solaris 8's {/usr,}/bin/sh.
5877       touch sub/conftst$i.h
5878     done
5879     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5880
5881     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5882     # mode.  It turns out that the SunPro C++ compiler does not properly
5883     # handle `-M -o', and we need to detect this.  Also, some Intel
5884     # versions had trouble with output in subdirs
5885     am__obj=sub/conftest.${OBJEXT-o}
5886     am__minus_obj="-o $am__obj"
5887     case $depmode in
5888     gcc)
5889       # This depmode causes a compiler race in universal mode.
5890       test "$am__universal" = false || continue
5891       ;;
5892     nosideeffect)
5893       # after this tag, mechanisms are not by side-effect, so they'll
5894       # only be used when explicitly requested
5895       if test "x$enable_dependency_tracking" = xyes; then
5896         continue
5897       else
5898         break
5899       fi
5900       ;;
5901     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5902       # This compiler won't grok `-c -o', but also, the minuso test has
5903       # not run yet.  These depmodes are late enough in the game, and
5904       # so weak that their functioning should not be impacted.
5905       am__obj=conftest.${OBJEXT-o}
5906       am__minus_obj=
5907       ;;
5908     none) break ;;
5909     esac
5910     if depmode=$depmode \
5911        source=sub/conftest.c object=$am__obj \
5912        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5913        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5914          >/dev/null 2>conftest.err &&
5915        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5916        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5917        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5918        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5919       # icc doesn't choke on unknown options, it will just issue warnings
5920       # or remarks (even with -Werror).  So we grep stderr for any message
5921       # that says an option was ignored or not supported.
5922       # When given -MP, icc 7.0 and 7.1 complain thusly:
5923       #   icc: Command line warning: ignoring option '-M'; no argument required
5924       # The diagnosis changed in icc 8.0:
5925       #   icc: Command line remark: option '-MP' not supported
5926       if (grep 'ignoring option' conftest.err ||
5927           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5928         am_cv_CXX_dependencies_compiler_type=$depmode
5929         break
5930       fi
5931     fi
5932   done
5933
5934   cd ..
5935   rm -rf conftest.dir
5936 else
5937   am_cv_CXX_dependencies_compiler_type=none
5938 fi
5939
5940 fi
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5942 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5943 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5944
5945  if
5946   test "x$enable_dependency_tracking" != xno \
5947   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5948   am__fastdepCXX_TRUE=
5949   am__fastdepCXX_FALSE='#'
5950 else
5951   am__fastdepCXX_TRUE='#'
5952   am__fastdepCXX_FALSE=
5953 fi
5954
5955
5956
5957 # Note: A suitable gitlog-to-changelog script can be found in GnuPG master.
5958 for ac_prog in gitlog-to-changelog
5959 do
5960   # Extract the first word of "$ac_prog", so it can be a program name with args.
5961 set dummy $ac_prog; ac_word=$2
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5963 $as_echo_n "checking for $ac_word... " >&6; }
5964 if ${ac_cv_prog_GITLOG_TO_CHANGELOG+:} false; then :
5965   $as_echo_n "(cached) " >&6
5966 else
5967   if test -n "$GITLOG_TO_CHANGELOG"; then
5968   ac_cv_prog_GITLOG_TO_CHANGELOG="$GITLOG_TO_CHANGELOG" # Let the user override the test.
5969 else
5970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5971 for as_dir in $PATH
5972 do
5973   IFS=$as_save_IFS
5974   test -z "$as_dir" && as_dir=.
5975     for ac_exec_ext in '' $ac_executable_extensions; do
5976   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5977     ac_cv_prog_GITLOG_TO_CHANGELOG="$ac_prog"
5978     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5979     break 2
5980   fi
5981 done
5982   done
5983 IFS=$as_save_IFS
5984
5985 fi
5986 fi
5987 GITLOG_TO_CHANGELOG=$ac_cv_prog_GITLOG_TO_CHANGELOG
5988 if test -n "$GITLOG_TO_CHANGELOG"; then
5989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GITLOG_TO_CHANGELOG" >&5
5990 $as_echo "$GITLOG_TO_CHANGELOG" >&6; }
5991 else
5992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5993 $as_echo "no" >&6; }
5994 fi
5995
5996
5997   test -n "$GITLOG_TO_CHANGELOG" && break
5998 done
5999 test -n "$GITLOG_TO_CHANGELOG" || GITLOG_TO_CHANGELOG="gitlog-to-changelog"
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009 cat >>confdefs.h <<_ACEOF
6010 #define PACKAGE "$PACKAGE"
6011 _ACEOF
6012
6013
6014 cat >>confdefs.h <<_ACEOF
6015 #define VERSION "$VERSION"
6016 _ACEOF
6017
6018 VERSION_NUMBER=0x010501
6019
6020
6021 # Don't default to build static libs.
6022
6023 case `pwd` in
6024   *\ * | *\     *)
6025     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6026 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6027 esac
6028
6029
6030
6031 macro_version='2.4.2'
6032 macro_revision='1.3337'
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046 ltmain="$ac_aux_dir/ltmain.sh"
6047
6048 # Backslashify metacharacters that are still active within
6049 # double-quoted strings.
6050 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6051
6052 # Same as above, but do not quote variable references.
6053 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6054
6055 # Sed substitution to delay expansion of an escaped shell variable in a
6056 # double_quote_subst'ed string.
6057 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6058
6059 # Sed substitution to delay expansion of an escaped single quote.
6060 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6061
6062 # Sed substitution to avoid accidental globbing in evaled expressions
6063 no_glob_subst='s/\*/\\\*/g'
6064
6065 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6066 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6067 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6068
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6070 $as_echo_n "checking how to print strings... " >&6; }
6071 # Test print first, because it will be a builtin if present.
6072 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6073    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6074   ECHO='print -r --'
6075 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6076   ECHO='printf %s\n'
6077 else
6078   # Use this function as a fallback that always works.
6079   func_fallback_echo ()
6080   {
6081     eval 'cat <<_LTECHO_EOF
6082 $1
6083 _LTECHO_EOF'
6084   }
6085   ECHO='func_fallback_echo'
6086 fi
6087
6088 # func_echo_all arg...
6089 # Invoke $ECHO with all args, space-separated.
6090 func_echo_all ()
6091 {
6092     $ECHO ""
6093 }
6094
6095 case "$ECHO" in
6096   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6097 $as_echo "printf" >&6; } ;;
6098   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6099 $as_echo "print -r" >&6; } ;;
6100   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6101 $as_echo "cat" >&6; } ;;
6102 esac
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6118 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6119 if ${ac_cv_path_SED+:} false; then :
6120   $as_echo_n "(cached) " >&6
6121 else
6122             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6123      for ac_i in 1 2 3 4 5 6 7; do
6124        ac_script="$ac_script$as_nl$ac_script"
6125      done
6126      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6127      { ac_script=; unset ac_script;}
6128      if test -z "$SED"; then
6129   ac_path_SED_found=false
6130   # Loop through the user's path and test for each of PROGNAME-LIST
6131   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6132 for as_dir in $PATH
6133 do
6134   IFS=$as_save_IFS
6135   test -z "$as_dir" && as_dir=.
6136     for ac_prog in sed gsed; do
6137     for ac_exec_ext in '' $ac_executable_extensions; do
6138       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6139       as_fn_executable_p "$ac_path_SED" || continue
6140 # Check for GNU ac_path_SED and select it if it is found.
6141   # Check for GNU $ac_path_SED
6142 case `"$ac_path_SED" --version 2>&1` in
6143 *GNU*)
6144   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6145 *)
6146   ac_count=0
6147   $as_echo_n 0123456789 >"conftest.in"
6148   while :
6149   do
6150     cat "conftest.in" "conftest.in" >"conftest.tmp"
6151     mv "conftest.tmp" "conftest.in"
6152     cp "conftest.in" "conftest.nl"
6153     $as_echo '' >> "conftest.nl"
6154     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6155     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6156     as_fn_arith $ac_count + 1 && ac_count=$as_val
6157     if test $ac_count -gt ${ac_path_SED_max-0}; then
6158       # Best one so far, save it but keep looking for a better one
6159       ac_cv_path_SED="$ac_path_SED"
6160       ac_path_SED_max=$ac_count
6161     fi
6162     # 10*(2^10) chars as input seems more than enough
6163     test $ac_count -gt 10 && break
6164   done
6165   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6166 esac
6167
6168       $ac_path_SED_found && break 3
6169     done
6170   done
6171   done
6172 IFS=$as_save_IFS
6173   if test -z "$ac_cv_path_SED"; then
6174     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6175   fi
6176 else
6177   ac_cv_path_SED=$SED
6178 fi
6179
6180 fi
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6182 $as_echo "$ac_cv_path_SED" >&6; }
6183  SED="$ac_cv_path_SED"
6184   rm -f conftest.sed
6185
6186 test -z "$SED" && SED=sed
6187 Xsed="$SED -e 1s/^X//"
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6200 $as_echo_n "checking for fgrep... " >&6; }
6201 if ${ac_cv_path_FGREP+:} false; then :
6202   $as_echo_n "(cached) " >&6
6203 else
6204   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6205    then ac_cv_path_FGREP="$GREP -F"
6206    else
6207      if test -z "$FGREP"; then
6208   ac_path_FGREP_found=false
6209   # Loop through the user's path and test for each of PROGNAME-LIST
6210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6211 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6212 do
6213   IFS=$as_save_IFS
6214   test -z "$as_dir" && as_dir=.
6215     for ac_prog in fgrep; do
6216     for ac_exec_ext in '' $ac_executable_extensions; do
6217       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6218       as_fn_executable_p "$ac_path_FGREP" || continue
6219 # Check for GNU ac_path_FGREP and select it if it is found.
6220   # Check for GNU $ac_path_FGREP
6221 case `"$ac_path_FGREP" --version 2>&1` in
6222 *GNU*)
6223   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6224 *)
6225   ac_count=0
6226   $as_echo_n 0123456789 >"conftest.in"
6227   while :
6228   do
6229     cat "conftest.in" "conftest.in" >"conftest.tmp"
6230     mv "conftest.tmp" "conftest.in"
6231     cp "conftest.in" "conftest.nl"
6232     $as_echo 'FGREP' >> "conftest.nl"
6233     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6234     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6235     as_fn_arith $ac_count + 1 && ac_count=$as_val
6236     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6237       # Best one so far, save it but keep looking for a better one
6238       ac_cv_path_FGREP="$ac_path_FGREP"
6239       ac_path_FGREP_max=$ac_count
6240     fi
6241     # 10*(2^10) chars as input seems more than enough
6242     test $ac_count -gt 10 && break
6243   done
6244   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6245 esac
6246
6247       $ac_path_FGREP_found && break 3
6248     done
6249   done
6250   done
6251 IFS=$as_save_IFS
6252   if test -z "$ac_cv_path_FGREP"; then
6253     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6254   fi
6255 else
6256   ac_cv_path_FGREP=$FGREP
6257 fi
6258
6259    fi
6260 fi
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6262 $as_echo "$ac_cv_path_FGREP" >&6; }
6263  FGREP="$ac_cv_path_FGREP"
6264
6265
6266 test -z "$GREP" && GREP=grep
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286 # Check whether --with-gnu-ld was given.
6287 if test "${with_gnu_ld+set}" = set; then :
6288   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6289 else
6290   with_gnu_ld=no
6291 fi
6292
6293 ac_prog=ld
6294 if test "$GCC" = yes; then
6295   # Check if gcc -print-prog-name=ld gives a path.
6296   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6297 $as_echo_n "checking for ld used by $CC... " >&6; }
6298   case $host in
6299   *-*-mingw*)
6300     # gcc leaves a trailing carriage return which upsets mingw
6301     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6302   *)
6303     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6304   esac
6305   case $ac_prog in
6306     # Accept absolute paths.
6307     [\\/]* | ?:[\\/]*)
6308       re_direlt='/[^/][^/]*/\.\./'
6309       # Canonicalize the pathname of ld
6310       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6311       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6312         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6313       done
6314       test -z "$LD" && LD="$ac_prog"
6315       ;;
6316   "")
6317     # If it fails, then pretend we aren't using GCC.
6318     ac_prog=ld
6319     ;;
6320   *)
6321     # If it is relative, then search for the first ld in PATH.
6322     with_gnu_ld=unknown
6323     ;;
6324   esac
6325 elif test "$with_gnu_ld" = yes; then
6326   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6327 $as_echo_n "checking for GNU ld... " >&6; }
6328 else
6329   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6330 $as_echo_n "checking for non-GNU ld... " >&6; }
6331 fi
6332 if ${lt_cv_path_LD+:} false; then :
6333   $as_echo_n "(cached) " >&6
6334 else
6335   if test -z "$LD"; then
6336   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6337   for ac_dir in $PATH; do
6338     IFS="$lt_save_ifs"
6339     test -z "$ac_dir" && ac_dir=.
6340     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6341       lt_cv_path_LD="$ac_dir/$ac_prog"
6342       # Check to see if the program is GNU ld.  I'd rather use --version,
6343       # but apparently some variants of GNU ld only accept -v.
6344       # Break only if it was the GNU/non-GNU ld that we prefer.
6345       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6346       *GNU* | *'with BFD'*)
6347         test "$with_gnu_ld" != no && break
6348         ;;
6349       *)
6350         test "$with_gnu_ld" != yes && break
6351         ;;
6352       esac
6353     fi
6354   done
6355   IFS="$lt_save_ifs"
6356 else
6357   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6358 fi
6359 fi
6360
6361 LD="$lt_cv_path_LD"
6362 if test -n "$LD"; then
6363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6364 $as_echo "$LD" >&6; }
6365 else
6366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6367 $as_echo "no" >&6; }
6368 fi
6369 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6371 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6372 if ${lt_cv_prog_gnu_ld+:} false; then :
6373   $as_echo_n "(cached) " >&6
6374 else
6375   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6376 case `$LD -v 2>&1 </dev/null` in
6377 *GNU* | *'with BFD'*)
6378   lt_cv_prog_gnu_ld=yes
6379   ;;
6380 *)
6381   lt_cv_prog_gnu_ld=no
6382   ;;
6383 esac
6384 fi
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6386 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6387 with_gnu_ld=$lt_cv_prog_gnu_ld
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6398 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6399 if ${lt_cv_path_NM+:} false; then :
6400   $as_echo_n "(cached) " >&6
6401 else
6402   if test -n "$NM"; then
6403   # Let the user override the test.
6404   lt_cv_path_NM="$NM"
6405 else
6406   lt_nm_to_check="${ac_tool_prefix}nm"
6407   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6408     lt_nm_to_check="$lt_nm_to_check nm"
6409   fi
6410   for lt_tmp_nm in $lt_nm_to_check; do
6411     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6412     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6413       IFS="$lt_save_ifs"
6414       test -z "$ac_dir" && ac_dir=.
6415       tmp_nm="$ac_dir/$lt_tmp_nm"
6416       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6417         # Check to see if the nm accepts a BSD-compat flag.
6418         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6419         #   nm: unknown option "B" ignored
6420         # Tru64's nm complains that /dev/null is an invalid object file
6421         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6422         */dev/null* | *'Invalid file or object type'*)
6423           lt_cv_path_NM="$tmp_nm -B"
6424           break
6425           ;;
6426         *)
6427           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6428           */dev/null*)
6429             lt_cv_path_NM="$tmp_nm -p"
6430             break
6431             ;;
6432           *)
6433             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6434             continue # so that we can try to find one that supports BSD flags
6435             ;;
6436           esac
6437           ;;
6438         esac
6439       fi
6440     done
6441     IFS="$lt_save_ifs"
6442   done
6443   : ${lt_cv_path_NM=no}
6444 fi
6445 fi
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6447 $as_echo "$lt_cv_path_NM" >&6; }
6448 if test "$lt_cv_path_NM" != "no"; then
6449   NM="$lt_cv_path_NM"
6450 else
6451   # Didn't find any BSD compatible name lister, look for dumpbin.
6452   if test -n "$DUMPBIN"; then :
6453     # Let the user override the test.
6454   else
6455     if test -n "$ac_tool_prefix"; then
6456   for ac_prog in dumpbin "link -dump"
6457   do
6458     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6459 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6461 $as_echo_n "checking for $ac_word... " >&6; }
6462 if ${ac_cv_prog_DUMPBIN+:} false; then :
6463   $as_echo_n "(cached) " >&6
6464 else
6465   if test -n "$DUMPBIN"; then
6466   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6467 else
6468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6469 for as_dir in $PATH
6470 do
6471   IFS=$as_save_IFS
6472   test -z "$as_dir" && as_dir=.
6473     for ac_exec_ext in '' $ac_executable_extensions; do
6474   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6475     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6476     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6477     break 2
6478   fi
6479 done
6480   done
6481 IFS=$as_save_IFS
6482
6483 fi
6484 fi
6485 DUMPBIN=$ac_cv_prog_DUMPBIN
6486 if test -n "$DUMPBIN"; then
6487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6488 $as_echo "$DUMPBIN" >&6; }
6489 else
6490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6491 $as_echo "no" >&6; }
6492 fi
6493
6494
6495     test -n "$DUMPBIN" && break
6496   done
6497 fi
6498 if test -z "$DUMPBIN"; then
6499   ac_ct_DUMPBIN=$DUMPBIN
6500   for ac_prog in dumpbin "link -dump"
6501 do
6502   # Extract the first word of "$ac_prog", so it can be a program name with args.
6503 set dummy $ac_prog; ac_word=$2
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6505 $as_echo_n "checking for $ac_word... " >&6; }
6506 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6507   $as_echo_n "(cached) " >&6
6508 else
6509   if test -n "$ac_ct_DUMPBIN"; then
6510   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6511 else
6512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6513 for as_dir in $PATH
6514 do
6515   IFS=$as_save_IFS
6516   test -z "$as_dir" && as_dir=.
6517     for ac_exec_ext in '' $ac_executable_extensions; do
6518   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6519     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6520     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6521     break 2
6522   fi
6523 done
6524   done
6525 IFS=$as_save_IFS
6526
6527 fi
6528 fi
6529 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6530 if test -n "$ac_ct_DUMPBIN"; then
6531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6532 $as_echo "$ac_ct_DUMPBIN" >&6; }
6533 else
6534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6535 $as_echo "no" >&6; }
6536 fi
6537
6538
6539   test -n "$ac_ct_DUMPBIN" && break
6540 done
6541
6542   if test "x$ac_ct_DUMPBIN" = x; then
6543     DUMPBIN=":"
6544   else
6545     case $cross_compiling:$ac_tool_warned in
6546 yes:)
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6548 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6549 ac_tool_warned=yes ;;
6550 esac
6551     DUMPBIN=$ac_ct_DUMPBIN
6552   fi
6553 fi
6554
6555     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6556     *COFF*)
6557       DUMPBIN="$DUMPBIN -symbols"
6558       ;;
6559     *)
6560       DUMPBIN=:
6561       ;;
6562     esac
6563   fi
6564
6565   if test "$DUMPBIN" != ":"; then
6566     NM="$DUMPBIN"
6567   fi
6568 fi
6569 test -z "$NM" && NM=nm
6570
6571
6572
6573
6574
6575
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6577 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6578 if ${lt_cv_nm_interface+:} false; then :
6579   $as_echo_n "(cached) " >&6
6580 else
6581   lt_cv_nm_interface="BSD nm"
6582   echo "int some_variable = 0;" > conftest.$ac_ext
6583   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6584   (eval "$ac_compile" 2>conftest.err)
6585   cat conftest.err >&5
6586   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6587   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6588   cat conftest.err >&5
6589   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6590   cat conftest.out >&5
6591   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6592     lt_cv_nm_interface="MS dumpbin"
6593   fi
6594   rm -f conftest*
6595 fi
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6597 $as_echo "$lt_cv_nm_interface" >&6; }
6598
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6600 $as_echo_n "checking whether ln -s works... " >&6; }
6601 LN_S=$as_ln_s
6602 if test "$LN_S" = "ln -s"; then
6603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6604 $as_echo "yes" >&6; }
6605 else
6606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6607 $as_echo "no, using $LN_S" >&6; }
6608 fi
6609
6610 # find the maximum length of command line arguments
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6612 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6613 if ${lt_cv_sys_max_cmd_len+:} false; then :
6614   $as_echo_n "(cached) " >&6
6615 else
6616     i=0
6617   teststring="ABCD"
6618
6619   case $build_os in
6620   msdosdjgpp*)
6621     # On DJGPP, this test can blow up pretty badly due to problems in libc
6622     # (any single argument exceeding 2000 bytes causes a buffer overrun
6623     # during glob expansion).  Even if it were fixed, the result of this
6624     # check would be larger than it should be.
6625     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6626     ;;
6627
6628   gnu*)
6629     # Under GNU Hurd, this test is not required because there is
6630     # no limit to the length of command line arguments.
6631     # Libtool will interpret -1 as no limit whatsoever
6632     lt_cv_sys_max_cmd_len=-1;
6633     ;;
6634
6635   cygwin* | mingw* | cegcc*)
6636     # On Win9x/ME, this test blows up -- it succeeds, but takes
6637     # about 5 minutes as the teststring grows exponentially.
6638     # Worse, since 9x/ME are not pre-emptively multitasking,
6639     # you end up with a "frozen" computer, even though with patience
6640     # the test eventually succeeds (with a max line length of 256k).
6641     # Instead, let's just punt: use the minimum linelength reported by
6642     # all of the supported platforms: 8192 (on NT/2K/XP).
6643     lt_cv_sys_max_cmd_len=8192;
6644     ;;
6645
6646   mint*)
6647     # On MiNT this can take a long time and run out of memory.
6648     lt_cv_sys_max_cmd_len=8192;
6649     ;;
6650
6651   amigaos*)
6652     # On AmigaOS with pdksh, this test takes hours, literally.
6653     # So we just punt and use a minimum line length of 8192.
6654     lt_cv_sys_max_cmd_len=8192;
6655     ;;
6656
6657   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6658     # This has been around since 386BSD, at least.  Likely further.
6659     if test -x /sbin/sysctl; then
6660       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6661     elif test -x /usr/sbin/sysctl; then
6662       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6663     else
6664       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6665     fi
6666     # And add a safety zone
6667     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6668     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6669     ;;
6670
6671   interix*)
6672     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6673     lt_cv_sys_max_cmd_len=196608
6674     ;;
6675
6676   os2*)
6677     # The test takes a long time on OS/2.
6678     lt_cv_sys_max_cmd_len=8192
6679     ;;
6680
6681   osf*)
6682     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6683     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6684     # nice to cause kernel panics so lets avoid the loop below.
6685     # First set a reasonable default.
6686     lt_cv_sys_max_cmd_len=16384
6687     #
6688     if test -x /sbin/sysconfig; then
6689       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6690         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6691       esac
6692     fi
6693     ;;
6694   sco3.2v5*)
6695     lt_cv_sys_max_cmd_len=102400
6696     ;;
6697   sysv5* | sco5v6* | sysv4.2uw2*)
6698     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6699     if test -n "$kargmax"; then
6700       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6701     else
6702       lt_cv_sys_max_cmd_len=32768
6703     fi
6704     ;;
6705   *)
6706     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6707     if test -n "$lt_cv_sys_max_cmd_len"; then
6708       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6709       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6710     else
6711       # Make teststring a little bigger before we do anything with it.
6712       # a 1K string should be a reasonable start.
6713       for i in 1 2 3 4 5 6 7 8 ; do
6714         teststring=$teststring$teststring
6715       done
6716       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6717       # If test is not a shell built-in, we'll probably end up computing a
6718       # maximum length that is only half of the actual maximum length, but
6719       # we can't tell.
6720       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6721                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6722               test $i != 17 # 1/2 MB should be enough
6723       do
6724         i=`expr $i + 1`
6725         teststring=$teststring$teststring
6726       done
6727       # Only check the string length outside the loop.
6728       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6729       teststring=
6730       # Add a significant safety factor because C++ compilers can tack on
6731       # massive amounts of additional arguments before passing them to the
6732       # linker.  It appears as though 1/2 is a usable value.
6733       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6734     fi
6735     ;;
6736   esac
6737
6738 fi
6739
6740 if test -n $lt_cv_sys_max_cmd_len ; then
6741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6742 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6743 else
6744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6745 $as_echo "none" >&6; }
6746 fi
6747 max_cmd_len=$lt_cv_sys_max_cmd_len
6748
6749
6750
6751
6752
6753
6754 : ${CP="cp -f"}
6755 : ${MV="mv -f"}
6756 : ${RM="rm -f"}
6757
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6759 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6760 # Try some XSI features
6761 xsi_shell=no
6762 ( _lt_dummy="a/b/c"
6763   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6764       = c,a/b,b/c, \
6765     && eval 'test $(( 1 + 1 )) -eq 2 \
6766     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6767   && xsi_shell=yes
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6769 $as_echo "$xsi_shell" >&6; }
6770
6771
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6773 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6774 lt_shell_append=no
6775 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6776     >/dev/null 2>&1 \
6777   && lt_shell_append=yes
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6779 $as_echo "$lt_shell_append" >&6; }
6780
6781
6782 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6783   lt_unset=unset
6784 else
6785   lt_unset=false
6786 fi
6787
6788
6789
6790
6791
6792 # test EBCDIC or ASCII
6793 case `echo X|tr X '\101'` in
6794  A) # ASCII based system
6795     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6796   lt_SP2NL='tr \040 \012'
6797   lt_NL2SP='tr \015\012 \040\040'
6798   ;;
6799  *) # EBCDIC based system
6800   lt_SP2NL='tr \100 \n'
6801   lt_NL2SP='tr \r\n \100\100'
6802   ;;
6803 esac
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6814 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6815 if ${lt_cv_to_host_file_cmd+:} false; then :
6816   $as_echo_n "(cached) " >&6
6817 else
6818   case $host in
6819   *-*-mingw* )
6820     case $build in
6821       *-*-mingw* ) # actually msys
6822         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6823         ;;
6824       *-*-cygwin* )
6825         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6826         ;;
6827       * ) # otherwise, assume *nix
6828         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6829         ;;
6830     esac
6831     ;;
6832   *-*-cygwin* )
6833     case $build in
6834       *-*-mingw* ) # actually msys
6835         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6836         ;;
6837       *-*-cygwin* )
6838         lt_cv_to_host_file_cmd=func_convert_file_noop
6839         ;;
6840       * ) # otherwise, assume *nix
6841         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6842         ;;
6843     esac
6844     ;;
6845   * ) # unhandled hosts (and "normal" native builds)
6846     lt_cv_to_host_file_cmd=func_convert_file_noop
6847     ;;
6848 esac
6849
6850 fi
6851
6852 to_host_file_cmd=$lt_cv_to_host_file_cmd
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6854 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6855
6856
6857
6858
6859
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6861 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6862 if ${lt_cv_to_tool_file_cmd+:} false; then :
6863   $as_echo_n "(cached) " >&6
6864 else
6865   #assume ordinary cross tools, or native build.
6866 lt_cv_to_tool_file_cmd=func_convert_file_noop
6867 case $host in
6868   *-*-mingw* )
6869     case $build in
6870       *-*-mingw* ) # actually msys
6871         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6872         ;;
6873     esac
6874     ;;
6875 esac
6876
6877 fi
6878
6879 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6881 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6882
6883
6884
6885
6886
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6888 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6889 if ${lt_cv_ld_reload_flag+:} false; then :
6890   $as_echo_n "(cached) " >&6
6891 else
6892   lt_cv_ld_reload_flag='-r'
6893 fi
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6895 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6896 reload_flag=$lt_cv_ld_reload_flag
6897 case $reload_flag in
6898 "" | " "*) ;;
6899 *) reload_flag=" $reload_flag" ;;
6900 esac
6901 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6902 case $host_os in
6903   cygwin* | mingw* | pw32* | cegcc*)
6904     if test "$GCC" != yes; then
6905       reload_cmds=false
6906     fi
6907     ;;
6908   darwin*)
6909     if test "$GCC" = yes; then
6910       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6911     else
6912       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6913     fi
6914     ;;
6915 esac
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925 if test -n "$ac_tool_prefix"; then
6926   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6927 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6929 $as_echo_n "checking for $ac_word... " >&6; }
6930 if ${ac_cv_prog_OBJDUMP+:} false; then :
6931   $as_echo_n "(cached) " >&6
6932 else
6933   if test -n "$OBJDUMP"; then
6934   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6935 else
6936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6937 for as_dir in $PATH
6938 do
6939   IFS=$as_save_IFS
6940   test -z "$as_dir" && as_dir=.
6941     for ac_exec_ext in '' $ac_executable_extensions; do
6942   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6943     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6944     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6945     break 2
6946   fi
6947 done
6948   done
6949 IFS=$as_save_IFS
6950
6951 fi
6952 fi
6953 OBJDUMP=$ac_cv_prog_OBJDUMP
6954 if test -n "$OBJDUMP"; then
6955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6956 $as_echo "$OBJDUMP" >&6; }
6957 else
6958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6959 $as_echo "no" >&6; }
6960 fi
6961
6962
6963 fi
6964 if test -z "$ac_cv_prog_OBJDUMP"; then
6965   ac_ct_OBJDUMP=$OBJDUMP
6966   # Extract the first word of "objdump", so it can be a program name with args.
6967 set dummy objdump; ac_word=$2
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6969 $as_echo_n "checking for $ac_word... " >&6; }
6970 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6971   $as_echo_n "(cached) " >&6
6972 else
6973   if test -n "$ac_ct_OBJDUMP"; then
6974   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6975 else
6976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6977 for as_dir in $PATH
6978 do
6979   IFS=$as_save_IFS
6980   test -z "$as_dir" && as_dir=.
6981     for ac_exec_ext in '' $ac_executable_extensions; do
6982   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6983     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6984     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6985     break 2
6986   fi
6987 done
6988   done
6989 IFS=$as_save_IFS
6990
6991 fi
6992 fi
6993 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6994 if test -n "$ac_ct_OBJDUMP"; then
6995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6996 $as_echo "$ac_ct_OBJDUMP" >&6; }
6997 else
6998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6999 $as_echo "no" >&6; }
7000 fi
7001
7002   if test "x$ac_ct_OBJDUMP" = x; then
7003     OBJDUMP="false"
7004   else
7005     case $cross_compiling:$ac_tool_warned in
7006 yes:)
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7008 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7009 ac_tool_warned=yes ;;
7010 esac
7011     OBJDUMP=$ac_ct_OBJDUMP
7012   fi
7013 else
7014   OBJDUMP="$ac_cv_prog_OBJDUMP"
7015 fi
7016
7017 test -z "$OBJDUMP" && OBJDUMP=objdump
7018
7019
7020
7021
7022
7023
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7025 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7026 if ${lt_cv_deplibs_check_method+:} false; then :
7027   $as_echo_n "(cached) " >&6
7028 else
7029   lt_cv_file_magic_cmd='$MAGIC_CMD'
7030 lt_cv_file_magic_test_file=
7031 lt_cv_deplibs_check_method='unknown'
7032 # Need to set the preceding variable on all platforms that support
7033 # interlibrary dependencies.
7034 # 'none' -- dependencies not supported.
7035 # `unknown' -- same as none, but documents that we really don't know.
7036 # 'pass_all' -- all dependencies passed with no checks.
7037 # 'test_compile' -- check by making test program.
7038 # 'file_magic [[regex]]' -- check by looking for files in library path
7039 # which responds to the $file_magic_cmd with a given extended regex.
7040 # If you have `file' or equivalent on your system and you're not sure
7041 # whether `pass_all' will *always* work, you probably want this one.
7042
7043 case $host_os in
7044 aix[4-9]*)
7045   lt_cv_deplibs_check_method=pass_all
7046   ;;
7047
7048 beos*)
7049   lt_cv_deplibs_check_method=pass_all
7050   ;;
7051
7052 bsdi[45]*)
7053   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7054   lt_cv_file_magic_cmd='/usr/bin/file -L'
7055   lt_cv_file_magic_test_file=/shlib/libc.so
7056   ;;
7057
7058 cygwin*)
7059   # func_win32_libid is a shell function defined in ltmain.sh
7060   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7061   lt_cv_file_magic_cmd='func_win32_libid'
7062   ;;
7063
7064 mingw* | pw32*)
7065   # Base MSYS/MinGW do not provide the 'file' command needed by
7066   # func_win32_libid shell function, so use a weaker test based on 'objdump',
7067   # unless we find 'file', for example because we are cross-compiling.
7068   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7069   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7070     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7071     lt_cv_file_magic_cmd='func_win32_libid'
7072   else
7073     # Keep this pattern in sync with the one in func_win32_libid.
7074     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7075     lt_cv_file_magic_cmd='$OBJDUMP -f'
7076   fi
7077   ;;
7078
7079 cegcc*)
7080   # use the weaker test based on 'objdump'. See mingw*.
7081   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7082   lt_cv_file_magic_cmd='$OBJDUMP -f'
7083   ;;
7084
7085 darwin* | rhapsody*)
7086   lt_cv_deplibs_check_method=pass_all
7087   ;;
7088
7089 freebsd* | dragonfly*)
7090   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7091     case $host_cpu in
7092     i*86 )
7093       # Not sure whether the presence of OpenBSD here was a mistake.
7094       # Let's accept both of them until this is cleared up.
7095       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7096       lt_cv_file_magic_cmd=/usr/bin/file
7097       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7098       ;;
7099     esac
7100   else
7101     lt_cv_deplibs_check_method=pass_all
7102   fi
7103   ;;
7104
7105 gnu*)
7106   lt_cv_deplibs_check_method=pass_all
7107   ;;
7108
7109 haiku*)
7110   lt_cv_deplibs_check_method=pass_all
7111   ;;
7112
7113 hpux10.20* | hpux11*)
7114   lt_cv_file_magic_cmd=/usr/bin/file
7115   case $host_cpu in
7116   ia64*)
7117     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7118     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7119     ;;
7120   hppa*64*)
7121     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]'
7122     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7123     ;;
7124   *)
7125     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7126     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7127     ;;
7128   esac
7129   ;;
7130
7131 interix[3-9]*)
7132   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7133   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7134   ;;
7135
7136 irix5* | irix6* | nonstopux*)
7137   case $LD in
7138   *-32|*"-32 ") libmagic=32-bit;;
7139   *-n32|*"-n32 ") libmagic=N32;;
7140   *-64|*"-64 ") libmagic=64-bit;;
7141   *) libmagic=never-match;;
7142   esac
7143   lt_cv_deplibs_check_method=pass_all
7144   ;;
7145
7146 # This must be glibc/ELF.
7147 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7148   lt_cv_deplibs_check_method=pass_all
7149   ;;
7150
7151 netbsd* | netbsdelf*-gnu)
7152   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7153     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7154   else
7155     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7156   fi
7157   ;;
7158
7159 newos6*)
7160   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7161   lt_cv_file_magic_cmd=/usr/bin/file
7162   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7163   ;;
7164
7165 *nto* | *qnx*)
7166   lt_cv_deplibs_check_method=pass_all
7167   ;;
7168
7169 openbsd*)
7170   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7171     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7172   else
7173     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7174   fi
7175   ;;
7176
7177 osf3* | osf4* | osf5*)
7178   lt_cv_deplibs_check_method=pass_all
7179   ;;
7180
7181 rdos*)
7182   lt_cv_deplibs_check_method=pass_all
7183   ;;
7184
7185 solaris*)
7186   lt_cv_deplibs_check_method=pass_all
7187   ;;
7188
7189 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7190   lt_cv_deplibs_check_method=pass_all
7191   ;;
7192
7193 sysv4 | sysv4.3*)
7194   case $host_vendor in
7195   motorola)
7196     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]'
7197     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7198     ;;
7199   ncr)
7200     lt_cv_deplibs_check_method=pass_all
7201     ;;
7202   sequent)
7203     lt_cv_file_magic_cmd='/bin/file'
7204     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7205     ;;
7206   sni)
7207     lt_cv_file_magic_cmd='/bin/file'
7208     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7209     lt_cv_file_magic_test_file=/lib/libc.so
7210     ;;
7211   siemens)
7212     lt_cv_deplibs_check_method=pass_all
7213     ;;
7214   pc)
7215     lt_cv_deplibs_check_method=pass_all
7216     ;;
7217   esac
7218   ;;
7219
7220 tpf*)
7221   lt_cv_deplibs_check_method=pass_all
7222   ;;
7223 esac
7224
7225 fi
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7227 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7228
7229 file_magic_glob=
7230 want_nocaseglob=no
7231 if test "$build" = "$host"; then
7232   case $host_os in
7233   mingw* | pw32*)
7234     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7235       want_nocaseglob=yes
7236     else
7237       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7238     fi
7239     ;;
7240   esac
7241 fi
7242
7243 file_magic_cmd=$lt_cv_file_magic_cmd
7244 deplibs_check_method=$lt_cv_deplibs_check_method
7245 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268 if test -n "$ac_tool_prefix"; then
7269   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7270 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7272 $as_echo_n "checking for $ac_word... " >&6; }
7273 if ${ac_cv_prog_DLLTOOL+:} false; then :
7274   $as_echo_n "(cached) " >&6
7275 else
7276   if test -n "$DLLTOOL"; then
7277   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7278 else
7279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7280 for as_dir in $PATH
7281 do
7282   IFS=$as_save_IFS
7283   test -z "$as_dir" && as_dir=.
7284     for ac_exec_ext in '' $ac_executable_extensions; do
7285   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7286     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7287     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7288     break 2
7289   fi
7290 done
7291   done
7292 IFS=$as_save_IFS
7293
7294 fi
7295 fi
7296 DLLTOOL=$ac_cv_prog_DLLTOOL
7297 if test -n "$DLLTOOL"; then
7298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7299 $as_echo "$DLLTOOL" >&6; }
7300 else
7301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7302 $as_echo "no" >&6; }
7303 fi
7304
7305
7306 fi
7307 if test -z "$ac_cv_prog_DLLTOOL"; then
7308   ac_ct_DLLTOOL=$DLLTOOL
7309   # Extract the first word of "dlltool", so it can be a program name with args.
7310 set dummy dlltool; ac_word=$2
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7312 $as_echo_n "checking for $ac_word... " >&6; }
7313 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7314   $as_echo_n "(cached) " >&6
7315 else
7316   if test -n "$ac_ct_DLLTOOL"; then
7317   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7318 else
7319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7320 for as_dir in $PATH
7321 do
7322   IFS=$as_save_IFS
7323   test -z "$as_dir" && as_dir=.
7324     for ac_exec_ext in '' $ac_executable_extensions; do
7325   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7326     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7327     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7328     break 2
7329   fi
7330 done
7331   done
7332 IFS=$as_save_IFS
7333
7334 fi
7335 fi
7336 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7337 if test -n "$ac_ct_DLLTOOL"; then
7338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7339 $as_echo "$ac_ct_DLLTOOL" >&6; }
7340 else
7341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7342 $as_echo "no" >&6; }
7343 fi
7344
7345   if test "x$ac_ct_DLLTOOL" = x; then
7346     DLLTOOL="false"
7347   else
7348     case $cross_compiling:$ac_tool_warned in
7349 yes:)
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7351 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7352 ac_tool_warned=yes ;;
7353 esac
7354     DLLTOOL=$ac_ct_DLLTOOL
7355   fi
7356 else
7357   DLLTOOL="$ac_cv_prog_DLLTOOL"
7358 fi
7359
7360 test -z "$DLLTOOL" && DLLTOOL=dlltool
7361
7362
7363
7364
7365
7366
7367
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7369 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7370 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7371   $as_echo_n "(cached) " >&6
7372 else
7373   lt_cv_sharedlib_from_linklib_cmd='unknown'
7374
7375 case $host_os in
7376 cygwin* | mingw* | pw32* | cegcc*)
7377   # two different shell functions defined in ltmain.sh
7378   # decide which to use based on capabilities of $DLLTOOL
7379   case `$DLLTOOL --help 2>&1` in
7380   *--identify-strict*)
7381     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7382     ;;
7383   *)
7384     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7385     ;;
7386   esac
7387   ;;
7388 *)
7389   # fallback: assume linklib IS sharedlib
7390   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7391   ;;
7392 esac
7393
7394 fi
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7396 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7397 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7398 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7399
7400
7401
7402
7403
7404
7405
7406 if test -n "$ac_tool_prefix"; then
7407   for ac_prog in ar
7408   do
7409     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7410 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7412 $as_echo_n "checking for $ac_word... " >&6; }
7413 if ${ac_cv_prog_AR+:} false; then :
7414   $as_echo_n "(cached) " >&6
7415 else
7416   if test -n "$AR"; then
7417   ac_cv_prog_AR="$AR" # Let the user override the test.
7418 else
7419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7420 for as_dir in $PATH
7421 do
7422   IFS=$as_save_IFS
7423   test -z "$as_dir" && as_dir=.
7424     for ac_exec_ext in '' $ac_executable_extensions; do
7425   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7426     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7427     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7428     break 2
7429   fi
7430 done
7431   done
7432 IFS=$as_save_IFS
7433
7434 fi
7435 fi
7436 AR=$ac_cv_prog_AR
7437 if test -n "$AR"; then
7438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7439 $as_echo "$AR" >&6; }
7440 else
7441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7442 $as_echo "no" >&6; }
7443 fi
7444
7445
7446     test -n "$AR" && break
7447   done
7448 fi
7449 if test -z "$AR"; then
7450   ac_ct_AR=$AR
7451   for ac_prog in ar
7452 do
7453   # Extract the first word of "$ac_prog", so it can be a program name with args.
7454 set dummy $ac_prog; ac_word=$2
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7456 $as_echo_n "checking for $ac_word... " >&6; }
7457 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7458   $as_echo_n "(cached) " >&6
7459 else
7460   if test -n "$ac_ct_AR"; then
7461   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7462 else
7463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7464 for as_dir in $PATH
7465 do
7466   IFS=$as_save_IFS
7467   test -z "$as_dir" && as_dir=.
7468     for ac_exec_ext in '' $ac_executable_extensions; do
7469   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7470     ac_cv_prog_ac_ct_AR="$ac_prog"
7471     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7472     break 2
7473   fi
7474 done
7475   done
7476 IFS=$as_save_IFS
7477
7478 fi
7479 fi
7480 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7481 if test -n "$ac_ct_AR"; then
7482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7483 $as_echo "$ac_ct_AR" >&6; }
7484 else
7485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7486 $as_echo "no" >&6; }
7487 fi
7488
7489
7490   test -n "$ac_ct_AR" && break
7491 done
7492
7493   if test "x$ac_ct_AR" = x; then
7494     AR="false"
7495   else
7496     case $cross_compiling:$ac_tool_warned in
7497 yes:)
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7499 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7500 ac_tool_warned=yes ;;
7501 esac
7502     AR=$ac_ct_AR
7503   fi
7504 fi
7505
7506 : ${AR=ar}
7507 : ${AR_FLAGS=cru}
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7520 $as_echo_n "checking for archiver @FILE support... " >&6; }
7521 if ${lt_cv_ar_at_file+:} false; then :
7522   $as_echo_n "(cached) " >&6
7523 else
7524   lt_cv_ar_at_file=no
7525    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7526 /* end confdefs.h.  */
7527
7528 int
7529 main ()
7530 {
7531
7532   ;
7533   return 0;
7534 }
7535 _ACEOF
7536 if ac_fn_c_try_compile "$LINENO"; then :
7537   echo conftest.$ac_objext > conftest.lst
7538       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7539       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7540   (eval $lt_ar_try) 2>&5
7541   ac_status=$?
7542   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7543   test $ac_status = 0; }
7544       if test "$ac_status" -eq 0; then
7545         # Ensure the archiver fails upon bogus file names.
7546         rm -f conftest.$ac_objext libconftest.a
7547         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7548   (eval $lt_ar_try) 2>&5
7549   ac_status=$?
7550   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7551   test $ac_status = 0; }
7552         if test "$ac_status" -ne 0; then
7553           lt_cv_ar_at_file=@
7554         fi
7555       fi
7556       rm -f conftest.* libconftest.a
7557
7558 fi
7559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7560
7561 fi
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7563 $as_echo "$lt_cv_ar_at_file" >&6; }
7564
7565 if test "x$lt_cv_ar_at_file" = xno; then
7566   archiver_list_spec=
7567 else
7568   archiver_list_spec=$lt_cv_ar_at_file
7569 fi
7570
7571
7572
7573
7574
7575
7576
7577 if test -n "$ac_tool_prefix"; then
7578   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7579 set dummy ${ac_tool_prefix}strip; ac_word=$2
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7581 $as_echo_n "checking for $ac_word... " >&6; }
7582 if ${ac_cv_prog_STRIP+:} false; then :
7583   $as_echo_n "(cached) " >&6
7584 else
7585   if test -n "$STRIP"; then
7586   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7587 else
7588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7589 for as_dir in $PATH
7590 do
7591   IFS=$as_save_IFS
7592   test -z "$as_dir" && as_dir=.
7593     for ac_exec_ext in '' $ac_executable_extensions; do
7594   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7595     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7596     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7597     break 2
7598   fi
7599 done
7600   done
7601 IFS=$as_save_IFS
7602
7603 fi
7604 fi
7605 STRIP=$ac_cv_prog_STRIP
7606 if test -n "$STRIP"; then
7607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7608 $as_echo "$STRIP" >&6; }
7609 else
7610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7611 $as_echo "no" >&6; }
7612 fi
7613
7614
7615 fi
7616 if test -z "$ac_cv_prog_STRIP"; then
7617   ac_ct_STRIP=$STRIP
7618   # Extract the first word of "strip", so it can be a program name with args.
7619 set dummy strip; ac_word=$2
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7621 $as_echo_n "checking for $ac_word... " >&6; }
7622 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7623   $as_echo_n "(cached) " >&6
7624 else
7625   if test -n "$ac_ct_STRIP"; then
7626   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7627 else
7628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7629 for as_dir in $PATH
7630 do
7631   IFS=$as_save_IFS
7632   test -z "$as_dir" && as_dir=.
7633     for ac_exec_ext in '' $ac_executable_extensions; do
7634   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7635     ac_cv_prog_ac_ct_STRIP="strip"
7636     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7637     break 2
7638   fi
7639 done
7640   done
7641 IFS=$as_save_IFS
7642
7643 fi
7644 fi
7645 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7646 if test -n "$ac_ct_STRIP"; then
7647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7648 $as_echo "$ac_ct_STRIP" >&6; }
7649 else
7650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7651 $as_echo "no" >&6; }
7652 fi
7653
7654   if test "x$ac_ct_STRIP" = x; then
7655     STRIP=":"
7656   else
7657     case $cross_compiling:$ac_tool_warned in
7658 yes:)
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7660 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7661 ac_tool_warned=yes ;;
7662 esac
7663     STRIP=$ac_ct_STRIP
7664   fi
7665 else
7666   STRIP="$ac_cv_prog_STRIP"
7667 fi
7668
7669 test -z "$STRIP" && STRIP=:
7670
7671
7672
7673
7674
7675
7676 if test -n "$ac_tool_prefix"; then
7677   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7678 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7680 $as_echo_n "checking for $ac_word... " >&6; }
7681 if ${ac_cv_prog_RANLIB+:} false; then :
7682   $as_echo_n "(cached) " >&6
7683 else
7684   if test -n "$RANLIB"; then
7685   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7686 else
7687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7688 for as_dir in $PATH
7689 do
7690   IFS=$as_save_IFS
7691   test -z "$as_dir" && as_dir=.
7692     for ac_exec_ext in '' $ac_executable_extensions; do
7693   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7694     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7695     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7696     break 2
7697   fi
7698 done
7699   done
7700 IFS=$as_save_IFS
7701
7702 fi
7703 fi
7704 RANLIB=$ac_cv_prog_RANLIB
7705 if test -n "$RANLIB"; then
7706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7707 $as_echo "$RANLIB" >&6; }
7708 else
7709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7710 $as_echo "no" >&6; }
7711 fi
7712
7713
7714 fi
7715 if test -z "$ac_cv_prog_RANLIB"; then
7716   ac_ct_RANLIB=$RANLIB
7717   # Extract the first word of "ranlib", so it can be a program name with args.
7718 set dummy ranlib; ac_word=$2
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7720 $as_echo_n "checking for $ac_word... " >&6; }
7721 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7722   $as_echo_n "(cached) " >&6
7723 else
7724   if test -n "$ac_ct_RANLIB"; then
7725   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7726 else
7727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7728 for as_dir in $PATH
7729 do
7730   IFS=$as_save_IFS
7731   test -z "$as_dir" && as_dir=.
7732     for ac_exec_ext in '' $ac_executable_extensions; do
7733   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7734     ac_cv_prog_ac_ct_RANLIB="ranlib"
7735     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7736     break 2
7737   fi
7738 done
7739   done
7740 IFS=$as_save_IFS
7741
7742 fi
7743 fi
7744 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7745 if test -n "$ac_ct_RANLIB"; then
7746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7747 $as_echo "$ac_ct_RANLIB" >&6; }
7748 else
7749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7750 $as_echo "no" >&6; }
7751 fi
7752
7753   if test "x$ac_ct_RANLIB" = x; then
7754     RANLIB=":"
7755   else
7756     case $cross_compiling:$ac_tool_warned in
7757 yes:)
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7759 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7760 ac_tool_warned=yes ;;
7761 esac
7762     RANLIB=$ac_ct_RANLIB
7763   fi
7764 else
7765   RANLIB="$ac_cv_prog_RANLIB"
7766 fi
7767
7768 test -z "$RANLIB" && RANLIB=:
7769
7770
7771
7772
7773
7774
7775 # Determine commands to create old-style static archives.
7776 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7777 old_postinstall_cmds='chmod 644 $oldlib'
7778 old_postuninstall_cmds=
7779
7780 if test -n "$RANLIB"; then
7781   case $host_os in
7782   openbsd*)
7783     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7784     ;;
7785   *)
7786     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7787     ;;
7788   esac
7789   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7790 fi
7791
7792 case $host_os in
7793   darwin*)
7794     lock_old_archive_extraction=yes ;;
7795   *)
7796     lock_old_archive_extraction=no ;;
7797 esac
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837 # If no C compiler was specified, use CC.
7838 LTCC=${LTCC-"$CC"}
7839
7840 # If no C compiler flags were specified, use CFLAGS.
7841 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7842
7843 # Allow CC to be a program name with arguments.
7844 compiler=$CC
7845
7846
7847 # Check for command to grab the raw symbol name followed by C symbol from nm.
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7849 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7850 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7851   $as_echo_n "(cached) " >&6
7852 else
7853
7854 # These are sane defaults that work on at least a few old systems.
7855 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7856
7857 # Character class describing NM global symbol codes.
7858 symcode='[BCDEGRST]'
7859
7860 # Regexp to match symbols that can be accessed directly from C.
7861 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7862
7863 # Define system-specific variables.
7864 case $host_os in
7865 aix*)
7866   symcode='[BCDT]'
7867   ;;
7868 cygwin* | mingw* | pw32* | cegcc*)
7869   symcode='[ABCDGISTW]'
7870   ;;
7871 hpux*)
7872   if test "$host_cpu" = ia64; then
7873     symcode='[ABCDEGRST]'
7874   fi
7875   ;;
7876 irix* | nonstopux*)
7877   symcode='[BCDEGRST]'
7878   ;;
7879 osf*)
7880   symcode='[BCDEGQRST]'
7881   ;;
7882 solaris*)
7883   symcode='[BDRT]'
7884   ;;
7885 sco3.2v5*)
7886   symcode='[DT]'
7887   ;;
7888 sysv4.2uw2*)
7889   symcode='[DT]'
7890   ;;
7891 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7892   symcode='[ABDT]'
7893   ;;
7894 sysv4)
7895   symcode='[DFNSTU]'
7896   ;;
7897 esac
7898
7899 # If we're using GNU nm, then use its standard symbol codes.
7900 case `$NM -V 2>&1` in
7901 *GNU* | *'with BFD'*)
7902   symcode='[ABCDGIRSTW]' ;;
7903 esac
7904
7905 # Transform an extracted symbol line into a proper C declaration.
7906 # Some systems (esp. on ia64) link data and code symbols differently,
7907 # so use this general approach.
7908 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7909
7910 # Transform an extracted symbol line into symbol name and symbol address
7911 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7912 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'"
7913
7914 # Handle CRLF in mingw tool chain
7915 opt_cr=
7916 case $build_os in
7917 mingw*)
7918   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7919   ;;
7920 esac
7921
7922 # Try without a prefix underscore, then with it.
7923 for ac_symprfx in "" "_"; do
7924
7925   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7926   symxfrm="\\1 $ac_symprfx\\2 \\2"
7927
7928   # Write the raw and C identifiers.
7929   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7930     # Fake it for dumpbin and say T for any non-static function
7931     # and D for any global variable.
7932     # Also find C++ and __fastcall symbols from MSVC++,
7933     # which start with @ or ?.
7934     lt_cv_sys_global_symbol_pipe="$AWK '"\
7935 "     {last_section=section; section=\$ 3};"\
7936 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7937 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7938 "     \$ 0!~/External *\|/{next};"\
7939 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7940 "     {if(hide[section]) next};"\
7941 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7942 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7943 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7944 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7945 "     ' prfx=^$ac_symprfx"
7946   else
7947     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7948   fi
7949   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7950
7951   # Check to see that the pipe works correctly.
7952   pipe_works=no
7953
7954   rm -f conftest*
7955   cat > conftest.$ac_ext <<_LT_EOF
7956 #ifdef __cplusplus
7957 extern "C" {
7958 #endif
7959 char nm_test_var;
7960 void nm_test_func(void);
7961 void nm_test_func(void){}
7962 #ifdef __cplusplus
7963 }
7964 #endif
7965 int main(){nm_test_var='a';nm_test_func();return(0);}
7966 _LT_EOF
7967
7968   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7969   (eval $ac_compile) 2>&5
7970   ac_status=$?
7971   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7972   test $ac_status = 0; }; then
7973     # Now try to grab the symbols.
7974     nlist=conftest.nm
7975     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7976   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7977   ac_status=$?
7978   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7979   test $ac_status = 0; } && test -s "$nlist"; then
7980       # Try sorting and uniquifying the output.
7981       if sort "$nlist" | uniq > "$nlist"T; then
7982         mv -f "$nlist"T "$nlist"
7983       else
7984         rm -f "$nlist"T
7985       fi
7986
7987       # Make sure that we snagged all the symbols we need.
7988       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7989         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7990           cat <<_LT_EOF > conftest.$ac_ext
7991 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7992 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7993 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7994    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7995 # define LT_DLSYM_CONST
7996 #elif defined(__osf__)
7997 /* This system does not cope well with relocations in const data.  */
7998 # define LT_DLSYM_CONST
7999 #else
8000 # define LT_DLSYM_CONST const
8001 #endif
8002
8003 #ifdef __cplusplus
8004 extern "C" {
8005 #endif
8006
8007 _LT_EOF
8008           # Now generate the symbol file.
8009           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8010
8011           cat <<_LT_EOF >> conftest.$ac_ext
8012
8013 /* The mapping between symbol names and symbols.  */
8014 LT_DLSYM_CONST struct {
8015   const char *name;
8016   void       *address;
8017 }
8018 lt__PROGRAM__LTX_preloaded_symbols[] =
8019 {
8020   { "@PROGRAM@", (void *) 0 },
8021 _LT_EOF
8022           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8023           cat <<\_LT_EOF >> conftest.$ac_ext
8024   {0, (void *) 0}
8025 };
8026
8027 /* This works around a problem in FreeBSD linker */
8028 #ifdef FREEBSD_WORKAROUND
8029 static const void *lt_preloaded_setup() {
8030   return lt__PROGRAM__LTX_preloaded_symbols;
8031 }
8032 #endif
8033
8034 #ifdef __cplusplus
8035 }
8036 #endif
8037 _LT_EOF
8038           # Now try linking the two files.
8039           mv conftest.$ac_objext conftstm.$ac_objext
8040           lt_globsym_save_LIBS=$LIBS
8041           lt_globsym_save_CFLAGS=$CFLAGS
8042           LIBS="conftstm.$ac_objext"
8043           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8044           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8045   (eval $ac_link) 2>&5
8046   ac_status=$?
8047   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8048   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8049             pipe_works=yes
8050           fi
8051           LIBS=$lt_globsym_save_LIBS
8052           CFLAGS=$lt_globsym_save_CFLAGS
8053         else
8054           echo "cannot find nm_test_func in $nlist" >&5
8055         fi
8056       else
8057         echo "cannot find nm_test_var in $nlist" >&5
8058       fi
8059     else
8060       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8061     fi
8062   else
8063     echo "$progname: failed program was:" >&5
8064     cat conftest.$ac_ext >&5
8065   fi
8066   rm -rf conftest* conftst*
8067
8068   # Do not use the global_symbol_pipe unless it works.
8069   if test "$pipe_works" = yes; then
8070     break
8071   else
8072     lt_cv_sys_global_symbol_pipe=
8073   fi
8074 done
8075
8076 fi
8077
8078 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8079   lt_cv_sys_global_symbol_to_cdecl=
8080 fi
8081 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8083 $as_echo "failed" >&6; }
8084 else
8085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8086 $as_echo "ok" >&6; }
8087 fi
8088
8089 # Response file support.
8090 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8091   nm_file_list_spec='@'
8092 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8093   nm_file_list_spec='@'
8094 fi
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8123 $as_echo_n "checking for sysroot... " >&6; }
8124
8125 # Check whether --with-sysroot was given.
8126 if test "${with_sysroot+set}" = set; then :
8127   withval=$with_sysroot;
8128 else
8129   with_sysroot=no
8130 fi
8131
8132
8133 lt_sysroot=
8134 case ${with_sysroot} in #(
8135  yes)
8136    if test "$GCC" = yes; then
8137      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8138    fi
8139    ;; #(
8140  /*)
8141    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8142    ;; #(
8143  no|'')
8144    ;; #(
8145  *)
8146    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8147 $as_echo "${with_sysroot}" >&6; }
8148    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8149    ;;
8150 esac
8151
8152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8153 $as_echo "${lt_sysroot:-no}" >&6; }
8154
8155
8156
8157
8158
8159 # Check whether --enable-libtool-lock was given.
8160 if test "${enable_libtool_lock+set}" = set; then :
8161   enableval=$enable_libtool_lock;
8162 fi
8163
8164 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8165
8166 # Some flags need to be propagated to the compiler or linker for good
8167 # libtool support.
8168 case $host in
8169 ia64-*-hpux*)
8170   # Find out which ABI we are using.
8171   echo 'int i;' > conftest.$ac_ext
8172   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8173   (eval $ac_compile) 2>&5
8174   ac_status=$?
8175   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8176   test $ac_status = 0; }; then
8177     case `/usr/bin/file conftest.$ac_objext` in
8178       *ELF-32*)
8179         HPUX_IA64_MODE="32"
8180         ;;
8181       *ELF-64*)
8182         HPUX_IA64_MODE="64"
8183         ;;
8184     esac
8185   fi
8186   rm -rf conftest*
8187   ;;
8188 *-*-irix6*)
8189   # Find out which ABI we are using.
8190   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8191   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8192   (eval $ac_compile) 2>&5
8193   ac_status=$?
8194   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8195   test $ac_status = 0; }; then
8196     if test "$lt_cv_prog_gnu_ld" = yes; then
8197       case `/usr/bin/file conftest.$ac_objext` in
8198         *32-bit*)
8199           LD="${LD-ld} -melf32bsmip"
8200           ;;
8201         *N32*)
8202           LD="${LD-ld} -melf32bmipn32"
8203           ;;
8204         *64-bit*)
8205           LD="${LD-ld} -melf64bmip"
8206         ;;
8207       esac
8208     else
8209       case `/usr/bin/file conftest.$ac_objext` in
8210         *32-bit*)
8211           LD="${LD-ld} -32"
8212           ;;
8213         *N32*)
8214           LD="${LD-ld} -n32"
8215           ;;
8216         *64-bit*)
8217           LD="${LD-ld} -64"
8218           ;;
8219       esac
8220     fi
8221   fi
8222   rm -rf conftest*
8223   ;;
8224
8225 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8226 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8227   # Find out which ABI we are using.
8228   echo 'int i;' > conftest.$ac_ext
8229   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8230   (eval $ac_compile) 2>&5
8231   ac_status=$?
8232   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8233   test $ac_status = 0; }; then
8234     case `/usr/bin/file conftest.o` in
8235       *32-bit*)
8236         case $host in
8237           x86_64-*kfreebsd*-gnu)
8238             LD="${LD-ld} -m elf_i386_fbsd"
8239             ;;
8240           x86_64-*linux*)
8241             LD="${LD-ld} -m elf_i386"
8242             ;;
8243           ppc64-*linux*|powerpc64-*linux*)
8244             LD="${LD-ld} -m elf32ppclinux"
8245             ;;
8246           s390x-*linux*)
8247             LD="${LD-ld} -m elf_s390"
8248             ;;
8249           sparc64-*linux*)
8250             LD="${LD-ld} -m elf32_sparc"
8251             ;;
8252         esac
8253         ;;
8254       *64-bit*)
8255         case $host in
8256           x86_64-*kfreebsd*-gnu)
8257             LD="${LD-ld} -m elf_x86_64_fbsd"
8258             ;;
8259           x86_64-*linux*)
8260             LD="${LD-ld} -m elf_x86_64"
8261             ;;
8262           ppc*-*linux*|powerpc*-*linux*)
8263             LD="${LD-ld} -m elf64ppc"
8264             ;;
8265           s390*-*linux*|s390*-*tpf*)
8266             LD="${LD-ld} -m elf64_s390"
8267             ;;
8268           sparc*-*linux*)
8269             LD="${LD-ld} -m elf64_sparc"
8270             ;;
8271         esac
8272         ;;
8273     esac
8274   fi
8275   rm -rf conftest*
8276   ;;
8277
8278 *-*-sco3.2v5*)
8279   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8280   SAVE_CFLAGS="$CFLAGS"
8281   CFLAGS="$CFLAGS -belf"
8282   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8283 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8284 if ${lt_cv_cc_needs_belf+:} false; then :
8285   $as_echo_n "(cached) " >&6
8286 else
8287   ac_ext=c
8288 ac_cpp='$CPP $CPPFLAGS'
8289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8292
8293      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8294 /* end confdefs.h.  */
8295
8296 int
8297 main ()
8298 {
8299
8300   ;
8301   return 0;
8302 }
8303 _ACEOF
8304 if ac_fn_c_try_link "$LINENO"; then :
8305   lt_cv_cc_needs_belf=yes
8306 else
8307   lt_cv_cc_needs_belf=no
8308 fi
8309 rm -f core conftest.err conftest.$ac_objext \
8310     conftest$ac_exeext conftest.$ac_ext
8311      ac_ext=c
8312 ac_cpp='$CPP $CPPFLAGS'
8313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8316
8317 fi
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8319 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8320   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8321     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8322     CFLAGS="$SAVE_CFLAGS"
8323   fi
8324   ;;
8325 *-*solaris*)
8326   # Find out which ABI we are using.
8327   echo 'int i;' > conftest.$ac_ext
8328   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8329   (eval $ac_compile) 2>&5
8330   ac_status=$?
8331   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8332   test $ac_status = 0; }; then
8333     case `/usr/bin/file conftest.o` in
8334     *64-bit*)
8335       case $lt_cv_prog_gnu_ld in
8336       yes*)
8337         case $host in
8338         i?86-*-solaris*)
8339           LD="${LD-ld} -m elf_x86_64"
8340           ;;
8341         sparc*-*-solaris*)
8342           LD="${LD-ld} -m elf64_sparc"
8343           ;;
8344         esac
8345         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8346         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8347           LD="${LD-ld}_sol2"
8348         fi
8349         ;;
8350       *)
8351         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8352           LD="${LD-ld} -64"
8353         fi
8354         ;;
8355       esac
8356       ;;
8357     esac
8358   fi
8359   rm -rf conftest*
8360   ;;
8361 esac
8362
8363 need_locks="$enable_libtool_lock"
8364
8365 if test -n "$ac_tool_prefix"; then
8366   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8367 set dummy ${ac_tool_prefix}mt; ac_word=$2
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8369 $as_echo_n "checking for $ac_word... " >&6; }
8370 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8371   $as_echo_n "(cached) " >&6
8372 else
8373   if test -n "$MANIFEST_TOOL"; then
8374   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8375 else
8376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8377 for as_dir in $PATH
8378 do
8379   IFS=$as_save_IFS
8380   test -z "$as_dir" && as_dir=.
8381     for ac_exec_ext in '' $ac_executable_extensions; do
8382   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8383     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8384     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8385     break 2
8386   fi
8387 done
8388   done
8389 IFS=$as_save_IFS
8390
8391 fi
8392 fi
8393 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8394 if test -n "$MANIFEST_TOOL"; then
8395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8396 $as_echo "$MANIFEST_TOOL" >&6; }
8397 else
8398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8399 $as_echo "no" >&6; }
8400 fi
8401
8402
8403 fi
8404 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8405   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8406   # Extract the first word of "mt", so it can be a program name with args.
8407 set dummy mt; ac_word=$2
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8409 $as_echo_n "checking for $ac_word... " >&6; }
8410 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8411   $as_echo_n "(cached) " >&6
8412 else
8413   if test -n "$ac_ct_MANIFEST_TOOL"; then
8414   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8415 else
8416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8417 for as_dir in $PATH
8418 do
8419   IFS=$as_save_IFS
8420   test -z "$as_dir" && as_dir=.
8421     for ac_exec_ext in '' $ac_executable_extensions; do
8422   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8423     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8424     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8425     break 2
8426   fi
8427 done
8428   done
8429 IFS=$as_save_IFS
8430
8431 fi
8432 fi
8433 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8434 if test -n "$ac_ct_MANIFEST_TOOL"; then
8435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8436 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8437 else
8438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8439 $as_echo "no" >&6; }
8440 fi
8441
8442   if test "x$ac_ct_MANIFEST_TOOL" = x; then
8443     MANIFEST_TOOL=":"
8444   else
8445     case $cross_compiling:$ac_tool_warned in
8446 yes:)
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8448 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8449 ac_tool_warned=yes ;;
8450 esac
8451     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8452   fi
8453 else
8454   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8455 fi
8456
8457 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8459 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8460 if ${lt_cv_path_mainfest_tool+:} false; then :
8461   $as_echo_n "(cached) " >&6
8462 else
8463   lt_cv_path_mainfest_tool=no
8464   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8465   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8466   cat conftest.err >&5
8467   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8468     lt_cv_path_mainfest_tool=yes
8469   fi
8470   rm -f conftest*
8471 fi
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8473 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8474 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8475   MANIFEST_TOOL=:
8476 fi
8477
8478
8479
8480
8481
8482
8483   case $host_os in
8484     rhapsody* | darwin*)
8485     if test -n "$ac_tool_prefix"; then
8486   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8487 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8489 $as_echo_n "checking for $ac_word... " >&6; }
8490 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8491   $as_echo_n "(cached) " >&6
8492 else
8493   if test -n "$DSYMUTIL"; then
8494   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8495 else
8496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8497 for as_dir in $PATH
8498 do
8499   IFS=$as_save_IFS
8500   test -z "$as_dir" && as_dir=.
8501     for ac_exec_ext in '' $ac_executable_extensions; do
8502   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8503     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8504     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8505     break 2
8506   fi
8507 done
8508   done
8509 IFS=$as_save_IFS
8510
8511 fi
8512 fi
8513 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8514 if test -n "$DSYMUTIL"; then
8515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8516 $as_echo "$DSYMUTIL" >&6; }
8517 else
8518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8519 $as_echo "no" >&6; }
8520 fi
8521
8522
8523 fi
8524 if test -z "$ac_cv_prog_DSYMUTIL"; then
8525   ac_ct_DSYMUTIL=$DSYMUTIL
8526   # Extract the first word of "dsymutil", so it can be a program name with args.
8527 set dummy dsymutil; ac_word=$2
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8529 $as_echo_n "checking for $ac_word... " >&6; }
8530 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8531   $as_echo_n "(cached) " >&6
8532 else
8533   if test -n "$ac_ct_DSYMUTIL"; then
8534   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8535 else
8536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8537 for as_dir in $PATH
8538 do
8539   IFS=$as_save_IFS
8540   test -z "$as_dir" && as_dir=.
8541     for ac_exec_ext in '' $ac_executable_extensions; do
8542   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8543     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8544     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8545     break 2
8546   fi
8547 done
8548   done
8549 IFS=$as_save_IFS
8550
8551 fi
8552 fi
8553 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8554 if test -n "$ac_ct_DSYMUTIL"; then
8555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8556 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8557 else
8558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8559 $as_echo "no" >&6; }
8560 fi
8561
8562   if test "x$ac_ct_DSYMUTIL" = x; then
8563     DSYMUTIL=":"
8564   else
8565     case $cross_compiling:$ac_tool_warned in
8566 yes:)
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8568 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8569 ac_tool_warned=yes ;;
8570 esac
8571     DSYMUTIL=$ac_ct_DSYMUTIL
8572   fi
8573 else
8574   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8575 fi
8576
8577     if test -n "$ac_tool_prefix"; then
8578   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8579 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8581 $as_echo_n "checking for $ac_word... " >&6; }
8582 if ${ac_cv_prog_NMEDIT+:} false; then :
8583   $as_echo_n "(cached) " >&6
8584 else
8585   if test -n "$NMEDIT"; then
8586   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8587 else
8588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8589 for as_dir in $PATH
8590 do
8591   IFS=$as_save_IFS
8592   test -z "$as_dir" && as_dir=.
8593     for ac_exec_ext in '' $ac_executable_extensions; do
8594   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8595     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8596     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8597     break 2
8598   fi
8599 done
8600   done
8601 IFS=$as_save_IFS
8602
8603 fi
8604 fi
8605 NMEDIT=$ac_cv_prog_NMEDIT
8606 if test -n "$NMEDIT"; then
8607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8608 $as_echo "$NMEDIT" >&6; }
8609 else
8610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8611 $as_echo "no" >&6; }
8612 fi
8613
8614
8615 fi
8616 if test -z "$ac_cv_prog_NMEDIT"; then
8617   ac_ct_NMEDIT=$NMEDIT
8618   # Extract the first word of "nmedit", so it can be a program name with args.
8619 set dummy nmedit; ac_word=$2
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8621 $as_echo_n "checking for $ac_word... " >&6; }
8622 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8623   $as_echo_n "(cached) " >&6
8624 else
8625   if test -n "$ac_ct_NMEDIT"; then
8626   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8627 else
8628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8629 for as_dir in $PATH
8630 do
8631   IFS=$as_save_IFS
8632   test -z "$as_dir" && as_dir=.
8633     for ac_exec_ext in '' $ac_executable_extensions; do
8634   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8635     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8636     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8637     break 2
8638   fi
8639 done
8640   done
8641 IFS=$as_save_IFS
8642
8643 fi
8644 fi
8645 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8646 if test -n "$ac_ct_NMEDIT"; then
8647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8648 $as_echo "$ac_ct_NMEDIT" >&6; }
8649 else
8650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8651 $as_echo "no" >&6; }
8652 fi
8653
8654   if test "x$ac_ct_NMEDIT" = x; then
8655     NMEDIT=":"
8656   else
8657     case $cross_compiling:$ac_tool_warned in
8658 yes:)
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8660 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8661 ac_tool_warned=yes ;;
8662 esac
8663     NMEDIT=$ac_ct_NMEDIT
8664   fi
8665 else
8666   NMEDIT="$ac_cv_prog_NMEDIT"
8667 fi
8668
8669     if test -n "$ac_tool_prefix"; then
8670   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8671 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8673 $as_echo_n "checking for $ac_word... " >&6; }
8674 if ${ac_cv_prog_LIPO+:} false; then :
8675   $as_echo_n "(cached) " >&6
8676 else
8677   if test -n "$LIPO"; then
8678   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8679 else
8680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8681 for as_dir in $PATH
8682 do
8683   IFS=$as_save_IFS
8684   test -z "$as_dir" && as_dir=.
8685     for ac_exec_ext in '' $ac_executable_extensions; do
8686   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8687     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8688     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8689     break 2
8690   fi
8691 done
8692   done
8693 IFS=$as_save_IFS
8694
8695 fi
8696 fi
8697 LIPO=$ac_cv_prog_LIPO
8698 if test -n "$LIPO"; then
8699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8700 $as_echo "$LIPO" >&6; }
8701 else
8702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8703 $as_echo "no" >&6; }
8704 fi
8705
8706
8707 fi
8708 if test -z "$ac_cv_prog_LIPO"; then
8709   ac_ct_LIPO=$LIPO
8710   # Extract the first word of "lipo", so it can be a program name with args.
8711 set dummy lipo; ac_word=$2
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8713 $as_echo_n "checking for $ac_word... " >&6; }
8714 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8715   $as_echo_n "(cached) " >&6
8716 else
8717   if test -n "$ac_ct_LIPO"; then
8718   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8719 else
8720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8721 for as_dir in $PATH
8722 do
8723   IFS=$as_save_IFS
8724   test -z "$as_dir" && as_dir=.
8725     for ac_exec_ext in '' $ac_executable_extensions; do
8726   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8727     ac_cv_prog_ac_ct_LIPO="lipo"
8728     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8729     break 2
8730   fi
8731 done
8732   done
8733 IFS=$as_save_IFS
8734
8735 fi
8736 fi
8737 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8738 if test -n "$ac_ct_LIPO"; then
8739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8740 $as_echo "$ac_ct_LIPO" >&6; }
8741 else
8742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8743 $as_echo "no" >&6; }
8744 fi
8745
8746   if test "x$ac_ct_LIPO" = x; then
8747     LIPO=":"
8748   else
8749     case $cross_compiling:$ac_tool_warned in
8750 yes:)
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8752 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8753 ac_tool_warned=yes ;;
8754 esac
8755     LIPO=$ac_ct_LIPO
8756   fi
8757 else
8758   LIPO="$ac_cv_prog_LIPO"
8759 fi
8760
8761     if test -n "$ac_tool_prefix"; then
8762   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8763 set dummy ${ac_tool_prefix}otool; ac_word=$2
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8765 $as_echo_n "checking for $ac_word... " >&6; }
8766 if ${ac_cv_prog_OTOOL+:} false; then :
8767   $as_echo_n "(cached) " >&6
8768 else
8769   if test -n "$OTOOL"; then
8770   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8771 else
8772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8773 for as_dir in $PATH
8774 do
8775   IFS=$as_save_IFS
8776   test -z "$as_dir" && as_dir=.
8777     for ac_exec_ext in '' $ac_executable_extensions; do
8778   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8779     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8780     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8781     break 2
8782   fi
8783 done
8784   done
8785 IFS=$as_save_IFS
8786
8787 fi
8788 fi
8789 OTOOL=$ac_cv_prog_OTOOL
8790 if test -n "$OTOOL"; then
8791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8792 $as_echo "$OTOOL" >&6; }
8793 else
8794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8795 $as_echo "no" >&6; }
8796 fi
8797
8798
8799 fi
8800 if test -z "$ac_cv_prog_OTOOL"; then
8801   ac_ct_OTOOL=$OTOOL
8802   # Extract the first word of "otool", so it can be a program name with args.
8803 set dummy otool; ac_word=$2
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8805 $as_echo_n "checking for $ac_word... " >&6; }
8806 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8807   $as_echo_n "(cached) " >&6
8808 else
8809   if test -n "$ac_ct_OTOOL"; then
8810   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8811 else
8812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8813 for as_dir in $PATH
8814 do
8815   IFS=$as_save_IFS
8816   test -z "$as_dir" && as_dir=.
8817     for ac_exec_ext in '' $ac_executable_extensions; do
8818   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8819     ac_cv_prog_ac_ct_OTOOL="otool"
8820     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8821     break 2
8822   fi
8823 done
8824   done
8825 IFS=$as_save_IFS
8826
8827 fi
8828 fi
8829 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8830 if test -n "$ac_ct_OTOOL"; then
8831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8832 $as_echo "$ac_ct_OTOOL" >&6; }
8833 else
8834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8835 $as_echo "no" >&6; }
8836 fi
8837
8838   if test "x$ac_ct_OTOOL" = x; then
8839     OTOOL=":"
8840   else
8841     case $cross_compiling:$ac_tool_warned in
8842 yes:)
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8844 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8845 ac_tool_warned=yes ;;
8846 esac
8847     OTOOL=$ac_ct_OTOOL
8848   fi
8849 else
8850   OTOOL="$ac_cv_prog_OTOOL"
8851 fi
8852
8853     if test -n "$ac_tool_prefix"; then
8854   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8855 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8857 $as_echo_n "checking for $ac_word... " >&6; }
8858 if ${ac_cv_prog_OTOOL64+:} false; then :
8859   $as_echo_n "(cached) " >&6
8860 else
8861   if test -n "$OTOOL64"; then
8862   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8863 else
8864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8865 for as_dir in $PATH
8866 do
8867   IFS=$as_save_IFS
8868   test -z "$as_dir" && as_dir=.
8869     for ac_exec_ext in '' $ac_executable_extensions; do
8870   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8871     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8872     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8873     break 2
8874   fi
8875 done
8876   done
8877 IFS=$as_save_IFS
8878
8879 fi
8880 fi
8881 OTOOL64=$ac_cv_prog_OTOOL64
8882 if test -n "$OTOOL64"; then
8883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8884 $as_echo "$OTOOL64" >&6; }
8885 else
8886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8887 $as_echo "no" >&6; }
8888 fi
8889
8890
8891 fi
8892 if test -z "$ac_cv_prog_OTOOL64"; then
8893   ac_ct_OTOOL64=$OTOOL64
8894   # Extract the first word of "otool64", so it can be a program name with args.
8895 set dummy otool64; ac_word=$2
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8897 $as_echo_n "checking for $ac_word... " >&6; }
8898 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8899   $as_echo_n "(cached) " >&6
8900 else
8901   if test -n "$ac_ct_OTOOL64"; then
8902   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8903 else
8904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8905 for as_dir in $PATH
8906 do
8907   IFS=$as_save_IFS
8908   test -z "$as_dir" && as_dir=.
8909     for ac_exec_ext in '' $ac_executable_extensions; do
8910   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8911     ac_cv_prog_ac_ct_OTOOL64="otool64"
8912     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8913     break 2
8914   fi
8915 done
8916   done
8917 IFS=$as_save_IFS
8918
8919 fi
8920 fi
8921 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8922 if test -n "$ac_ct_OTOOL64"; then
8923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8924 $as_echo "$ac_ct_OTOOL64" >&6; }
8925 else
8926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8927 $as_echo "no" >&6; }
8928 fi
8929
8930   if test "x$ac_ct_OTOOL64" = x; then
8931     OTOOL64=":"
8932   else
8933     case $cross_compiling:$ac_tool_warned in
8934 yes:)
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8936 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8937 ac_tool_warned=yes ;;
8938 esac
8939     OTOOL64=$ac_ct_OTOOL64
8940   fi
8941 else
8942   OTOOL64="$ac_cv_prog_OTOOL64"
8943 fi
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8972 $as_echo_n "checking for -single_module linker flag... " >&6; }
8973 if ${lt_cv_apple_cc_single_mod+:} false; then :
8974   $as_echo_n "(cached) " >&6
8975 else
8976   lt_cv_apple_cc_single_mod=no
8977       if test -z "${LT_MULTI_MODULE}"; then
8978         # By default we will add the -single_module flag. You can override
8979         # by either setting the environment variable LT_MULTI_MODULE
8980         # non-empty at configure time, or by adding -multi_module to the
8981         # link flags.
8982         rm -rf libconftest.dylib*
8983         echo "int foo(void){return 1;}" > conftest.c
8984         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8985 -dynamiclib -Wl,-single_module conftest.c" >&5
8986         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8987           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8988         _lt_result=$?
8989         # If there is a non-empty error log, and "single_module"
8990         # appears in it, assume the flag caused a linker warning
8991         if test -s conftest.err && $GREP single_module conftest.err; then
8992           cat conftest.err >&5
8993         # Otherwise, if the output was created with a 0 exit code from
8994         # the compiler, it worked.
8995         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8996           lt_cv_apple_cc_single_mod=yes
8997         else
8998           cat conftest.err >&5
8999         fi
9000         rm -rf libconftest.dylib*
9001         rm -f conftest.*
9002       fi
9003 fi
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9005 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9006
9007     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9008 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9009 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9010   $as_echo_n "(cached) " >&6
9011 else
9012   lt_cv_ld_exported_symbols_list=no
9013       save_LDFLAGS=$LDFLAGS
9014       echo "_main" > conftest.sym
9015       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9016       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9017 /* end confdefs.h.  */
9018
9019 int
9020 main ()
9021 {
9022
9023   ;
9024   return 0;
9025 }
9026 _ACEOF
9027 if ac_fn_c_try_link "$LINENO"; then :
9028   lt_cv_ld_exported_symbols_list=yes
9029 else
9030   lt_cv_ld_exported_symbols_list=no
9031 fi
9032 rm -f core conftest.err conftest.$ac_objext \
9033     conftest$ac_exeext conftest.$ac_ext
9034         LDFLAGS="$save_LDFLAGS"
9035
9036 fi
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9038 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9039
9040     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9041 $as_echo_n "checking for -force_load linker flag... " >&6; }
9042 if ${lt_cv_ld_force_load+:} false; then :
9043   $as_echo_n "(cached) " >&6
9044 else
9045   lt_cv_ld_force_load=no
9046       cat > conftest.c << _LT_EOF
9047 int forced_loaded() { return 2;}
9048 _LT_EOF
9049       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9050       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9051       echo "$AR cru libconftest.a conftest.o" >&5
9052       $AR cru libconftest.a conftest.o 2>&5
9053       echo "$RANLIB libconftest.a" >&5
9054       $RANLIB libconftest.a 2>&5
9055       cat > conftest.c << _LT_EOF
9056 int main() { return 0;}
9057 _LT_EOF
9058       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9059       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9060       _lt_result=$?
9061       if test -s conftest.err && $GREP force_load conftest.err; then
9062         cat conftest.err >&5
9063       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
9064         lt_cv_ld_force_load=yes
9065       else
9066         cat conftest.err >&5
9067       fi
9068         rm -f conftest.err libconftest.a conftest conftest.c
9069         rm -rf conftest.dSYM
9070
9071 fi
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9073 $as_echo "$lt_cv_ld_force_load" >&6; }
9074     case $host_os in
9075     rhapsody* | darwin1.[012])
9076       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9077     darwin1.*)
9078       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9079     darwin*) # darwin 5.x on
9080       # if running on 10.5 or later, the deployment target defaults
9081       # to the OS version, if on x86, and 10.4, the deployment
9082       # target defaults to 10.4. Don't you love it?
9083       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9084         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9085           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9086         10.[012]*)
9087           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9088         10.*)
9089           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9090       esac
9091     ;;
9092   esac
9093     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9094       _lt_dar_single_mod='$single_module'
9095     fi
9096     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9097       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9098     else
9099       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9100     fi
9101     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9102       _lt_dsymutil='~$DSYMUTIL $lib || :'
9103     else
9104       _lt_dsymutil=
9105     fi
9106     ;;
9107   esac
9108
9109 for ac_header in dlfcn.h
9110 do :
9111   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9112 "
9113 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9114   cat >>confdefs.h <<_ACEOF
9115 #define HAVE_DLFCN_H 1
9116 _ACEOF
9117
9118 fi
9119
9120 done
9121
9122
9123
9124
9125 func_stripname_cnf ()
9126 {
9127   case ${2} in
9128   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9129   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9130   esac
9131 } # func_stripname_cnf
9132
9133
9134
9135
9136
9137 # Set options
9138 enable_win32_dll=yes
9139
9140 case $host in
9141 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
9142   if test -n "$ac_tool_prefix"; then
9143   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
9144 set dummy ${ac_tool_prefix}as; ac_word=$2
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9146 $as_echo_n "checking for $ac_word... " >&6; }
9147 if ${ac_cv_prog_AS+:} false; then :
9148   $as_echo_n "(cached) " >&6
9149 else
9150   if test -n "$AS"; then
9151   ac_cv_prog_AS="$AS" # Let the user override the test.
9152 else
9153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9154 for as_dir in $PATH
9155 do
9156   IFS=$as_save_IFS
9157   test -z "$as_dir" && as_dir=.
9158     for ac_exec_ext in '' $ac_executable_extensions; do
9159   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9160     ac_cv_prog_AS="${ac_tool_prefix}as"
9161     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9162     break 2
9163   fi
9164 done
9165   done
9166 IFS=$as_save_IFS
9167
9168 fi
9169 fi
9170 AS=$ac_cv_prog_AS
9171 if test -n "$AS"; then
9172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9173 $as_echo "$AS" >&6; }
9174 else
9175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9176 $as_echo "no" >&6; }
9177 fi
9178
9179
9180 fi
9181 if test -z "$ac_cv_prog_AS"; then
9182   ac_ct_AS=$AS
9183   # Extract the first word of "as", so it can be a program name with args.
9184 set dummy as; ac_word=$2
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9186 $as_echo_n "checking for $ac_word... " >&6; }
9187 if ${ac_cv_prog_ac_ct_AS+:} false; then :
9188   $as_echo_n "(cached) " >&6
9189 else
9190   if test -n "$ac_ct_AS"; then
9191   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9192 else
9193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9194 for as_dir in $PATH
9195 do
9196   IFS=$as_save_IFS
9197   test -z "$as_dir" && as_dir=.
9198     for ac_exec_ext in '' $ac_executable_extensions; do
9199   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9200     ac_cv_prog_ac_ct_AS="as"
9201     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9202     break 2
9203   fi
9204 done
9205   done
9206 IFS=$as_save_IFS
9207
9208 fi
9209 fi
9210 ac_ct_AS=$ac_cv_prog_ac_ct_AS
9211 if test -n "$ac_ct_AS"; then
9212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
9213 $as_echo "$ac_ct_AS" >&6; }
9214 else
9215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9216 $as_echo "no" >&6; }
9217 fi
9218
9219   if test "x$ac_ct_AS" = x; then
9220     AS="false"
9221   else
9222     case $cross_compiling:$ac_tool_warned in
9223 yes:)
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9225 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9226 ac_tool_warned=yes ;;
9227 esac
9228     AS=$ac_ct_AS
9229   fi
9230 else
9231   AS="$ac_cv_prog_AS"
9232 fi
9233
9234   if test -n "$ac_tool_prefix"; then
9235   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9236 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9238 $as_echo_n "checking for $ac_word... " >&6; }
9239 if ${ac_cv_prog_DLLTOOL+:} false; then :
9240   $as_echo_n "(cached) " >&6
9241 else
9242   if test -n "$DLLTOOL"; then
9243   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9244 else
9245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9246 for as_dir in $PATH
9247 do
9248   IFS=$as_save_IFS
9249   test -z "$as_dir" && as_dir=.
9250     for ac_exec_ext in '' $ac_executable_extensions; do
9251   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9252     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9253     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9254     break 2
9255   fi
9256 done
9257   done
9258 IFS=$as_save_IFS
9259
9260 fi
9261 fi
9262 DLLTOOL=$ac_cv_prog_DLLTOOL
9263 if test -n "$DLLTOOL"; then
9264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9265 $as_echo "$DLLTOOL" >&6; }
9266 else
9267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9268 $as_echo "no" >&6; }
9269 fi
9270
9271
9272 fi
9273 if test -z "$ac_cv_prog_DLLTOOL"; then
9274   ac_ct_DLLTOOL=$DLLTOOL
9275   # Extract the first word of "dlltool", so it can be a program name with args.
9276 set dummy dlltool; ac_word=$2
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9278 $as_echo_n "checking for $ac_word... " >&6; }
9279 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9280   $as_echo_n "(cached) " >&6
9281 else
9282   if test -n "$ac_ct_DLLTOOL"; then
9283   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9284 else
9285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9286 for as_dir in $PATH
9287 do
9288   IFS=$as_save_IFS
9289   test -z "$as_dir" && as_dir=.
9290     for ac_exec_ext in '' $ac_executable_extensions; do
9291   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9292     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9293     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9294     break 2
9295   fi
9296 done
9297   done
9298 IFS=$as_save_IFS
9299
9300 fi
9301 fi
9302 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9303 if test -n "$ac_ct_DLLTOOL"; then
9304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9305 $as_echo "$ac_ct_DLLTOOL" >&6; }
9306 else
9307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9308 $as_echo "no" >&6; }
9309 fi
9310
9311   if test "x$ac_ct_DLLTOOL" = x; then
9312     DLLTOOL="false"
9313   else
9314     case $cross_compiling:$ac_tool_warned in
9315 yes:)
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9317 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9318 ac_tool_warned=yes ;;
9319 esac
9320     DLLTOOL=$ac_ct_DLLTOOL
9321   fi
9322 else
9323   DLLTOOL="$ac_cv_prog_DLLTOOL"
9324 fi
9325
9326   if test -n "$ac_tool_prefix"; then
9327   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9328 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9330 $as_echo_n "checking for $ac_word... " >&6; }
9331 if ${ac_cv_prog_OBJDUMP+:} false; then :
9332   $as_echo_n "(cached) " >&6
9333 else
9334   if test -n "$OBJDUMP"; then
9335   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9336 else
9337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9338 for as_dir in $PATH
9339 do
9340   IFS=$as_save_IFS
9341   test -z "$as_dir" && as_dir=.
9342     for ac_exec_ext in '' $ac_executable_extensions; do
9343   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9344     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9345     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9346     break 2
9347   fi
9348 done
9349   done
9350 IFS=$as_save_IFS
9351
9352 fi
9353 fi
9354 OBJDUMP=$ac_cv_prog_OBJDUMP
9355 if test -n "$OBJDUMP"; then
9356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9357 $as_echo "$OBJDUMP" >&6; }
9358 else
9359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9360 $as_echo "no" >&6; }
9361 fi
9362
9363
9364 fi
9365 if test -z "$ac_cv_prog_OBJDUMP"; then
9366   ac_ct_OBJDUMP=$OBJDUMP
9367   # Extract the first word of "objdump", so it can be a program name with args.
9368 set dummy objdump; ac_word=$2
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9370 $as_echo_n "checking for $ac_word... " >&6; }
9371 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9372   $as_echo_n "(cached) " >&6
9373 else
9374   if test -n "$ac_ct_OBJDUMP"; then
9375   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9376 else
9377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9378 for as_dir in $PATH
9379 do
9380   IFS=$as_save_IFS
9381   test -z "$as_dir" && as_dir=.
9382     for ac_exec_ext in '' $ac_executable_extensions; do
9383   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9384     ac_cv_prog_ac_ct_OBJDUMP="objdump"
9385     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9386     break 2
9387   fi
9388 done
9389   done
9390 IFS=$as_save_IFS
9391
9392 fi
9393 fi
9394 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9395 if test -n "$ac_ct_OBJDUMP"; then
9396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9397 $as_echo "$ac_ct_OBJDUMP" >&6; }
9398 else
9399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9400 $as_echo "no" >&6; }
9401 fi
9402
9403   if test "x$ac_ct_OBJDUMP" = x; then
9404     OBJDUMP="false"
9405   else
9406     case $cross_compiling:$ac_tool_warned in
9407 yes:)
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9409 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9410 ac_tool_warned=yes ;;
9411 esac
9412     OBJDUMP=$ac_ct_OBJDUMP
9413   fi
9414 else
9415   OBJDUMP="$ac_cv_prog_OBJDUMP"
9416 fi
9417
9418   ;;
9419 esac
9420
9421 test -z "$AS" && AS=as
9422
9423
9424
9425
9426
9427 test -z "$DLLTOOL" && DLLTOOL=dlltool
9428
9429
9430
9431
9432
9433 test -z "$OBJDUMP" && OBJDUMP=objdump
9434
9435
9436
9437
9438 # Check whether --enable-static was given.
9439 if test "${enable_static+set}" = set; then :
9440   enableval=$enable_static; p=${PACKAGE-default}
9441     case $enableval in
9442     yes) enable_static=yes ;;
9443     no) enable_static=no ;;
9444     *)
9445      enable_static=no
9446       # Look at the argument we got.  We use all the common list separators.
9447       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9448       for pkg in $enableval; do
9449         IFS="$lt_save_ifs"
9450         if test "X$pkg" = "X$p"; then
9451           enable_static=yes
9452         fi
9453       done
9454       IFS="$lt_save_ifs"
9455       ;;
9456     esac
9457 else
9458   enable_static=no
9459 fi
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470         enable_dlopen=no
9471
9472
9473
9474             # Check whether --enable-shared was given.
9475 if test "${enable_shared+set}" = set; then :
9476   enableval=$enable_shared; p=${PACKAGE-default}
9477     case $enableval in
9478     yes) enable_shared=yes ;;
9479     no) enable_shared=no ;;
9480     *)
9481       enable_shared=no
9482       # Look at the argument we got.  We use all the common list separators.
9483       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9484       for pkg in $enableval; do
9485         IFS="$lt_save_ifs"
9486         if test "X$pkg" = "X$p"; then
9487           enable_shared=yes
9488         fi
9489       done
9490       IFS="$lt_save_ifs"
9491       ;;
9492     esac
9493 else
9494   enable_shared=yes
9495 fi
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507 # Check whether --with-pic was given.
9508 if test "${with_pic+set}" = set; then :
9509   withval=$with_pic; lt_p=${PACKAGE-default}
9510     case $withval in
9511     yes|no) pic_mode=$withval ;;
9512     *)
9513       pic_mode=default
9514       # Look at the argument we got.  We use all the common list separators.
9515       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9516       for lt_pkg in $withval; do
9517         IFS="$lt_save_ifs"
9518         if test "X$lt_pkg" = "X$lt_p"; then
9519           pic_mode=yes
9520         fi
9521       done
9522       IFS="$lt_save_ifs"
9523       ;;
9524     esac
9525 else
9526   pic_mode=default
9527 fi
9528
9529
9530 test -z "$pic_mode" && pic_mode=default
9531
9532
9533
9534
9535
9536
9537
9538   # Check whether --enable-fast-install was given.
9539 if test "${enable_fast_install+set}" = set; then :
9540   enableval=$enable_fast_install; p=${PACKAGE-default}
9541     case $enableval in
9542     yes) enable_fast_install=yes ;;
9543     no) enable_fast_install=no ;;
9544     *)
9545       enable_fast_install=no
9546       # Look at the argument we got.  We use all the common list separators.
9547       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9548       for pkg in $enableval; do
9549         IFS="$lt_save_ifs"
9550         if test "X$pkg" = "X$p"; then
9551           enable_fast_install=yes
9552         fi
9553       done
9554       IFS="$lt_save_ifs"
9555       ;;
9556     esac
9557 else
9558   enable_fast_install=yes
9559 fi
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571 # This can be used to rebuild libtool when needed
9572 LIBTOOL_DEPS="$ltmain"
9573
9574 # Always use our own libtool.
9575 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606 test -z "$LN_S" && LN_S="ln -s"
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621 if test -n "${ZSH_VERSION+set}" ; then
9622    setopt NO_GLOB_SUBST
9623 fi
9624
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9626 $as_echo_n "checking for objdir... " >&6; }
9627 if ${lt_cv_objdir+:} false; then :
9628   $as_echo_n "(cached) " >&6
9629 else
9630   rm -f .libs 2>/dev/null
9631 mkdir .libs 2>/dev/null
9632 if test -d .libs; then
9633   lt_cv_objdir=.libs
9634 else
9635   # MS-DOS does not allow filenames that begin with a dot.
9636   lt_cv_objdir=_libs
9637 fi
9638 rmdir .libs 2>/dev/null
9639 fi
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9641 $as_echo "$lt_cv_objdir" >&6; }
9642 objdir=$lt_cv_objdir
9643
9644
9645
9646
9647
9648 cat >>confdefs.h <<_ACEOF
9649 #define LT_OBJDIR "$lt_cv_objdir/"
9650 _ACEOF
9651
9652
9653
9654
9655 case $host_os in
9656 aix3*)
9657   # AIX sometimes has problems with the GCC collect2 program.  For some
9658   # reason, if we set the COLLECT_NAMES environment variable, the problems
9659   # vanish in a puff of smoke.
9660   if test "X${COLLECT_NAMES+set}" != Xset; then
9661     COLLECT_NAMES=
9662     export COLLECT_NAMES
9663   fi
9664   ;;
9665 esac
9666
9667 # Global variables:
9668 ofile=libtool
9669 can_build_shared=yes
9670
9671 # All known linkers require a `.a' archive for static linking (except MSVC,
9672 # which needs '.lib').
9673 libext=a
9674
9675 with_gnu_ld="$lt_cv_prog_gnu_ld"
9676
9677 old_CC="$CC"
9678 old_CFLAGS="$CFLAGS"
9679
9680 # Set sane defaults for various variables
9681 test -z "$CC" && CC=cc
9682 test -z "$LTCC" && LTCC=$CC
9683 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9684 test -z "$LD" && LD=ld
9685 test -z "$ac_objext" && ac_objext=o
9686
9687 for cc_temp in $compiler""; do
9688   case $cc_temp in
9689     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9690     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9691     \-*) ;;
9692     *) break;;
9693   esac
9694 done
9695 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9696
9697
9698 # Only perform the check for file, if the check method requires it
9699 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9700 case $deplibs_check_method in
9701 file_magic*)
9702   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9703     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9704 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9705 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9706   $as_echo_n "(cached) " >&6
9707 else
9708   case $MAGIC_CMD in
9709 [\\/*] |  ?:[\\/]*)
9710   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9711   ;;
9712 *)
9713   lt_save_MAGIC_CMD="$MAGIC_CMD"
9714   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9715   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9716   for ac_dir in $ac_dummy; do
9717     IFS="$lt_save_ifs"
9718     test -z "$ac_dir" && ac_dir=.
9719     if test -f $ac_dir/${ac_tool_prefix}file; then
9720       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9721       if test -n "$file_magic_test_file"; then
9722         case $deplibs_check_method in
9723         "file_magic "*)
9724           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9725           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9726           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9727             $EGREP "$file_magic_regex" > /dev/null; then
9728             :
9729           else
9730             cat <<_LT_EOF 1>&2
9731
9732 *** Warning: the command libtool uses to detect shared libraries,
9733 *** $file_magic_cmd, produces output that libtool cannot recognize.
9734 *** The result is that libtool may fail to recognize shared libraries
9735 *** as such.  This will affect the creation of libtool libraries that
9736 *** depend on shared libraries, but programs linked with such libtool
9737 *** libraries will work regardless of this problem.  Nevertheless, you
9738 *** may want to report the problem to your system manager and/or to
9739 *** bug-libtool@gnu.org
9740
9741 _LT_EOF
9742           fi ;;
9743         esac
9744       fi
9745       break
9746     fi
9747   done
9748   IFS="$lt_save_ifs"
9749   MAGIC_CMD="$lt_save_MAGIC_CMD"
9750   ;;
9751 esac
9752 fi
9753
9754 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9755 if test -n "$MAGIC_CMD"; then
9756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9757 $as_echo "$MAGIC_CMD" >&6; }
9758 else
9759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9760 $as_echo "no" >&6; }
9761 fi
9762
9763
9764
9765
9766
9767 if test -z "$lt_cv_path_MAGIC_CMD"; then
9768   if test -n "$ac_tool_prefix"; then
9769     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9770 $as_echo_n "checking for file... " >&6; }
9771 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9772   $as_echo_n "(cached) " >&6
9773 else
9774   case $MAGIC_CMD in
9775 [\\/*] |  ?:[\\/]*)
9776   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9777   ;;
9778 *)
9779   lt_save_MAGIC_CMD="$MAGIC_CMD"
9780   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9781   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9782   for ac_dir in $ac_dummy; do
9783     IFS="$lt_save_ifs"
9784     test -z "$ac_dir" && ac_dir=.
9785     if test -f $ac_dir/file; then
9786       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9787       if test -n "$file_magic_test_file"; then
9788         case $deplibs_check_method in
9789         "file_magic "*)
9790           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9791           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9792           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9793             $EGREP "$file_magic_regex" > /dev/null; then
9794             :
9795           else
9796             cat <<_LT_EOF 1>&2
9797
9798 *** Warning: the command libtool uses to detect shared libraries,
9799 *** $file_magic_cmd, produces output that libtool cannot recognize.
9800 *** The result is that libtool may fail to recognize shared libraries
9801 *** as such.  This will affect the creation of libtool libraries that
9802 *** depend on shared libraries, but programs linked with such libtool
9803 *** libraries will work regardless of this problem.  Nevertheless, you
9804 *** may want to report the problem to your system manager and/or to
9805 *** bug-libtool@gnu.org
9806
9807 _LT_EOF
9808           fi ;;
9809         esac
9810       fi
9811       break
9812     fi
9813   done
9814   IFS="$lt_save_ifs"
9815   MAGIC_CMD="$lt_save_MAGIC_CMD"
9816   ;;
9817 esac
9818 fi
9819
9820 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9821 if test -n "$MAGIC_CMD"; then
9822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9823 $as_echo "$MAGIC_CMD" >&6; }
9824 else
9825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9826 $as_echo "no" >&6; }
9827 fi
9828
9829
9830   else
9831     MAGIC_CMD=:
9832   fi
9833 fi
9834
9835   fi
9836   ;;
9837 esac
9838
9839 # Use C for the default configuration in the libtool script
9840
9841 lt_save_CC="$CC"
9842 ac_ext=c
9843 ac_cpp='$CPP $CPPFLAGS'
9844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9847
9848
9849 # Source file extension for C test sources.
9850 ac_ext=c
9851
9852 # Object file extension for compiled C test sources.
9853 objext=o
9854 objext=$objext
9855
9856 # Code to be used in simple compile tests
9857 lt_simple_compile_test_code="int some_variable = 0;"
9858
9859 # Code to be used in simple link tests
9860 lt_simple_link_test_code='int main(){return(0);}'
9861
9862
9863
9864
9865
9866
9867
9868 # If no C compiler was specified, use CC.
9869 LTCC=${LTCC-"$CC"}
9870
9871 # If no C compiler flags were specified, use CFLAGS.
9872 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9873
9874 # Allow CC to be a program name with arguments.
9875 compiler=$CC
9876
9877 # Save the default compiler, since it gets overwritten when the other
9878 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9879 compiler_DEFAULT=$CC
9880
9881 # save warnings/boilerplate of simple test code
9882 ac_outfile=conftest.$ac_objext
9883 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9884 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9885 _lt_compiler_boilerplate=`cat conftest.err`
9886 $RM conftest*
9887
9888 ac_outfile=conftest.$ac_objext
9889 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9890 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9891 _lt_linker_boilerplate=`cat conftest.err`
9892 $RM -r conftest*
9893
9894
9895 ## CAVEAT EMPTOR:
9896 ## There is no encapsulation within the following macros, do not change
9897 ## the running order or otherwise move them around unless you know exactly
9898 ## what you are doing...
9899 if test -n "$compiler"; then
9900
9901 lt_prog_compiler_no_builtin_flag=
9902
9903 if test "$GCC" = yes; then
9904   case $cc_basename in
9905   nvcc*)
9906     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9907   *)
9908     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9909   esac
9910
9911   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9912 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9913 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9914   $as_echo_n "(cached) " >&6
9915 else
9916   lt_cv_prog_compiler_rtti_exceptions=no
9917    ac_outfile=conftest.$ac_objext
9918    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9919    lt_compiler_flag="-fno-rtti -fno-exceptions"
9920    # Insert the option either (1) after the last *FLAGS variable, or
9921    # (2) before a word containing "conftest.", or (3) at the end.
9922    # Note that $ac_compile itself does not contain backslashes and begins
9923    # with a dollar sign (not a hyphen), so the echo should work correctly.
9924    # The option is referenced via a variable to avoid confusing sed.
9925    lt_compile=`echo "$ac_compile" | $SED \
9926    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9927    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9928    -e 's:$: $lt_compiler_flag:'`
9929    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9930    (eval "$lt_compile" 2>conftest.err)
9931    ac_status=$?
9932    cat conftest.err >&5
9933    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934    if (exit $ac_status) && test -s "$ac_outfile"; then
9935      # The compiler can only warn and ignore the option if not recognized
9936      # So say no if there are warnings other than the usual output.
9937      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9938      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9939      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9940        lt_cv_prog_compiler_rtti_exceptions=yes
9941      fi
9942    fi
9943    $RM conftest*
9944
9945 fi
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9947 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9948
9949 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9950     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9951 else
9952     :
9953 fi
9954
9955 fi
9956
9957
9958
9959
9960
9961
9962   lt_prog_compiler_wl=
9963 lt_prog_compiler_pic=
9964 lt_prog_compiler_static=
9965
9966
9967   if test "$GCC" = yes; then
9968     lt_prog_compiler_wl='-Wl,'
9969     lt_prog_compiler_static='-static'
9970
9971     case $host_os in
9972       aix*)
9973       # All AIX code is PIC.
9974       if test "$host_cpu" = ia64; then
9975         # AIX 5 now supports IA64 processor
9976         lt_prog_compiler_static='-Bstatic'
9977       fi
9978       ;;
9979
9980     amigaos*)
9981       case $host_cpu in
9982       powerpc)
9983             # see comment about AmigaOS4 .so support
9984             lt_prog_compiler_pic='-fPIC'
9985         ;;
9986       m68k)
9987             # FIXME: we need at least 68020 code to build shared libraries, but
9988             # adding the `-m68020' flag to GCC prevents building anything better,
9989             # like `-m68040'.
9990             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9991         ;;
9992       esac
9993       ;;
9994
9995     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9996       # PIC is the default for these OSes.
9997       ;;
9998
9999     mingw* | cygwin* | pw32* | os2* | cegcc*)
10000       # This hack is so that the source file can tell whether it is being
10001       # built for inclusion in a dll (and should export symbols for example).
10002       # Although the cygwin gcc ignores -fPIC, still need this for old-style
10003       # (--disable-auto-import) libraries
10004       lt_prog_compiler_pic='-DDLL_EXPORT'
10005       ;;
10006
10007     darwin* | rhapsody*)
10008       # PIC is the default on this platform
10009       # Common symbols not allowed in MH_DYLIB files
10010       lt_prog_compiler_pic='-fno-common'
10011       ;;
10012
10013     haiku*)
10014       # PIC is the default for Haiku.
10015       # The "-static" flag exists, but is broken.
10016       lt_prog_compiler_static=
10017       ;;
10018
10019     hpux*)
10020       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10021       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10022       # sets the default TLS model and affects inlining.
10023       case $host_cpu in
10024       hppa*64*)
10025         # +Z the default
10026         ;;
10027       *)
10028         lt_prog_compiler_pic='-fPIC'
10029         ;;
10030       esac
10031       ;;
10032
10033     interix[3-9]*)
10034       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10035       # Instead, we relocate shared libraries at runtime.
10036       ;;
10037
10038     msdosdjgpp*)
10039       # Just because we use GCC doesn't mean we suddenly get shared libraries
10040       # on systems that don't support them.
10041       lt_prog_compiler_can_build_shared=no
10042       enable_shared=no
10043       ;;
10044
10045     *nto* | *qnx*)
10046       # QNX uses GNU C++, but need to define -shared option too, otherwise
10047       # it will coredump.
10048       lt_prog_compiler_pic='-fPIC -shared'
10049       ;;
10050
10051     sysv4*MP*)
10052       if test -d /usr/nec; then
10053         lt_prog_compiler_pic=-Kconform_pic
10054       fi
10055       ;;
10056
10057     *)
10058       lt_prog_compiler_pic='-fPIC'
10059       ;;
10060     esac
10061
10062     case $cc_basename in
10063     nvcc*) # Cuda Compiler Driver 2.2
10064       lt_prog_compiler_wl='-Xlinker '
10065       if test -n "$lt_prog_compiler_pic"; then
10066         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10067       fi
10068       ;;
10069     esac
10070   else
10071     # PORTME Check for flag to pass linker flags through the system compiler.
10072     case $host_os in
10073     aix*)
10074       lt_prog_compiler_wl='-Wl,'
10075       if test "$host_cpu" = ia64; then
10076         # AIX 5 now supports IA64 processor
10077         lt_prog_compiler_static='-Bstatic'
10078       else
10079         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10080       fi
10081       ;;
10082
10083     mingw* | cygwin* | pw32* | os2* | cegcc*)
10084       # This hack is so that the source file can tell whether it is being
10085       # built for inclusion in a dll (and should export symbols for example).
10086       lt_prog_compiler_pic='-DDLL_EXPORT'
10087       ;;
10088
10089     hpux9* | hpux10* | hpux11*)
10090       lt_prog_compiler_wl='-Wl,'
10091       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10092       # not for PA HP-UX.
10093       case $host_cpu in
10094       hppa*64*|ia64*)
10095         # +Z the default
10096         ;;
10097       *)
10098         lt_prog_compiler_pic='+Z'
10099         ;;
10100       esac
10101       # Is there a better lt_prog_compiler_static that works with the bundled CC?
10102       lt_prog_compiler_static='${wl}-a ${wl}archive'
10103       ;;
10104
10105     irix5* | irix6* | nonstopux*)
10106       lt_prog_compiler_wl='-Wl,'
10107       # PIC (with -KPIC) is the default.
10108       lt_prog_compiler_static='-non_shared'
10109       ;;
10110
10111     linux* | k*bsd*-gnu | kopensolaris*-gnu)
10112       case $cc_basename in
10113       # old Intel for x86_64 which still supported -KPIC.
10114       ecc*)
10115         lt_prog_compiler_wl='-Wl,'
10116         lt_prog_compiler_pic='-KPIC'
10117         lt_prog_compiler_static='-static'
10118         ;;
10119       # icc used to be incompatible with GCC.
10120       # ICC 10 doesn't accept -KPIC any more.
10121       icc* | ifort*)
10122         lt_prog_compiler_wl='-Wl,'
10123         lt_prog_compiler_pic='-fPIC'
10124         lt_prog_compiler_static='-static'
10125         ;;
10126       # Lahey Fortran 8.1.
10127       lf95*)
10128         lt_prog_compiler_wl='-Wl,'
10129         lt_prog_compiler_pic='--shared'
10130         lt_prog_compiler_static='--static'
10131         ;;
10132       nagfor*)
10133         # NAG Fortran compiler
10134         lt_prog_compiler_wl='-Wl,-Wl,,'
10135         lt_prog_compiler_pic='-PIC'
10136         lt_prog_compiler_static='-Bstatic'
10137         ;;
10138       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10139         # Portland Group compilers (*not* the Pentium gcc compiler,
10140         # which looks to be a dead project)
10141         lt_prog_compiler_wl='-Wl,'
10142         lt_prog_compiler_pic='-fpic'
10143         lt_prog_compiler_static='-Bstatic'
10144         ;;
10145       ccc*)
10146         lt_prog_compiler_wl='-Wl,'
10147         # All Alpha code is PIC.
10148         lt_prog_compiler_static='-non_shared'
10149         ;;
10150       xl* | bgxl* | bgf* | mpixl*)
10151         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10152         lt_prog_compiler_wl='-Wl,'
10153         lt_prog_compiler_pic='-qpic'
10154         lt_prog_compiler_static='-qstaticlink'
10155         ;;
10156       *)
10157         case `$CC -V 2>&1 | sed 5q` in
10158         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10159           # Sun Fortran 8.3 passes all unrecognized flags to the linker
10160           lt_prog_compiler_pic='-KPIC'
10161           lt_prog_compiler_static='-Bstatic'
10162           lt_prog_compiler_wl=''
10163           ;;
10164         *Sun\ F* | *Sun*Fortran*)
10165           lt_prog_compiler_pic='-KPIC'
10166           lt_prog_compiler_static='-Bstatic'
10167           lt_prog_compiler_wl='-Qoption ld '
10168           ;;
10169         *Sun\ C*)
10170           # Sun C 5.9
10171           lt_prog_compiler_pic='-KPIC'
10172           lt_prog_compiler_static='-Bstatic'
10173           lt_prog_compiler_wl='-Wl,'
10174           ;;
10175         *Intel*\ [CF]*Compiler*)
10176           lt_prog_compiler_wl='-Wl,'
10177           lt_prog_compiler_pic='-fPIC'
10178           lt_prog_compiler_static='-static'
10179           ;;
10180         *Portland\ Group*)
10181           lt_prog_compiler_wl='-Wl,'
10182           lt_prog_compiler_pic='-fpic'
10183           lt_prog_compiler_static='-Bstatic'
10184           ;;
10185         esac
10186         ;;
10187       esac
10188       ;;
10189
10190     newsos6)
10191       lt_prog_compiler_pic='-KPIC'
10192       lt_prog_compiler_static='-Bstatic'
10193       ;;
10194
10195     *nto* | *qnx*)
10196       # QNX uses GNU C++, but need to define -shared option too, otherwise
10197       # it will coredump.
10198       lt_prog_compiler_pic='-fPIC -shared'
10199       ;;
10200
10201     osf3* | osf4* | osf5*)
10202       lt_prog_compiler_wl='-Wl,'
10203       # All OSF/1 code is PIC.
10204       lt_prog_compiler_static='-non_shared'
10205       ;;
10206
10207     rdos*)
10208       lt_prog_compiler_static='-non_shared'
10209       ;;
10210
10211     solaris*)
10212       lt_prog_compiler_pic='-KPIC'
10213       lt_prog_compiler_static='-Bstatic'
10214       case $cc_basename in
10215       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10216         lt_prog_compiler_wl='-Qoption ld ';;
10217       *)
10218         lt_prog_compiler_wl='-Wl,';;
10219       esac
10220       ;;
10221
10222     sunos4*)
10223       lt_prog_compiler_wl='-Qoption ld '
10224       lt_prog_compiler_pic='-PIC'
10225       lt_prog_compiler_static='-Bstatic'
10226       ;;
10227
10228     sysv4 | sysv4.2uw2* | sysv4.3*)
10229       lt_prog_compiler_wl='-Wl,'
10230       lt_prog_compiler_pic='-KPIC'
10231       lt_prog_compiler_static='-Bstatic'
10232       ;;
10233
10234     sysv4*MP*)
10235       if test -d /usr/nec ;then
10236         lt_prog_compiler_pic='-Kconform_pic'
10237         lt_prog_compiler_static='-Bstatic'
10238       fi
10239       ;;
10240
10241     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10242       lt_prog_compiler_wl='-Wl,'
10243       lt_prog_compiler_pic='-KPIC'
10244       lt_prog_compiler_static='-Bstatic'
10245       ;;
10246
10247     unicos*)
10248       lt_prog_compiler_wl='-Wl,'
10249       lt_prog_compiler_can_build_shared=no
10250       ;;
10251
10252     uts4*)
10253       lt_prog_compiler_pic='-pic'
10254       lt_prog_compiler_static='-Bstatic'
10255       ;;
10256
10257     *)
10258       lt_prog_compiler_can_build_shared=no
10259       ;;
10260     esac
10261   fi
10262
10263 case $host_os in
10264   # For platforms which do not support PIC, -DPIC is meaningless:
10265   *djgpp*)
10266     lt_prog_compiler_pic=
10267     ;;
10268   *)
10269     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10270     ;;
10271 esac
10272
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10274 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10275 if ${lt_cv_prog_compiler_pic+:} false; then :
10276   $as_echo_n "(cached) " >&6
10277 else
10278   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10279 fi
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10281 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10282 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10283
10284 #
10285 # Check to make sure the PIC flag actually works.
10286 #
10287 if test -n "$lt_prog_compiler_pic"; then
10288   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10289 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10290 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10291   $as_echo_n "(cached) " >&6
10292 else
10293   lt_cv_prog_compiler_pic_works=no
10294    ac_outfile=conftest.$ac_objext
10295    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10296    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10297    # Insert the option either (1) after the last *FLAGS variable, or
10298    # (2) before a word containing "conftest.", or (3) at the end.
10299    # Note that $ac_compile itself does not contain backslashes and begins
10300    # with a dollar sign (not a hyphen), so the echo should work correctly.
10301    # The option is referenced via a variable to avoid confusing sed.
10302    lt_compile=`echo "$ac_compile" | $SED \
10303    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10304    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10305    -e 's:$: $lt_compiler_flag:'`
10306    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10307    (eval "$lt_compile" 2>conftest.err)
10308    ac_status=$?
10309    cat conftest.err >&5
10310    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10311    if (exit $ac_status) && test -s "$ac_outfile"; then
10312      # The compiler can only warn and ignore the option if not recognized
10313      # So say no if there are warnings other than the usual output.
10314      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10315      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10316      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10317        lt_cv_prog_compiler_pic_works=yes
10318      fi
10319    fi
10320    $RM conftest*
10321
10322 fi
10323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10324 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10325
10326 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10327     case $lt_prog_compiler_pic in
10328      "" | " "*) ;;
10329      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10330      esac
10331 else
10332     lt_prog_compiler_pic=
10333      lt_prog_compiler_can_build_shared=no
10334 fi
10335
10336 fi
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348 #
10349 # Check to make sure the static flag actually works.
10350 #
10351 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10353 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10354 if ${lt_cv_prog_compiler_static_works+:} false; then :
10355   $as_echo_n "(cached) " >&6
10356 else
10357   lt_cv_prog_compiler_static_works=no
10358    save_LDFLAGS="$LDFLAGS"
10359    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10360    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10361    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10362      # The linker can only warn and ignore the option if not recognized
10363      # So say no if there are warnings
10364      if test -s conftest.err; then
10365        # Append any errors to the config.log.
10366        cat conftest.err 1>&5
10367        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10368        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10369        if diff conftest.exp conftest.er2 >/dev/null; then
10370          lt_cv_prog_compiler_static_works=yes
10371        fi
10372      else
10373        lt_cv_prog_compiler_static_works=yes
10374      fi
10375    fi
10376    $RM -r conftest*
10377    LDFLAGS="$save_LDFLAGS"
10378
10379 fi
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10381 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10382
10383 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10384     :
10385 else
10386     lt_prog_compiler_static=
10387 fi
10388
10389
10390
10391
10392
10393
10394
10395   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10396 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10397 if ${lt_cv_prog_compiler_c_o+:} false; then :
10398   $as_echo_n "(cached) " >&6
10399 else
10400   lt_cv_prog_compiler_c_o=no
10401    $RM -r conftest 2>/dev/null
10402    mkdir conftest
10403    cd conftest
10404    mkdir out
10405    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10406
10407    lt_compiler_flag="-o out/conftest2.$ac_objext"
10408    # Insert the option either (1) after the last *FLAGS variable, or
10409    # (2) before a word containing "conftest.", or (3) at the end.
10410    # Note that $ac_compile itself does not contain backslashes and begins
10411    # with a dollar sign (not a hyphen), so the echo should work correctly.
10412    lt_compile=`echo "$ac_compile" | $SED \
10413    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10414    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10415    -e 's:$: $lt_compiler_flag:'`
10416    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10417    (eval "$lt_compile" 2>out/conftest.err)
10418    ac_status=$?
10419    cat out/conftest.err >&5
10420    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10422    then
10423      # The compiler can only warn and ignore the option if not recognized
10424      # So say no if there are warnings
10425      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10426      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10427      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10428        lt_cv_prog_compiler_c_o=yes
10429      fi
10430    fi
10431    chmod u+w . 2>&5
10432    $RM conftest*
10433    # SGI C++ compiler will create directory out/ii_files/ for
10434    # template instantiation
10435    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10436    $RM out/* && rmdir out
10437    cd ..
10438    $RM -r conftest
10439    $RM conftest*
10440
10441 fi
10442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10443 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10444
10445
10446
10447
10448
10449
10450   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10451 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10452 if ${lt_cv_prog_compiler_c_o+:} false; then :
10453   $as_echo_n "(cached) " >&6
10454 else
10455   lt_cv_prog_compiler_c_o=no
10456    $RM -r conftest 2>/dev/null
10457    mkdir conftest
10458    cd conftest
10459    mkdir out
10460    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10461
10462    lt_compiler_flag="-o out/conftest2.$ac_objext"
10463    # Insert the option either (1) after the last *FLAGS variable, or
10464    # (2) before a word containing "conftest.", or (3) at the end.
10465    # Note that $ac_compile itself does not contain backslashes and begins
10466    # with a dollar sign (not a hyphen), so the echo should work correctly.
10467    lt_compile=`echo "$ac_compile" | $SED \
10468    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10469    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10470    -e 's:$: $lt_compiler_flag:'`
10471    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10472    (eval "$lt_compile" 2>out/conftest.err)
10473    ac_status=$?
10474    cat out/conftest.err >&5
10475    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10477    then
10478      # The compiler can only warn and ignore the option if not recognized
10479      # So say no if there are warnings
10480      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10481      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10482      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10483        lt_cv_prog_compiler_c_o=yes
10484      fi
10485    fi
10486    chmod u+w . 2>&5
10487    $RM conftest*
10488    # SGI C++ compiler will create directory out/ii_files/ for
10489    # template instantiation
10490    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10491    $RM out/* && rmdir out
10492    cd ..
10493    $RM -r conftest
10494    $RM conftest*
10495
10496 fi
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10498 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10499
10500
10501
10502
10503 hard_links="nottested"
10504 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10505   # do not overwrite the value of need_locks provided by the user
10506   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10507 $as_echo_n "checking if we can lock with hard links... " >&6; }
10508   hard_links=yes
10509   $RM conftest*
10510   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10511   touch conftest.a
10512   ln conftest.a conftest.b 2>&5 || hard_links=no
10513   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10515 $as_echo "$hard_links" >&6; }
10516   if test "$hard_links" = no; then
10517     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10518 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10519     need_locks=warn
10520   fi
10521 else
10522   need_locks=no
10523 fi
10524
10525
10526
10527
10528
10529
10530   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10531 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10532
10533   runpath_var=
10534   allow_undefined_flag=
10535   always_export_symbols=no
10536   archive_cmds=
10537   archive_expsym_cmds=
10538   compiler_needs_object=no
10539   enable_shared_with_static_runtimes=no
10540   export_dynamic_flag_spec=
10541   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10542   hardcode_automatic=no
10543   hardcode_direct=no
10544   hardcode_direct_absolute=no
10545   hardcode_libdir_flag_spec=
10546   hardcode_libdir_separator=
10547   hardcode_minus_L=no
10548   hardcode_shlibpath_var=unsupported
10549   inherit_rpath=no
10550   link_all_deplibs=unknown
10551   module_cmds=
10552   module_expsym_cmds=
10553   old_archive_from_new_cmds=
10554   old_archive_from_expsyms_cmds=
10555   thread_safe_flag_spec=
10556   whole_archive_flag_spec=
10557   # include_expsyms should be a list of space-separated symbols to be *always*
10558   # included in the symbol list
10559   include_expsyms=
10560   # exclude_expsyms can be an extended regexp of symbols to exclude
10561   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10562   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10563   # as well as any symbol that contains `d'.
10564   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10565   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10566   # platforms (ab)use it in PIC code, but their linkers get confused if
10567   # the symbol is explicitly referenced.  Since portable code cannot
10568   # rely on this symbol name, it's probably fine to never include it in
10569   # preloaded symbol tables.
10570   # Exclude shared library initialization/finalization symbols.
10571   extract_expsyms_cmds=
10572
10573   case $host_os in
10574   cygwin* | mingw* | pw32* | cegcc*)
10575     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10576     # When not using gcc, we currently assume that we are using
10577     # Microsoft Visual C++.
10578     if test "$GCC" != yes; then
10579       with_gnu_ld=no
10580     fi
10581     ;;
10582   interix*)
10583     # we just hope/assume this is gcc and not c89 (= MSVC++)
10584     with_gnu_ld=yes
10585     ;;
10586   openbsd*)
10587     with_gnu_ld=no
10588     ;;
10589   linux* | k*bsd*-gnu | gnu*)
10590     link_all_deplibs=no
10591     ;;
10592   esac
10593
10594   ld_shlibs=yes
10595
10596   # On some targets, GNU ld is compatible enough with the native linker
10597   # that we're better off using the native interface for both.
10598   lt_use_gnu_ld_interface=no
10599   if test "$with_gnu_ld" = yes; then
10600     case $host_os in
10601       aix*)
10602         # The AIX port of GNU ld has always aspired to compatibility
10603         # with the native linker.  However, as the warning in the GNU ld
10604         # block says, versions before 2.19.5* couldn't really create working
10605         # shared libraries, regardless of the interface used.
10606         case `$LD -v 2>&1` in
10607           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10608           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10609           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10610           *)
10611             lt_use_gnu_ld_interface=yes
10612             ;;
10613         esac
10614         ;;
10615       *)
10616         lt_use_gnu_ld_interface=yes
10617         ;;
10618     esac
10619   fi
10620
10621   if test "$lt_use_gnu_ld_interface" = yes; then
10622     # If archive_cmds runs LD, not CC, wlarc should be empty
10623     wlarc='${wl}'
10624
10625     # Set some defaults for GNU ld with shared library support. These
10626     # are reset later if shared libraries are not supported. Putting them
10627     # here allows them to be overridden if necessary.
10628     runpath_var=LD_RUN_PATH
10629     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10630     export_dynamic_flag_spec='${wl}--export-dynamic'
10631     # ancient GNU ld didn't support --whole-archive et. al.
10632     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10633       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10634     else
10635       whole_archive_flag_spec=
10636     fi
10637     supports_anon_versioning=no
10638     case `$LD -v 2>&1` in
10639       *GNU\ gold*) supports_anon_versioning=yes ;;
10640       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10641       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10642       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10643       *\ 2.11.*) ;; # other 2.11 versions
10644       *) supports_anon_versioning=yes ;;
10645     esac
10646
10647     # See if GNU ld supports shared libraries.
10648     case $host_os in
10649     aix[3-9]*)
10650       # On AIX/PPC, the GNU linker is very broken
10651       if test "$host_cpu" != ia64; then
10652         ld_shlibs=no
10653         cat <<_LT_EOF 1>&2
10654
10655 *** Warning: the GNU linker, at least up to release 2.19, is reported
10656 *** to be unable to reliably create shared libraries on AIX.
10657 *** Therefore, libtool is disabling shared libraries support.  If you
10658 *** really care for shared libraries, you may want to install binutils
10659 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10660 *** You will then need to restart the configuration process.
10661
10662 _LT_EOF
10663       fi
10664       ;;
10665
10666     amigaos*)
10667       case $host_cpu in
10668       powerpc)
10669             # see comment about AmigaOS4 .so support
10670             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10671             archive_expsym_cmds=''
10672         ;;
10673       m68k)
10674             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)'
10675             hardcode_libdir_flag_spec='-L$libdir'
10676             hardcode_minus_L=yes
10677         ;;
10678       esac
10679       ;;
10680
10681     beos*)
10682       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10683         allow_undefined_flag=unsupported
10684         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10685         # support --undefined.  This deserves some investigation.  FIXME
10686         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10687       else
10688         ld_shlibs=no
10689       fi
10690       ;;
10691
10692     cygwin* | mingw* | pw32* | cegcc*)
10693       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10694       # as there is no search path for DLLs.
10695       hardcode_libdir_flag_spec='-L$libdir'
10696       export_dynamic_flag_spec='${wl}--export-all-symbols'
10697       allow_undefined_flag=unsupported
10698       always_export_symbols=no
10699       enable_shared_with_static_runtimes=yes
10700       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'
10701       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10702
10703       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10704         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10705         # If the export-symbols file already is a .def file (1st line
10706         # is EXPORTS), use it as is; otherwise, prepend...
10707         archive_expsym_cmds='if test "x`$SED \"$sed_uncomment_deffile\" $export_symbols | $SED 1q`" = xEXPORTS; then
10708           cp $export_symbols $output_objdir/$soname.def;
10709         else
10710           echo EXPORTS > $output_objdir/$soname.def;
10711           cat $export_symbols >> $output_objdir/$soname.def;
10712         fi~
10713         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10714       else
10715         ld_shlibs=no
10716       fi
10717       ;;
10718
10719     haiku*)
10720       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10721       link_all_deplibs=yes
10722       ;;
10723
10724     interix[3-9]*)
10725       hardcode_direct=no
10726       hardcode_shlibpath_var=no
10727       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10728       export_dynamic_flag_spec='${wl}-E'
10729       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10730       # Instead, shared libraries are loaded at an image base (0x10000000 by
10731       # default) and relocated if they conflict, which is a slow very memory
10732       # consuming and fragmenting process.  To avoid this, we pick a random,
10733       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10734       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10735       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10736       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'
10737       ;;
10738
10739     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10740       tmp_diet=no
10741       if test "$host_os" = linux-dietlibc; then
10742         case $cc_basename in
10743           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10744         esac
10745       fi
10746       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10747          && test "$tmp_diet" = no
10748       then
10749         tmp_addflag=' $pic_flag'
10750         tmp_sharedflag='-shared'
10751         case $cc_basename,$host_cpu in
10752         pgcc*)                          # Portland Group C compiler
10753           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'
10754           tmp_addflag=' $pic_flag'
10755           ;;
10756         pgf77* | pgf90* | pgf95* | pgfortran*)
10757                                         # Portland Group f77 and f90 compilers
10758           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'
10759           tmp_addflag=' $pic_flag -Mnomain' ;;
10760         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10761           tmp_addflag=' -i_dynamic' ;;
10762         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10763           tmp_addflag=' -i_dynamic -nofor_main' ;;
10764         ifc* | ifort*)                  # Intel Fortran compiler
10765           tmp_addflag=' -nofor_main' ;;
10766         lf95*)                          # Lahey Fortran 8.1
10767           whole_archive_flag_spec=
10768           tmp_sharedflag='--shared' ;;
10769         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10770           tmp_sharedflag='-qmkshrobj'
10771           tmp_addflag= ;;
10772         nvcc*)  # Cuda Compiler Driver 2.2
10773           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'
10774           compiler_needs_object=yes
10775           ;;
10776         esac
10777         case `$CC -V 2>&1 | sed 5q` in
10778         *Sun\ C*)                       # Sun C 5.9
10779           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'
10780           compiler_needs_object=yes
10781           tmp_sharedflag='-G' ;;
10782         *Sun\ F*)                       # Sun Fortran 8.3
10783           tmp_sharedflag='-G' ;;
10784         esac
10785         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10786
10787         if test "x$supports_anon_versioning" = xyes; then
10788           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10789             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10790             echo "local: *; };" >> $output_objdir/$libname.ver~
10791             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10792         fi
10793
10794         case $cc_basename in
10795         xlf* | bgf* | bgxlf* | mpixlf*)
10796           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10797           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10798           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10799           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10800           if test "x$supports_anon_versioning" = xyes; then
10801             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10802               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10803               echo "local: *; };" >> $output_objdir/$libname.ver~
10804               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10805           fi
10806           ;;
10807         esac
10808       else
10809         ld_shlibs=no
10810       fi
10811       ;;
10812
10813     netbsd* | netbsdelf*-gnu)
10814       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10815         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10816         wlarc=
10817       else
10818         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10819         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10820       fi
10821       ;;
10822
10823     solaris*)
10824       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10825         ld_shlibs=no
10826         cat <<_LT_EOF 1>&2
10827
10828 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10829 *** create shared libraries on Solaris systems.  Therefore, libtool
10830 *** is disabling shared libraries support.  We urge you to upgrade GNU
10831 *** binutils to release 2.9.1 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       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10837         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10838         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10839       else
10840         ld_shlibs=no
10841       fi
10842       ;;
10843
10844     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10845       case `$LD -v 2>&1` in
10846         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10847         ld_shlibs=no
10848         cat <<_LT_EOF 1>&2
10849
10850 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10851 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10852 *** is disabling shared libraries support.  We urge you to upgrade GNU
10853 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10854 *** your PATH or compiler configuration so that the native linker is
10855 *** used, and then restart.
10856
10857 _LT_EOF
10858         ;;
10859         *)
10860           # For security reasons, it is highly recommended that you always
10861           # use absolute paths for naming shared libraries, and exclude the
10862           # DT_RUNPATH tag from executables and libraries.  But doing so
10863           # requires that you compile everything twice, which is a pain.
10864           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10865             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10866             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10867             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10868           else
10869             ld_shlibs=no
10870           fi
10871         ;;
10872       esac
10873       ;;
10874
10875     sunos4*)
10876       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10877       wlarc=
10878       hardcode_direct=yes
10879       hardcode_shlibpath_var=no
10880       ;;
10881
10882     *)
10883       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10884         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10885         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10886       else
10887         ld_shlibs=no
10888       fi
10889       ;;
10890     esac
10891
10892     if test "$ld_shlibs" = no; then
10893       runpath_var=
10894       hardcode_libdir_flag_spec=
10895       export_dynamic_flag_spec=
10896       whole_archive_flag_spec=
10897     fi
10898   else
10899     # PORTME fill in a description of your system's linker (not GNU ld)
10900     case $host_os in
10901     aix3*)
10902       allow_undefined_flag=unsupported
10903       always_export_symbols=yes
10904       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'
10905       # Note: this linker hardcodes the directories in LIBPATH if there
10906       # are no directories specified by -L.
10907       hardcode_minus_L=yes
10908       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10909         # Neither direct hardcoding nor static linking is supported with a
10910         # broken collect2.
10911         hardcode_direct=unsupported
10912       fi
10913       ;;
10914
10915     aix[4-9]*)
10916       if test "$host_cpu" = ia64; then
10917         # On IA64, the linker does run time linking by default, so we don't
10918         # have to do anything special.
10919         aix_use_runtimelinking=no
10920         exp_sym_flag='-Bexport'
10921         no_entry_flag=""
10922       else
10923         # If we're using GNU nm, then we don't want the "-C" option.
10924         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10925         # Also, AIX nm treats weak defined symbols like other global
10926         # defined symbols, whereas GNU nm marks them as "W".
10927         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10928           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'
10929         else
10930           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'
10931         fi
10932         aix_use_runtimelinking=no
10933
10934         # Test if we are trying to use run time linking or normal
10935         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10936         # need to do runtime linking.
10937         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10938           for ld_flag in $LDFLAGS; do
10939           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10940             aix_use_runtimelinking=yes
10941             break
10942           fi
10943           done
10944           ;;
10945         esac
10946
10947         exp_sym_flag='-bexport'
10948         no_entry_flag='-bnoentry'
10949       fi
10950
10951       # When large executables or shared objects are built, AIX ld can
10952       # have problems creating the table of contents.  If linking a library
10953       # or program results in "error TOC overflow" add -mminimal-toc to
10954       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10955       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10956
10957       archive_cmds=''
10958       hardcode_direct=yes
10959       hardcode_direct_absolute=yes
10960       hardcode_libdir_separator=':'
10961       link_all_deplibs=yes
10962       file_list_spec='${wl}-f,'
10963
10964       if test "$GCC" = yes; then
10965         case $host_os in aix4.[012]|aix4.[012].*)
10966         # We only want to do this on AIX 4.2 and lower, the check
10967         # below for broken collect2 doesn't work under 4.3+
10968           collect2name=`${CC} -print-prog-name=collect2`
10969           if test -f "$collect2name" &&
10970            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10971           then
10972           # We have reworked collect2
10973           :
10974           else
10975           # We have old collect2
10976           hardcode_direct=unsupported
10977           # It fails to find uninstalled libraries when the uninstalled
10978           # path is not listed in the libpath.  Setting hardcode_minus_L
10979           # to unsupported forces relinking
10980           hardcode_minus_L=yes
10981           hardcode_libdir_flag_spec='-L$libdir'
10982           hardcode_libdir_separator=
10983           fi
10984           ;;
10985         esac
10986         shared_flag='-shared'
10987         if test "$aix_use_runtimelinking" = yes; then
10988           shared_flag="$shared_flag "'${wl}-G'
10989         fi
10990         link_all_deplibs=no
10991       else
10992         # not using gcc
10993         if test "$host_cpu" = ia64; then
10994         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10995         # chokes on -Wl,-G. The following line is correct:
10996           shared_flag='-G'
10997         else
10998           if test "$aix_use_runtimelinking" = yes; then
10999             shared_flag='${wl}-G'
11000           else
11001             shared_flag='${wl}-bM:SRE'
11002           fi
11003         fi
11004       fi
11005
11006       export_dynamic_flag_spec='${wl}-bexpall'
11007       # It seems that -bexpall does not export symbols beginning with
11008       # underscore (_), so it is better to generate a list of symbols to export.
11009       always_export_symbols=yes
11010       if test "$aix_use_runtimelinking" = yes; then
11011         # Warning - without using the other runtime loading flags (-brtl),
11012         # -berok will link without error, but may produce a broken library.
11013         allow_undefined_flag='-berok'
11014         # Determine the default libpath from the value encoded in an
11015         # empty executable.
11016         if test "${lt_cv_aix_libpath+set}" = set; then
11017   aix_libpath=$lt_cv_aix_libpath
11018 else
11019   if ${lt_cv_aix_libpath_+:} false; then :
11020   $as_echo_n "(cached) " >&6
11021 else
11022   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11023 /* end confdefs.h.  */
11024
11025 int
11026 main ()
11027 {
11028
11029   ;
11030   return 0;
11031 }
11032 _ACEOF
11033 if ac_fn_c_try_link "$LINENO"; then :
11034
11035   lt_aix_libpath_sed='
11036       /Import File Strings/,/^$/ {
11037           /^0/ {
11038               s/^0  *\([^ ]*\) *$/\1/
11039               p
11040           }
11041       }'
11042   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11043   # Check for a 64-bit object if we didn't find anything.
11044   if test -z "$lt_cv_aix_libpath_"; then
11045     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11046   fi
11047 fi
11048 rm -f core conftest.err conftest.$ac_objext \
11049     conftest$ac_exeext conftest.$ac_ext
11050   if test -z "$lt_cv_aix_libpath_"; then
11051     lt_cv_aix_libpath_="/usr/lib:/lib"
11052   fi
11053
11054 fi
11055
11056   aix_libpath=$lt_cv_aix_libpath_
11057 fi
11058
11059         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11060         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"
11061       else
11062         if test "$host_cpu" = ia64; then
11063           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11064           allow_undefined_flag="-z nodefs"
11065           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"
11066         else
11067          # Determine the default libpath from the value encoded in an
11068          # empty executable.
11069          if test "${lt_cv_aix_libpath+set}" = set; then
11070   aix_libpath=$lt_cv_aix_libpath
11071 else
11072   if ${lt_cv_aix_libpath_+:} false; then :
11073   $as_echo_n "(cached) " >&6
11074 else
11075   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11076 /* end confdefs.h.  */
11077
11078 int
11079 main ()
11080 {
11081
11082   ;
11083   return 0;
11084 }
11085 _ACEOF
11086 if ac_fn_c_try_link "$LINENO"; then :
11087
11088   lt_aix_libpath_sed='
11089       /Import File Strings/,/^$/ {
11090           /^0/ {
11091               s/^0  *\([^ ]*\) *$/\1/
11092               p
11093           }
11094       }'
11095   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11096   # Check for a 64-bit object if we didn't find anything.
11097   if test -z "$lt_cv_aix_libpath_"; then
11098     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11099   fi
11100 fi
11101 rm -f core conftest.err conftest.$ac_objext \
11102     conftest$ac_exeext conftest.$ac_ext
11103   if test -z "$lt_cv_aix_libpath_"; then
11104     lt_cv_aix_libpath_="/usr/lib:/lib"
11105   fi
11106
11107 fi
11108
11109   aix_libpath=$lt_cv_aix_libpath_
11110 fi
11111
11112          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11113           # Warning - without using the other run time loading flags,
11114           # -berok will link without error, but may produce a broken library.
11115           no_undefined_flag=' ${wl}-bernotok'
11116           allow_undefined_flag=' ${wl}-berok'
11117           if test "$with_gnu_ld" = yes; then
11118             # We only use this code for GNU lds that support --whole-archive.
11119             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11120           else
11121             # Exported symbols can be pulled into shared objects from archives
11122             whole_archive_flag_spec='$convenience'
11123           fi
11124           archive_cmds_need_lc=yes
11125           # This is similar to how AIX traditionally builds its shared libraries.
11126           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'
11127         fi
11128       fi
11129       ;;
11130
11131     amigaos*)
11132       case $host_cpu in
11133       powerpc)
11134             # see comment about AmigaOS4 .so support
11135             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11136             archive_expsym_cmds=''
11137         ;;
11138       m68k)
11139             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)'
11140             hardcode_libdir_flag_spec='-L$libdir'
11141             hardcode_minus_L=yes
11142         ;;
11143       esac
11144       ;;
11145
11146     bsdi[45]*)
11147       export_dynamic_flag_spec=-rdynamic
11148       ;;
11149
11150     cygwin* | mingw* | pw32* | cegcc*)
11151       # When not using gcc, we currently assume that we are using
11152       # Microsoft Visual C++.
11153       # hardcode_libdir_flag_spec is actually meaningless, as there is
11154       # no search path for DLLs.
11155       case $cc_basename in
11156       cl*)
11157         # Native MSVC
11158         hardcode_libdir_flag_spec=' '
11159         allow_undefined_flag=unsupported
11160         always_export_symbols=yes
11161         file_list_spec='@'
11162         # Tell ltmain to make .lib files, not .a files.
11163         libext=lib
11164         # Tell ltmain to make .dll files, not .so files.
11165         shrext_cmds=".dll"
11166         # FIXME: Setting linknames here is a bad hack.
11167         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11168         archive_expsym_cmds='if test "x`$SED \"$sed_uncomment_deffile\" $export_symbols | $SED 1q`" = xEXPORTS; then
11169             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11170           else
11171             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11172           fi~
11173           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11174           linknames='
11175         # The linker will not automatically build a static lib if we build a DLL.
11176         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11177         enable_shared_with_static_runtimes=yes
11178         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11179         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11180         # Don't use ranlib
11181         old_postinstall_cmds='chmod 644 $oldlib'
11182         postlink_cmds='lt_outputfile="@OUTPUT@"~
11183           lt_tool_outputfile="@TOOL_OUTPUT@"~
11184           case $lt_outputfile in
11185             *.exe|*.EXE) ;;
11186             *)
11187               lt_outputfile="$lt_outputfile.exe"
11188               lt_tool_outputfile="$lt_tool_outputfile.exe"
11189               ;;
11190           esac~
11191           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11192             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11193             $RM "$lt_outputfile.manifest";
11194           fi'
11195         ;;
11196       *)
11197         # Assume MSVC wrapper
11198         hardcode_libdir_flag_spec=' '
11199         allow_undefined_flag=unsupported
11200         # Tell ltmain to make .lib files, not .a files.
11201         libext=lib
11202         # Tell ltmain to make .dll files, not .so files.
11203         shrext_cmds=".dll"
11204         # FIXME: Setting linknames here is a bad hack.
11205         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11206         # The linker will automatically build a .lib file if we build a DLL.
11207         old_archive_from_new_cmds='true'
11208         # FIXME: Should let the user specify the lib program.
11209         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11210         enable_shared_with_static_runtimes=yes
11211         ;;
11212       esac
11213       ;;
11214
11215     darwin* | rhapsody*)
11216
11217
11218   archive_cmds_need_lc=no
11219   hardcode_direct=no
11220   hardcode_automatic=yes
11221   hardcode_shlibpath_var=unsupported
11222   if test "$lt_cv_ld_force_load" = "yes"; then
11223     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\"`'
11224
11225   else
11226     whole_archive_flag_spec=''
11227   fi
11228   link_all_deplibs=yes
11229   allow_undefined_flag="$_lt_dar_allow_undefined"
11230   case $cc_basename in
11231      ifort*) _lt_dar_can_shared=yes ;;
11232      *) _lt_dar_can_shared=$GCC ;;
11233   esac
11234   if test "$_lt_dar_can_shared" = "yes"; then
11235     output_verbose_link_cmd=func_echo_all
11236     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11237     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11238     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}"
11239     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}"
11240
11241   else
11242   ld_shlibs=no
11243   fi
11244
11245       ;;
11246
11247     dgux*)
11248       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11249       hardcode_libdir_flag_spec='-L$libdir'
11250       hardcode_shlibpath_var=no
11251       ;;
11252
11253     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11254     # support.  Future versions do this automatically, but an explicit c++rt0.o
11255     # does not break anything, and helps significantly (at the cost of a little
11256     # extra space).
11257     freebsd2.2*)
11258       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11259       hardcode_libdir_flag_spec='-R$libdir'
11260       hardcode_direct=yes
11261       hardcode_shlibpath_var=no
11262       ;;
11263
11264     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11265     freebsd2.*)
11266       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11267       hardcode_direct=yes
11268       hardcode_minus_L=yes
11269       hardcode_shlibpath_var=no
11270       ;;
11271
11272     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11273     freebsd* | dragonfly*)
11274       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11275       hardcode_libdir_flag_spec='-R$libdir'
11276       hardcode_direct=yes
11277       hardcode_shlibpath_var=no
11278       ;;
11279
11280     hpux9*)
11281       if test "$GCC" = yes; then
11282         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'
11283       else
11284         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'
11285       fi
11286       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11287       hardcode_libdir_separator=:
11288       hardcode_direct=yes
11289
11290       # hardcode_minus_L: Not really in the search PATH,
11291       # but as the default location of the library.
11292       hardcode_minus_L=yes
11293       export_dynamic_flag_spec='${wl}-E'
11294       ;;
11295
11296     hpux10*)
11297       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11298         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11299       else
11300         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11301       fi
11302       if test "$with_gnu_ld" = no; then
11303         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11304         hardcode_libdir_separator=:
11305         hardcode_direct=yes
11306         hardcode_direct_absolute=yes
11307         export_dynamic_flag_spec='${wl}-E'
11308         # hardcode_minus_L: Not really in the search PATH,
11309         # but as the default location of the library.
11310         hardcode_minus_L=yes
11311       fi
11312       ;;
11313
11314     hpux11*)
11315       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11316         case $host_cpu in
11317         hppa*64*)
11318           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11319           ;;
11320         ia64*)
11321           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11322           ;;
11323         *)
11324           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11325           ;;
11326         esac
11327       else
11328         case $host_cpu in
11329         hppa*64*)
11330           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11331           ;;
11332         ia64*)
11333           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11334           ;;
11335         *)
11336
11337           # Older versions of the 11.00 compiler do not understand -b yet
11338           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11339           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11340 $as_echo_n "checking if $CC understands -b... " >&6; }
11341 if ${lt_cv_prog_compiler__b+:} false; then :
11342   $as_echo_n "(cached) " >&6
11343 else
11344   lt_cv_prog_compiler__b=no
11345    save_LDFLAGS="$LDFLAGS"
11346    LDFLAGS="$LDFLAGS -b"
11347    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11348    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11349      # The linker can only warn and ignore the option if not recognized
11350      # So say no if there are warnings
11351      if test -s conftest.err; then
11352        # Append any errors to the config.log.
11353        cat conftest.err 1>&5
11354        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11355        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11356        if diff conftest.exp conftest.er2 >/dev/null; then
11357          lt_cv_prog_compiler__b=yes
11358        fi
11359      else
11360        lt_cv_prog_compiler__b=yes
11361      fi
11362    fi
11363    $RM -r conftest*
11364    LDFLAGS="$save_LDFLAGS"
11365
11366 fi
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11368 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11369
11370 if test x"$lt_cv_prog_compiler__b" = xyes; then
11371     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11372 else
11373     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11374 fi
11375
11376           ;;
11377         esac
11378       fi
11379       if test "$with_gnu_ld" = no; then
11380         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11381         hardcode_libdir_separator=:
11382
11383         case $host_cpu in
11384         hppa*64*|ia64*)
11385           hardcode_direct=no
11386           hardcode_shlibpath_var=no
11387           ;;
11388         *)
11389           hardcode_direct=yes
11390           hardcode_direct_absolute=yes
11391           export_dynamic_flag_spec='${wl}-E'
11392
11393           # hardcode_minus_L: Not really in the search PATH,
11394           # but as the default location of the library.
11395           hardcode_minus_L=yes
11396           ;;
11397         esac
11398       fi
11399       ;;
11400
11401     irix5* | irix6* | nonstopux*)
11402       if test "$GCC" = yes; then
11403         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'
11404         # Try to use the -exported_symbol ld option, if it does not
11405         # work, assume that -exports_file does not work either and
11406         # implicitly export all symbols.
11407         # This should be the same for all languages, so no per-tag cache variable.
11408         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11409 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11410 if ${lt_cv_irix_exported_symbol+:} false; then :
11411   $as_echo_n "(cached) " >&6
11412 else
11413   save_LDFLAGS="$LDFLAGS"
11414            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11415            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11416 /* end confdefs.h.  */
11417 int foo (void) { return 0; }
11418 _ACEOF
11419 if ac_fn_c_try_link "$LINENO"; then :
11420   lt_cv_irix_exported_symbol=yes
11421 else
11422   lt_cv_irix_exported_symbol=no
11423 fi
11424 rm -f core conftest.err conftest.$ac_objext \
11425     conftest$ac_exeext conftest.$ac_ext
11426            LDFLAGS="$save_LDFLAGS"
11427 fi
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11429 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11430         if test "$lt_cv_irix_exported_symbol" = yes; then
11431           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'
11432         fi
11433       else
11434         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'
11435         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'
11436       fi
11437       archive_cmds_need_lc='no'
11438       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11439       hardcode_libdir_separator=:
11440       inherit_rpath=yes
11441       link_all_deplibs=yes
11442       ;;
11443
11444     netbsd* | netbsdelf*-gnu)
11445       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11446         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11447       else
11448         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11449       fi
11450       hardcode_libdir_flag_spec='-R$libdir'
11451       hardcode_direct=yes
11452       hardcode_shlibpath_var=no
11453       ;;
11454
11455     newsos6)
11456       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11457       hardcode_direct=yes
11458       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11459       hardcode_libdir_separator=:
11460       hardcode_shlibpath_var=no
11461       ;;
11462
11463     *nto* | *qnx*)
11464       ;;
11465
11466     openbsd*)
11467       if test -f /usr/libexec/ld.so; then
11468         hardcode_direct=yes
11469         hardcode_shlibpath_var=no
11470         hardcode_direct_absolute=yes
11471         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11472           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11473           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11474           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11475           export_dynamic_flag_spec='${wl}-E'
11476         else
11477           case $host_os in
11478            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11479              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11480              hardcode_libdir_flag_spec='-R$libdir'
11481              ;;
11482            *)
11483              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11484              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11485              ;;
11486           esac
11487         fi
11488       else
11489         ld_shlibs=no
11490       fi
11491       ;;
11492
11493     os2*)
11494       hardcode_libdir_flag_spec='-L$libdir'
11495       hardcode_minus_L=yes
11496       allow_undefined_flag=unsupported
11497       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'
11498       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11499       ;;
11500
11501     osf3*)
11502       if test "$GCC" = yes; then
11503         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11504         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'
11505       else
11506         allow_undefined_flag=' -expect_unresolved \*'
11507         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'
11508       fi
11509       archive_cmds_need_lc='no'
11510       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11511       hardcode_libdir_separator=:
11512       ;;
11513
11514     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11515       if test "$GCC" = yes; then
11516         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11517         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'
11518         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11519       else
11520         allow_undefined_flag=' -expect_unresolved \*'
11521         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'
11522         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~
11523         $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'
11524
11525         # Both c and cxx compiler support -rpath directly
11526         hardcode_libdir_flag_spec='-rpath $libdir'
11527       fi
11528       archive_cmds_need_lc='no'
11529       hardcode_libdir_separator=:
11530       ;;
11531
11532     solaris*)
11533       no_undefined_flag=' -z defs'
11534       if test "$GCC" = yes; then
11535         wlarc='${wl}'
11536         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11537         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11538           $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'
11539       else
11540         case `$CC -V 2>&1` in
11541         *"Compilers 5.0"*)
11542           wlarc=''
11543           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11544           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11545           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11546           ;;
11547         *)
11548           wlarc='${wl}'
11549           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11550           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11551           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11552           ;;
11553         esac
11554       fi
11555       hardcode_libdir_flag_spec='-R$libdir'
11556       hardcode_shlibpath_var=no
11557       case $host_os in
11558       solaris2.[0-5] | solaris2.[0-5].*) ;;
11559       *)
11560         # The compiler driver will combine and reorder linker options,
11561         # but understands `-z linker_flag'.  GCC discards it without `$wl',
11562         # but is careful enough not to reorder.
11563         # Supported since Solaris 2.6 (maybe 2.5.1?)
11564         if test "$GCC" = yes; then
11565           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11566         else
11567           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11568         fi
11569         ;;
11570       esac
11571       link_all_deplibs=yes
11572       ;;
11573
11574     sunos4*)
11575       if test "x$host_vendor" = xsequent; then
11576         # Use $CC to link under sequent, because it throws in some extra .o
11577         # files that make .init and .fini sections work.
11578         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11579       else
11580         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11581       fi
11582       hardcode_libdir_flag_spec='-L$libdir'
11583       hardcode_direct=yes
11584       hardcode_minus_L=yes
11585       hardcode_shlibpath_var=no
11586       ;;
11587
11588     sysv4)
11589       case $host_vendor in
11590         sni)
11591           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11592           hardcode_direct=yes # is this really true???
11593         ;;
11594         siemens)
11595           ## LD is ld it makes a PLAMLIB
11596           ## CC just makes a GrossModule.
11597           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11598           reload_cmds='$CC -r -o $output$reload_objs'
11599           hardcode_direct=no
11600         ;;
11601         motorola)
11602           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11603           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11604         ;;
11605       esac
11606       runpath_var='LD_RUN_PATH'
11607       hardcode_shlibpath_var=no
11608       ;;
11609
11610     sysv4.3*)
11611       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11612       hardcode_shlibpath_var=no
11613       export_dynamic_flag_spec='-Bexport'
11614       ;;
11615
11616     sysv4*MP*)
11617       if test -d /usr/nec; then
11618         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11619         hardcode_shlibpath_var=no
11620         runpath_var=LD_RUN_PATH
11621         hardcode_runpath_var=yes
11622         ld_shlibs=yes
11623       fi
11624       ;;
11625
11626     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11627       no_undefined_flag='${wl}-z,text'
11628       archive_cmds_need_lc=no
11629       hardcode_shlibpath_var=no
11630       runpath_var='LD_RUN_PATH'
11631
11632       if test "$GCC" = yes; then
11633         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11634         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11635       else
11636         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11637         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11638       fi
11639       ;;
11640
11641     sysv5* | sco3.2v5* | sco5v6*)
11642       # Note: We can NOT use -z defs as we might desire, because we do not
11643       # link with -lc, and that would cause any symbols used from libc to
11644       # always be unresolved, which means just about no library would
11645       # ever link correctly.  If we're not using GNU ld we use -z text
11646       # though, which does catch some bad symbols but isn't as heavy-handed
11647       # as -z defs.
11648       no_undefined_flag='${wl}-z,text'
11649       allow_undefined_flag='${wl}-z,nodefs'
11650       archive_cmds_need_lc=no
11651       hardcode_shlibpath_var=no
11652       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11653       hardcode_libdir_separator=':'
11654       link_all_deplibs=yes
11655       export_dynamic_flag_spec='${wl}-Bexport'
11656       runpath_var='LD_RUN_PATH'
11657
11658       if test "$GCC" = yes; then
11659         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11660         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11661       else
11662         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11663         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11664       fi
11665       ;;
11666
11667     uts4*)
11668       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11669       hardcode_libdir_flag_spec='-L$libdir'
11670       hardcode_shlibpath_var=no
11671       ;;
11672
11673     *)
11674       ld_shlibs=no
11675       ;;
11676     esac
11677
11678     if test x$host_vendor = xsni; then
11679       case $host in
11680       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11681         export_dynamic_flag_spec='${wl}-Blargedynsym'
11682         ;;
11683       esac
11684     fi
11685   fi
11686
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11688 $as_echo "$ld_shlibs" >&6; }
11689 test "$ld_shlibs" = no && can_build_shared=no
11690
11691 with_gnu_ld=$with_gnu_ld
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707 #
11708 # Do we need to explicitly link libc?
11709 #
11710 case "x$archive_cmds_need_lc" in
11711 x|xyes)
11712   # Assume -lc should be added
11713   archive_cmds_need_lc=yes
11714
11715   if test "$enable_shared" = yes && test "$GCC" = yes; then
11716     case $archive_cmds in
11717     *'~'*)
11718       # FIXME: we may have to deal with multi-command sequences.
11719       ;;
11720     '$CC '*)
11721       # Test whether the compiler implicitly links with -lc since on some
11722       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11723       # to ld, don't add -lc before -lgcc.
11724       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11725 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11726 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11727   $as_echo_n "(cached) " >&6
11728 else
11729   $RM conftest*
11730         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11731
11732         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11733   (eval $ac_compile) 2>&5
11734   ac_status=$?
11735   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11736   test $ac_status = 0; } 2>conftest.err; then
11737           soname=conftest
11738           lib=conftest
11739           libobjs=conftest.$ac_objext
11740           deplibs=
11741           wl=$lt_prog_compiler_wl
11742           pic_flag=$lt_prog_compiler_pic
11743           compiler_flags=-v
11744           linker_flags=-v
11745           verstring=
11746           output_objdir=.
11747           libname=conftest
11748           lt_save_allow_undefined_flag=$allow_undefined_flag
11749           allow_undefined_flag=
11750           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11751   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11752   ac_status=$?
11753   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11754   test $ac_status = 0; }
11755           then
11756             lt_cv_archive_cmds_need_lc=no
11757           else
11758             lt_cv_archive_cmds_need_lc=yes
11759           fi
11760           allow_undefined_flag=$lt_save_allow_undefined_flag
11761         else
11762           cat conftest.err 1>&5
11763         fi
11764         $RM conftest*
11765
11766 fi
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11768 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11769       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11770       ;;
11771     esac
11772   fi
11773   ;;
11774 esac
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
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11928 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11929
11930 if test "$GCC" = yes; then
11931   case $host_os in
11932     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11933     *) lt_awk_arg="/^libraries:/" ;;
11934   esac
11935   case $host_os in
11936     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11937     *) lt_sed_strip_eq="s,=/,/,g" ;;
11938   esac
11939   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11940   case $lt_search_path_spec in
11941   *\;*)
11942     # if the path contains ";" then we assume it to be the separator
11943     # otherwise default to the standard path separator (i.e. ":") - it is
11944     # assumed that no part of a normal pathname contains ";" but that should
11945     # okay in the real world where ";" in dirpaths is itself problematic.
11946     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11947     ;;
11948   *)
11949     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11950     ;;
11951   esac
11952   # Ok, now we have the path, separated by spaces, we can step through it
11953   # and add multilib dir if necessary.
11954   lt_tmp_lt_search_path_spec=
11955   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11956   for lt_sys_path in $lt_search_path_spec; do
11957     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11958       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11959     else
11960       test -d "$lt_sys_path" && \
11961         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11962     fi
11963   done
11964   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11965 BEGIN {RS=" "; FS="/|\n";} {
11966   lt_foo="";
11967   lt_count=0;
11968   for (lt_i = NF; lt_i > 0; lt_i--) {
11969     if ($lt_i != "" && $lt_i != ".") {
11970       if ($lt_i == "..") {
11971         lt_count++;
11972       } else {
11973         if (lt_count == 0) {
11974           lt_foo="/" $lt_i lt_foo;
11975         } else {
11976           lt_count--;
11977         }
11978       }
11979     }
11980   }
11981   if (lt_foo != "") { lt_freq[lt_foo]++; }
11982   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11983 }'`
11984   # AWK program above erroneously prepends '/' to C:/dos/paths
11985   # for these hosts.
11986   case $host_os in
11987     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11988       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11989   esac
11990   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11991 else
11992   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11993 fi
11994 library_names_spec=
11995 libname_spec='lib$name'
11996 soname_spec=
11997 shrext_cmds=".so"
11998 postinstall_cmds=
11999 postuninstall_cmds=
12000 finish_cmds=
12001 finish_eval=
12002 shlibpath_var=
12003 shlibpath_overrides_runpath=unknown
12004 version_type=none
12005 dynamic_linker="$host_os ld.so"
12006 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12007 need_lib_prefix=unknown
12008 hardcode_into_libs=no
12009
12010 # when you set need_version to no, make sure it does not cause -set_version
12011 # flags to be left without arguments
12012 need_version=unknown
12013
12014 case $host_os in
12015 aix3*)
12016   version_type=linux # correct to gnu/linux during the next big refactor
12017   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12018   shlibpath_var=LIBPATH
12019
12020   # AIX 3 has no versioning support, so we append a major version to the name.
12021   soname_spec='${libname}${release}${shared_ext}$major'
12022   ;;
12023
12024 aix[4-9]*)
12025   version_type=linux # correct to gnu/linux during the next big refactor
12026   need_lib_prefix=no
12027   need_version=no
12028   hardcode_into_libs=yes
12029   if test "$host_cpu" = ia64; then
12030     # AIX 5 supports IA64
12031     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12032     shlibpath_var=LD_LIBRARY_PATH
12033   else
12034     # With GCC up to 2.95.x, collect2 would create an import file
12035     # for dependence libraries.  The import file would start with
12036     # the line `#! .'.  This would cause the generated library to
12037     # depend on `.', always an invalid library.  This was fixed in
12038     # development snapshots of GCC prior to 3.0.
12039     case $host_os in
12040       aix4 | aix4.[01] | aix4.[01].*)
12041       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12042            echo ' yes '
12043            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12044         :
12045       else
12046         can_build_shared=no
12047       fi
12048       ;;
12049     esac
12050     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12051     # soname into executable. Probably we can add versioning support to
12052     # collect2, so additional links can be useful in future.
12053     if test "$aix_use_runtimelinking" = yes; then
12054       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12055       # instead of lib<name>.a to let people know that these are not
12056       # typical AIX shared libraries.
12057       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12058     else
12059       # We preserve .a as extension for shared libraries through AIX4.2
12060       # and later when we are not doing run time linking.
12061       library_names_spec='${libname}${release}.a $libname.a'
12062       soname_spec='${libname}${release}${shared_ext}$major'
12063     fi
12064     shlibpath_var=LIBPATH
12065   fi
12066   ;;
12067
12068 amigaos*)
12069   case $host_cpu in
12070   powerpc)
12071     # Since July 2007 AmigaOS4 officially supports .so libraries.
12072     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12073     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12074     ;;
12075   m68k)
12076     library_names_spec='$libname.ixlibrary $libname.a'
12077     # Create ${libname}_ixlibrary.a entries in /sys/libs.
12078     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'
12079     ;;
12080   esac
12081   ;;
12082
12083 beos*)
12084   library_names_spec='${libname}${shared_ext}'
12085   dynamic_linker="$host_os ld.so"
12086   shlibpath_var=LIBRARY_PATH
12087   ;;
12088
12089 bsdi[45]*)
12090   version_type=linux # correct to gnu/linux during the next big refactor
12091   need_version=no
12092   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12093   soname_spec='${libname}${release}${shared_ext}$major'
12094   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12095   shlibpath_var=LD_LIBRARY_PATH
12096   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12097   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12098   # the default ld.so.conf also contains /usr/contrib/lib and
12099   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12100   # libtool to hard-code these into programs
12101   ;;
12102
12103 cygwin* | mingw* | pw32* | cegcc*)
12104   version_type=windows
12105   shrext_cmds=".dll"
12106   need_version=no
12107   need_lib_prefix=no
12108
12109   case $GCC,$cc_basename in
12110   yes,*)
12111     # gcc
12112     library_names_spec='$libname.dll.a'
12113     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12114     postinstall_cmds='base_file=`basename \${file}`~
12115       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12116       dldir=$destdir/`dirname \$dlpath`~
12117       test -d \$dldir || mkdir -p \$dldir~
12118       $install_prog $dir/$dlname \$dldir/$dlname~
12119       chmod a+x \$dldir/$dlname~
12120       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12121         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12122       fi'
12123     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12124       dlpath=$dir/\$dldll~
12125        $RM \$dlpath'
12126     shlibpath_overrides_runpath=yes
12127
12128     case $host_os in
12129     cygwin*)
12130       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12131       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12132
12133       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12134       ;;
12135     mingw* | cegcc*)
12136       # MinGW DLLs use traditional 'lib' prefix
12137       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12138       ;;
12139     pw32*)
12140       # pw32 DLLs use 'pw' prefix rather than 'lib'
12141       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12142       ;;
12143     esac
12144     dynamic_linker='Win32 ld.exe'
12145     ;;
12146
12147   *,cl*)
12148     # Native MSVC
12149     libname_spec='$name'
12150     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12151     library_names_spec='${libname}.dll.lib'
12152
12153     case $build_os in
12154     mingw*)
12155       sys_lib_search_path_spec=
12156       lt_save_ifs=$IFS
12157       IFS=';'
12158       for lt_path in $LIB
12159       do
12160         IFS=$lt_save_ifs
12161         # Let DOS variable expansion print the short 8.3 style file name.
12162         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12163         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12164       done
12165       IFS=$lt_save_ifs
12166       # Convert to MSYS style.
12167       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12168       ;;
12169     cygwin*)
12170       # Convert to unix form, then to dos form, then back to unix form
12171       # but this time dos style (no spaces!) so that the unix form looks
12172       # like /cygdrive/c/PROGRA~1:/cygdr...
12173       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12174       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12175       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12176       ;;
12177     *)
12178       sys_lib_search_path_spec="$LIB"
12179       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12180         # It is most probably a Windows format PATH.
12181         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12182       else
12183         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12184       fi
12185       # FIXME: find the short name or the path components, as spaces are
12186       # common. (e.g. "Program Files" -> "PROGRA~1")
12187       ;;
12188     esac
12189
12190     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12191     postinstall_cmds='base_file=`basename \${file}`~
12192       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12193       dldir=$destdir/`dirname \$dlpath`~
12194       test -d \$dldir || mkdir -p \$dldir~
12195       $install_prog $dir/$dlname \$dldir/$dlname'
12196     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12197       dlpath=$dir/\$dldll~
12198        $RM \$dlpath'
12199     shlibpath_overrides_runpath=yes
12200     dynamic_linker='Win32 link.exe'
12201     ;;
12202
12203   *)
12204     # Assume MSVC wrapper
12205     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12206     dynamic_linker='Win32 ld.exe'
12207     ;;
12208   esac
12209   # FIXME: first we should search . and the directory the executable is in
12210   shlibpath_var=PATH
12211   ;;
12212
12213 darwin* | rhapsody*)
12214   dynamic_linker="$host_os dyld"
12215   version_type=darwin
12216   need_lib_prefix=no
12217   need_version=no
12218   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12219   soname_spec='${libname}${release}${major}$shared_ext'
12220   shlibpath_overrides_runpath=yes
12221   shlibpath_var=DYLD_LIBRARY_PATH
12222   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12223
12224   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12225   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12226   ;;
12227
12228 dgux*)
12229   version_type=linux # correct to gnu/linux during the next big refactor
12230   need_lib_prefix=no
12231   need_version=no
12232   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12233   soname_spec='${libname}${release}${shared_ext}$major'
12234   shlibpath_var=LD_LIBRARY_PATH
12235   ;;
12236
12237 freebsd* | dragonfly*)
12238   # DragonFly does not have aout.  When/if they implement a new
12239   # versioning mechanism, adjust this.
12240   if test -x /usr/bin/objformat; then
12241     objformat=`/usr/bin/objformat`
12242   else
12243     case $host_os in
12244     freebsd[23].*) objformat=aout ;;
12245     *) objformat=elf ;;
12246     esac
12247   fi
12248   version_type=freebsd-$objformat
12249   case $version_type in
12250     freebsd-elf*)
12251       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12252       need_version=no
12253       need_lib_prefix=no
12254       ;;
12255     freebsd-*)
12256       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12257       need_version=yes
12258       ;;
12259   esac
12260   shlibpath_var=LD_LIBRARY_PATH
12261   case $host_os in
12262   freebsd2.*)
12263     shlibpath_overrides_runpath=yes
12264     ;;
12265   freebsd3.[01]* | freebsdelf3.[01]*)
12266     shlibpath_overrides_runpath=yes
12267     hardcode_into_libs=yes
12268     ;;
12269   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12270   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12271     shlibpath_overrides_runpath=no
12272     hardcode_into_libs=yes
12273     ;;
12274   *) # from 4.6 on, and DragonFly
12275     shlibpath_overrides_runpath=yes
12276     hardcode_into_libs=yes
12277     ;;
12278   esac
12279   ;;
12280
12281 gnu*)
12282   version_type=linux # correct to gnu/linux during the next big refactor
12283   need_lib_prefix=no
12284   need_version=no
12285   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12286   soname_spec='${libname}${release}${shared_ext}$major'
12287   shlibpath_var=LD_LIBRARY_PATH
12288   shlibpath_overrides_runpath=no
12289   hardcode_into_libs=yes
12290   ;;
12291
12292 haiku*)
12293   version_type=linux # correct to gnu/linux during the next big refactor
12294   need_lib_prefix=no
12295   need_version=no
12296   dynamic_linker="$host_os runtime_loader"
12297   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12298   soname_spec='${libname}${release}${shared_ext}$major'
12299   shlibpath_var=LIBRARY_PATH
12300   shlibpath_overrides_runpath=yes
12301   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12302   hardcode_into_libs=yes
12303   ;;
12304
12305 hpux9* | hpux10* | hpux11*)
12306   # Give a soname corresponding to the major version so that dld.sl refuses to
12307   # link against other versions.
12308   version_type=sunos
12309   need_lib_prefix=no
12310   need_version=no
12311   case $host_cpu in
12312   ia64*)
12313     shrext_cmds='.so'
12314     hardcode_into_libs=yes
12315     dynamic_linker="$host_os dld.so"
12316     shlibpath_var=LD_LIBRARY_PATH
12317     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12318     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12319     soname_spec='${libname}${release}${shared_ext}$major'
12320     if test "X$HPUX_IA64_MODE" = X32; then
12321       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12322     else
12323       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12324     fi
12325     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12326     ;;
12327   hppa*64*)
12328     shrext_cmds='.sl'
12329     hardcode_into_libs=yes
12330     dynamic_linker="$host_os dld.sl"
12331     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12332     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12333     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12334     soname_spec='${libname}${release}${shared_ext}$major'
12335     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12336     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12337     ;;
12338   *)
12339     shrext_cmds='.sl'
12340     dynamic_linker="$host_os dld.sl"
12341     shlibpath_var=SHLIB_PATH
12342     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12343     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12344     soname_spec='${libname}${release}${shared_ext}$major'
12345     ;;
12346   esac
12347   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12348   postinstall_cmds='chmod 555 $lib'
12349   # or fails outright, so override atomically:
12350   install_override_mode=555
12351   ;;
12352
12353 interix[3-9]*)
12354   version_type=linux # correct to gnu/linux during the next big refactor
12355   need_lib_prefix=no
12356   need_version=no
12357   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12358   soname_spec='${libname}${release}${shared_ext}$major'
12359   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12360   shlibpath_var=LD_LIBRARY_PATH
12361   shlibpath_overrides_runpath=no
12362   hardcode_into_libs=yes
12363   ;;
12364
12365 irix5* | irix6* | nonstopux*)
12366   case $host_os in
12367     nonstopux*) version_type=nonstopux ;;
12368     *)
12369         if test "$lt_cv_prog_gnu_ld" = yes; then
12370                 version_type=linux # correct to gnu/linux during the next big refactor
12371         else
12372                 version_type=irix
12373         fi ;;
12374   esac
12375   need_lib_prefix=no
12376   need_version=no
12377   soname_spec='${libname}${release}${shared_ext}$major'
12378   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12379   case $host_os in
12380   irix5* | nonstopux*)
12381     libsuff= shlibsuff=
12382     ;;
12383   *)
12384     case $LD in # libtool.m4 will add one of these switches to LD
12385     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12386       libsuff= shlibsuff= libmagic=32-bit;;
12387     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12388       libsuff=32 shlibsuff=N32 libmagic=N32;;
12389     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12390       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12391     *) libsuff= shlibsuff= libmagic=never-match;;
12392     esac
12393     ;;
12394   esac
12395   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12396   shlibpath_overrides_runpath=no
12397   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12398   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12399   hardcode_into_libs=yes
12400   ;;
12401
12402 # No shared lib support for Linux oldld, aout, or coff.
12403 linux*oldld* | linux*aout* | linux*coff*)
12404   dynamic_linker=no
12405   ;;
12406
12407 # This must be glibc/ELF.
12408 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12409   version_type=linux # correct to gnu/linux during the next big refactor
12410   need_lib_prefix=no
12411   need_version=no
12412   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12413   soname_spec='${libname}${release}${shared_ext}$major'
12414   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12415   shlibpath_var=LD_LIBRARY_PATH
12416   shlibpath_overrides_runpath=no
12417
12418   # Some binutils ld are patched to set DT_RUNPATH
12419   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12420   $as_echo_n "(cached) " >&6
12421 else
12422   lt_cv_shlibpath_overrides_runpath=no
12423     save_LDFLAGS=$LDFLAGS
12424     save_libdir=$libdir
12425     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12426          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12427     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12428 /* end confdefs.h.  */
12429
12430 int
12431 main ()
12432 {
12433
12434   ;
12435   return 0;
12436 }
12437 _ACEOF
12438 if ac_fn_c_try_link "$LINENO"; then :
12439   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12440   lt_cv_shlibpath_overrides_runpath=yes
12441 fi
12442 fi
12443 rm -f core conftest.err conftest.$ac_objext \
12444     conftest$ac_exeext conftest.$ac_ext
12445     LDFLAGS=$save_LDFLAGS
12446     libdir=$save_libdir
12447
12448 fi
12449
12450   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12451
12452   # This implies no fast_install, which is unacceptable.
12453   # Some rework will be needed to allow for fast_install
12454   # before this can be enabled.
12455   hardcode_into_libs=yes
12456
12457   # Append ld.so.conf contents to the search path
12458   if test -f /etc/ld.so.conf; then
12459     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' ' '`
12460     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12461   fi
12462
12463   # We used to test for /lib/ld.so.1 and disable shared libraries on
12464   # powerpc, because MkLinux only supported shared libraries with the
12465   # GNU dynamic linker.  Since this was broken with cross compilers,
12466   # most powerpc-linux boxes support dynamic linking these days and
12467   # people can always --disable-shared, the test was removed, and we
12468   # assume the GNU/Linux dynamic linker is in use.
12469   dynamic_linker='GNU/Linux ld.so'
12470   ;;
12471
12472 netbsdelf*-gnu)
12473   version_type=linux
12474   need_lib_prefix=no
12475   need_version=no
12476   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12477   soname_spec='${libname}${release}${shared_ext}$major'
12478   shlibpath_var=LD_LIBRARY_PATH
12479   shlibpath_overrides_runpath=no
12480   hardcode_into_libs=yes
12481   dynamic_linker='NetBSD ld.elf_so'
12482   ;;
12483
12484 netbsd*)
12485   version_type=sunos
12486   need_lib_prefix=no
12487   need_version=no
12488   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12489     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12490     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12491     dynamic_linker='NetBSD (a.out) ld.so'
12492   else
12493     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12494     soname_spec='${libname}${release}${shared_ext}$major'
12495     dynamic_linker='NetBSD ld.elf_so'
12496   fi
12497   shlibpath_var=LD_LIBRARY_PATH
12498   shlibpath_overrides_runpath=yes
12499   hardcode_into_libs=yes
12500   ;;
12501
12502 newsos6)
12503   version_type=linux # correct to gnu/linux during the next big refactor
12504   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12505   shlibpath_var=LD_LIBRARY_PATH
12506   shlibpath_overrides_runpath=yes
12507   ;;
12508
12509 *nto* | *qnx*)
12510   version_type=qnx
12511   need_lib_prefix=no
12512   need_version=no
12513   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12514   soname_spec='${libname}${release}${shared_ext}$major'
12515   shlibpath_var=LD_LIBRARY_PATH
12516   shlibpath_overrides_runpath=no
12517   hardcode_into_libs=yes
12518   dynamic_linker='ldqnx.so'
12519   ;;
12520
12521 openbsd*)
12522   version_type=sunos
12523   sys_lib_dlsearch_path_spec="/usr/lib"
12524   need_lib_prefix=no
12525   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12526   case $host_os in
12527     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
12528     *)                          need_version=no  ;;
12529   esac
12530   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12531   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12532   shlibpath_var=LD_LIBRARY_PATH
12533   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12534     case $host_os in
12535       openbsd2.[89] | openbsd2.[89].*)
12536         shlibpath_overrides_runpath=no
12537         ;;
12538       *)
12539         shlibpath_overrides_runpath=yes
12540         ;;
12541       esac
12542   else
12543     shlibpath_overrides_runpath=yes
12544   fi
12545   ;;
12546
12547 os2*)
12548   libname_spec='$name'
12549   shrext_cmds=".dll"
12550   need_lib_prefix=no
12551   library_names_spec='$libname${shared_ext} $libname.a'
12552   dynamic_linker='OS/2 ld.exe'
12553   shlibpath_var=LIBPATH
12554   ;;
12555
12556 osf3* | osf4* | osf5*)
12557   version_type=osf
12558   need_lib_prefix=no
12559   need_version=no
12560   soname_spec='${libname}${release}${shared_ext}$major'
12561   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12562   shlibpath_var=LD_LIBRARY_PATH
12563   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12564   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12565   ;;
12566
12567 rdos*)
12568   dynamic_linker=no
12569   ;;
12570
12571 solaris*)
12572   version_type=linux # correct to gnu/linux during the next big refactor
12573   need_lib_prefix=no
12574   need_version=no
12575   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12576   soname_spec='${libname}${release}${shared_ext}$major'
12577   shlibpath_var=LD_LIBRARY_PATH
12578   shlibpath_overrides_runpath=yes
12579   hardcode_into_libs=yes
12580   # ldd complains unless libraries are executable
12581   postinstall_cmds='chmod +x $lib'
12582   ;;
12583
12584 sunos4*)
12585   version_type=sunos
12586   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12587   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12588   shlibpath_var=LD_LIBRARY_PATH
12589   shlibpath_overrides_runpath=yes
12590   if test "$with_gnu_ld" = yes; then
12591     need_lib_prefix=no
12592   fi
12593   need_version=yes
12594   ;;
12595
12596 sysv4 | sysv4.3*)
12597   version_type=linux # correct to gnu/linux during the next big refactor
12598   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12599   soname_spec='${libname}${release}${shared_ext}$major'
12600   shlibpath_var=LD_LIBRARY_PATH
12601   case $host_vendor in
12602     sni)
12603       shlibpath_overrides_runpath=no
12604       need_lib_prefix=no
12605       runpath_var=LD_RUN_PATH
12606       ;;
12607     siemens)
12608       need_lib_prefix=no
12609       ;;
12610     motorola)
12611       need_lib_prefix=no
12612       need_version=no
12613       shlibpath_overrides_runpath=no
12614       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12615       ;;
12616   esac
12617   ;;
12618
12619 sysv4*MP*)
12620   if test -d /usr/nec ;then
12621     version_type=linux # correct to gnu/linux during the next big refactor
12622     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12623     soname_spec='$libname${shared_ext}.$major'
12624     shlibpath_var=LD_LIBRARY_PATH
12625   fi
12626   ;;
12627
12628 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12629   version_type=freebsd-elf
12630   need_lib_prefix=no
12631   need_version=no
12632   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12633   soname_spec='${libname}${release}${shared_ext}$major'
12634   shlibpath_var=LD_LIBRARY_PATH
12635   shlibpath_overrides_runpath=yes
12636   hardcode_into_libs=yes
12637   if test "$with_gnu_ld" = yes; then
12638     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12639   else
12640     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12641     case $host_os in
12642       sco3.2v5*)
12643         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12644         ;;
12645     esac
12646   fi
12647   sys_lib_dlsearch_path_spec='/usr/lib'
12648   ;;
12649
12650 tpf*)
12651   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12652   version_type=linux # correct to gnu/linux during the next big refactor
12653   need_lib_prefix=no
12654   need_version=no
12655   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12656   shlibpath_var=LD_LIBRARY_PATH
12657   shlibpath_overrides_runpath=no
12658   hardcode_into_libs=yes
12659   ;;
12660
12661 uts4*)
12662   version_type=linux # correct to gnu/linux during the next big refactor
12663   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12664   soname_spec='${libname}${release}${shared_ext}$major'
12665   shlibpath_var=LD_LIBRARY_PATH
12666   ;;
12667
12668 *)
12669   dynamic_linker=no
12670   ;;
12671 esac
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12673 $as_echo "$dynamic_linker" >&6; }
12674 test "$dynamic_linker" = no && can_build_shared=no
12675
12676 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12677 if test "$GCC" = yes; then
12678   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12679 fi
12680
12681 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12682   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12683 fi
12684 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12685   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12686 fi
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
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12780 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12781 hardcode_action=
12782 if test -n "$hardcode_libdir_flag_spec" ||
12783    test -n "$runpath_var" ||
12784    test "X$hardcode_automatic" = "Xyes" ; then
12785
12786   # We can hardcode non-existent directories.
12787   if test "$hardcode_direct" != no &&
12788      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12789      # have to relink, otherwise we might link with an installed library
12790      # when we should be linking with a yet-to-be-installed one
12791      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12792      test "$hardcode_minus_L" != no; then
12793     # Linking always hardcodes the temporary library directory.
12794     hardcode_action=relink
12795   else
12796     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12797     hardcode_action=immediate
12798   fi
12799 else
12800   # We cannot hardcode anything, or else we can only hardcode existing
12801   # directories.
12802   hardcode_action=unsupported
12803 fi
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12805 $as_echo "$hardcode_action" >&6; }
12806
12807 if test "$hardcode_action" = relink ||
12808    test "$inherit_rpath" = yes; then
12809   # Fast installation is not supported
12810   enable_fast_install=no
12811 elif test "$shlibpath_overrides_runpath" = yes ||
12812      test "$enable_shared" = no; then
12813   # Fast installation is not necessary
12814   enable_fast_install=needless
12815 fi
12816
12817
12818
12819
12820
12821
12822   if test "x$enable_dlopen" != xyes; then
12823   enable_dlopen=unknown
12824   enable_dlopen_self=unknown
12825   enable_dlopen_self_static=unknown
12826 else
12827   lt_cv_dlopen=no
12828   lt_cv_dlopen_libs=
12829
12830   case $host_os in
12831   beos*)
12832     lt_cv_dlopen="load_add_on"
12833     lt_cv_dlopen_libs=
12834     lt_cv_dlopen_self=yes
12835     ;;
12836
12837   mingw* | pw32* | cegcc*)
12838     lt_cv_dlopen="LoadLibrary"
12839     lt_cv_dlopen_libs=
12840     ;;
12841
12842   cygwin*)
12843     lt_cv_dlopen="dlopen"
12844     lt_cv_dlopen_libs=
12845     ;;
12846
12847   darwin*)
12848   # if libdl is installed we need to link against it
12849     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12850 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12851 if ${ac_cv_lib_dl_dlopen+:} false; then :
12852   $as_echo_n "(cached) " >&6
12853 else
12854   ac_check_lib_save_LIBS=$LIBS
12855 LIBS="-ldl  $LIBS"
12856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12857 /* end confdefs.h.  */
12858
12859 /* Override any GCC internal prototype to avoid an error.
12860    Use char because int might match the return type of a GCC
12861    builtin and then its argument prototype would still apply.  */
12862 #ifdef __cplusplus
12863 extern "C"
12864 #endif
12865 char dlopen ();
12866 int
12867 main ()
12868 {
12869 return dlopen ();
12870   ;
12871   return 0;
12872 }
12873 _ACEOF
12874 if ac_fn_c_try_link "$LINENO"; then :
12875   ac_cv_lib_dl_dlopen=yes
12876 else
12877   ac_cv_lib_dl_dlopen=no
12878 fi
12879 rm -f core conftest.err conftest.$ac_objext \
12880     conftest$ac_exeext conftest.$ac_ext
12881 LIBS=$ac_check_lib_save_LIBS
12882 fi
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12884 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12885 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12886   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12887 else
12888
12889     lt_cv_dlopen="dyld"
12890     lt_cv_dlopen_libs=
12891     lt_cv_dlopen_self=yes
12892
12893 fi
12894
12895     ;;
12896
12897   *)
12898     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12899 if test "x$ac_cv_func_shl_load" = xyes; then :
12900   lt_cv_dlopen="shl_load"
12901 else
12902   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12903 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12904 if ${ac_cv_lib_dld_shl_load+:} false; then :
12905   $as_echo_n "(cached) " >&6
12906 else
12907   ac_check_lib_save_LIBS=$LIBS
12908 LIBS="-ldld  $LIBS"
12909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12910 /* end confdefs.h.  */
12911
12912 /* Override any GCC internal prototype to avoid an error.
12913    Use char because int might match the return type of a GCC
12914    builtin and then its argument prototype would still apply.  */
12915 #ifdef __cplusplus
12916 extern "C"
12917 #endif
12918 char shl_load ();
12919 int
12920 main ()
12921 {
12922 return shl_load ();
12923   ;
12924   return 0;
12925 }
12926 _ACEOF
12927 if ac_fn_c_try_link "$LINENO"; then :
12928   ac_cv_lib_dld_shl_load=yes
12929 else
12930   ac_cv_lib_dld_shl_load=no
12931 fi
12932 rm -f core conftest.err conftest.$ac_objext \
12933     conftest$ac_exeext conftest.$ac_ext
12934 LIBS=$ac_check_lib_save_LIBS
12935 fi
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12937 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12938 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12939   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12940 else
12941   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12942 if test "x$ac_cv_func_dlopen" = xyes; then :
12943   lt_cv_dlopen="dlopen"
12944 else
12945   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12946 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12947 if ${ac_cv_lib_dl_dlopen+:} false; then :
12948   $as_echo_n "(cached) " >&6
12949 else
12950   ac_check_lib_save_LIBS=$LIBS
12951 LIBS="-ldl  $LIBS"
12952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12953 /* end confdefs.h.  */
12954
12955 /* Override any GCC internal prototype to avoid an error.
12956    Use char because int might match the return type of a GCC
12957    builtin and then its argument prototype would still apply.  */
12958 #ifdef __cplusplus
12959 extern "C"
12960 #endif
12961 char dlopen ();
12962 int
12963 main ()
12964 {
12965 return dlopen ();
12966   ;
12967   return 0;
12968 }
12969 _ACEOF
12970 if ac_fn_c_try_link "$LINENO"; then :
12971   ac_cv_lib_dl_dlopen=yes
12972 else
12973   ac_cv_lib_dl_dlopen=no
12974 fi
12975 rm -f core conftest.err conftest.$ac_objext \
12976     conftest$ac_exeext conftest.$ac_ext
12977 LIBS=$ac_check_lib_save_LIBS
12978 fi
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12980 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12981 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12982   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12983 else
12984   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12985 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12986 if ${ac_cv_lib_svld_dlopen+:} false; then :
12987   $as_echo_n "(cached) " >&6
12988 else
12989   ac_check_lib_save_LIBS=$LIBS
12990 LIBS="-lsvld  $LIBS"
12991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12992 /* end confdefs.h.  */
12993
12994 /* Override any GCC internal prototype to avoid an error.
12995    Use char because int might match the return type of a GCC
12996    builtin and then its argument prototype would still apply.  */
12997 #ifdef __cplusplus
12998 extern "C"
12999 #endif
13000 char dlopen ();
13001 int
13002 main ()
13003 {
13004 return dlopen ();
13005   ;
13006   return 0;
13007 }
13008 _ACEOF
13009 if ac_fn_c_try_link "$LINENO"; then :
13010   ac_cv_lib_svld_dlopen=yes
13011 else
13012   ac_cv_lib_svld_dlopen=no
13013 fi
13014 rm -f core conftest.err conftest.$ac_objext \
13015     conftest$ac_exeext conftest.$ac_ext
13016 LIBS=$ac_check_lib_save_LIBS
13017 fi
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13019 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13020 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13021   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13022 else
13023   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13024 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13025 if ${ac_cv_lib_dld_dld_link+:} false; then :
13026   $as_echo_n "(cached) " >&6
13027 else
13028   ac_check_lib_save_LIBS=$LIBS
13029 LIBS="-ldld  $LIBS"
13030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13031 /* end confdefs.h.  */
13032
13033 /* Override any GCC internal prototype to avoid an error.
13034    Use char because int might match the return type of a GCC
13035    builtin and then its argument prototype would still apply.  */
13036 #ifdef __cplusplus
13037 extern "C"
13038 #endif
13039 char dld_link ();
13040 int
13041 main ()
13042 {
13043 return dld_link ();
13044   ;
13045   return 0;
13046 }
13047 _ACEOF
13048 if ac_fn_c_try_link "$LINENO"; then :
13049   ac_cv_lib_dld_dld_link=yes
13050 else
13051   ac_cv_lib_dld_dld_link=no
13052 fi
13053 rm -f core conftest.err conftest.$ac_objext \
13054     conftest$ac_exeext conftest.$ac_ext
13055 LIBS=$ac_check_lib_save_LIBS
13056 fi
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13058 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13059 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13060   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13061 fi
13062
13063
13064 fi
13065
13066
13067 fi
13068
13069
13070 fi
13071
13072
13073 fi
13074
13075
13076 fi
13077
13078     ;;
13079   esac
13080
13081   if test "x$lt_cv_dlopen" != xno; then
13082     enable_dlopen=yes
13083   else
13084     enable_dlopen=no
13085   fi
13086
13087   case $lt_cv_dlopen in
13088   dlopen)
13089     save_CPPFLAGS="$CPPFLAGS"
13090     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13091
13092     save_LDFLAGS="$LDFLAGS"
13093     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13094
13095     save_LIBS="$LIBS"
13096     LIBS="$lt_cv_dlopen_libs $LIBS"
13097
13098     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13099 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13100 if ${lt_cv_dlopen_self+:} false; then :
13101   $as_echo_n "(cached) " >&6
13102 else
13103           if test "$cross_compiling" = yes; then :
13104   lt_cv_dlopen_self=cross
13105 else
13106   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13107   lt_status=$lt_dlunknown
13108   cat > conftest.$ac_ext <<_LT_EOF
13109 #line $LINENO "configure"
13110 #include "confdefs.h"
13111
13112 #if HAVE_DLFCN_H
13113 #include <dlfcn.h>
13114 #endif
13115
13116 #include <stdio.h>
13117
13118 #ifdef RTLD_GLOBAL
13119 #  define LT_DLGLOBAL           RTLD_GLOBAL
13120 #else
13121 #  ifdef DL_GLOBAL
13122 #    define LT_DLGLOBAL         DL_GLOBAL
13123 #  else
13124 #    define LT_DLGLOBAL         0
13125 #  endif
13126 #endif
13127
13128 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13129    find out it does not work in some platform. */
13130 #ifndef LT_DLLAZY_OR_NOW
13131 #  ifdef RTLD_LAZY
13132 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13133 #  else
13134 #    ifdef DL_LAZY
13135 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13136 #    else
13137 #      ifdef RTLD_NOW
13138 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13139 #      else
13140 #        ifdef DL_NOW
13141 #          define LT_DLLAZY_OR_NOW      DL_NOW
13142 #        else
13143 #          define LT_DLLAZY_OR_NOW      0
13144 #        endif
13145 #      endif
13146 #    endif
13147 #  endif
13148 #endif
13149
13150 /* When -fvisbility=hidden is used, assume the code has been annotated
13151    correspondingly for the symbols needed.  */
13152 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13153 int fnord () __attribute__((visibility("default")));
13154 #endif
13155
13156 int fnord () { return 42; }
13157 int main ()
13158 {
13159   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13160   int status = $lt_dlunknown;
13161
13162   if (self)
13163     {
13164       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13165       else
13166         {
13167           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13168           else puts (dlerror ());
13169         }
13170       /* dlclose (self); */
13171     }
13172   else
13173     puts (dlerror ());
13174
13175   return status;
13176 }
13177 _LT_EOF
13178   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13179   (eval $ac_link) 2>&5
13180   ac_status=$?
13181   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13182   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13183     (./conftest; exit; ) >&5 2>/dev/null
13184     lt_status=$?
13185     case x$lt_status in
13186       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13187       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13188       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13189     esac
13190   else :
13191     # compilation failed
13192     lt_cv_dlopen_self=no
13193   fi
13194 fi
13195 rm -fr conftest*
13196
13197
13198 fi
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13200 $as_echo "$lt_cv_dlopen_self" >&6; }
13201
13202     if test "x$lt_cv_dlopen_self" = xyes; then
13203       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13204       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13205 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13206 if ${lt_cv_dlopen_self_static+:} false; then :
13207   $as_echo_n "(cached) " >&6
13208 else
13209           if test "$cross_compiling" = yes; then :
13210   lt_cv_dlopen_self_static=cross
13211 else
13212   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13213   lt_status=$lt_dlunknown
13214   cat > conftest.$ac_ext <<_LT_EOF
13215 #line $LINENO "configure"
13216 #include "confdefs.h"
13217
13218 #if HAVE_DLFCN_H
13219 #include <dlfcn.h>
13220 #endif
13221
13222 #include <stdio.h>
13223
13224 #ifdef RTLD_GLOBAL
13225 #  define LT_DLGLOBAL           RTLD_GLOBAL
13226 #else
13227 #  ifdef DL_GLOBAL
13228 #    define LT_DLGLOBAL         DL_GLOBAL
13229 #  else
13230 #    define LT_DLGLOBAL         0
13231 #  endif
13232 #endif
13233
13234 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13235    find out it does not work in some platform. */
13236 #ifndef LT_DLLAZY_OR_NOW
13237 #  ifdef RTLD_LAZY
13238 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13239 #  else
13240 #    ifdef DL_LAZY
13241 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13242 #    else
13243 #      ifdef RTLD_NOW
13244 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13245 #      else
13246 #        ifdef DL_NOW
13247 #          define LT_DLLAZY_OR_NOW      DL_NOW
13248 #        else
13249 #          define LT_DLLAZY_OR_NOW      0
13250 #        endif
13251 #      endif
13252 #    endif
13253 #  endif
13254 #endif
13255
13256 /* When -fvisbility=hidden is used, assume the code has been annotated
13257    correspondingly for the symbols needed.  */
13258 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13259 int fnord () __attribute__((visibility("default")));
13260 #endif
13261
13262 int fnord () { return 42; }
13263 int main ()
13264 {
13265   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13266   int status = $lt_dlunknown;
13267
13268   if (self)
13269     {
13270       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13271       else
13272         {
13273           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13274           else puts (dlerror ());
13275         }
13276       /* dlclose (self); */
13277     }
13278   else
13279     puts (dlerror ());
13280
13281   return status;
13282 }
13283 _LT_EOF
13284   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13285   (eval $ac_link) 2>&5
13286   ac_status=$?
13287   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13288   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13289     (./conftest; exit; ) >&5 2>/dev/null
13290     lt_status=$?
13291     case x$lt_status in
13292       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13293       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13294       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13295     esac
13296   else :
13297     # compilation failed
13298     lt_cv_dlopen_self_static=no
13299   fi
13300 fi
13301 rm -fr conftest*
13302
13303
13304 fi
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13306 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13307     fi
13308
13309     CPPFLAGS="$save_CPPFLAGS"
13310     LDFLAGS="$save_LDFLAGS"
13311     LIBS="$save_LIBS"
13312     ;;
13313   esac
13314
13315   case $lt_cv_dlopen_self in
13316   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13317   *) enable_dlopen_self=unknown ;;
13318   esac
13319
13320   case $lt_cv_dlopen_self_static in
13321   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13322   *) enable_dlopen_self_static=unknown ;;
13323   esac
13324 fi
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342 striplib=
13343 old_striplib=
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13345 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13346 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13347   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13348   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13350 $as_echo "yes" >&6; }
13351 else
13352 # FIXME - insert some real tests, host_os isn't really good enough
13353   case $host_os in
13354   darwin*)
13355     if test -n "$STRIP" ; then
13356       striplib="$STRIP -x"
13357       old_striplib="$STRIP -S"
13358       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13359 $as_echo "yes" >&6; }
13360     else
13361       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13362 $as_echo "no" >&6; }
13363     fi
13364     ;;
13365   *)
13366     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13367 $as_echo "no" >&6; }
13368     ;;
13369   esac
13370 fi
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383   # Report which library types will actually be built
13384   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13385 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13387 $as_echo "$can_build_shared" >&6; }
13388
13389   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13390 $as_echo_n "checking whether to build shared libraries... " >&6; }
13391   test "$can_build_shared" = "no" && enable_shared=no
13392
13393   # On AIX, shared libraries and static libraries use the same namespace, and
13394   # are all built from PIC.
13395   case $host_os in
13396   aix3*)
13397     test "$enable_shared" = yes && enable_static=no
13398     if test -n "$RANLIB"; then
13399       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13400       postinstall_cmds='$RANLIB $lib'
13401     fi
13402     ;;
13403
13404   aix[4-9]*)
13405     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13406       test "$enable_shared" = yes && enable_static=no
13407     fi
13408     ;;
13409   esac
13410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13411 $as_echo "$enable_shared" >&6; }
13412
13413   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13414 $as_echo_n "checking whether to build static libraries... " >&6; }
13415   # Make sure either enable_shared or enable_static is yes.
13416   test "$enable_shared" = yes || enable_static=yes
13417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13418 $as_echo "$enable_static" >&6; }
13419
13420
13421
13422
13423 fi
13424 ac_ext=c
13425 ac_cpp='$CPP $CPPFLAGS'
13426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13429
13430 CC="$lt_save_CC"
13431
13432       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13433     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13434     (test "X$CXX" != "Xg++"))) ; then
13435   ac_ext=cpp
13436 ac_cpp='$CXXCPP $CPPFLAGS'
13437 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13438 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13439 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13441 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13442 if test -z "$CXXCPP"; then
13443   if ${ac_cv_prog_CXXCPP+:} false; then :
13444   $as_echo_n "(cached) " >&6
13445 else
13446       # Double quotes because CXXCPP needs to be expanded
13447     for CXXCPP in "$CXX -E" "/lib/cpp"
13448     do
13449       ac_preproc_ok=false
13450 for ac_cxx_preproc_warn_flag in '' yes
13451 do
13452   # Use a header file that comes with gcc, so configuring glibc
13453   # with a fresh cross-compiler works.
13454   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13455   # <limits.h> exists even on freestanding compilers.
13456   # On the NeXT, cc -E runs the code through the compiler's parser,
13457   # not just through cpp. "Syntax error" is here to catch this case.
13458   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13459 /* end confdefs.h.  */
13460 #ifdef __STDC__
13461 # include <limits.h>
13462 #else
13463 # include <assert.h>
13464 #endif
13465                      Syntax error
13466 _ACEOF
13467 if ac_fn_cxx_try_cpp "$LINENO"; then :
13468
13469 else
13470   # Broken: fails on valid input.
13471 continue
13472 fi
13473 rm -f conftest.err conftest.i conftest.$ac_ext
13474
13475   # OK, works on sane cases.  Now check whether nonexistent headers
13476   # can be detected and how.
13477   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13478 /* end confdefs.h.  */
13479 #include <ac_nonexistent.h>
13480 _ACEOF
13481 if ac_fn_cxx_try_cpp "$LINENO"; then :
13482   # Broken: success on invalid input.
13483 continue
13484 else
13485   # Passes both tests.
13486 ac_preproc_ok=:
13487 break
13488 fi
13489 rm -f conftest.err conftest.i conftest.$ac_ext
13490
13491 done
13492 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13493 rm -f conftest.i conftest.err conftest.$ac_ext
13494 if $ac_preproc_ok; then :
13495   break
13496 fi
13497
13498     done
13499     ac_cv_prog_CXXCPP=$CXXCPP
13500
13501 fi
13502   CXXCPP=$ac_cv_prog_CXXCPP
13503 else
13504   ac_cv_prog_CXXCPP=$CXXCPP
13505 fi
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13507 $as_echo "$CXXCPP" >&6; }
13508 ac_preproc_ok=false
13509 for ac_cxx_preproc_warn_flag in '' yes
13510 do
13511   # Use a header file that comes with gcc, so configuring glibc
13512   # with a fresh cross-compiler works.
13513   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13514   # <limits.h> exists even on freestanding compilers.
13515   # On the NeXT, cc -E runs the code through the compiler's parser,
13516   # not just through cpp. "Syntax error" is here to catch this case.
13517   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13518 /* end confdefs.h.  */
13519 #ifdef __STDC__
13520 # include <limits.h>
13521 #else
13522 # include <assert.h>
13523 #endif
13524                      Syntax error
13525 _ACEOF
13526 if ac_fn_cxx_try_cpp "$LINENO"; then :
13527
13528 else
13529   # Broken: fails on valid input.
13530 continue
13531 fi
13532 rm -f conftest.err conftest.i conftest.$ac_ext
13533
13534   # OK, works on sane cases.  Now check whether nonexistent headers
13535   # can be detected and how.
13536   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13537 /* end confdefs.h.  */
13538 #include <ac_nonexistent.h>
13539 _ACEOF
13540 if ac_fn_cxx_try_cpp "$LINENO"; then :
13541   # Broken: success on invalid input.
13542 continue
13543 else
13544   # Passes both tests.
13545 ac_preproc_ok=:
13546 break
13547 fi
13548 rm -f conftest.err conftest.i conftest.$ac_ext
13549
13550 done
13551 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13552 rm -f conftest.i conftest.err conftest.$ac_ext
13553 if $ac_preproc_ok; then :
13554
13555 else
13556   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13557 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13558 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13559 See \`config.log' for more details" "$LINENO" 5; }
13560 fi
13561
13562 ac_ext=c
13563 ac_cpp='$CPP $CPPFLAGS'
13564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13567
13568 else
13569   _lt_caught_CXX_error=yes
13570 fi
13571
13572 ac_ext=cpp
13573 ac_cpp='$CXXCPP $CPPFLAGS'
13574 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13575 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13576 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13577
13578 archive_cmds_need_lc_CXX=no
13579 allow_undefined_flag_CXX=
13580 always_export_symbols_CXX=no
13581 archive_expsym_cmds_CXX=
13582 compiler_needs_object_CXX=no
13583 export_dynamic_flag_spec_CXX=
13584 hardcode_direct_CXX=no
13585 hardcode_direct_absolute_CXX=no
13586 hardcode_libdir_flag_spec_CXX=
13587 hardcode_libdir_separator_CXX=
13588 hardcode_minus_L_CXX=no
13589 hardcode_shlibpath_var_CXX=unsupported
13590 hardcode_automatic_CXX=no
13591 inherit_rpath_CXX=no
13592 module_cmds_CXX=
13593 module_expsym_cmds_CXX=
13594 link_all_deplibs_CXX=unknown
13595 old_archive_cmds_CXX=$old_archive_cmds
13596 reload_flag_CXX=$reload_flag
13597 reload_cmds_CXX=$reload_cmds
13598 no_undefined_flag_CXX=
13599 whole_archive_flag_spec_CXX=
13600 enable_shared_with_static_runtimes_CXX=no
13601
13602 # Source file extension for C++ test sources.
13603 ac_ext=cpp
13604
13605 # Object file extension for compiled C++ test sources.
13606 objext=o
13607 objext_CXX=$objext
13608
13609 # No sense in running all these tests if we already determined that
13610 # the CXX compiler isn't working.  Some variables (like enable_shared)
13611 # are currently assumed to apply to all compilers on this platform,
13612 # and will be corrupted by setting them based on a non-working compiler.
13613 if test "$_lt_caught_CXX_error" != yes; then
13614   # Code to be used in simple compile tests
13615   lt_simple_compile_test_code="int some_variable = 0;"
13616
13617   # Code to be used in simple link tests
13618   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13619
13620   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13621
13622
13623
13624
13625
13626
13627 # If no C compiler was specified, use CC.
13628 LTCC=${LTCC-"$CC"}
13629
13630 # If no C compiler flags were specified, use CFLAGS.
13631 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13632
13633 # Allow CC to be a program name with arguments.
13634 compiler=$CC
13635
13636
13637   # save warnings/boilerplate of simple test code
13638   ac_outfile=conftest.$ac_objext
13639 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13640 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13641 _lt_compiler_boilerplate=`cat conftest.err`
13642 $RM conftest*
13643
13644   ac_outfile=conftest.$ac_objext
13645 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13646 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13647 _lt_linker_boilerplate=`cat conftest.err`
13648 $RM -r conftest*
13649
13650
13651   # Allow CC to be a program name with arguments.
13652   lt_save_CC=$CC
13653   lt_save_CFLAGS=$CFLAGS
13654   lt_save_LD=$LD
13655   lt_save_GCC=$GCC
13656   GCC=$GXX
13657   lt_save_with_gnu_ld=$with_gnu_ld
13658   lt_save_path_LD=$lt_cv_path_LD
13659   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13660     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13661   else
13662     $as_unset lt_cv_prog_gnu_ld
13663   fi
13664   if test -n "${lt_cv_path_LDCXX+set}"; then
13665     lt_cv_path_LD=$lt_cv_path_LDCXX
13666   else
13667     $as_unset lt_cv_path_LD
13668   fi
13669   test -z "${LDCXX+set}" || LD=$LDCXX
13670   CC=${CXX-"c++"}
13671   CFLAGS=$CXXFLAGS
13672   compiler=$CC
13673   compiler_CXX=$CC
13674   for cc_temp in $compiler""; do
13675   case $cc_temp in
13676     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13677     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13678     \-*) ;;
13679     *) break;;
13680   esac
13681 done
13682 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13683
13684
13685   if test -n "$compiler"; then
13686     # We don't want -fno-exception when compiling C++ code, so set the
13687     # no_builtin_flag separately
13688     if test "$GXX" = yes; then
13689       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13690     else
13691       lt_prog_compiler_no_builtin_flag_CXX=
13692     fi
13693
13694     if test "$GXX" = yes; then
13695       # Set up default GNU C++ configuration
13696
13697
13698
13699 # Check whether --with-gnu-ld was given.
13700 if test "${with_gnu_ld+set}" = set; then :
13701   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13702 else
13703   with_gnu_ld=no
13704 fi
13705
13706 ac_prog=ld
13707 if test "$GCC" = yes; then
13708   # Check if gcc -print-prog-name=ld gives a path.
13709   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13710 $as_echo_n "checking for ld used by $CC... " >&6; }
13711   case $host in
13712   *-*-mingw*)
13713     # gcc leaves a trailing carriage return which upsets mingw
13714     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13715   *)
13716     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13717   esac
13718   case $ac_prog in
13719     # Accept absolute paths.
13720     [\\/]* | ?:[\\/]*)
13721       re_direlt='/[^/][^/]*/\.\./'
13722       # Canonicalize the pathname of ld
13723       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13724       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13725         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13726       done
13727       test -z "$LD" && LD="$ac_prog"
13728       ;;
13729   "")
13730     # If it fails, then pretend we aren't using GCC.
13731     ac_prog=ld
13732     ;;
13733   *)
13734     # If it is relative, then search for the first ld in PATH.
13735     with_gnu_ld=unknown
13736     ;;
13737   esac
13738 elif test "$with_gnu_ld" = yes; then
13739   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13740 $as_echo_n "checking for GNU ld... " >&6; }
13741 else
13742   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13743 $as_echo_n "checking for non-GNU ld... " >&6; }
13744 fi
13745 if ${lt_cv_path_LD+:} false; then :
13746   $as_echo_n "(cached) " >&6
13747 else
13748   if test -z "$LD"; then
13749   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13750   for ac_dir in $PATH; do
13751     IFS="$lt_save_ifs"
13752     test -z "$ac_dir" && ac_dir=.
13753     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13754       lt_cv_path_LD="$ac_dir/$ac_prog"
13755       # Check to see if the program is GNU ld.  I'd rather use --version,
13756       # but apparently some variants of GNU ld only accept -v.
13757       # Break only if it was the GNU/non-GNU ld that we prefer.
13758       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13759       *GNU* | *'with BFD'*)
13760         test "$with_gnu_ld" != no && break
13761         ;;
13762       *)
13763         test "$with_gnu_ld" != yes && break
13764         ;;
13765       esac
13766     fi
13767   done
13768   IFS="$lt_save_ifs"
13769 else
13770   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13771 fi
13772 fi
13773
13774 LD="$lt_cv_path_LD"
13775 if test -n "$LD"; then
13776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13777 $as_echo "$LD" >&6; }
13778 else
13779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13780 $as_echo "no" >&6; }
13781 fi
13782 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13784 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13785 if ${lt_cv_prog_gnu_ld+:} false; then :
13786   $as_echo_n "(cached) " >&6
13787 else
13788   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13789 case `$LD -v 2>&1 </dev/null` in
13790 *GNU* | *'with BFD'*)
13791   lt_cv_prog_gnu_ld=yes
13792   ;;
13793 *)
13794   lt_cv_prog_gnu_ld=no
13795   ;;
13796 esac
13797 fi
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13799 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13800 with_gnu_ld=$lt_cv_prog_gnu_ld
13801
13802
13803
13804
13805
13806
13807
13808       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13809       # archiving commands below assume that GNU ld is being used.
13810       if test "$with_gnu_ld" = yes; then
13811         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13812         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'
13813
13814         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13815         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13816
13817         # If archive_cmds runs LD, not CC, wlarc should be empty
13818         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13819         #     investigate it a little bit more. (MM)
13820         wlarc='${wl}'
13821
13822         # ancient GNU ld didn't support --whole-archive et. al.
13823         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13824           $GREP 'no-whole-archive' > /dev/null; then
13825           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13826         else
13827           whole_archive_flag_spec_CXX=
13828         fi
13829       else
13830         with_gnu_ld=no
13831         wlarc=
13832
13833         # A generic and very simple default shared library creation
13834         # command for GNU C++ for the case where it uses the native
13835         # linker, instead of GNU ld.  If possible, this setting should
13836         # overridden to take advantage of the native linker features on
13837         # the platform it is being used on.
13838         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13839       fi
13840
13841       # Commands to make compiler produce verbose output that lists
13842       # what "hidden" libraries, object files and flags are used when
13843       # linking a shared library.
13844       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13845
13846     else
13847       GXX=no
13848       with_gnu_ld=no
13849       wlarc=
13850     fi
13851
13852     # PORTME: fill in a description of your system's C++ link characteristics
13853     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13854 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13855     ld_shlibs_CXX=yes
13856     case $host_os in
13857       aix3*)
13858         # FIXME: insert proper C++ library support
13859         ld_shlibs_CXX=no
13860         ;;
13861       aix[4-9]*)
13862         if test "$host_cpu" = ia64; then
13863           # On IA64, the linker does run time linking by default, so we don't
13864           # have to do anything special.
13865           aix_use_runtimelinking=no
13866           exp_sym_flag='-Bexport'
13867           no_entry_flag=""
13868         else
13869           aix_use_runtimelinking=no
13870
13871           # Test if we are trying to use run time linking or normal
13872           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13873           # need to do runtime linking.
13874           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13875             for ld_flag in $LDFLAGS; do
13876               case $ld_flag in
13877               *-brtl*)
13878                 aix_use_runtimelinking=yes
13879                 break
13880                 ;;
13881               esac
13882             done
13883             ;;
13884           esac
13885
13886           exp_sym_flag='-bexport'
13887           no_entry_flag='-bnoentry'
13888         fi
13889
13890         # When large executables or shared objects are built, AIX ld can
13891         # have problems creating the table of contents.  If linking a library
13892         # or program results in "error TOC overflow" add -mminimal-toc to
13893         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13894         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13895
13896         archive_cmds_CXX=''
13897         hardcode_direct_CXX=yes
13898         hardcode_direct_absolute_CXX=yes
13899         hardcode_libdir_separator_CXX=':'
13900         link_all_deplibs_CXX=yes
13901         file_list_spec_CXX='${wl}-f,'
13902
13903         if test "$GXX" = yes; then
13904           case $host_os in aix4.[012]|aix4.[012].*)
13905           # We only want to do this on AIX 4.2 and lower, the check
13906           # below for broken collect2 doesn't work under 4.3+
13907           collect2name=`${CC} -print-prog-name=collect2`
13908           if test -f "$collect2name" &&
13909              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13910           then
13911             # We have reworked collect2
13912             :
13913           else
13914             # We have old collect2
13915             hardcode_direct_CXX=unsupported
13916             # It fails to find uninstalled libraries when the uninstalled
13917             # path is not listed in the libpath.  Setting hardcode_minus_L
13918             # to unsupported forces relinking
13919             hardcode_minus_L_CXX=yes
13920             hardcode_libdir_flag_spec_CXX='-L$libdir'
13921             hardcode_libdir_separator_CXX=
13922           fi
13923           esac
13924           shared_flag='-shared'
13925           if test "$aix_use_runtimelinking" = yes; then
13926             shared_flag="$shared_flag "'${wl}-G'
13927           fi
13928         else
13929           # not using gcc
13930           if test "$host_cpu" = ia64; then
13931           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13932           # chokes on -Wl,-G. The following line is correct:
13933           shared_flag='-G'
13934           else
13935             if test "$aix_use_runtimelinking" = yes; then
13936               shared_flag='${wl}-G'
13937             else
13938               shared_flag='${wl}-bM:SRE'
13939             fi
13940           fi
13941         fi
13942
13943         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13944         # It seems that -bexpall does not export symbols beginning with
13945         # underscore (_), so it is better to generate a list of symbols to
13946         # export.
13947         always_export_symbols_CXX=yes
13948         if test "$aix_use_runtimelinking" = yes; then
13949           # Warning - without using the other runtime loading flags (-brtl),
13950           # -berok will link without error, but may produce a broken library.
13951           allow_undefined_flag_CXX='-berok'
13952           # Determine the default libpath from the value encoded in an empty
13953           # executable.
13954           if test "${lt_cv_aix_libpath+set}" = set; then
13955   aix_libpath=$lt_cv_aix_libpath
13956 else
13957   if ${lt_cv_aix_libpath__CXX+:} false; then :
13958   $as_echo_n "(cached) " >&6
13959 else
13960   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13961 /* end confdefs.h.  */
13962
13963 int
13964 main ()
13965 {
13966
13967   ;
13968   return 0;
13969 }
13970 _ACEOF
13971 if ac_fn_cxx_try_link "$LINENO"; then :
13972
13973   lt_aix_libpath_sed='
13974       /Import File Strings/,/^$/ {
13975           /^0/ {
13976               s/^0  *\([^ ]*\) *$/\1/
13977               p
13978           }
13979       }'
13980   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13981   # Check for a 64-bit object if we didn't find anything.
13982   if test -z "$lt_cv_aix_libpath__CXX"; then
13983     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13984   fi
13985 fi
13986 rm -f core conftest.err conftest.$ac_objext \
13987     conftest$ac_exeext conftest.$ac_ext
13988   if test -z "$lt_cv_aix_libpath__CXX"; then
13989     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13990   fi
13991
13992 fi
13993
13994   aix_libpath=$lt_cv_aix_libpath__CXX
13995 fi
13996
13997           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13998
13999           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"
14000         else
14001           if test "$host_cpu" = ia64; then
14002             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14003             allow_undefined_flag_CXX="-z nodefs"
14004             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"
14005           else
14006             # Determine the default libpath from the value encoded in an
14007             # empty executable.
14008             if test "${lt_cv_aix_libpath+set}" = set; then
14009   aix_libpath=$lt_cv_aix_libpath
14010 else
14011   if ${lt_cv_aix_libpath__CXX+:} false; then :
14012   $as_echo_n "(cached) " >&6
14013 else
14014   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14015 /* end confdefs.h.  */
14016
14017 int
14018 main ()
14019 {
14020
14021   ;
14022   return 0;
14023 }
14024 _ACEOF
14025 if ac_fn_cxx_try_link "$LINENO"; then :
14026
14027   lt_aix_libpath_sed='
14028       /Import File Strings/,/^$/ {
14029           /^0/ {
14030               s/^0  *\([^ ]*\) *$/\1/
14031               p
14032           }
14033       }'
14034   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14035   # Check for a 64-bit object if we didn't find anything.
14036   if test -z "$lt_cv_aix_libpath__CXX"; then
14037     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14038   fi
14039 fi
14040 rm -f core conftest.err conftest.$ac_objext \
14041     conftest$ac_exeext conftest.$ac_ext
14042   if test -z "$lt_cv_aix_libpath__CXX"; then
14043     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14044   fi
14045
14046 fi
14047
14048   aix_libpath=$lt_cv_aix_libpath__CXX
14049 fi
14050
14051             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14052             # Warning - without using the other run time loading flags,
14053             # -berok will link without error, but may produce a broken library.
14054             no_undefined_flag_CXX=' ${wl}-bernotok'
14055             allow_undefined_flag_CXX=' ${wl}-berok'
14056             if test "$with_gnu_ld" = yes; then
14057               # We only use this code for GNU lds that support --whole-archive.
14058               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14059             else
14060               # Exported symbols can be pulled into shared objects from archives
14061               whole_archive_flag_spec_CXX='$convenience'
14062             fi
14063             archive_cmds_need_lc_CXX=yes
14064             # This is similar to how AIX traditionally builds its shared
14065             # libraries.
14066             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'
14067           fi
14068         fi
14069         ;;
14070
14071       beos*)
14072         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14073           allow_undefined_flag_CXX=unsupported
14074           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14075           # support --undefined.  This deserves some investigation.  FIXME
14076           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14077         else
14078           ld_shlibs_CXX=no
14079         fi
14080         ;;
14081
14082       chorus*)
14083         case $cc_basename in
14084           *)
14085           # FIXME: insert proper C++ library support
14086           ld_shlibs_CXX=no
14087           ;;
14088         esac
14089         ;;
14090
14091       cygwin* | mingw* | pw32* | cegcc*)
14092         case $GXX,$cc_basename in
14093         ,cl* | no,cl*)
14094           # Native MSVC
14095           # hardcode_libdir_flag_spec is actually meaningless, as there is
14096           # no search path for DLLs.
14097           hardcode_libdir_flag_spec_CXX=' '
14098           allow_undefined_flag_CXX=unsupported
14099           always_export_symbols_CXX=yes
14100           file_list_spec_CXX='@'
14101           # Tell ltmain to make .lib files, not .a files.
14102           libext=lib
14103           # Tell ltmain to make .dll files, not .so files.
14104           shrext_cmds=".dll"
14105           # FIXME: Setting linknames here is a bad hack.
14106           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14107           archive_expsym_cmds_CXX='if test "x`$SED \"$sed_uncomment_deffile\" $export_symbols | $SED 1q`" = xEXPORTS; then
14108               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14109             else
14110               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14111             fi~
14112             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14113             linknames='
14114           # The linker will not automatically build a static lib if we build a DLL.
14115           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14116           enable_shared_with_static_runtimes_CXX=yes
14117           # Don't use ranlib
14118           old_postinstall_cmds_CXX='chmod 644 $oldlib'
14119           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14120             lt_tool_outputfile="@TOOL_OUTPUT@"~
14121             case $lt_outputfile in
14122               *.exe|*.EXE) ;;
14123               *)
14124                 lt_outputfile="$lt_outputfile.exe"
14125                 lt_tool_outputfile="$lt_tool_outputfile.exe"
14126                 ;;
14127             esac~
14128             func_to_tool_file "$lt_outputfile"~
14129             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14130               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14131               $RM "$lt_outputfile.manifest";
14132             fi'
14133           ;;
14134         *)
14135           # g++
14136           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14137           # as there is no search path for DLLs.
14138           hardcode_libdir_flag_spec_CXX='-L$libdir'
14139           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
14140           allow_undefined_flag_CXX=unsupported
14141           always_export_symbols_CXX=no
14142           enable_shared_with_static_runtimes_CXX=yes
14143
14144           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14145             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'
14146             # If the export-symbols file already is a .def file (1st line
14147             # is EXPORTS), use it as is; otherwise, prepend...
14148             archive_expsym_cmds_CXX='if test "x`$SED \"$sed_uncomment_deffile\" $export_symbols | $SED 1q`" = xEXPORTS; then
14149               cp $export_symbols $output_objdir/$soname.def;
14150             else
14151               echo EXPORTS > $output_objdir/$soname.def;
14152               cat $export_symbols >> $output_objdir/$soname.def;
14153             fi~
14154             $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'
14155           else
14156             ld_shlibs_CXX=no
14157           fi
14158           ;;
14159         esac
14160         ;;
14161       darwin* | rhapsody*)
14162
14163
14164   archive_cmds_need_lc_CXX=no
14165   hardcode_direct_CXX=no
14166   hardcode_automatic_CXX=yes
14167   hardcode_shlibpath_var_CXX=unsupported
14168   if test "$lt_cv_ld_force_load" = "yes"; then
14169     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\"`'
14170
14171   else
14172     whole_archive_flag_spec_CXX=''
14173   fi
14174   link_all_deplibs_CXX=yes
14175   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14176   case $cc_basename in
14177      ifort*) _lt_dar_can_shared=yes ;;
14178      *) _lt_dar_can_shared=$GCC ;;
14179   esac
14180   if test "$_lt_dar_can_shared" = "yes"; then
14181     output_verbose_link_cmd=func_echo_all
14182     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}"
14183     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14184     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}"
14185     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}"
14186        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14187       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}"
14188       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}"
14189     fi
14190
14191   else
14192   ld_shlibs_CXX=no
14193   fi
14194
14195         ;;
14196
14197       dgux*)
14198         case $cc_basename in
14199           ec++*)
14200             # FIXME: insert proper C++ library support
14201             ld_shlibs_CXX=no
14202             ;;
14203           ghcx*)
14204             # Green Hills C++ Compiler
14205             # FIXME: insert proper C++ library support
14206             ld_shlibs_CXX=no
14207             ;;
14208           *)
14209             # FIXME: insert proper C++ library support
14210             ld_shlibs_CXX=no
14211             ;;
14212         esac
14213         ;;
14214
14215       freebsd2.*)
14216         # C++ shared libraries reported to be fairly broken before
14217         # switch to ELF
14218         ld_shlibs_CXX=no
14219         ;;
14220
14221       freebsd-elf*)
14222         archive_cmds_need_lc_CXX=no
14223         ;;
14224
14225       freebsd* | dragonfly*)
14226         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14227         # conventions
14228         ld_shlibs_CXX=yes
14229         ;;
14230
14231       gnu*)
14232         ;;
14233
14234       haiku*)
14235         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14236         link_all_deplibs_CXX=yes
14237         ;;
14238
14239       hpux9*)
14240         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14241         hardcode_libdir_separator_CXX=:
14242         export_dynamic_flag_spec_CXX='${wl}-E'
14243         hardcode_direct_CXX=yes
14244         hardcode_minus_L_CXX=yes # Not in the search PATH,
14245                                              # but as the default
14246                                              # location of the library.
14247
14248         case $cc_basename in
14249           CC*)
14250             # FIXME: insert proper C++ library support
14251             ld_shlibs_CXX=no
14252             ;;
14253           aCC*)
14254             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'
14255             # Commands to make compiler produce verbose output that lists
14256             # what "hidden" libraries, object files and flags are used when
14257             # linking a shared library.
14258             #
14259             # There doesn't appear to be a way to prevent this compiler from
14260             # explicitly linking system object files so we need to strip them
14261             # from the output so that they don't get included in the library
14262             # dependencies.
14263             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"'
14264             ;;
14265           *)
14266             if test "$GXX" = yes; then
14267               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'
14268             else
14269               # FIXME: insert proper C++ library support
14270               ld_shlibs_CXX=no
14271             fi
14272             ;;
14273         esac
14274         ;;
14275
14276       hpux10*|hpux11*)
14277         if test $with_gnu_ld = no; then
14278           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14279           hardcode_libdir_separator_CXX=:
14280
14281           case $host_cpu in
14282             hppa*64*|ia64*)
14283               ;;
14284             *)
14285               export_dynamic_flag_spec_CXX='${wl}-E'
14286               ;;
14287           esac
14288         fi
14289         case $host_cpu in
14290           hppa*64*|ia64*)
14291             hardcode_direct_CXX=no
14292             hardcode_shlibpath_var_CXX=no
14293             ;;
14294           *)
14295             hardcode_direct_CXX=yes
14296             hardcode_direct_absolute_CXX=yes
14297             hardcode_minus_L_CXX=yes # Not in the search PATH,
14298                                                  # but as the default
14299                                                  # location of the library.
14300             ;;
14301         esac
14302
14303         case $cc_basename in
14304           CC*)
14305             # FIXME: insert proper C++ library support
14306             ld_shlibs_CXX=no
14307             ;;
14308           aCC*)
14309             case $host_cpu in
14310               hppa*64*)
14311                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14312                 ;;
14313               ia64*)
14314                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14315                 ;;
14316               *)
14317                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14318                 ;;
14319             esac
14320             # Commands to make compiler produce verbose output that lists
14321             # what "hidden" libraries, object files and flags are used when
14322             # linking a shared library.
14323             #
14324             # There doesn't appear to be a way to prevent this compiler from
14325             # explicitly linking system object files so we need to strip them
14326             # from the output so that they don't get included in the library
14327             # dependencies.
14328             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"'
14329             ;;
14330           *)
14331             if test "$GXX" = yes; then
14332               if test $with_gnu_ld = no; then
14333                 case $host_cpu in
14334                   hppa*64*)
14335                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14336                     ;;
14337                   ia64*)
14338                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14339                     ;;
14340                   *)
14341                     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'
14342                     ;;
14343                 esac
14344               fi
14345             else
14346               # FIXME: insert proper C++ library support
14347               ld_shlibs_CXX=no
14348             fi
14349             ;;
14350         esac
14351         ;;
14352
14353       interix[3-9]*)
14354         hardcode_direct_CXX=no
14355         hardcode_shlibpath_var_CXX=no
14356         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14357         export_dynamic_flag_spec_CXX='${wl}-E'
14358         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14359         # Instead, shared libraries are loaded at an image base (0x10000000 by
14360         # default) and relocated if they conflict, which is a slow very memory
14361         # consuming and fragmenting process.  To avoid this, we pick a random,
14362         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14363         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14364         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'
14365         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'
14366         ;;
14367       irix5* | irix6*)
14368         case $cc_basename in
14369           CC*)
14370             # SGI C++
14371             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'
14372
14373             # Archives containing C++ object files must be created using
14374             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14375             # necessary to make sure instantiated templates are included
14376             # in the archive.
14377             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14378             ;;
14379           *)
14380             if test "$GXX" = yes; then
14381               if test "$with_gnu_ld" = no; then
14382                 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'
14383               else
14384                 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'
14385               fi
14386             fi
14387             link_all_deplibs_CXX=yes
14388             ;;
14389         esac
14390         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14391         hardcode_libdir_separator_CXX=:
14392         inherit_rpath_CXX=yes
14393         ;;
14394
14395       linux* | k*bsd*-gnu | kopensolaris*-gnu)
14396         case $cc_basename in
14397           KCC*)
14398             # Kuck and Associates, Inc. (KAI) C++ Compiler
14399
14400             # KCC will only create a shared library if the output file
14401             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14402             # to its proper name (with version) after linking.
14403             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'
14404             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'
14405             # Commands to make compiler produce verbose output that lists
14406             # what "hidden" libraries, object files and flags are used when
14407             # linking a shared library.
14408             #
14409             # There doesn't appear to be a way to prevent this compiler from
14410             # explicitly linking system object files so we need to strip them
14411             # from the output so that they don't get included in the library
14412             # dependencies.
14413             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"'
14414
14415             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14416             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14417
14418             # Archives containing C++ object files must be created using
14419             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14420             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14421             ;;
14422           icpc* | ecpc* )
14423             # Intel C++
14424             with_gnu_ld=yes
14425             # version 8.0 and above of icpc choke on multiply defined symbols
14426             # if we add $predep_objects and $postdep_objects, however 7.1 and
14427             # earlier do not add the objects themselves.
14428             case `$CC -V 2>&1` in
14429               *"Version 7."*)
14430                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14431                 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'
14432                 ;;
14433               *)  # Version 8.0 or newer
14434                 tmp_idyn=
14435                 case $host_cpu in
14436                   ia64*) tmp_idyn=' -i_dynamic';;
14437                 esac
14438                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14439                 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'
14440                 ;;
14441             esac
14442             archive_cmds_need_lc_CXX=no
14443             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14444             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14445             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14446             ;;
14447           pgCC* | pgcpp*)
14448             # Portland Group C++ compiler
14449             case `$CC -V` in
14450             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14451               prelink_cmds_CXX='tpldir=Template.dir~
14452                 rm -rf $tpldir~
14453                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14454                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14455               old_archive_cmds_CXX='tpldir=Template.dir~
14456                 rm -rf $tpldir~
14457                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14458                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14459                 $RANLIB $oldlib'
14460               archive_cmds_CXX='tpldir=Template.dir~
14461                 rm -rf $tpldir~
14462                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14463                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14464               archive_expsym_cmds_CXX='tpldir=Template.dir~
14465                 rm -rf $tpldir~
14466                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14467                 $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'
14468               ;;
14469             *) # Version 6 and above use weak symbols
14470               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14471               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'
14472               ;;
14473             esac
14474
14475             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14476             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14477             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'
14478             ;;
14479           cxx*)
14480             # Compaq C++
14481             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14482             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'
14483
14484             runpath_var=LD_RUN_PATH
14485             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14486             hardcode_libdir_separator_CXX=:
14487
14488             # Commands to make compiler produce verbose output that lists
14489             # what "hidden" libraries, object files and flags are used when
14490             # linking a shared library.
14491             #
14492             # There doesn't appear to be a way to prevent this compiler from
14493             # explicitly linking system object files so we need to strip them
14494             # from the output so that they don't get included in the library
14495             # dependencies.
14496             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'
14497             ;;
14498           xl* | mpixl* | bgxl*)
14499             # IBM XL 8.0 on PPC, with GNU ld
14500             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14501             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14502             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14503             if test "x$supports_anon_versioning" = xyes; then
14504               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14505                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14506                 echo "local: *; };" >> $output_objdir/$libname.ver~
14507                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14508             fi
14509             ;;
14510           *)
14511             case `$CC -V 2>&1 | sed 5q` in
14512             *Sun\ C*)
14513               # Sun C++ 5.9
14514               no_undefined_flag_CXX=' -zdefs'
14515               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14516               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'
14517               hardcode_libdir_flag_spec_CXX='-R$libdir'
14518               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'
14519               compiler_needs_object_CXX=yes
14520
14521               # Not sure whether something based on
14522               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14523               # would be better.
14524               output_verbose_link_cmd='func_echo_all'
14525
14526               # Archives containing C++ object files must be created using
14527               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14528               # necessary to make sure instantiated templates are included
14529               # in the archive.
14530               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14531               ;;
14532             esac
14533             ;;
14534         esac
14535         ;;
14536
14537       lynxos*)
14538         # FIXME: insert proper C++ library support
14539         ld_shlibs_CXX=no
14540         ;;
14541
14542       m88k*)
14543         # FIXME: insert proper C++ library support
14544         ld_shlibs_CXX=no
14545         ;;
14546
14547       mvs*)
14548         case $cc_basename in
14549           cxx*)
14550             # FIXME: insert proper C++ library support
14551             ld_shlibs_CXX=no
14552             ;;
14553           *)
14554             # FIXME: insert proper C++ library support
14555             ld_shlibs_CXX=no
14556             ;;
14557         esac
14558         ;;
14559
14560       netbsd*)
14561         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14562           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14563           wlarc=
14564           hardcode_libdir_flag_spec_CXX='-R$libdir'
14565           hardcode_direct_CXX=yes
14566           hardcode_shlibpath_var_CXX=no
14567         fi
14568         # Workaround some broken pre-1.5 toolchains
14569         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14570         ;;
14571
14572       *nto* | *qnx*)
14573         ld_shlibs_CXX=yes
14574         ;;
14575
14576       openbsd2*)
14577         # C++ shared libraries are fairly broken
14578         ld_shlibs_CXX=no
14579         ;;
14580
14581       openbsd*)
14582         if test -f /usr/libexec/ld.so; then
14583           hardcode_direct_CXX=yes
14584           hardcode_shlibpath_var_CXX=no
14585           hardcode_direct_absolute_CXX=yes
14586           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14587           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14588           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14589             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14590             export_dynamic_flag_spec_CXX='${wl}-E'
14591             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14592           fi
14593           output_verbose_link_cmd=func_echo_all
14594         else
14595           ld_shlibs_CXX=no
14596         fi
14597         ;;
14598
14599       osf3* | osf4* | osf5*)
14600         case $cc_basename in
14601           KCC*)
14602             # Kuck and Associates, Inc. (KAI) C++ Compiler
14603
14604             # KCC will only create a shared library if the output file
14605             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14606             # to its proper name (with version) after linking.
14607             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'
14608
14609             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14610             hardcode_libdir_separator_CXX=:
14611
14612             # Archives containing C++ object files must be created using
14613             # the KAI C++ compiler.
14614             case $host in
14615               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14616               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14617             esac
14618             ;;
14619           RCC*)
14620             # Rational C++ 2.4.1
14621             # FIXME: insert proper C++ library support
14622             ld_shlibs_CXX=no
14623             ;;
14624           cxx*)
14625             case $host in
14626               osf3*)
14627                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14628                 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'
14629                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14630                 ;;
14631               *)
14632                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14633                 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'
14634                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14635                   echo "-hidden">> $lib.exp~
14636                   $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~
14637                   $RM $lib.exp'
14638                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14639                 ;;
14640             esac
14641
14642             hardcode_libdir_separator_CXX=:
14643
14644             # Commands to make compiler produce verbose output that lists
14645             # what "hidden" libraries, object files and flags are used when
14646             # linking a shared library.
14647             #
14648             # There doesn't appear to be a way to prevent this compiler from
14649             # explicitly linking system object files so we need to strip them
14650             # from the output so that they don't get included in the library
14651             # dependencies.
14652             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"'
14653             ;;
14654           *)
14655             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14656               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14657               case $host in
14658                 osf3*)
14659                   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'
14660                   ;;
14661                 *)
14662                   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'
14663                   ;;
14664               esac
14665
14666               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14667               hardcode_libdir_separator_CXX=:
14668
14669               # Commands to make compiler produce verbose output that lists
14670               # what "hidden" libraries, object files and flags are used when
14671               # linking a shared library.
14672               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14673
14674             else
14675               # FIXME: insert proper C++ library support
14676               ld_shlibs_CXX=no
14677             fi
14678             ;;
14679         esac
14680         ;;
14681
14682       psos*)
14683         # FIXME: insert proper C++ library support
14684         ld_shlibs_CXX=no
14685         ;;
14686
14687       sunos4*)
14688         case $cc_basename in
14689           CC*)
14690             # Sun C++ 4.x
14691             # FIXME: insert proper C++ library support
14692             ld_shlibs_CXX=no
14693             ;;
14694           lcc*)
14695             # Lucid
14696             # FIXME: insert proper C++ library support
14697             ld_shlibs_CXX=no
14698             ;;
14699           *)
14700             # FIXME: insert proper C++ library support
14701             ld_shlibs_CXX=no
14702             ;;
14703         esac
14704         ;;
14705
14706       solaris*)
14707         case $cc_basename in
14708           CC* | sunCC*)
14709             # Sun C++ 4.2, 5.x and Centerline C++
14710             archive_cmds_need_lc_CXX=yes
14711             no_undefined_flag_CXX=' -zdefs'
14712             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14713             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14714               $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'
14715
14716             hardcode_libdir_flag_spec_CXX='-R$libdir'
14717             hardcode_shlibpath_var_CXX=no
14718             case $host_os in
14719               solaris2.[0-5] | solaris2.[0-5].*) ;;
14720               *)
14721                 # The compiler driver will combine and reorder linker options,
14722                 # but understands `-z linker_flag'.
14723                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14724                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14725                 ;;
14726             esac
14727             link_all_deplibs_CXX=yes
14728
14729             output_verbose_link_cmd='func_echo_all'
14730
14731             # Archives containing C++ object files must be created using
14732             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14733             # necessary to make sure instantiated templates are included
14734             # in the archive.
14735             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14736             ;;
14737           gcx*)
14738             # Green Hills C++ Compiler
14739             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14740
14741             # The C++ compiler must be used to create the archive.
14742             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14743             ;;
14744           *)
14745             # GNU C++ compiler with Solaris linker
14746             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14747               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14748               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14749                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14750                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14751                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14752
14753                 # Commands to make compiler produce verbose output that lists
14754                 # what "hidden" libraries, object files and flags are used when
14755                 # linking a shared library.
14756                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14757               else
14758                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14759                 # platform.
14760                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14761                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14762                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14763
14764                 # Commands to make compiler produce verbose output that lists
14765                 # what "hidden" libraries, object files and flags are used when
14766                 # linking a shared library.
14767                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14768               fi
14769
14770               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14771               case $host_os in
14772                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14773                 *)
14774                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14775                   ;;
14776               esac
14777             fi
14778             ;;
14779         esac
14780         ;;
14781
14782     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14783       no_undefined_flag_CXX='${wl}-z,text'
14784       archive_cmds_need_lc_CXX=no
14785       hardcode_shlibpath_var_CXX=no
14786       runpath_var='LD_RUN_PATH'
14787
14788       case $cc_basename in
14789         CC*)
14790           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14791           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14792           ;;
14793         *)
14794           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14795           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14796           ;;
14797       esac
14798       ;;
14799
14800       sysv5* | sco3.2v5* | sco5v6*)
14801         # Note: We can NOT use -z defs as we might desire, because we do not
14802         # link with -lc, and that would cause any symbols used from libc to
14803         # always be unresolved, which means just about no library would
14804         # ever link correctly.  If we're not using GNU ld we use -z text
14805         # though, which does catch some bad symbols but isn't as heavy-handed
14806         # as -z defs.
14807         no_undefined_flag_CXX='${wl}-z,text'
14808         allow_undefined_flag_CXX='${wl}-z,nodefs'
14809         archive_cmds_need_lc_CXX=no
14810         hardcode_shlibpath_var_CXX=no
14811         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14812         hardcode_libdir_separator_CXX=':'
14813         link_all_deplibs_CXX=yes
14814         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14815         runpath_var='LD_RUN_PATH'
14816
14817         case $cc_basename in
14818           CC*)
14819             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14820             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14821             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14822               '"$old_archive_cmds_CXX"
14823             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14824               '"$reload_cmds_CXX"
14825             ;;
14826           *)
14827             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14828             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14829             ;;
14830         esac
14831       ;;
14832
14833       tandem*)
14834         case $cc_basename in
14835           NCC*)
14836             # NonStop-UX NCC 3.20
14837             # FIXME: insert proper C++ library support
14838             ld_shlibs_CXX=no
14839             ;;
14840           *)
14841             # FIXME: insert proper C++ library support
14842             ld_shlibs_CXX=no
14843             ;;
14844         esac
14845         ;;
14846
14847       vxworks*)
14848         # FIXME: insert proper C++ library support
14849         ld_shlibs_CXX=no
14850         ;;
14851
14852       *)
14853         # FIXME: insert proper C++ library support
14854         ld_shlibs_CXX=no
14855         ;;
14856     esac
14857
14858     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14859 $as_echo "$ld_shlibs_CXX" >&6; }
14860     test "$ld_shlibs_CXX" = no && can_build_shared=no
14861
14862     GCC_CXX="$GXX"
14863     LD_CXX="$LD"
14864
14865     ## CAVEAT EMPTOR:
14866     ## There is no encapsulation within the following macros, do not change
14867     ## the running order or otherwise move them around unless you know exactly
14868     ## what you are doing...
14869     # Dependencies to place before and after the object being linked:
14870 predep_objects_CXX=
14871 postdep_objects_CXX=
14872 predeps_CXX=
14873 postdeps_CXX=
14874 compiler_lib_search_path_CXX=
14875
14876 cat > conftest.$ac_ext <<_LT_EOF
14877 class Foo
14878 {
14879 public:
14880   Foo (void) { a = 0; }
14881 private:
14882   int a;
14883 };
14884 _LT_EOF
14885
14886
14887 _lt_libdeps_save_CFLAGS=$CFLAGS
14888 case "$CC $CFLAGS " in #(
14889 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14890 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14891 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14892 esac
14893
14894 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14895   (eval $ac_compile) 2>&5
14896   ac_status=$?
14897   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14898   test $ac_status = 0; }; then
14899   # Parse the compiler output and extract the necessary
14900   # objects, libraries and library flags.
14901
14902   # Sentinel used to keep track of whether or not we are before
14903   # the conftest object file.
14904   pre_test_object_deps_done=no
14905
14906   for p in `eval "$output_verbose_link_cmd"`; do
14907     case ${prev}${p} in
14908
14909     -L* | -R* | -l*)
14910        # Some compilers place space between "-{L,R}" and the path.
14911        # Remove the space.
14912        if test $p = "-L" ||
14913           test $p = "-R"; then
14914          prev=$p
14915          continue
14916        fi
14917
14918        # Expand the sysroot to ease extracting the directories later.
14919        if test -z "$prev"; then
14920          case $p in
14921          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14922          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14923          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14924          esac
14925        fi
14926        case $p in
14927        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14928        esac
14929        if test "$pre_test_object_deps_done" = no; then
14930          case ${prev} in
14931          -L | -R)
14932            # Internal compiler library paths should come after those
14933            # provided the user.  The postdeps already come after the
14934            # user supplied libs so there is no need to process them.
14935            if test -z "$compiler_lib_search_path_CXX"; then
14936              compiler_lib_search_path_CXX="${prev}${p}"
14937            else
14938              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14939            fi
14940            ;;
14941          # The "-l" case would never come before the object being
14942          # linked, so don't bother handling this case.
14943          esac
14944        else
14945          if test -z "$postdeps_CXX"; then
14946            postdeps_CXX="${prev}${p}"
14947          else
14948            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14949          fi
14950        fi
14951        prev=
14952        ;;
14953
14954     *.lto.$objext) ;; # Ignore GCC LTO objects
14955     *.$objext)
14956        # This assumes that the test object file only shows up
14957        # once in the compiler output.
14958        if test "$p" = "conftest.$objext"; then
14959          pre_test_object_deps_done=yes
14960          continue
14961        fi
14962
14963        if test "$pre_test_object_deps_done" = no; then
14964          if test -z "$predep_objects_CXX"; then
14965            predep_objects_CXX="$p"
14966          else
14967            predep_objects_CXX="$predep_objects_CXX $p"
14968          fi
14969        else
14970          if test -z "$postdep_objects_CXX"; then
14971            postdep_objects_CXX="$p"
14972          else
14973            postdep_objects_CXX="$postdep_objects_CXX $p"
14974          fi
14975        fi
14976        ;;
14977
14978     *) ;; # Ignore the rest.
14979
14980     esac
14981   done
14982
14983   # Clean up.
14984   rm -f a.out a.exe
14985 else
14986   echo "libtool.m4: error: problem compiling CXX test program"
14987 fi
14988
14989 $RM -f confest.$objext
14990 CFLAGS=$_lt_libdeps_save_CFLAGS
14991
14992 # PORTME: override above test on systems where it is broken
14993 case $host_os in
14994 interix[3-9]*)
14995   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14996   # hack all around it, let's just trust "g++" to DTRT.
14997   predep_objects_CXX=
14998   postdep_objects_CXX=
14999   postdeps_CXX=
15000   ;;
15001
15002 linux*)
15003   case `$CC -V 2>&1 | sed 5q` in
15004   *Sun\ C*)
15005     # Sun C++ 5.9
15006
15007     # The more standards-conforming stlport4 library is
15008     # incompatible with the Cstd library. Avoid specifying
15009     # it if it's in CXXFLAGS. Ignore libCrun as
15010     # -library=stlport4 depends on it.
15011     case " $CXX $CXXFLAGS " in
15012     *" -library=stlport4 "*)
15013       solaris_use_stlport4=yes
15014       ;;
15015     esac
15016
15017     if test "$solaris_use_stlport4" != yes; then
15018       postdeps_CXX='-library=Cstd -library=Crun'
15019     fi
15020     ;;
15021   esac
15022   ;;
15023
15024 solaris*)
15025   case $cc_basename in
15026   CC* | sunCC*)
15027     # The more standards-conforming stlport4 library is
15028     # incompatible with the Cstd library. Avoid specifying
15029     # it if it's in CXXFLAGS. Ignore libCrun as
15030     # -library=stlport4 depends on it.
15031     case " $CXX $CXXFLAGS " in
15032     *" -library=stlport4 "*)
15033       solaris_use_stlport4=yes
15034       ;;
15035     esac
15036
15037     # Adding this requires a known-good setup of shared libraries for
15038     # Sun compiler versions before 5.6, else PIC objects from an old
15039     # archive will be linked into the output, leading to subtle bugs.
15040     if test "$solaris_use_stlport4" != yes; then
15041       postdeps_CXX='-library=Cstd -library=Crun'
15042     fi
15043     ;;
15044   esac
15045   ;;
15046 esac
15047
15048
15049 case " $postdeps_CXX " in
15050 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15051 esac
15052  compiler_lib_search_dirs_CXX=
15053 if test -n "${compiler_lib_search_path_CXX}"; then
15054  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15055 fi
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087     lt_prog_compiler_wl_CXX=
15088 lt_prog_compiler_pic_CXX=
15089 lt_prog_compiler_static_CXX=
15090
15091
15092   # C++ specific cases for pic, static, wl, etc.
15093   if test "$GXX" = yes; then
15094     lt_prog_compiler_wl_CXX='-Wl,'
15095     lt_prog_compiler_static_CXX='-static'
15096
15097     case $host_os in
15098     aix*)
15099       # All AIX code is PIC.
15100       if test "$host_cpu" = ia64; then
15101         # AIX 5 now supports IA64 processor
15102         lt_prog_compiler_static_CXX='-Bstatic'
15103       fi
15104       ;;
15105
15106     amigaos*)
15107       case $host_cpu in
15108       powerpc)
15109             # see comment about AmigaOS4 .so support
15110             lt_prog_compiler_pic_CXX='-fPIC'
15111         ;;
15112       m68k)
15113             # FIXME: we need at least 68020 code to build shared libraries, but
15114             # adding the `-m68020' flag to GCC prevents building anything better,
15115             # like `-m68040'.
15116             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15117         ;;
15118       esac
15119       ;;
15120
15121     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15122       # PIC is the default for these OSes.
15123       ;;
15124     mingw* | cygwin* | os2* | pw32* | cegcc*)
15125       # This hack is so that the source file can tell whether it is being
15126       # built for inclusion in a dll (and should export symbols for example).
15127       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15128       # (--disable-auto-import) libraries
15129       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15130       ;;
15131     darwin* | rhapsody*)
15132       # PIC is the default on this platform
15133       # Common symbols not allowed in MH_DYLIB files
15134       lt_prog_compiler_pic_CXX='-fno-common'
15135       ;;
15136     *djgpp*)
15137       # DJGPP does not support shared libraries at all
15138       lt_prog_compiler_pic_CXX=
15139       ;;
15140     haiku*)
15141       # PIC is the default for Haiku.
15142       # The "-static" flag exists, but is broken.
15143       lt_prog_compiler_static_CXX=
15144       ;;
15145     interix[3-9]*)
15146       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15147       # Instead, we relocate shared libraries at runtime.
15148       ;;
15149     sysv4*MP*)
15150       if test -d /usr/nec; then
15151         lt_prog_compiler_pic_CXX=-Kconform_pic
15152       fi
15153       ;;
15154     hpux*)
15155       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15156       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15157       # sets the default TLS model and affects inlining.
15158       case $host_cpu in
15159       hppa*64*)
15160         ;;
15161       *)
15162         lt_prog_compiler_pic_CXX='-fPIC'
15163         ;;
15164       esac
15165       ;;
15166     *qnx* | *nto*)
15167       # QNX uses GNU C++, but need to define -shared option too, otherwise
15168       # it will coredump.
15169       lt_prog_compiler_pic_CXX='-fPIC -shared'
15170       ;;
15171     *)
15172       lt_prog_compiler_pic_CXX='-fPIC'
15173       ;;
15174     esac
15175   else
15176     case $host_os in
15177       aix[4-9]*)
15178         # All AIX code is PIC.
15179         if test "$host_cpu" = ia64; then
15180           # AIX 5 now supports IA64 processor
15181           lt_prog_compiler_static_CXX='-Bstatic'
15182         else
15183           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15184         fi
15185         ;;
15186       chorus*)
15187         case $cc_basename in
15188         cxch68*)
15189           # Green Hills C++ Compiler
15190           # _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"
15191           ;;
15192         esac
15193         ;;
15194       mingw* | cygwin* | os2* | pw32* | cegcc*)
15195         # This hack is so that the source file can tell whether it is being
15196         # built for inclusion in a dll (and should export symbols for example).
15197         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15198         ;;
15199       dgux*)
15200         case $cc_basename in
15201           ec++*)
15202             lt_prog_compiler_pic_CXX='-KPIC'
15203             ;;
15204           ghcx*)
15205             # Green Hills C++ Compiler
15206             lt_prog_compiler_pic_CXX='-pic'
15207             ;;
15208           *)
15209             ;;
15210         esac
15211         ;;
15212       freebsd* | dragonfly*)
15213         # FreeBSD uses GNU C++
15214         ;;
15215       hpux9* | hpux10* | hpux11*)
15216         case $cc_basename in
15217           CC*)
15218             lt_prog_compiler_wl_CXX='-Wl,'
15219             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15220             if test "$host_cpu" != ia64; then
15221               lt_prog_compiler_pic_CXX='+Z'
15222             fi
15223             ;;
15224           aCC*)
15225             lt_prog_compiler_wl_CXX='-Wl,'
15226             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15227             case $host_cpu in
15228             hppa*64*|ia64*)
15229               # +Z the default
15230               ;;
15231             *)
15232               lt_prog_compiler_pic_CXX='+Z'
15233               ;;
15234             esac
15235             ;;
15236           *)
15237             ;;
15238         esac
15239         ;;
15240       interix*)
15241         # This is c89, which is MS Visual C++ (no shared libs)
15242         # Anyone wants to do a port?
15243         ;;
15244       irix5* | irix6* | nonstopux*)
15245         case $cc_basename in
15246           CC*)
15247             lt_prog_compiler_wl_CXX='-Wl,'
15248             lt_prog_compiler_static_CXX='-non_shared'
15249             # CC pic flag -KPIC is the default.
15250             ;;
15251           *)
15252             ;;
15253         esac
15254         ;;
15255       linux* | k*bsd*-gnu | kopensolaris*-gnu)
15256         case $cc_basename in
15257           KCC*)
15258             # KAI C++ Compiler
15259             lt_prog_compiler_wl_CXX='--backend -Wl,'
15260             lt_prog_compiler_pic_CXX='-fPIC'
15261             ;;
15262           ecpc* )
15263             # old Intel C++ for x86_64 which still supported -KPIC.
15264             lt_prog_compiler_wl_CXX='-Wl,'
15265             lt_prog_compiler_pic_CXX='-KPIC'
15266             lt_prog_compiler_static_CXX='-static'
15267             ;;
15268           icpc* )
15269             # Intel C++, used to be incompatible with GCC.
15270             # ICC 10 doesn't accept -KPIC any more.
15271             lt_prog_compiler_wl_CXX='-Wl,'
15272             lt_prog_compiler_pic_CXX='-fPIC'
15273             lt_prog_compiler_static_CXX='-static'
15274             ;;
15275           pgCC* | pgcpp*)
15276             # Portland Group C++ compiler
15277             lt_prog_compiler_wl_CXX='-Wl,'
15278             lt_prog_compiler_pic_CXX='-fpic'
15279             lt_prog_compiler_static_CXX='-Bstatic'
15280             ;;
15281           cxx*)
15282             # Compaq C++
15283             # Make sure the PIC flag is empty.  It appears that all Alpha
15284             # Linux and Compaq Tru64 Unix objects are PIC.
15285             lt_prog_compiler_pic_CXX=
15286             lt_prog_compiler_static_CXX='-non_shared'
15287             ;;
15288           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15289             # IBM XL 8.0, 9.0 on PPC and BlueGene
15290             lt_prog_compiler_wl_CXX='-Wl,'
15291             lt_prog_compiler_pic_CXX='-qpic'
15292             lt_prog_compiler_static_CXX='-qstaticlink'
15293             ;;
15294           *)
15295             case `$CC -V 2>&1 | sed 5q` in
15296             *Sun\ C*)
15297               # Sun C++ 5.9
15298               lt_prog_compiler_pic_CXX='-KPIC'
15299               lt_prog_compiler_static_CXX='-Bstatic'
15300               lt_prog_compiler_wl_CXX='-Qoption ld '
15301               ;;
15302             esac
15303             ;;
15304         esac
15305         ;;
15306       lynxos*)
15307         ;;
15308       m88k*)
15309         ;;
15310       mvs*)
15311         case $cc_basename in
15312           cxx*)
15313             lt_prog_compiler_pic_CXX='-W c,exportall'
15314             ;;
15315           *)
15316             ;;
15317         esac
15318         ;;
15319       netbsd* | netbsdelf*-gnu)
15320         ;;
15321       *qnx* | *nto*)
15322         # QNX uses GNU C++, but need to define -shared option too, otherwise
15323         # it will coredump.
15324         lt_prog_compiler_pic_CXX='-fPIC -shared'
15325         ;;
15326       osf3* | osf4* | osf5*)
15327         case $cc_basename in
15328           KCC*)
15329             lt_prog_compiler_wl_CXX='--backend -Wl,'
15330             ;;
15331           RCC*)
15332             # Rational C++ 2.4.1
15333             lt_prog_compiler_pic_CXX='-pic'
15334             ;;
15335           cxx*)
15336             # Digital/Compaq C++
15337             lt_prog_compiler_wl_CXX='-Wl,'
15338             # Make sure the PIC flag is empty.  It appears that all Alpha
15339             # Linux and Compaq Tru64 Unix objects are PIC.
15340             lt_prog_compiler_pic_CXX=
15341             lt_prog_compiler_static_CXX='-non_shared'
15342             ;;
15343           *)
15344             ;;
15345         esac
15346         ;;
15347       psos*)
15348         ;;
15349       solaris*)
15350         case $cc_basename in
15351           CC* | sunCC*)
15352             # Sun C++ 4.2, 5.x and Centerline C++
15353             lt_prog_compiler_pic_CXX='-KPIC'
15354             lt_prog_compiler_static_CXX='-Bstatic'
15355             lt_prog_compiler_wl_CXX='-Qoption ld '
15356             ;;
15357           gcx*)
15358             # Green Hills C++ Compiler
15359             lt_prog_compiler_pic_CXX='-PIC'
15360             ;;
15361           *)
15362             ;;
15363         esac
15364         ;;
15365       sunos4*)
15366         case $cc_basename in
15367           CC*)
15368             # Sun C++ 4.x
15369             lt_prog_compiler_pic_CXX='-pic'
15370             lt_prog_compiler_static_CXX='-Bstatic'
15371             ;;
15372           lcc*)
15373             # Lucid
15374             lt_prog_compiler_pic_CXX='-pic'
15375             ;;
15376           *)
15377             ;;
15378         esac
15379         ;;
15380       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15381         case $cc_basename in
15382           CC*)
15383             lt_prog_compiler_wl_CXX='-Wl,'
15384             lt_prog_compiler_pic_CXX='-KPIC'
15385             lt_prog_compiler_static_CXX='-Bstatic'
15386             ;;
15387         esac
15388         ;;
15389       tandem*)
15390         case $cc_basename in
15391           NCC*)
15392             # NonStop-UX NCC 3.20
15393             lt_prog_compiler_pic_CXX='-KPIC'
15394             ;;
15395           *)
15396             ;;
15397         esac
15398         ;;
15399       vxworks*)
15400         ;;
15401       *)
15402         lt_prog_compiler_can_build_shared_CXX=no
15403         ;;
15404     esac
15405   fi
15406
15407 case $host_os in
15408   # For platforms which do not support PIC, -DPIC is meaningless:
15409   *djgpp*)
15410     lt_prog_compiler_pic_CXX=
15411     ;;
15412   *)
15413     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15414     ;;
15415 esac
15416
15417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15418 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15419 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15420   $as_echo_n "(cached) " >&6
15421 else
15422   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15423 fi
15424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15425 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15426 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15427
15428 #
15429 # Check to make sure the PIC flag actually works.
15430 #
15431 if test -n "$lt_prog_compiler_pic_CXX"; then
15432   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15433 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15434 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15435   $as_echo_n "(cached) " >&6
15436 else
15437   lt_cv_prog_compiler_pic_works_CXX=no
15438    ac_outfile=conftest.$ac_objext
15439    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15440    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15441    # Insert the option either (1) after the last *FLAGS variable, or
15442    # (2) before a word containing "conftest.", or (3) at the end.
15443    # Note that $ac_compile itself does not contain backslashes and begins
15444    # with a dollar sign (not a hyphen), so the echo should work correctly.
15445    # The option is referenced via a variable to avoid confusing sed.
15446    lt_compile=`echo "$ac_compile" | $SED \
15447    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15448    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15449    -e 's:$: $lt_compiler_flag:'`
15450    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15451    (eval "$lt_compile" 2>conftest.err)
15452    ac_status=$?
15453    cat conftest.err >&5
15454    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15455    if (exit $ac_status) && test -s "$ac_outfile"; then
15456      # The compiler can only warn and ignore the option if not recognized
15457      # So say no if there are warnings other than the usual output.
15458      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15459      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15460      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15461        lt_cv_prog_compiler_pic_works_CXX=yes
15462      fi
15463    fi
15464    $RM conftest*
15465
15466 fi
15467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15468 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15469
15470 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15471     case $lt_prog_compiler_pic_CXX in
15472      "" | " "*) ;;
15473      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15474      esac
15475 else
15476     lt_prog_compiler_pic_CXX=
15477      lt_prog_compiler_can_build_shared_CXX=no
15478 fi
15479
15480 fi
15481
15482
15483
15484
15485
15486 #
15487 # Check to make sure the static flag actually works.
15488 #
15489 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15491 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15492 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15493   $as_echo_n "(cached) " >&6
15494 else
15495   lt_cv_prog_compiler_static_works_CXX=no
15496    save_LDFLAGS="$LDFLAGS"
15497    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15498    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15499    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15500      # The linker can only warn and ignore the option if not recognized
15501      # So say no if there are warnings
15502      if test -s conftest.err; then
15503        # Append any errors to the config.log.
15504        cat conftest.err 1>&5
15505        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15506        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15507        if diff conftest.exp conftest.er2 >/dev/null; then
15508          lt_cv_prog_compiler_static_works_CXX=yes
15509        fi
15510      else
15511        lt_cv_prog_compiler_static_works_CXX=yes
15512      fi
15513    fi
15514    $RM -r conftest*
15515    LDFLAGS="$save_LDFLAGS"
15516
15517 fi
15518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15519 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15520
15521 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15522     :
15523 else
15524     lt_prog_compiler_static_CXX=
15525 fi
15526
15527
15528
15529
15530     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15531 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15532 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15533   $as_echo_n "(cached) " >&6
15534 else
15535   lt_cv_prog_compiler_c_o_CXX=no
15536    $RM -r conftest 2>/dev/null
15537    mkdir conftest
15538    cd conftest
15539    mkdir out
15540    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15541
15542    lt_compiler_flag="-o out/conftest2.$ac_objext"
15543    # Insert the option either (1) after the last *FLAGS variable, or
15544    # (2) before a word containing "conftest.", or (3) at the end.
15545    # Note that $ac_compile itself does not contain backslashes and begins
15546    # with a dollar sign (not a hyphen), so the echo should work correctly.
15547    lt_compile=`echo "$ac_compile" | $SED \
15548    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15549    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15550    -e 's:$: $lt_compiler_flag:'`
15551    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15552    (eval "$lt_compile" 2>out/conftest.err)
15553    ac_status=$?
15554    cat out/conftest.err >&5
15555    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15557    then
15558      # The compiler can only warn and ignore the option if not recognized
15559      # So say no if there are warnings
15560      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15561      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15562      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15563        lt_cv_prog_compiler_c_o_CXX=yes
15564      fi
15565    fi
15566    chmod u+w . 2>&5
15567    $RM conftest*
15568    # SGI C++ compiler will create directory out/ii_files/ for
15569    # template instantiation
15570    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15571    $RM out/* && rmdir out
15572    cd ..
15573    $RM -r conftest
15574    $RM conftest*
15575
15576 fi
15577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15578 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15579
15580
15581
15582     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15583 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15584 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15585   $as_echo_n "(cached) " >&6
15586 else
15587   lt_cv_prog_compiler_c_o_CXX=no
15588    $RM -r conftest 2>/dev/null
15589    mkdir conftest
15590    cd conftest
15591    mkdir out
15592    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15593
15594    lt_compiler_flag="-o out/conftest2.$ac_objext"
15595    # Insert the option either (1) after the last *FLAGS variable, or
15596    # (2) before a word containing "conftest.", or (3) at the end.
15597    # Note that $ac_compile itself does not contain backslashes and begins
15598    # with a dollar sign (not a hyphen), so the echo should work correctly.
15599    lt_compile=`echo "$ac_compile" | $SED \
15600    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15601    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15602    -e 's:$: $lt_compiler_flag:'`
15603    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15604    (eval "$lt_compile" 2>out/conftest.err)
15605    ac_status=$?
15606    cat out/conftest.err >&5
15607    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15608    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15609    then
15610      # The compiler can only warn and ignore the option if not recognized
15611      # So say no if there are warnings
15612      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15613      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15614      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15615        lt_cv_prog_compiler_c_o_CXX=yes
15616      fi
15617    fi
15618    chmod u+w . 2>&5
15619    $RM conftest*
15620    # SGI C++ compiler will create directory out/ii_files/ for
15621    # template instantiation
15622    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15623    $RM out/* && rmdir out
15624    cd ..
15625    $RM -r conftest
15626    $RM conftest*
15627
15628 fi
15629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15630 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15631
15632
15633
15634
15635 hard_links="nottested"
15636 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15637   # do not overwrite the value of need_locks provided by the user
15638   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15639 $as_echo_n "checking if we can lock with hard links... " >&6; }
15640   hard_links=yes
15641   $RM conftest*
15642   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15643   touch conftest.a
15644   ln conftest.a conftest.b 2>&5 || hard_links=no
15645   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15647 $as_echo "$hard_links" >&6; }
15648   if test "$hard_links" = no; then
15649     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15650 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15651     need_locks=warn
15652   fi
15653 else
15654   need_locks=no
15655 fi
15656
15657
15658
15659     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15660 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15661
15662   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15663   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15664   case $host_os in
15665   aix[4-9]*)
15666     # If we're using GNU nm, then we don't want the "-C" option.
15667     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15668     # Also, AIX nm treats weak defined symbols like other global defined
15669     # symbols, whereas GNU nm marks them as "W".
15670     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15671       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'
15672     else
15673       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'
15674     fi
15675     ;;
15676   pw32*)
15677     export_symbols_cmds_CXX="$ltdll_cmds"
15678     ;;
15679   cygwin* | mingw* | cegcc*)
15680     case $cc_basename in
15681     cl*)
15682       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15683       ;;
15684     *)
15685       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'
15686       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15687       ;;
15688     esac
15689     ;;
15690   linux* | k*bsd*-gnu | gnu*)
15691     link_all_deplibs_CXX=no
15692     ;;
15693   *)
15694     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15695     ;;
15696   esac
15697
15698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15699 $as_echo "$ld_shlibs_CXX" >&6; }
15700 test "$ld_shlibs_CXX" = no && can_build_shared=no
15701
15702 with_gnu_ld_CXX=$with_gnu_ld
15703
15704
15705
15706
15707
15708
15709 #
15710 # Do we need to explicitly link libc?
15711 #
15712 case "x$archive_cmds_need_lc_CXX" in
15713 x|xyes)
15714   # Assume -lc should be added
15715   archive_cmds_need_lc_CXX=yes
15716
15717   if test "$enable_shared" = yes && test "$GCC" = yes; then
15718     case $archive_cmds_CXX in
15719     *'~'*)
15720       # FIXME: we may have to deal with multi-command sequences.
15721       ;;
15722     '$CC '*)
15723       # Test whether the compiler implicitly links with -lc since on some
15724       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15725       # to ld, don't add -lc before -lgcc.
15726       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15727 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15728 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15729   $as_echo_n "(cached) " >&6
15730 else
15731   $RM conftest*
15732         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15733
15734         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15735   (eval $ac_compile) 2>&5
15736   ac_status=$?
15737   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15738   test $ac_status = 0; } 2>conftest.err; then
15739           soname=conftest
15740           lib=conftest
15741           libobjs=conftest.$ac_objext
15742           deplibs=
15743           wl=$lt_prog_compiler_wl_CXX
15744           pic_flag=$lt_prog_compiler_pic_CXX
15745           compiler_flags=-v
15746           linker_flags=-v
15747           verstring=
15748           output_objdir=.
15749           libname=conftest
15750           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15751           allow_undefined_flag_CXX=
15752           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15753   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15754   ac_status=$?
15755   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15756   test $ac_status = 0; }
15757           then
15758             lt_cv_archive_cmds_need_lc_CXX=no
15759           else
15760             lt_cv_archive_cmds_need_lc_CXX=yes
15761           fi
15762           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15763         else
15764           cat conftest.err 1>&5
15765         fi
15766         $RM conftest*
15767
15768 fi
15769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15770 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15771       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15772       ;;
15773     esac
15774   fi
15775   ;;
15776 esac
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
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15840 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15841
15842 library_names_spec=
15843 libname_spec='lib$name'
15844 soname_spec=
15845 shrext_cmds=".so"
15846 postinstall_cmds=
15847 postuninstall_cmds=
15848 finish_cmds=
15849 finish_eval=
15850 shlibpath_var=
15851 shlibpath_overrides_runpath=unknown
15852 version_type=none
15853 dynamic_linker="$host_os ld.so"
15854 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15855 need_lib_prefix=unknown
15856 hardcode_into_libs=no
15857
15858 # when you set need_version to no, make sure it does not cause -set_version
15859 # flags to be left without arguments
15860 need_version=unknown
15861
15862 case $host_os in
15863 aix3*)
15864   version_type=linux # correct to gnu/linux during the next big refactor
15865   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15866   shlibpath_var=LIBPATH
15867
15868   # AIX 3 has no versioning support, so we append a major version to the name.
15869   soname_spec='${libname}${release}${shared_ext}$major'
15870   ;;
15871
15872 aix[4-9]*)
15873   version_type=linux # correct to gnu/linux during the next big refactor
15874   need_lib_prefix=no
15875   need_version=no
15876   hardcode_into_libs=yes
15877   if test "$host_cpu" = ia64; then
15878     # AIX 5 supports IA64
15879     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15880     shlibpath_var=LD_LIBRARY_PATH
15881   else
15882     # With GCC up to 2.95.x, collect2 would create an import file
15883     # for dependence libraries.  The import file would start with
15884     # the line `#! .'.  This would cause the generated library to
15885     # depend on `.', always an invalid library.  This was fixed in
15886     # development snapshots of GCC prior to 3.0.
15887     case $host_os in
15888       aix4 | aix4.[01] | aix4.[01].*)
15889       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15890            echo ' yes '
15891            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15892         :
15893       else
15894         can_build_shared=no
15895       fi
15896       ;;
15897     esac
15898     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15899     # soname into executable. Probably we can add versioning support to
15900     # collect2, so additional links can be useful in future.
15901     if test "$aix_use_runtimelinking" = yes; then
15902       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15903       # instead of lib<name>.a to let people know that these are not
15904       # typical AIX shared libraries.
15905       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15906     else
15907       # We preserve .a as extension for shared libraries through AIX4.2
15908       # and later when we are not doing run time linking.
15909       library_names_spec='${libname}${release}.a $libname.a'
15910       soname_spec='${libname}${release}${shared_ext}$major'
15911     fi
15912     shlibpath_var=LIBPATH
15913   fi
15914   ;;
15915
15916 amigaos*)
15917   case $host_cpu in
15918   powerpc)
15919     # Since July 2007 AmigaOS4 officially supports .so libraries.
15920     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15921     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15922     ;;
15923   m68k)
15924     library_names_spec='$libname.ixlibrary $libname.a'
15925     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15926     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'
15927     ;;
15928   esac
15929   ;;
15930
15931 beos*)
15932   library_names_spec='${libname}${shared_ext}'
15933   dynamic_linker="$host_os ld.so"
15934   shlibpath_var=LIBRARY_PATH
15935   ;;
15936
15937 bsdi[45]*)
15938   version_type=linux # correct to gnu/linux during the next big refactor
15939   need_version=no
15940   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15941   soname_spec='${libname}${release}${shared_ext}$major'
15942   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15943   shlibpath_var=LD_LIBRARY_PATH
15944   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15945   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15946   # the default ld.so.conf also contains /usr/contrib/lib and
15947   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15948   # libtool to hard-code these into programs
15949   ;;
15950
15951 cygwin* | mingw* | pw32* | cegcc*)
15952   version_type=windows
15953   shrext_cmds=".dll"
15954   need_version=no
15955   need_lib_prefix=no
15956
15957   case $GCC,$cc_basename in
15958   yes,*)
15959     # gcc
15960     library_names_spec='$libname.dll.a'
15961     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15962     postinstall_cmds='base_file=`basename \${file}`~
15963       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15964       dldir=$destdir/`dirname \$dlpath`~
15965       test -d \$dldir || mkdir -p \$dldir~
15966       $install_prog $dir/$dlname \$dldir/$dlname~
15967       chmod a+x \$dldir/$dlname~
15968       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15969         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15970       fi'
15971     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15972       dlpath=$dir/\$dldll~
15973        $RM \$dlpath'
15974     shlibpath_overrides_runpath=yes
15975
15976     case $host_os in
15977     cygwin*)
15978       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15979       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15980
15981       ;;
15982     mingw* | cegcc*)
15983       # MinGW DLLs use traditional 'lib' prefix
15984       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15985       ;;
15986     pw32*)
15987       # pw32 DLLs use 'pw' prefix rather than 'lib'
15988       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15989       ;;
15990     esac
15991     dynamic_linker='Win32 ld.exe'
15992     ;;
15993
15994   *,cl*)
15995     # Native MSVC
15996     libname_spec='$name'
15997     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15998     library_names_spec='${libname}.dll.lib'
15999
16000     case $build_os in
16001     mingw*)
16002       sys_lib_search_path_spec=
16003       lt_save_ifs=$IFS
16004       IFS=';'
16005       for lt_path in $LIB
16006       do
16007         IFS=$lt_save_ifs
16008         # Let DOS variable expansion print the short 8.3 style file name.
16009         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16010         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16011       done
16012       IFS=$lt_save_ifs
16013       # Convert to MSYS style.
16014       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16015       ;;
16016     cygwin*)
16017       # Convert to unix form, then to dos form, then back to unix form
16018       # but this time dos style (no spaces!) so that the unix form looks
16019       # like /cygdrive/c/PROGRA~1:/cygdr...
16020       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16021       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16022       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16023       ;;
16024     *)
16025       sys_lib_search_path_spec="$LIB"
16026       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16027         # It is most probably a Windows format PATH.
16028         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16029       else
16030         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16031       fi
16032       # FIXME: find the short name or the path components, as spaces are
16033       # common. (e.g. "Program Files" -> "PROGRA~1")
16034       ;;
16035     esac
16036
16037     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16038     postinstall_cmds='base_file=`basename \${file}`~
16039       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16040       dldir=$destdir/`dirname \$dlpath`~
16041       test -d \$dldir || mkdir -p \$dldir~
16042       $install_prog $dir/$dlname \$dldir/$dlname'
16043     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16044       dlpath=$dir/\$dldll~
16045        $RM \$dlpath'
16046     shlibpath_overrides_runpath=yes
16047     dynamic_linker='Win32 link.exe'
16048     ;;
16049
16050   *)
16051     # Assume MSVC wrapper
16052     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16053     dynamic_linker='Win32 ld.exe'
16054     ;;
16055   esac
16056   # FIXME: first we should search . and the directory the executable is in
16057   shlibpath_var=PATH
16058   ;;
16059
16060 darwin* | rhapsody*)
16061   dynamic_linker="$host_os dyld"
16062   version_type=darwin
16063   need_lib_prefix=no
16064   need_version=no
16065   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16066   soname_spec='${libname}${release}${major}$shared_ext'
16067   shlibpath_overrides_runpath=yes
16068   shlibpath_var=DYLD_LIBRARY_PATH
16069   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16070
16071   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16072   ;;
16073
16074 dgux*)
16075   version_type=linux # correct to gnu/linux during the next big refactor
16076   need_lib_prefix=no
16077   need_version=no
16078   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16079   soname_spec='${libname}${release}${shared_ext}$major'
16080   shlibpath_var=LD_LIBRARY_PATH
16081   ;;
16082
16083 freebsd* | dragonfly*)
16084   # DragonFly does not have aout.  When/if they implement a new
16085   # versioning mechanism, adjust this.
16086   if test -x /usr/bin/objformat; then
16087     objformat=`/usr/bin/objformat`
16088   else
16089     case $host_os in
16090     freebsd[23].*) objformat=aout ;;
16091     *) objformat=elf ;;
16092     esac
16093   fi
16094   version_type=freebsd-$objformat
16095   case $version_type in
16096     freebsd-elf*)
16097       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16098       need_version=no
16099       need_lib_prefix=no
16100       ;;
16101     freebsd-*)
16102       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16103       need_version=yes
16104       ;;
16105   esac
16106   shlibpath_var=LD_LIBRARY_PATH
16107   case $host_os in
16108   freebsd2.*)
16109     shlibpath_overrides_runpath=yes
16110     ;;
16111   freebsd3.[01]* | freebsdelf3.[01]*)
16112     shlibpath_overrides_runpath=yes
16113     hardcode_into_libs=yes
16114     ;;
16115   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16116   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16117     shlibpath_overrides_runpath=no
16118     hardcode_into_libs=yes
16119     ;;
16120   *) # from 4.6 on, and DragonFly
16121     shlibpath_overrides_runpath=yes
16122     hardcode_into_libs=yes
16123     ;;
16124   esac
16125   ;;
16126
16127 gnu*)
16128   version_type=linux # correct to gnu/linux during the next big refactor
16129   need_lib_prefix=no
16130   need_version=no
16131   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16132   soname_spec='${libname}${release}${shared_ext}$major'
16133   shlibpath_var=LD_LIBRARY_PATH
16134   shlibpath_overrides_runpath=no
16135   hardcode_into_libs=yes
16136   ;;
16137
16138 haiku*)
16139   version_type=linux # correct to gnu/linux during the next big refactor
16140   need_lib_prefix=no
16141   need_version=no
16142   dynamic_linker="$host_os runtime_loader"
16143   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16144   soname_spec='${libname}${release}${shared_ext}$major'
16145   shlibpath_var=LIBRARY_PATH
16146   shlibpath_overrides_runpath=yes
16147   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16148   hardcode_into_libs=yes
16149   ;;
16150
16151 hpux9* | hpux10* | hpux11*)
16152   # Give a soname corresponding to the major version so that dld.sl refuses to
16153   # link against other versions.
16154   version_type=sunos
16155   need_lib_prefix=no
16156   need_version=no
16157   case $host_cpu in
16158   ia64*)
16159     shrext_cmds='.so'
16160     hardcode_into_libs=yes
16161     dynamic_linker="$host_os dld.so"
16162     shlibpath_var=LD_LIBRARY_PATH
16163     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16164     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16165     soname_spec='${libname}${release}${shared_ext}$major'
16166     if test "X$HPUX_IA64_MODE" = X32; then
16167       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16168     else
16169       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16170     fi
16171     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16172     ;;
16173   hppa*64*)
16174     shrext_cmds='.sl'
16175     hardcode_into_libs=yes
16176     dynamic_linker="$host_os dld.sl"
16177     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16178     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16179     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16180     soname_spec='${libname}${release}${shared_ext}$major'
16181     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16182     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16183     ;;
16184   *)
16185     shrext_cmds='.sl'
16186     dynamic_linker="$host_os dld.sl"
16187     shlibpath_var=SHLIB_PATH
16188     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16189     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16190     soname_spec='${libname}${release}${shared_ext}$major'
16191     ;;
16192   esac
16193   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16194   postinstall_cmds='chmod 555 $lib'
16195   # or fails outright, so override atomically:
16196   install_override_mode=555
16197   ;;
16198
16199 interix[3-9]*)
16200   version_type=linux # correct to gnu/linux during the next big refactor
16201   need_lib_prefix=no
16202   need_version=no
16203   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16204   soname_spec='${libname}${release}${shared_ext}$major'
16205   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16206   shlibpath_var=LD_LIBRARY_PATH
16207   shlibpath_overrides_runpath=no
16208   hardcode_into_libs=yes
16209   ;;
16210
16211 irix5* | irix6* | nonstopux*)
16212   case $host_os in
16213     nonstopux*) version_type=nonstopux ;;
16214     *)
16215         if test "$lt_cv_prog_gnu_ld" = yes; then
16216                 version_type=linux # correct to gnu/linux during the next big refactor
16217         else
16218                 version_type=irix
16219         fi ;;
16220   esac
16221   need_lib_prefix=no
16222   need_version=no
16223   soname_spec='${libname}${release}${shared_ext}$major'
16224   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16225   case $host_os in
16226   irix5* | nonstopux*)
16227     libsuff= shlibsuff=
16228     ;;
16229   *)
16230     case $LD in # libtool.m4 will add one of these switches to LD
16231     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16232       libsuff= shlibsuff= libmagic=32-bit;;
16233     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16234       libsuff=32 shlibsuff=N32 libmagic=N32;;
16235     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16236       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16237     *) libsuff= shlibsuff= libmagic=never-match;;
16238     esac
16239     ;;
16240   esac
16241   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16242   shlibpath_overrides_runpath=no
16243   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16244   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16245   hardcode_into_libs=yes
16246   ;;
16247
16248 # No shared lib support for Linux oldld, aout, or coff.
16249 linux*oldld* | linux*aout* | linux*coff*)
16250   dynamic_linker=no
16251   ;;
16252
16253 # This must be glibc/ELF.
16254 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16255   version_type=linux # correct to gnu/linux during the next big refactor
16256   need_lib_prefix=no
16257   need_version=no
16258   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16259   soname_spec='${libname}${release}${shared_ext}$major'
16260   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16261   shlibpath_var=LD_LIBRARY_PATH
16262   shlibpath_overrides_runpath=no
16263
16264   # Some binutils ld are patched to set DT_RUNPATH
16265   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16266   $as_echo_n "(cached) " >&6
16267 else
16268   lt_cv_shlibpath_overrides_runpath=no
16269     save_LDFLAGS=$LDFLAGS
16270     save_libdir=$libdir
16271     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16272          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16273     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16274 /* end confdefs.h.  */
16275
16276 int
16277 main ()
16278 {
16279
16280   ;
16281   return 0;
16282 }
16283 _ACEOF
16284 if ac_fn_cxx_try_link "$LINENO"; then :
16285   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16286   lt_cv_shlibpath_overrides_runpath=yes
16287 fi
16288 fi
16289 rm -f core conftest.err conftest.$ac_objext \
16290     conftest$ac_exeext conftest.$ac_ext
16291     LDFLAGS=$save_LDFLAGS
16292     libdir=$save_libdir
16293
16294 fi
16295
16296   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16297
16298   # This implies no fast_install, which is unacceptable.
16299   # Some rework will be needed to allow for fast_install
16300   # before this can be enabled.
16301   hardcode_into_libs=yes
16302
16303   # Append ld.so.conf contents to the search path
16304   if test -f /etc/ld.so.conf; then
16305     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' ' '`
16306     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16307   fi
16308
16309   # We used to test for /lib/ld.so.1 and disable shared libraries on
16310   # powerpc, because MkLinux only supported shared libraries with the
16311   # GNU dynamic linker.  Since this was broken with cross compilers,
16312   # most powerpc-linux boxes support dynamic linking these days and
16313   # people can always --disable-shared, the test was removed, and we
16314   # assume the GNU/Linux dynamic linker is in use.
16315   dynamic_linker='GNU/Linux ld.so'
16316   ;;
16317
16318 netbsdelf*-gnu)
16319   version_type=linux
16320   need_lib_prefix=no
16321   need_version=no
16322   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16323   soname_spec='${libname}${release}${shared_ext}$major'
16324   shlibpath_var=LD_LIBRARY_PATH
16325   shlibpath_overrides_runpath=no
16326   hardcode_into_libs=yes
16327   dynamic_linker='NetBSD ld.elf_so'
16328   ;;
16329
16330 netbsd*)
16331   version_type=sunos
16332   need_lib_prefix=no
16333   need_version=no
16334   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16335     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16336     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16337     dynamic_linker='NetBSD (a.out) ld.so'
16338   else
16339     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16340     soname_spec='${libname}${release}${shared_ext}$major'
16341     dynamic_linker='NetBSD ld.elf_so'
16342   fi
16343   shlibpath_var=LD_LIBRARY_PATH
16344   shlibpath_overrides_runpath=yes
16345   hardcode_into_libs=yes
16346   ;;
16347
16348 newsos6)
16349   version_type=linux # correct to gnu/linux during the next big refactor
16350   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16351   shlibpath_var=LD_LIBRARY_PATH
16352   shlibpath_overrides_runpath=yes
16353   ;;
16354
16355 *nto* | *qnx*)
16356   version_type=qnx
16357   need_lib_prefix=no
16358   need_version=no
16359   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16360   soname_spec='${libname}${release}${shared_ext}$major'
16361   shlibpath_var=LD_LIBRARY_PATH
16362   shlibpath_overrides_runpath=no
16363   hardcode_into_libs=yes
16364   dynamic_linker='ldqnx.so'
16365   ;;
16366
16367 openbsd*)
16368   version_type=sunos
16369   sys_lib_dlsearch_path_spec="/usr/lib"
16370   need_lib_prefix=no
16371   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16372   case $host_os in
16373     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16374     *)                          need_version=no  ;;
16375   esac
16376   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16377   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16378   shlibpath_var=LD_LIBRARY_PATH
16379   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16380     case $host_os in
16381       openbsd2.[89] | openbsd2.[89].*)
16382         shlibpath_overrides_runpath=no
16383         ;;
16384       *)
16385         shlibpath_overrides_runpath=yes
16386         ;;
16387       esac
16388   else
16389     shlibpath_overrides_runpath=yes
16390   fi
16391   ;;
16392
16393 os2*)
16394   libname_spec='$name'
16395   shrext_cmds=".dll"
16396   need_lib_prefix=no
16397   library_names_spec='$libname${shared_ext} $libname.a'
16398   dynamic_linker='OS/2 ld.exe'
16399   shlibpath_var=LIBPATH
16400   ;;
16401
16402 osf3* | osf4* | osf5*)
16403   version_type=osf
16404   need_lib_prefix=no
16405   need_version=no
16406   soname_spec='${libname}${release}${shared_ext}$major'
16407   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16408   shlibpath_var=LD_LIBRARY_PATH
16409   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16410   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16411   ;;
16412
16413 rdos*)
16414   dynamic_linker=no
16415   ;;
16416
16417 solaris*)
16418   version_type=linux # correct to gnu/linux during the next big refactor
16419   need_lib_prefix=no
16420   need_version=no
16421   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16422   soname_spec='${libname}${release}${shared_ext}$major'
16423   shlibpath_var=LD_LIBRARY_PATH
16424   shlibpath_overrides_runpath=yes
16425   hardcode_into_libs=yes
16426   # ldd complains unless libraries are executable
16427   postinstall_cmds='chmod +x $lib'
16428   ;;
16429
16430 sunos4*)
16431   version_type=sunos
16432   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16433   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16434   shlibpath_var=LD_LIBRARY_PATH
16435   shlibpath_overrides_runpath=yes
16436   if test "$with_gnu_ld" = yes; then
16437     need_lib_prefix=no
16438   fi
16439   need_version=yes
16440   ;;
16441
16442 sysv4 | sysv4.3*)
16443   version_type=linux # correct to gnu/linux during the next big refactor
16444   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16445   soname_spec='${libname}${release}${shared_ext}$major'
16446   shlibpath_var=LD_LIBRARY_PATH
16447   case $host_vendor in
16448     sni)
16449       shlibpath_overrides_runpath=no
16450       need_lib_prefix=no
16451       runpath_var=LD_RUN_PATH
16452       ;;
16453     siemens)
16454       need_lib_prefix=no
16455       ;;
16456     motorola)
16457       need_lib_prefix=no
16458       need_version=no
16459       shlibpath_overrides_runpath=no
16460       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16461       ;;
16462   esac
16463   ;;
16464
16465 sysv4*MP*)
16466   if test -d /usr/nec ;then
16467     version_type=linux # correct to gnu/linux during the next big refactor
16468     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16469     soname_spec='$libname${shared_ext}.$major'
16470     shlibpath_var=LD_LIBRARY_PATH
16471   fi
16472   ;;
16473
16474 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16475   version_type=freebsd-elf
16476   need_lib_prefix=no
16477   need_version=no
16478   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16479   soname_spec='${libname}${release}${shared_ext}$major'
16480   shlibpath_var=LD_LIBRARY_PATH
16481   shlibpath_overrides_runpath=yes
16482   hardcode_into_libs=yes
16483   if test "$with_gnu_ld" = yes; then
16484     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16485   else
16486     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16487     case $host_os in
16488       sco3.2v5*)
16489         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16490         ;;
16491     esac
16492   fi
16493   sys_lib_dlsearch_path_spec='/usr/lib'
16494   ;;
16495
16496 tpf*)
16497   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16498   version_type=linux # correct to gnu/linux during the next big refactor
16499   need_lib_prefix=no
16500   need_version=no
16501   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16502   shlibpath_var=LD_LIBRARY_PATH
16503   shlibpath_overrides_runpath=no
16504   hardcode_into_libs=yes
16505   ;;
16506
16507 uts4*)
16508   version_type=linux # correct to gnu/linux during the next big refactor
16509   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16510   soname_spec='${libname}${release}${shared_ext}$major'
16511   shlibpath_var=LD_LIBRARY_PATH
16512   ;;
16513
16514 *)
16515   dynamic_linker=no
16516   ;;
16517 esac
16518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16519 $as_echo "$dynamic_linker" >&6; }
16520 test "$dynamic_linker" = no && can_build_shared=no
16521
16522 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16523 if test "$GCC" = yes; then
16524   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16525 fi
16526
16527 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16528   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16529 fi
16530 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16531   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16532 fi
16533
16534
16535
16536
16537
16538
16539
16540
16541
16542
16543
16544
16545
16546
16547
16548
16549
16550
16551
16552
16553
16554
16555
16556
16557
16558
16559
16560
16561
16562
16563
16564
16565
16566
16567
16568
16569
16570
16571     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16572 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16573 hardcode_action_CXX=
16574 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16575    test -n "$runpath_var_CXX" ||
16576    test "X$hardcode_automatic_CXX" = "Xyes" ; then
16577
16578   # We can hardcode non-existent directories.
16579   if test "$hardcode_direct_CXX" != no &&
16580      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16581      # have to relink, otherwise we might link with an installed library
16582      # when we should be linking with a yet-to-be-installed one
16583      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16584      test "$hardcode_minus_L_CXX" != no; then
16585     # Linking always hardcodes the temporary library directory.
16586     hardcode_action_CXX=relink
16587   else
16588     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16589     hardcode_action_CXX=immediate
16590   fi
16591 else
16592   # We cannot hardcode anything, or else we can only hardcode existing
16593   # directories.
16594   hardcode_action_CXX=unsupported
16595 fi
16596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16597 $as_echo "$hardcode_action_CXX" >&6; }
16598
16599 if test "$hardcode_action_CXX" = relink ||
16600    test "$inherit_rpath_CXX" = yes; then
16601   # Fast installation is not supported
16602   enable_fast_install=no
16603 elif test "$shlibpath_overrides_runpath" = yes ||
16604      test "$enable_shared" = no; then
16605   # Fast installation is not necessary
16606   enable_fast_install=needless
16607 fi
16608
16609
16610
16611
16612
16613
16614
16615   fi # test -n "$compiler"
16616
16617   CC=$lt_save_CC
16618   CFLAGS=$lt_save_CFLAGS
16619   LDCXX=$LD
16620   LD=$lt_save_LD
16621   GCC=$lt_save_GCC
16622   with_gnu_ld=$lt_save_with_gnu_ld
16623   lt_cv_path_LDCXX=$lt_cv_path_LD
16624   lt_cv_path_LD=$lt_save_path_LD
16625   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16626   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16627 fi # test "$_lt_caught_CXX_error" != yes
16628
16629 ac_ext=c
16630 ac_cpp='$CPP $CPPFLAGS'
16631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16634
16635
16636
16637
16638
16639
16640
16641
16642
16643
16644
16645
16646
16647
16648
16649         ac_config_commands="$ac_config_commands libtool"
16650
16651
16652
16653
16654 # Only expand once:
16655
16656
16657 if test -n "$ac_tool_prefix"; then
16658   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
16659 set dummy ${ac_tool_prefix}windres; ac_word=$2
16660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16661 $as_echo_n "checking for $ac_word... " >&6; }
16662 if ${ac_cv_prog_RC+:} false; then :
16663   $as_echo_n "(cached) " >&6
16664 else
16665   if test -n "$RC"; then
16666   ac_cv_prog_RC="$RC" # Let the user override the test.
16667 else
16668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16669 for as_dir in $PATH
16670 do
16671   IFS=$as_save_IFS
16672   test -z "$as_dir" && as_dir=.
16673     for ac_exec_ext in '' $ac_executable_extensions; do
16674   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16675     ac_cv_prog_RC="${ac_tool_prefix}windres"
16676     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16677     break 2
16678   fi
16679 done
16680   done
16681 IFS=$as_save_IFS
16682
16683 fi
16684 fi
16685 RC=$ac_cv_prog_RC
16686 if test -n "$RC"; then
16687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
16688 $as_echo "$RC" >&6; }
16689 else
16690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16691 $as_echo "no" >&6; }
16692 fi
16693
16694
16695 fi
16696 if test -z "$ac_cv_prog_RC"; then
16697   ac_ct_RC=$RC
16698   # Extract the first word of "windres", so it can be a program name with args.
16699 set dummy windres; ac_word=$2
16700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16701 $as_echo_n "checking for $ac_word... " >&6; }
16702 if ${ac_cv_prog_ac_ct_RC+:} false; then :
16703   $as_echo_n "(cached) " >&6
16704 else
16705   if test -n "$ac_ct_RC"; then
16706   ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
16707 else
16708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16709 for as_dir in $PATH
16710 do
16711   IFS=$as_save_IFS
16712   test -z "$as_dir" && as_dir=.
16713     for ac_exec_ext in '' $ac_executable_extensions; do
16714   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16715     ac_cv_prog_ac_ct_RC="windres"
16716     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16717     break 2
16718   fi
16719 done
16720   done
16721 IFS=$as_save_IFS
16722
16723 fi
16724 fi
16725 ac_ct_RC=$ac_cv_prog_ac_ct_RC
16726 if test -n "$ac_ct_RC"; then
16727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
16728 $as_echo "$ac_ct_RC" >&6; }
16729 else
16730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16731 $as_echo "no" >&6; }
16732 fi
16733
16734   if test "x$ac_ct_RC" = x; then
16735     RC=""
16736   else
16737     case $cross_compiling:$ac_tool_warned in
16738 yes:)
16739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16740 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16741 ac_tool_warned=yes ;;
16742 esac
16743     RC=$ac_ct_RC
16744   fi
16745 else
16746   RC="$ac_cv_prog_RC"
16747 fi
16748
16749
16750
16751
16752 # Source file extension for RC test sources.
16753 ac_ext=rc
16754
16755 # Object file extension for compiled RC test sources.
16756 objext=o
16757 objext_RC=$objext
16758
16759 # Code to be used in simple compile tests
16760 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
16761
16762 # Code to be used in simple link tests
16763 lt_simple_link_test_code="$lt_simple_compile_test_code"
16764
16765 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16766
16767
16768
16769
16770
16771
16772 # If no C compiler was specified, use CC.
16773 LTCC=${LTCC-"$CC"}
16774
16775 # If no C compiler flags were specified, use CFLAGS.
16776 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16777
16778 # Allow CC to be a program name with arguments.
16779 compiler=$CC
16780
16781
16782 # save warnings/boilerplate of simple test code
16783 ac_outfile=conftest.$ac_objext
16784 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16785 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16786 _lt_compiler_boilerplate=`cat conftest.err`
16787 $RM conftest*
16788
16789 ac_outfile=conftest.$ac_objext
16790 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16791 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16792 _lt_linker_boilerplate=`cat conftest.err`
16793 $RM -r conftest*
16794
16795
16796 # Allow CC to be a program name with arguments.
16797 lt_save_CC="$CC"
16798 lt_save_CFLAGS=$CFLAGS
16799 lt_save_GCC=$GCC
16800 GCC=
16801 CC=${RC-"windres"}
16802 CFLAGS=
16803 compiler=$CC
16804 compiler_RC=$CC
16805 for cc_temp in $compiler""; do
16806   case $cc_temp in
16807     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16808     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16809     \-*) ;;
16810     *) break;;
16811   esac
16812 done
16813 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16814
16815 lt_cv_prog_compiler_c_o_RC=yes
16816
16817 if test -n "$compiler"; then
16818   :
16819
16820
16821
16822 fi
16823
16824 GCC=$lt_save_GCC
16825 ac_ext=c
16826 ac_cpp='$CPP $CPPFLAGS'
16827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16830
16831 CC=$lt_save_CC
16832 CFLAGS=$lt_save_CFLAGS
16833
16834
16835 # For now we hardcode the use of version scripts.  It would be better
16836 # to write a test for this or even implement this within libtool.
16837 have_ld_version_script=no
16838 case "${host}" in
16839     *-*-linux*)
16840         have_ld_version_script=yes
16841         ;;
16842     *-*-gnu*)
16843         have_ld_version_script=yes
16844         ;;
16845     *-apple-darwin*)
16846
16847 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
16848
16849         ;;
16850 esac
16851
16852  if test "$have_ld_version_script" = "yes"; then
16853   HAVE_LD_VERSION_SCRIPT_TRUE=
16854   HAVE_LD_VERSION_SCRIPT_FALSE='#'
16855 else
16856   HAVE_LD_VERSION_SCRIPT_TRUE='#'
16857   HAVE_LD_VERSION_SCRIPT_FALSE=
16858 fi
16859
16860
16861 GPG_DEFAULT=no
16862 GPGSM_DEFAULT=no
16863 GPGCONF_DEFAULT=no
16864 G13_DEFAULT=no
16865 component_system=None
16866 have_dosish_system=no
16867 have_android_system=no
16868 have_w32_system=no
16869 have_w64_system=no
16870 build_w32_glib=no
16871 build_w32_qt=no
16872 case "${host}" in
16873     x86_64-*mingw32*)
16874         have_w64_system=yes
16875         ;;
16876     *-mingw32ce*)
16877         have_w32ce_system=yes
16878         ;;
16879     *-linux-androideabi)
16880         have_android_system=yes
16881         ;;
16882 esac
16883 case "${host}" in
16884     *-mingw32ce*|*-mingw32*)
16885         have_dosish_system=yes
16886         have_w32_system=yes
16887         GPG_DEFAULT='c:\\gnupg\\gpg.exe'
16888         GPGSM_DEFAULT='c:\\gnupg\\gpgsm.exe'
16889         GPGCONF_DEFAULT='c:\\gnupg\\gpgconf.exe'
16890         G13_DEFAULT='c:\\gnupg\\g13.exe'
16891         #component_system='COM+'
16892
16893         # Check whether --enable-glibtest was given.
16894 if test "${enable_glibtest+set}" = set; then :
16895   enableval=$enable_glibtest;
16896 else
16897   enable_glibtest=yes
16898 fi
16899
16900
16901   pkg_config_args=glib-2.0
16902   for module in .
16903   do
16904       case "$module" in
16905          gmodule)
16906              pkg_config_args="$pkg_config_args gmodule-2.0"
16907          ;;
16908          gmodule-no-export)
16909              pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
16910          ;;
16911          gobject)
16912              pkg_config_args="$pkg_config_args gobject-2.0"
16913          ;;
16914          gthread)
16915              pkg_config_args="$pkg_config_args gthread-2.0"
16916          ;;
16917       esac
16918   done
16919
16920   # Extract the first word of "pkg-config", so it can be a program name with args.
16921 set dummy pkg-config; ac_word=$2
16922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16923 $as_echo_n "checking for $ac_word... " >&6; }
16924 if ${ac_cv_path_PKG_CONFIG+:} false; then :
16925   $as_echo_n "(cached) " >&6
16926 else
16927   case $PKG_CONFIG in
16928   [\\/]* | ?:[\\/]*)
16929   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16930   ;;
16931   *)
16932   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16933 for as_dir in $PATH
16934 do
16935   IFS=$as_save_IFS
16936   test -z "$as_dir" && as_dir=.
16937     for ac_exec_ext in '' $ac_executable_extensions; do
16938   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16939     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16940     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16941     break 2
16942   fi
16943 done
16944   done
16945 IFS=$as_save_IFS
16946
16947   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
16948   ;;
16949 esac
16950 fi
16951 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16952 if test -n "$PKG_CONFIG"; then
16953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16954 $as_echo "$PKG_CONFIG" >&6; }
16955 else
16956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16957 $as_echo "no" >&6; }
16958 fi
16959
16960
16961
16962   no_glib=""
16963
16964   if test x$PKG_CONFIG != xno ; then
16965     if $PKG_CONFIG --atleast-pkgconfig-version 0.7 ; then
16966       :
16967     else
16968       echo *** pkg-config too old; version 0.7 or better required.
16969       no_glib=yes
16970       PKG_CONFIG=no
16971     fi
16972   else
16973     no_glib=yes
16974   fi
16975
16976   min_glib_version=2.0.0
16977   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5
16978 $as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
16979
16980   if test x$PKG_CONFIG != xno ; then
16981     ## don't try to run the test against uninstalled libtool libs
16982     if $PKG_CONFIG --uninstalled $pkg_config_args; then
16983           echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
16984           enable_glibtest=no
16985     fi
16986
16987     if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
16988           :
16989     else
16990           no_glib=yes
16991     fi
16992   fi
16993
16994   if test x"$no_glib" = x ; then
16995     GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
16996     GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
16997     GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
16998
16999     GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
17000     GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
17001     glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
17002            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
17003     glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
17004            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
17005     glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
17006            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
17007     if test "x$enable_glibtest" = "xyes" ; then
17008       ac_save_CFLAGS="$CFLAGS"
17009       ac_save_LIBS="$LIBS"
17010       CFLAGS="$CFLAGS $GLIB_CFLAGS"
17011       LIBS="$GLIB_LIBS $LIBS"
17012       rm -f conf.glibtest
17013       if test "$cross_compiling" = yes; then :
17014   echo $ac_n "cross compiling; assumed OK... $ac_c"
17015 else
17016   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17017 /* end confdefs.h.  */
17018
17019 #include <glib.h>
17020 #include <stdio.h>
17021 #include <stdlib.h>
17022
17023 int
17024 main ()
17025 {
17026   int major, minor, micro;
17027   char *tmp_version;
17028
17029   system ("touch conf.glibtest");
17030
17031   /* HP/UX 9 (%@#!) writes to sscanf strings */
17032   tmp_version = g_strdup("$min_glib_version");
17033   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
17034      printf("%s, bad version string\n", "$min_glib_version");
17035      exit(1);
17036    }
17037
17038   if ((glib_major_version != $glib_config_major_version) ||
17039       (glib_minor_version != $glib_config_minor_version) ||
17040       (glib_micro_version != $glib_config_micro_version))
17041     {
17042       printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
17043              $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
17044              glib_major_version, glib_minor_version, glib_micro_version);
17045       printf ("*** was found! If pkg-config was correct, then it is best\n");
17046       printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
17047       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
17048       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
17049       printf("*** required on your system.\n");
17050       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
17051       printf("*** to point to the correct configuration files\n");
17052     }
17053   else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
17054            (glib_minor_version != GLIB_MINOR_VERSION) ||
17055            (glib_micro_version != GLIB_MICRO_VERSION))
17056     {
17057       printf("*** GLIB header files (version %d.%d.%d) do not match\n",
17058              GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
17059       printf("*** library (version %d.%d.%d)\n",
17060              glib_major_version, glib_minor_version, glib_micro_version);
17061     }
17062   else
17063     {
17064       if ((glib_major_version > major) ||
17065         ((glib_major_version == major) && (glib_minor_version > minor)) ||
17066         ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
17067       {
17068         return 0;
17069        }
17070      else
17071       {
17072         printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
17073                glib_major_version, glib_minor_version, glib_micro_version);
17074         printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
17075                major, minor, micro);
17076         printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
17077         printf("***\n");
17078         printf("*** If you have already installed a sufficiently new version, this error\n");
17079         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
17080         printf("*** being found. The easiest way to fix this is to remove the old version\n");
17081         printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
17082         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
17083         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
17084         printf("*** so that the correct libraries are found at run-time))\n");
17085       }
17086     }
17087   return 1;
17088 }
17089
17090 _ACEOF
17091 if ac_fn_c_try_run "$LINENO"; then :
17092
17093 else
17094   no_glib=yes
17095 fi
17096 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17097   conftest.$ac_objext conftest.beam conftest.$ac_ext
17098 fi
17099
17100        CFLAGS="$ac_save_CFLAGS"
17101        LIBS="$ac_save_LIBS"
17102      fi
17103   fi
17104   if test "x$no_glib" = x ; then
17105      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
17106 $as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
17107      :
17108   else
17109      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17110 $as_echo "no" >&6; }
17111      if test "$PKG_CONFIG" = "no" ; then
17112        echo "*** A new enough version of pkg-config was not found."
17113        echo "*** See http://www.freedesktop.org/software/pkgconfig/"
17114      else
17115        if test -f conf.glibtest ; then
17116         :
17117        else
17118           echo "*** Could not run GLIB test program, checking why..."
17119           ac_save_CFLAGS="$CFLAGS"
17120           ac_save_LIBS="$LIBS"
17121           CFLAGS="$CFLAGS $GLIB_CFLAGS"
17122           LIBS="$LIBS $GLIB_LIBS"
17123           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17124 /* end confdefs.h.  */
17125
17126 #include <glib.h>
17127 #include <stdio.h>
17128
17129 int
17130 main ()
17131 {
17132  return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
17133   ;
17134   return 0;
17135 }
17136 _ACEOF
17137 if ac_fn_c_try_link "$LINENO"; then :
17138    echo "*** The test program compiled, but did not run. This usually means"
17139           echo "*** that the run-time linker is not finding GLIB or finding the wrong"
17140           echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
17141           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
17142           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
17143           echo "*** is required on your system"
17144           echo "***"
17145           echo "*** If you have an old version installed, it is best to remove it, although"
17146           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
17147 else
17148    echo "*** The test program failed to compile or link. See the file config.log for the"
17149           echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
17150 fi
17151 rm -f core conftest.err conftest.$ac_objext \
17152     conftest$ac_exeext conftest.$ac_ext
17153           CFLAGS="$ac_save_CFLAGS"
17154           LIBS="$ac_save_LIBS"
17155        fi
17156      fi
17157      GLIB_CFLAGS=""
17158      GLIB_LIBS=""
17159      GLIB_GENMARSHAL=""
17160      GOBJECT_QUERY=""
17161      GLIB_MKENUMS=""
17162      :
17163   fi
17164
17165
17166
17167
17168
17169   rm -f conf.glibtest
17170
17171         # Check whether --enable-w32-glib was given.
17172 if test "${enable_w32_glib+set}" = set; then :
17173   enableval=$enable_w32_glib; build_w32_glib=$enableval
17174 fi
17175
17176
17177         # Check disabled, because the qt-dev packages in gpg4win do
17178         # not provide any support for cross compilation.
17179         # PKG_CHECK_MODULES(QT4_CORE, QtCore)
17180
17181         # Use it like this:
17182         # ./configure --enable-w32-qt QT4_CORE_CFLAGS="..." QT4_CORE_LIBS="..."
17183
17184
17185         # Check whether --enable-w32-qt was given.
17186 if test "${enable_w32_qt+set}" = set; then :
17187   enableval=$enable_w32_qt; build_w32_qt=$enableval
17188 fi
17189
17190         ;;
17191     *)
17192         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
17193 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
17194 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
17195   $as_echo_n "(cached) " >&6
17196 else
17197   ac_check_lib_save_LIBS=$LIBS
17198 LIBS="-lpthread  $LIBS"
17199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17200 /* end confdefs.h.  */
17201
17202 /* Override any GCC internal prototype to avoid an error.
17203    Use char because int might match the return type of a GCC
17204    builtin and then its argument prototype would still apply.  */
17205 #ifdef __cplusplus
17206 extern "C"
17207 #endif
17208 char pthread_create ();
17209 int
17210 main ()
17211 {
17212 return pthread_create ();
17213   ;
17214   return 0;
17215 }
17216 _ACEOF
17217 if ac_fn_c_try_link "$LINENO"; then :
17218   ac_cv_lib_pthread_pthread_create=yes
17219 else
17220   ac_cv_lib_pthread_pthread_create=no
17221 fi
17222 rm -f core conftest.err conftest.$ac_objext \
17223     conftest$ac_exeext conftest.$ac_ext
17224 LIBS=$ac_check_lib_save_LIBS
17225 fi
17226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
17227 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
17228 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
17229   have_pthread=yes
17230 fi
17231
17232         if test "$have_pthread" = yes; then
17233
17234 $as_echo "#define HAVE_PTHREAD /**/" >>confdefs.h
17235
17236         fi
17237
17238         # XXX: Probably use exec-prefix here?
17239 #       GPG_DEFAULT='/usr/bin/gpg'
17240 #       GPGSM_DEFAULT='/usr/bin/gpgsm'
17241 #       GPGCONF_DEFAULT='/usr/bin/gpgconf'
17242 #       G13_DEFAULT='/usr/bin/g13'
17243         ;;
17244 esac
17245
17246 if test "$have_dosish_system" = yes; then
17247
17248 $as_echo "#define HAVE_DOSISH_SYSTEM 1" >>confdefs.h
17249
17250 fi
17251  if test "$have_dosish_system" = yes; then
17252   HAVE_DOSISH_SYSTEM_TRUE=
17253   HAVE_DOSISH_SYSTEM_FALSE='#'
17254 else
17255   HAVE_DOSISH_SYSTEM_TRUE='#'
17256   HAVE_DOSISH_SYSTEM_FALSE=
17257 fi
17258
17259
17260 if test "$have_w32_system" = yes; then
17261
17262 $as_echo "#define HAVE_W32_SYSTEM 1" >>confdefs.h
17263
17264 fi
17265  if test "$have_w32_system" = yes; then
17266   HAVE_W32_SYSTEM_TRUE=
17267   HAVE_W32_SYSTEM_FALSE='#'
17268 else
17269   HAVE_W32_SYSTEM_TRUE='#'
17270   HAVE_W32_SYSTEM_FALSE=
17271 fi
17272
17273
17274 if test "$have_w64_system" = yes; then
17275
17276 $as_echo "#define HAVE_W64_SYSTEM 1" >>confdefs.h
17277
17278 fi
17279  if test "$have_w64_system" = yes; then
17280   HAVE_W64_SYSTEM_TRUE=
17281   HAVE_W64_SYSTEM_FALSE='#'
17282 else
17283   HAVE_W64_SYSTEM_TRUE='#'
17284   HAVE_W64_SYSTEM_FALSE=
17285 fi
17286
17287
17288 if test "$have_w32ce_system" = yes; then
17289
17290 $as_echo "#define HAVE_W32CE_SYSTEM 1" >>confdefs.h
17291
17292 fi
17293  if test "$have_w32ce_system" = yes; then
17294   HAVE_W32CE_SYSTEM_TRUE=
17295   HAVE_W32CE_SYSTEM_FALSE='#'
17296 else
17297   HAVE_W32CE_SYSTEM_TRUE='#'
17298   HAVE_W32CE_SYSTEM_FALSE=
17299 fi
17300
17301
17302 if test "$have_android_system" = yes; then
17303
17304 $as_echo "#define HAVE_ANDROID_SYSTEM 1" >>confdefs.h
17305
17306 fi
17307  if test "$have_android_system" = yes; then
17308   HAVE_ANDROID_SYSTEM_TRUE=
17309   HAVE_ANDROID_SYSTEM_FALSE='#'
17310 else
17311   HAVE_ANDROID_SYSTEM_TRUE='#'
17312   HAVE_ANDROID_SYSTEM_FALSE=
17313 fi
17314
17315
17316  if test "$build_w32_glib" = yes; then
17317   BUILD_W32_GLIB_TRUE=
17318   BUILD_W32_GLIB_FALSE='#'
17319 else
17320   BUILD_W32_GLIB_TRUE='#'
17321   BUILD_W32_GLIB_FALSE=
17322 fi
17323
17324  if test "$build_w32_qt" = yes; then
17325   BUILD_W32_QT_TRUE=
17326   BUILD_W32_QT_FALSE='#'
17327 else
17328   BUILD_W32_QT_TRUE='#'
17329   BUILD_W32_QT_FALSE=
17330 fi
17331
17332
17333  if test "$have_pthread" = "yes"; then
17334   HAVE_PTHREAD_TRUE=
17335   HAVE_PTHREAD_FALSE='#'
17336 else
17337   HAVE_PTHREAD_TRUE='#'
17338   HAVE_PTHREAD_FALSE=
17339 fi
17340
17341
17342
17343 # Check whether --enable-fixed-path was given.
17344 if test "${enable_fixed_path+set}" = set; then :
17345   enableval=$enable_fixed_path; fixed_search_path="$enableval"
17346 else
17347   fixed_search_path=""
17348 fi
17349
17350 if test x$fixed_search_path != x ; then
17351
17352 cat >>confdefs.h <<_ACEOF
17353 #define FIXED_SEARCH_PATH "$fixed_search_path"
17354 _ACEOF
17355
17356 fi
17357
17358
17359 #
17360 # Provide information about the build.
17361 #
17362 BUILD_REVISION="16835c3"
17363
17364
17365 cat >>confdefs.h <<_ACEOF
17366 #define BUILD_REVISION "$BUILD_REVISION"
17367 _ACEOF
17368
17369
17370 BUILD_FILEVERSION=`echo "$PACKAGE_VERSION"|sed 's/\([0-9.]*\).*/\1./;s/\./,/g'`
17371 BUILD_FILEVERSION="${BUILD_FILEVERSION}5763"
17372
17373
17374 BUILD_TIMESTAMP=`date -u +%Y-%m-%dT%H:%M+0000 2>/dev/null || date`
17375
17376
17377 cat >>confdefs.h <<_ACEOF
17378 #define BUILD_TIMESTAMP "$BUILD_TIMESTAMP"
17379 _ACEOF
17380
17381
17382 #
17383 # Options to disable some regression tests
17384 #
17385 run_gpgconf_test="yes"
17386 # Check whether --enable-gpgconf-test was given.
17387 if test "${enable_gpgconf_test+set}" = set; then :
17388   enableval=$enable_gpgconf_test; run_gpgconf_test=$enableval
17389 fi
17390
17391  if test "$run_gpgconf_test" = "yes"; then
17392   RUN_GPGCONF_TESTS_TRUE=
17393   RUN_GPGCONF_TESTS_FALSE='#'
17394 else
17395   RUN_GPGCONF_TESTS_TRUE='#'
17396   RUN_GPGCONF_TESTS_FALSE=
17397 fi
17398
17399
17400 run_gpg_test="yes"
17401 # Check whether --enable-gpg-test was given.
17402 if test "${enable_gpg_test+set}" = set; then :
17403   enableval=$enable_gpg_test; run_gpg_test=$enableval
17404 fi
17405
17406  if test "$run_gpg_test" = "yes"; then
17407   RUN_GPG_TESTS_TRUE=
17408   RUN_GPG_TESTS_FALSE='#'
17409 else
17410   RUN_GPG_TESTS_TRUE='#'
17411   RUN_GPG_TESTS_FALSE=
17412 fi
17413
17414
17415 run_gpgsm_test="yes"
17416 # Check whether --enable-gpgsm-test was given.
17417 if test "${enable_gpgsm_test+set}" = set; then :
17418   enableval=$enable_gpgsm_test; run_gpgsm_test=$enableval
17419 fi
17420
17421  if test "$run_gpgsm_test" = "yes"; then
17422   RUN_GPGSM_TESTS_TRUE=
17423   RUN_GPGSM_TESTS_FALSE='#'
17424 else
17425   RUN_GPGSM_TESTS_TRUE='#'
17426   RUN_GPGSM_TESTS_FALSE=
17427 fi
17428
17429
17430 run_g13_test="yes"
17431 # Check whether --enable-g13-test was given.
17432 if test "${enable_g13_test+set}" = set; then :
17433   enableval=$enable_g13_test; run_g13_test=$enableval
17434 fi
17435
17436  if test "$run_g13_test" = "yes"; then
17437   RUN_G13_TESTS_TRUE=
17438   RUN_G13_TESTS_FALSE='#'
17439 else
17440   RUN_G13_TESTS_TRUE='#'
17441   RUN_G13_TESTS_FALSE=
17442 fi
17443
17444
17445
17446 # Checks for header files.
17447
17448
17449
17450   for ac_header in $ac_header_list
17451 do :
17452   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17453 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
17454 "
17455 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17456   cat >>confdefs.h <<_ACEOF
17457 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17458 _ACEOF
17459
17460 fi
17461
17462 done
17463
17464
17465
17466
17467
17468
17469
17470
17471
17472
17473
17474
17475
17476
17477
17478
17479
17480
17481
17482
17483 # Type checks.
17484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
17485 $as_echo_n "checking for inline... " >&6; }
17486 if ${ac_cv_c_inline+:} false; then :
17487   $as_echo_n "(cached) " >&6
17488 else
17489   ac_cv_c_inline=no
17490 for ac_kw in inline __inline__ __inline; do
17491   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17492 /* end confdefs.h.  */
17493 #ifndef __cplusplus
17494 typedef int foo_t;
17495 static $ac_kw foo_t static_foo () {return 0; }
17496 $ac_kw foo_t foo () {return 0; }
17497 #endif
17498
17499 _ACEOF
17500 if ac_fn_c_try_compile "$LINENO"; then :
17501   ac_cv_c_inline=$ac_kw
17502 fi
17503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17504   test "$ac_cv_c_inline" != no && break
17505 done
17506
17507 fi
17508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
17509 $as_echo "$ac_cv_c_inline" >&6; }
17510
17511 case $ac_cv_c_inline in
17512   inline | yes) ;;
17513   *)
17514     case $ac_cv_c_inline in
17515       no) ac_val=;;
17516       *) ac_val=$ac_cv_c_inline;;
17517     esac
17518     cat >>confdefs.h <<_ACEOF
17519 #ifndef __cplusplus
17520 #define inline $ac_val
17521 #endif
17522 _ACEOF
17523     ;;
17524 esac
17525
17526 # The cast to long int works around a bug in the HP C Compiler
17527 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17528 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17529 # This bug is HP SR number 8606223364.
17530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
17531 $as_echo_n "checking size of unsigned int... " >&6; }
17532 if ${ac_cv_sizeof_unsigned_int+:} false; then :
17533   $as_echo_n "(cached) " >&6
17534 else
17535   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "$ac_includes_default"; then :
17536
17537 else
17538   if test "$ac_cv_type_unsigned_int" = yes; then
17539      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17540 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17541 as_fn_error 77 "cannot compute sizeof (unsigned int)
17542 See \`config.log' for more details" "$LINENO" 5; }
17543    else
17544      ac_cv_sizeof_unsigned_int=0
17545    fi
17546 fi
17547
17548 fi
17549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
17550 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
17551
17552
17553
17554 cat >>confdefs.h <<_ACEOF
17555 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
17556 _ACEOF
17557
17558
17559 # Check whether --enable-largefile was given.
17560 if test "${enable_largefile+set}" = set; then :
17561   enableval=$enable_largefile;
17562 fi
17563
17564 if test "$enable_largefile" != no; then
17565
17566   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
17567 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
17568 if ${ac_cv_sys_largefile_CC+:} false; then :
17569   $as_echo_n "(cached) " >&6
17570 else
17571   ac_cv_sys_largefile_CC=no
17572      if test "$GCC" != yes; then
17573        ac_save_CC=$CC
17574        while :; do
17575          # IRIX 6.2 and later do not support large files by default,
17576          # so use the C compiler's -n32 option if that helps.
17577          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17578 /* end confdefs.h.  */
17579 #include <sys/types.h>
17580  /* Check that off_t can represent 2**63 - 1 correctly.
17581     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17582     since some C++ compilers masquerading as C compilers
17583     incorrectly reject 9223372036854775807.  */
17584 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17585   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17586                        && LARGE_OFF_T % 2147483647 == 1)
17587                       ? 1 : -1];
17588 int
17589 main ()
17590 {
17591
17592   ;
17593   return 0;
17594 }
17595 _ACEOF
17596          if ac_fn_c_try_compile "$LINENO"; then :
17597   break
17598 fi
17599 rm -f core conftest.err conftest.$ac_objext
17600          CC="$CC -n32"
17601          if ac_fn_c_try_compile "$LINENO"; then :
17602   ac_cv_sys_largefile_CC=' -n32'; break
17603 fi
17604 rm -f core conftest.err conftest.$ac_objext
17605          break
17606        done
17607        CC=$ac_save_CC
17608        rm -f conftest.$ac_ext
17609     fi
17610 fi
17611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
17612 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
17613   if test "$ac_cv_sys_largefile_CC" != no; then
17614     CC=$CC$ac_cv_sys_largefile_CC
17615   fi
17616
17617   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
17618 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
17619 if ${ac_cv_sys_file_offset_bits+:} false; then :
17620   $as_echo_n "(cached) " >&6
17621 else
17622   while :; do
17623   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17624 /* end confdefs.h.  */
17625 #include <sys/types.h>
17626  /* Check that off_t can represent 2**63 - 1 correctly.
17627     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17628     since some C++ compilers masquerading as C compilers
17629     incorrectly reject 9223372036854775807.  */
17630 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17631   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17632                        && LARGE_OFF_T % 2147483647 == 1)
17633                       ? 1 : -1];
17634 int
17635 main ()
17636 {
17637
17638   ;
17639   return 0;
17640 }
17641 _ACEOF
17642 if ac_fn_c_try_compile "$LINENO"; then :
17643   ac_cv_sys_file_offset_bits=no; break
17644 fi
17645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17646   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17647 /* end confdefs.h.  */
17648 #define _FILE_OFFSET_BITS 64
17649 #include <sys/types.h>
17650  /* Check that off_t can represent 2**63 - 1 correctly.
17651     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17652     since some C++ compilers masquerading as C compilers
17653     incorrectly reject 9223372036854775807.  */
17654 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17655   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17656                        && LARGE_OFF_T % 2147483647 == 1)
17657                       ? 1 : -1];
17658 int
17659 main ()
17660 {
17661
17662   ;
17663   return 0;
17664 }
17665 _ACEOF
17666 if ac_fn_c_try_compile "$LINENO"; then :
17667   ac_cv_sys_file_offset_bits=64; break
17668 fi
17669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17670   ac_cv_sys_file_offset_bits=unknown
17671   break
17672 done
17673 fi
17674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
17675 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
17676 case $ac_cv_sys_file_offset_bits in #(
17677   no | unknown) ;;
17678   *)
17679 cat >>confdefs.h <<_ACEOF
17680 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17681 _ACEOF
17682 ;;
17683 esac
17684 rm -rf conftest*
17685   if test $ac_cv_sys_file_offset_bits = unknown; then
17686     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
17687 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
17688 if ${ac_cv_sys_large_files+:} false; then :
17689   $as_echo_n "(cached) " >&6
17690 else
17691   while :; do
17692   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17693 /* end confdefs.h.  */
17694 #include <sys/types.h>
17695  /* Check that off_t can represent 2**63 - 1 correctly.
17696     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17697     since some C++ compilers masquerading as C compilers
17698     incorrectly reject 9223372036854775807.  */
17699 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17700   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17701                        && LARGE_OFF_T % 2147483647 == 1)
17702                       ? 1 : -1];
17703 int
17704 main ()
17705 {
17706
17707   ;
17708   return 0;
17709 }
17710 _ACEOF
17711 if ac_fn_c_try_compile "$LINENO"; then :
17712   ac_cv_sys_large_files=no; break
17713 fi
17714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17715   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17716 /* end confdefs.h.  */
17717 #define _LARGE_FILES 1
17718 #include <sys/types.h>
17719  /* Check that off_t can represent 2**63 - 1 correctly.
17720     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17721     since some C++ compilers masquerading as C compilers
17722     incorrectly reject 9223372036854775807.  */
17723 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17724   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17725                        && LARGE_OFF_T % 2147483647 == 1)
17726                       ? 1 : -1];
17727 int
17728 main ()
17729 {
17730
17731   ;
17732   return 0;
17733 }
17734 _ACEOF
17735 if ac_fn_c_try_compile "$LINENO"; then :
17736   ac_cv_sys_large_files=1; break
17737 fi
17738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17739   ac_cv_sys_large_files=unknown
17740   break
17741 done
17742 fi
17743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
17744 $as_echo "$ac_cv_sys_large_files" >&6; }
17745 case $ac_cv_sys_large_files in #(
17746   no | unknown) ;;
17747   *)
17748 cat >>confdefs.h <<_ACEOF
17749 #define _LARGE_FILES $ac_cv_sys_large_files
17750 _ACEOF
17751 ;;
17752 esac
17753 rm -rf conftest*
17754   fi
17755
17756
17757 fi
17758
17759 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
17760 if test "x$ac_cv_type_off_t" = xyes; then :
17761
17762 else
17763
17764 cat >>confdefs.h <<_ACEOF
17765 #define off_t long int
17766 _ACEOF
17767
17768 fi
17769
17770
17771   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
17772 if test "x$ac_cv_type_uintptr_t" = xyes; then :
17773
17774 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
17775
17776 else
17777   for ac_type in 'unsigned int' 'unsigned long int' \
17778         'unsigned long long int'; do
17779        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17780 /* end confdefs.h.  */
17781 $ac_includes_default
17782 int
17783 main ()
17784 {
17785 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
17786 test_array [0] = 0;
17787 return test_array [0];
17788
17789   ;
17790   return 0;
17791 }
17792 _ACEOF
17793 if ac_fn_c_try_compile "$LINENO"; then :
17794
17795 cat >>confdefs.h <<_ACEOF
17796 #define uintptr_t $ac_type
17797 _ACEOF
17798
17799           ac_type=
17800 fi
17801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17802        test -z "$ac_type" && break
17803      done
17804 fi
17805
17806
17807
17808 # A simple compile time check in gpgme.h for GNU/Linux systems that
17809 # prevents a file offset bits mismatch between gpgme and the application.
17810 NEED__FILE_OFFSET_BITS=0
17811 if test "$have_w32_system" != yes; then
17812   case "$ac_cv_sys_file_offset_bits" in
17813     "" | no | unknown) ;;
17814     *)
17815     NEED__FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits
17816     ;;
17817   esac
17818 fi
17819
17820
17821 # Figure out platform dependent typedefs for gpgme.h
17822 if test "$have_w32_system" = yes; then
17823     INSERT__TYPEDEFS_FOR_GPGME_H="
17824 #ifdef _WIN64
17825 # include <stdint.h>
17826   typedef int64_t gpgme_off_t;
17827   typedef int64_t gpgme_ssize_t;
17828 #else /* _WIN32 */
17829   typedef long gpgme_off_t;
17830   typedef long gpgme_ssize_t;
17831 #endif /* _WIN32 */"
17832     API__OFF_T="gpgme_off_t"
17833     API__SSIZE_T="gpgme_ssize_t"
17834 else
17835     INSERT__TYPEDEFS_FOR_GPGME_H="
17836 #include <sys/types.h>
17837 typedef off_t   gpgme_off_t;
17838 typedef ssize_t gpgme_ssize_t;"
17839     API__OFF_T="off_t"
17840     API__SSIZE_T="ssize_t"
17841 fi
17842
17843
17844
17845
17846
17847
17848
17849 # Checks for compiler features.
17850 if test "$GCC" = yes; then
17851     CFLAGS="$CFLAGS -Wall -Wcast-align -Wshadow -Wstrict-prototypes"
17852     if test "$have_w32_system" = yes; then
17853        CFLAGS="$CFLAGS -mms-bitfields"
17854     fi
17855 fi
17856
17857 # Only used for debugging, so no serious test needed (for actual
17858 # functionality you have to test libc as well, this only tests the
17859 # compiler).
17860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __thread" >&5
17861 $as_echo_n "checking for __thread... " >&6; }
17862 if ${gpgme_cv_tls_works+:} false; then :
17863   $as_echo_n "(cached) " >&6
17864 else
17865   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17866 /* end confdefs.h.  */
17867 __thread int foo;
17868 int
17869 main ()
17870 {
17871
17872   ;
17873   return 0;
17874 }
17875 _ACEOF
17876 if ac_fn_c_try_compile "$LINENO"; then :
17877   gpgme_cv_tls_works=yes
17878 else
17879   gpgme_cv_tls_works=no
17880 fi
17881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17882 fi
17883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gpgme_cv_tls_works" >&5
17884 $as_echo "$gpgme_cv_tls_works" >&6; }
17885 if test "$gpgme_cv_tls_works" = yes; then
17886
17887 $as_echo "#define HAVE_TLS 1" >>confdefs.h
17888
17889 fi
17890
17891
17892 # Checks for library functions.
17893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraries" >&5
17894 $as_echo "$as_me: checking for libraries" >&6;}
17895
17896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
17897 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
17898 if ${ac_cv_sys_largefile_source+:} false; then :
17899   $as_echo_n "(cached) " >&6
17900 else
17901   while :; do
17902   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17903 /* end confdefs.h.  */
17904 #include <sys/types.h> /* for off_t */
17905      #include <stdio.h>
17906 int
17907 main ()
17908 {
17909 int (*fp) (FILE *, off_t, int) = fseeko;
17910      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
17911   ;
17912   return 0;
17913 }
17914 _ACEOF
17915 if ac_fn_c_try_link "$LINENO"; then :
17916   ac_cv_sys_largefile_source=no; break
17917 fi
17918 rm -f core conftest.err conftest.$ac_objext \
17919     conftest$ac_exeext conftest.$ac_ext
17920   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17921 /* end confdefs.h.  */
17922 #define _LARGEFILE_SOURCE 1
17923 #include <sys/types.h> /* for off_t */
17924      #include <stdio.h>
17925 int
17926 main ()
17927 {
17928 int (*fp) (FILE *, off_t, int) = fseeko;
17929      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
17930   ;
17931   return 0;
17932 }
17933 _ACEOF
17934 if ac_fn_c_try_link "$LINENO"; then :
17935   ac_cv_sys_largefile_source=1; break
17936 fi
17937 rm -f core conftest.err conftest.$ac_objext \
17938     conftest$ac_exeext conftest.$ac_ext
17939   ac_cv_sys_largefile_source=unknown
17940   break
17941 done
17942 fi
17943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
17944 $as_echo "$ac_cv_sys_largefile_source" >&6; }
17945 case $ac_cv_sys_largefile_source in #(
17946   no | unknown) ;;
17947   *)
17948 cat >>confdefs.h <<_ACEOF
17949 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17950 _ACEOF
17951 ;;
17952 esac
17953 rm -rf conftest*
17954
17955 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17956 # in glibc 2.1.3, but that breaks too many other things.
17957 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17958 if test $ac_cv_sys_largefile_source != unknown; then
17959
17960 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
17961
17962 fi
17963
17964
17965 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
17966 if test "x$ac_cv_func_vasprintf" = xyes; then :
17967   $as_echo "#define HAVE_VASPRINTF 1" >>confdefs.h
17968
17969 else
17970   case " $LIBOBJS " in
17971   *" vasprintf.$ac_objext "* ) ;;
17972   *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext"
17973  ;;
17974 esac
17975
17976 fi
17977
17978
17979 if test "$ac_cv_func_vasprintf" != yes; then
17980    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_lists must be copied by value" >&5
17981 $as_echo_n "checking whether va_lists must be copied by value... " >&6; }
17982   if ${gnupg_cv_must_copy_va_byval+:} false; then :
17983   $as_echo_n "(cached) " >&6
17984 else
17985
17986     if test "$cross_compiling" = yes; then
17987       gnupg_cv_must_copy_va_byval=no
17988     else
17989       gnupg_cv_must_copy_va_byval=no
17990       if test "$cross_compiling" = yes; then :
17991   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17992 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17993 as_fn_error $? "cannot run test program while cross compiling
17994 See \`config.log' for more details" "$LINENO" 5; }
17995 else
17996   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17997 /* end confdefs.h.  */
17998
17999        #include <stdarg.h>
18000        void f (int i, ...)
18001        {
18002           va_list args1, args2;
18003           va_start (args1, i);
18004           args2 = args1;
18005           if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
18006             exit (1);
18007           va_end (args1);
18008           va_end (args2);
18009        }
18010
18011        int main()
18012        {
18013           f (0, 42);
18014             return 0;
18015        }
18016
18017 _ACEOF
18018 if ac_fn_c_try_run "$LINENO"; then :
18019   gnupg_cv_must_copy_va_byval=yes
18020 fi
18021 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18022   conftest.$ac_objext conftest.beam conftest.$ac_ext
18023 fi
18024
18025     fi
18026
18027 fi
18028
18029   if test "$gnupg_cv_must_copy_va_byval" = yes; then
18030
18031 $as_echo "#define MUST_COPY_VA_BYVAL 1" >>confdefs.h
18032
18033   fi
18034   if test "$cross_compiling" = yes; then
18035     { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming $gnupg_cv_must_copy_va_byval" >&5
18036 $as_echo "assuming $gnupg_cv_must_copy_va_byval" >&6; }
18037   else
18038     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_must_copy_va_byval" >&5
18039 $as_echo "$gnupg_cv_must_copy_va_byval" >&6; }
18040   fi
18041
18042 fi
18043
18044 # Try to find a thread-safe version of ttyname().
18045 ac_fn_c_check_decl "$LINENO" "ttyname_r" "ac_cv_have_decl_ttyname_r" "$ac_includes_default"
18046 if test "x$ac_cv_have_decl_ttyname_r" = xyes; then :
18047   ac_have_decl=1
18048 else
18049   ac_have_decl=0
18050 fi
18051
18052 cat >>confdefs.h <<_ACEOF
18053 #define HAVE_DECL_TTYNAME_R $ac_have_decl
18054 _ACEOF
18055
18056
18057   for ac_header in unistd.h
18058 do :
18059   ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
18060 if test "x$ac_cv_header_unistd_h" = xyes; then :
18061   cat >>confdefs.h <<_ACEOF
18062 #define HAVE_UNISTD_H 1
18063 _ACEOF
18064
18065 fi
18066
18067 done
18068
18069
18070
18071   if test $ac_cv_have_decl_ttyname_r = no; then
18072     HAVE_DECL_TTYNAME_R=0
18073   fi
18074
18075   for ac_func in ttyname_r
18076 do :
18077   ac_fn_c_check_func "$LINENO" "ttyname_r" "ac_cv_func_ttyname_r"
18078 if test "x$ac_cv_func_ttyname_r" = xyes; then :
18079   cat >>confdefs.h <<_ACEOF
18080 #define HAVE_TTYNAME_R 1
18081 _ACEOF
18082
18083 fi
18084 done
18085
18086   if test $ac_cv_func_ttyname_r = no; then
18087     HAVE_TTYNAME_R=0
18088     case " $LIBOBJS " in
18089   *" ttyname_r.$ac_objext "* ) ;;
18090   *) LIBOBJS="$LIBOBJS ttyname_r.$ac_objext"
18091  ;;
18092 esac
18093
18094
18095 $as_echo "#define REPLACE_TTYNAME_R 1" >>confdefs.h
18096
18097   else
18098     HAVE_TTYNAME_R=1
18099             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ttyname_r is compatible with its POSIX signature" >&5
18100 $as_echo_n "checking whether ttyname_r is compatible with its POSIX signature... " >&6; }
18101 if ${gnupg_cv_func_ttyname_r_posix+:} false; then :
18102   $as_echo_n "(cached) " >&6
18103 else
18104   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18105 /* end confdefs.h.  */
18106 #include <stddef.h>
18107               #include <unistd.h>
18108 int
18109 main ()
18110 {
18111 *ttyname_r (0, NULL, 0);
18112   ;
18113   return 0;
18114 }
18115
18116 _ACEOF
18117 if ac_fn_c_try_compile "$LINENO"; then :
18118   gnupg_cv_func_ttyname_r_posix=no
18119 else
18120   gnupg_cv_func_ttyname_r_posix=yes
18121 fi
18122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18123
18124 fi
18125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ttyname_r_posix" >&5
18126 $as_echo "$gnupg_cv_func_ttyname_r_posix" >&6; }
18127     if test $gnupg_cv_func_ttyname_r_posix = no; then
18128       case " $LIBOBJS " in
18129   *" ttyname_r.$ac_objext "* ) ;;
18130   *) LIBOBJS="$LIBOBJS ttyname_r.$ac_objext"
18131  ;;
18132 esac
18133
18134       $as_echo "#define REPLACE_TTYNAME_R 1" >>confdefs.h
18135
18136     elif test "$have_android_system" = yes; then
18137       # Android has ttyname and ttyname_r but they are only stubs and
18138       # print an annoying warning message.  Thus we need to replace
18139       # ttyname_r with our own dummy function.
18140       case " $LIBOBJS " in
18141   *" ttyname_r.$ac_objext "* ) ;;
18142   *) LIBOBJS="$LIBOBJS ttyname_r.$ac_objext"
18143  ;;
18144 esac
18145
18146       $as_echo "#define REPLACE_TTYNAME_R 1" >>confdefs.h
18147
18148     else
18149
18150 $as_echo "#define HAVE_POSIXDECL_TTYNAME_R 1" >>confdefs.h
18151
18152
18153       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ttyname_r works with small buffers" >&5
18154 $as_echo_n "checking whether ttyname_r works with small buffers... " >&6; }
18155 if ${gnupg_cv_func_ttyname_r_works+:} false; then :
18156   $as_echo_n "(cached) " >&6
18157 else
18158
18159                               case "$host_os" in
18160                       # Guess no on Solaris.
18161             solaris*) gnupg_cv_func_ttyname_r_works="guessing no" ;;
18162                       # Guess no on OSF/1.
18163             osf*)     gnupg_cv_func_ttyname_r_works="guessing no" ;;
18164                       # Guess yes otherwise.
18165             *)        gnupg_cv_func_ttyname_r_works="guessing yes" ;;
18166           esac
18167           if test "$cross_compiling" = yes; then :
18168   :
18169 else
18170   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18171 /* end confdefs.h.  */
18172
18173 #include <fcntl.h>
18174 #include <unistd.h>
18175 int
18176 main (void)
18177 {
18178   int result = 0;
18179   int fd;
18180   char buf[31]; /* use any size < 128 here */
18181
18182   fd = open ("/dev/tty", O_RDONLY);
18183   if (fd < 0)
18184     result |= 16;
18185   else if (ttyname_r (fd, buf, sizeof (buf)) != 0)
18186     result |= 17;
18187   else if (ttyname_r (fd, buf, 1) == 0)
18188     result |= 18;
18189   return result;
18190 }
18191 _ACEOF
18192 if ac_fn_c_try_run "$LINENO"; then :
18193   gnupg_cv_func_ttyname_r_works=yes
18194 else
18195   case $? in
18196                17 | 18) gnupg_cv_func_ttyname_r_works=no ;;
18197              esac
18198 fi
18199 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18200   conftest.$ac_objext conftest.beam conftest.$ac_ext
18201 fi
18202
18203
18204 fi
18205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ttyname_r_works" >&5
18206 $as_echo "$gnupg_cv_func_ttyname_r_works" >&6; }
18207       case "$gnupg_cv_func_ttyname_r_works" in
18208         *yes) ;;
18209         *) case " $LIBOBJS " in
18210   *" ttyname_r.$ac_objext "* ) ;;
18211   *) LIBOBJS="$LIBOBJS ttyname_r.$ac_objext"
18212  ;;
18213 esac
18214
18215            $as_echo "#define REPLACE_TTYNAME_R 1" >>confdefs.h
18216
18217
18218 $as_echo "#define HAVE_BROKEN_TTYNAME_R 1" >>confdefs.h
18219
18220            ;;
18221       esac
18222     fi
18223   fi
18224
18225 if test "$ac_cv_func_ttyname_r" != yes; then
18226   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18227 ***
18228 *** ttyname() is not thread-safe and ttyname_r() does not exist
18229 ***" >&5
18230 $as_echo "$as_me: WARNING:
18231 ***
18232 *** ttyname() is not thread-safe and ttyname_r() does not exist
18233 ***" >&2;}
18234 fi
18235
18236 # Try to find a thread-safe version of getenv().
18237 have_thread_safe_getenv=no
18238
18239     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
18240 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
18241 if ${ac_cv_gnu_library_2_1+:} false; then :
18242   $as_echo_n "(cached) " >&6
18243 else
18244   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18245 /* end confdefs.h.  */
18246
18247 #include <features.h>
18248 #ifdef __GNU_LIBRARY__
18249  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
18250   Lucky GNU user
18251  #endif
18252 #endif
18253
18254 _ACEOF
18255 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18256   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
18257   ac_cv_gnu_library_2_1=yes
18258 else
18259   ac_cv_gnu_library_2_1=no
18260 fi
18261 rm -f conftest*
18262
18263
18264
18265 fi
18266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
18267 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
18268
18269     GLIBC21="$ac_cv_gnu_library_2_1"
18270
18271
18272 if test $GLIBC21 = yes; then
18273   have_thread_safe_getenv=yes
18274 fi
18275 if test $have_thread_safe_getenv = yes; then
18276
18277 $as_echo "#define HAVE_THREAD_SAFE_GETENV 1" >>confdefs.h
18278
18279 fi
18280 have_getenv_r=no
18281 for ac_func in getenv_r
18282 do :
18283   ac_fn_c_check_func "$LINENO" "getenv_r" "ac_cv_func_getenv_r"
18284 if test "x$ac_cv_func_getenv_r" = xyes; then :
18285   cat >>confdefs.h <<_ACEOF
18286 #define HAVE_GETENV_R 1
18287 _ACEOF
18288  have_getenv_r=yes
18289 fi
18290 done
18291
18292 if test $have_getenv_r = no && test $have_thread_safe_getenv = no; then
18293   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18294 ***
18295 *** getenv() is not thread-safe and getenv_r() does not exist
18296 ***" >&5
18297 $as_echo "$as_me: WARNING:
18298 ***
18299 *** getenv() is not thread-safe and getenv_r() does not exist
18300 ***" >&2;}
18301 fi
18302
18303 # For converting time strings to seconds since Epoch, we need the timegm
18304 # function.
18305 for ac_func in timegm
18306 do :
18307   ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
18308 if test "x$ac_cv_func_timegm" = xyes; then :
18309   cat >>confdefs.h <<_ACEOF
18310 #define HAVE_TIMEGM 1
18311 _ACEOF
18312
18313 fi
18314 done
18315
18316 if test "$ac_cv_func_timegm" != yes; then
18317   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18318 ***
18319 *** timegm() not available - a non-thread-safe kludge will be used
18320 *** and the TZ variable might be changed at runtime.
18321 ***" >&5
18322 $as_echo "$as_me: WARNING:
18323 ***
18324 *** timegm() not available - a non-thread-safe kludge will be used
18325 *** and the TZ variable might be changed at runtime.
18326 ***" >&2;}
18327 fi
18328
18329 for ac_func in setlocale
18330 do :
18331   ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
18332 if test "x$ac_cv_func_setlocale" = xyes; then :
18333   cat >>confdefs.h <<_ACEOF
18334 #define HAVE_SETLOCALE 1
18335 _ACEOF
18336
18337 fi
18338 done
18339
18340
18341 # Checking for libgpg-error.
18342 have_gpg_error=no
18343
18344   gpg_error_config_prefix=""
18345
18346 # Check whether --with-libgpg-error-prefix was given.
18347 if test "${with_libgpg_error_prefix+set}" = set; then :
18348   withval=$with_libgpg_error_prefix; gpg_error_config_prefix="$withval"
18349 fi
18350
18351
18352
18353 # Check whether --with-gpg-error-prefix was given.
18354 if test "${with_gpg_error_prefix+set}" = set; then :
18355   withval=$with_gpg_error_prefix; gpg_error_config_prefix="$withval"
18356 fi
18357
18358
18359   if test x$gpg_error_config_prefix != x ; then
18360      if test x${GPG_ERROR_CONFIG+set} != xset ; then
18361         GPG_ERROR_CONFIG=$gpg_error_config_prefix/bin/gpg-error-config
18362      fi
18363   fi
18364
18365   if test -n "$ac_tool_prefix"; then
18366   # Extract the first word of "${ac_tool_prefix}gpg-error-config", so it can be a program name with args.
18367 set dummy ${ac_tool_prefix}gpg-error-config; ac_word=$2
18368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18369 $as_echo_n "checking for $ac_word... " >&6; }
18370 if ${ac_cv_path_GPG_ERROR_CONFIG+:} false; then :
18371   $as_echo_n "(cached) " >&6
18372 else
18373   case $GPG_ERROR_CONFIG in
18374   [\\/]* | ?:[\\/]*)
18375   ac_cv_path_GPG_ERROR_CONFIG="$GPG_ERROR_CONFIG" # Let the user override the test with a path.
18376   ;;
18377   *)
18378   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18379 for as_dir in $PATH
18380 do
18381   IFS=$as_save_IFS
18382   test -z "$as_dir" && as_dir=.
18383     for ac_exec_ext in '' $ac_executable_extensions; do
18384   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18385     ac_cv_path_GPG_ERROR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18386     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18387     break 2
18388   fi
18389 done
18390   done
18391 IFS=$as_save_IFS
18392
18393   ;;
18394 esac
18395 fi
18396 GPG_ERROR_CONFIG=$ac_cv_path_GPG_ERROR_CONFIG
18397 if test -n "$GPG_ERROR_CONFIG"; then
18398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPG_ERROR_CONFIG" >&5
18399 $as_echo "$GPG_ERROR_CONFIG" >&6; }
18400 else
18401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18402 $as_echo "no" >&6; }
18403 fi
18404
18405
18406 fi
18407 if test -z "$ac_cv_path_GPG_ERROR_CONFIG"; then
18408   ac_pt_GPG_ERROR_CONFIG=$GPG_ERROR_CONFIG
18409   # Extract the first word of "gpg-error-config", so it can be a program name with args.
18410 set dummy gpg-error-config; ac_word=$2
18411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18412 $as_echo_n "checking for $ac_word... " >&6; }
18413 if ${ac_cv_path_ac_pt_GPG_ERROR_CONFIG+:} false; then :
18414   $as_echo_n "(cached) " >&6
18415 else
18416   case $ac_pt_GPG_ERROR_CONFIG in
18417   [\\/]* | ?:[\\/]*)
18418   ac_cv_path_ac_pt_GPG_ERROR_CONFIG="$ac_pt_GPG_ERROR_CONFIG" # Let the user override the test with a path.
18419   ;;
18420   *)
18421   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18422 for as_dir in $PATH
18423 do
18424   IFS=$as_save_IFS
18425   test -z "$as_dir" && as_dir=.
18426     for ac_exec_ext in '' $ac_executable_extensions; do
18427   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18428     ac_cv_path_ac_pt_GPG_ERROR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18429     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18430     break 2
18431   fi
18432 done
18433   done
18434 IFS=$as_save_IFS
18435
18436   ;;
18437 esac
18438 fi
18439 ac_pt_GPG_ERROR_CONFIG=$ac_cv_path_ac_pt_GPG_ERROR_CONFIG
18440 if test -n "$ac_pt_GPG_ERROR_CONFIG"; then
18441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_GPG_ERROR_CONFIG" >&5
18442 $as_echo "$ac_pt_GPG_ERROR_CONFIG" >&6; }
18443 else
18444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18445 $as_echo "no" >&6; }
18446 fi
18447
18448   if test "x$ac_pt_GPG_ERROR_CONFIG" = x; then
18449     GPG_ERROR_CONFIG="no"
18450   else
18451     case $cross_compiling:$ac_tool_warned in
18452 yes:)
18453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18454 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18455 ac_tool_warned=yes ;;
18456 esac
18457     GPG_ERROR_CONFIG=$ac_pt_GPG_ERROR_CONFIG
18458   fi
18459 else
18460   GPG_ERROR_CONFIG="$ac_cv_path_GPG_ERROR_CONFIG"
18461 fi
18462
18463   min_gpg_error_version="$NEED_GPG_ERROR_VERSION"
18464   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPG Error - version >= $min_gpg_error_version" >&5
18465 $as_echo_n "checking for GPG Error - version >= $min_gpg_error_version... " >&6; }
18466   ok=no
18467   if test "$GPG_ERROR_CONFIG" != "no" \
18468      && test -f "$GPG_ERROR_CONFIG" ; then
18469     req_major=`echo $min_gpg_error_version | \
18470                sed 's/\([0-9]*\)\.\([0-9]*\)/\1/'`
18471     req_minor=`echo $min_gpg_error_version | \
18472                sed 's/\([0-9]*\)\.\([0-9]*\)/\2/'`
18473     gpg_error_config_version=`$GPG_ERROR_CONFIG $gpg_error_config_args --version`
18474     major=`echo $gpg_error_config_version | \
18475                sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
18476     minor=`echo $gpg_error_config_version | \
18477                sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
18478     if test "$major" -gt "$req_major"; then
18479         ok=yes
18480     else
18481         if test "$major" -eq "$req_major"; then
18482             if test "$minor" -ge "$req_minor"; then
18483                ok=yes
18484             fi
18485         fi
18486     fi
18487   fi
18488   if test $ok = yes; then
18489     GPG_ERROR_CFLAGS=`$GPG_ERROR_CONFIG $gpg_error_config_args --cflags`
18490     GPG_ERROR_LIBS=`$GPG_ERROR_CONFIG $gpg_error_config_args --libs`
18491     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($gpg_error_config_version)" >&5
18492 $as_echo "yes ($gpg_error_config_version)" >&6; }
18493     have_gpg_error=yes
18494     gpg_error_config_host=`$GPG_ERROR_CONFIG $gpg_error_config_args --host 2>/dev/null || echo none`
18495     if test x"$gpg_error_config_host" != xnone ; then
18496       if test x"$gpg_error_config_host" != x"$host" ; then
18497   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18498 ***
18499 *** The config script $GPG_ERROR_CONFIG was
18500 *** built for $gpg_error_config_host and thus may not match the
18501 *** used host $host.
18502 *** You may want to use the configure option --with-gpg-error-prefix
18503 *** to specify a matching config script.
18504 ***" >&5
18505 $as_echo "$as_me: WARNING:
18506 ***
18507 *** The config script $GPG_ERROR_CONFIG was
18508 *** built for $gpg_error_config_host and thus may not match the
18509 *** used host $host.
18510 *** You may want to use the configure option --with-gpg-error-prefix
18511 *** to specify a matching config script.
18512 ***" >&2;}
18513       fi
18514     fi
18515   else
18516     GPG_ERROR_CFLAGS=""
18517     GPG_ERROR_LIBS=""
18518     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18519 $as_echo "no" >&6; }
18520     have_gpg_error=no
18521   fi
18522
18523
18524
18525
18526 $as_echo "#define GPG_ERR_SOURCE_DEFAULT GPG_ERR_SOURCE_GPGME" >>confdefs.h
18527
18528
18529 # And for libassuan.
18530 have_libassuan=no
18531
18532
18533 # Check whether --with-libassuan-prefix was given.
18534 if test "${with_libassuan_prefix+set}" = set; then :
18535   withval=$with_libassuan_prefix; libassuan_config_prefix="$withval"
18536 else
18537   libassuan_config_prefix=""
18538 fi
18539
18540   if test x$libassuan_config_prefix != x ; then
18541     libassuan_config_args="$libassuan_config_args --prefix=$libassuan_config_prefix"
18542     if test x${LIBASSUAN_CONFIG+set} != xset ; then
18543       LIBASSUAN_CONFIG=$libassuan_config_prefix/bin/libassuan-config
18544     fi
18545   fi
18546
18547   if test -n "$ac_tool_prefix"; then
18548   # Extract the first word of "${ac_tool_prefix}libassuan-config", so it can be a program name with args.
18549 set dummy ${ac_tool_prefix}libassuan-config; ac_word=$2
18550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18551 $as_echo_n "checking for $ac_word... " >&6; }
18552 if ${ac_cv_path_LIBASSUAN_CONFIG+:} false; then :
18553   $as_echo_n "(cached) " >&6
18554 else
18555   case $LIBASSUAN_CONFIG in
18556   [\\/]* | ?:[\\/]*)
18557   ac_cv_path_LIBASSUAN_CONFIG="$LIBASSUAN_CONFIG" # Let the user override the test with a path.
18558   ;;
18559   *)
18560   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18561 for as_dir in $PATH
18562 do
18563   IFS=$as_save_IFS
18564   test -z "$as_dir" && as_dir=.
18565     for ac_exec_ext in '' $ac_executable_extensions; do
18566   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18567     ac_cv_path_LIBASSUAN_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18568     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18569     break 2
18570   fi
18571 done
18572   done
18573 IFS=$as_save_IFS
18574
18575   ;;
18576 esac
18577 fi
18578 LIBASSUAN_CONFIG=$ac_cv_path_LIBASSUAN_CONFIG
18579 if test -n "$LIBASSUAN_CONFIG"; then
18580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBASSUAN_CONFIG" >&5
18581 $as_echo "$LIBASSUAN_CONFIG" >&6; }
18582 else
18583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18584 $as_echo "no" >&6; }
18585 fi
18586
18587
18588 fi
18589 if test -z "$ac_cv_path_LIBASSUAN_CONFIG"; then
18590   ac_pt_LIBASSUAN_CONFIG=$LIBASSUAN_CONFIG
18591   # Extract the first word of "libassuan-config", so it can be a program name with args.
18592 set dummy libassuan-config; ac_word=$2
18593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18594 $as_echo_n "checking for $ac_word... " >&6; }
18595 if ${ac_cv_path_ac_pt_LIBASSUAN_CONFIG+:} false; then :
18596   $as_echo_n "(cached) " >&6
18597 else
18598   case $ac_pt_LIBASSUAN_CONFIG in
18599   [\\/]* | ?:[\\/]*)
18600   ac_cv_path_ac_pt_LIBASSUAN_CONFIG="$ac_pt_LIBASSUAN_CONFIG" # Let the user override the test with a path.
18601   ;;
18602   *)
18603   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18604 for as_dir in $PATH
18605 do
18606   IFS=$as_save_IFS
18607   test -z "$as_dir" && as_dir=.
18608     for ac_exec_ext in '' $ac_executable_extensions; do
18609   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18610     ac_cv_path_ac_pt_LIBASSUAN_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18611     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18612     break 2
18613   fi
18614 done
18615   done
18616 IFS=$as_save_IFS
18617
18618   ;;
18619 esac
18620 fi
18621 ac_pt_LIBASSUAN_CONFIG=$ac_cv_path_ac_pt_LIBASSUAN_CONFIG
18622 if test -n "$ac_pt_LIBASSUAN_CONFIG"; then
18623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LIBASSUAN_CONFIG" >&5
18624 $as_echo "$ac_pt_LIBASSUAN_CONFIG" >&6; }
18625 else
18626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18627 $as_echo "no" >&6; }
18628 fi
18629
18630   if test "x$ac_pt_LIBASSUAN_CONFIG" = x; then
18631     LIBASSUAN_CONFIG="no"
18632   else
18633     case $cross_compiling:$ac_tool_warned in
18634 yes:)
18635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18636 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18637 ac_tool_warned=yes ;;
18638 esac
18639     LIBASSUAN_CONFIG=$ac_pt_LIBASSUAN_CONFIG
18640   fi
18641 else
18642   LIBASSUAN_CONFIG="$ac_cv_path_LIBASSUAN_CONFIG"
18643 fi
18644
18645
18646   tmp="$NEED_LIBASSUAN_API:$NEED_LIBASSUAN_VERSION"
18647   if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
18648     req_libassuan_api=`echo "$tmp"     | sed 's/\(.*\):\(.*\)/\1/'`
18649     min_libassuan_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
18650   else
18651     req_libassuan_api=0
18652     min_libassuan_version="$tmp"
18653   fi
18654
18655   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBASSUAN - version >= $min_libassuan_version" >&5
18656 $as_echo_n "checking for LIBASSUAN - version >= $min_libassuan_version... " >&6; }
18657   ok=no
18658   if test "$LIBASSUAN_CONFIG" != "no" \
18659      && test -f "$LIBASSUAN_CONFIG" ; then
18660     req_major=`echo $min_libassuan_version | \
18661                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
18662     req_minor=`echo $min_libassuan_version | \
18663                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
18664     req_micro=`echo $min_libassuan_version | \
18665                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
18666
18667     libassuan_config_version=`$LIBASSUAN_CONFIG --version`
18668     major=`echo $libassuan_config_version | \
18669                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
18670     minor=`echo $libassuan_config_version | \
18671                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
18672     micro=`echo $libassuan_config_version | \
18673                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
18674
18675     if test "$major" -gt "$req_major"; then
18676         ok=yes
18677     else
18678         if test "$major" -eq "$req_major"; then
18679             if test "$minor" -gt "$req_minor"; then
18680                ok=yes
18681             else
18682                if test "$minor" -eq "$req_minor"; then
18683                    if test "$micro" -ge "$req_micro"; then
18684                      ok=yes
18685                    fi
18686                fi
18687             fi
18688         fi
18689     fi
18690   fi
18691
18692   if test $ok = yes; then
18693     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libassuan_config_version)" >&5
18694 $as_echo "yes ($libassuan_config_version)" >&6; }
18695   else
18696     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18697 $as_echo "no" >&6; }
18698   fi
18699
18700   if test $ok = yes; then
18701     if test "$req_libassuan_api" -gt 0 ; then
18702       tmp=`$LIBASSUAN_CONFIG --api-version 2>/dev/null || echo 0`
18703       if test "$tmp" -gt 0 ; then
18704         { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBASSUAN API version" >&5
18705 $as_echo_n "checking LIBASSUAN API version... " >&6; }
18706         if test "$req_libassuan_api" -eq "$tmp" ; then
18707           { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
18708 $as_echo "okay" >&6; }
18709         else
18710           ok=no
18711           { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match.  want=$req_libassuan_api got=$tmp." >&5
18712 $as_echo "does not match.  want=$req_libassuan_api got=$tmp." >&6; }
18713         fi
18714       fi
18715     fi
18716   fi
18717
18718   if test $ok = yes; then
18719     if test x"$host" != x ; then
18720       libassuan_config_host=`$LIBASSUAN_CONFIG --host 2>/dev/null || echo none`
18721       if test x"$libassuan_config_host" != xnone ; then
18722         if test x"$libassuan_config_host" != x"$host" ; then
18723   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18724 ***
18725 *** The config script $LIBASSUAN_CONFIG was
18726 *** built for $libassuan_config_host and thus may not match the
18727 *** used host $host.
18728 *** You may want to use the configure option --with-libassuan-prefix
18729 *** to specify a matching config script.
18730 ***" >&5
18731 $as_echo "$as_me: WARNING:
18732 ***
18733 *** The config script $LIBASSUAN_CONFIG was
18734 *** built for $libassuan_config_host and thus may not match the
18735 *** used host $host.
18736 *** You may want to use the configure option --with-libassuan-prefix
18737 *** to specify a matching config script.
18738 ***" >&2;}
18739         fi
18740       fi
18741     fi
18742   fi
18743
18744   if test $ok = yes; then
18745     LIBASSUAN_CFLAGS=`$LIBASSUAN_CONFIG $libassuan_config_args --cflags`
18746     LIBASSUAN_LIBS=`$LIBASSUAN_CONFIG $libassuan_config_args --libs`
18747     have_libassuan=yes
18748   else
18749     LIBASSUAN_CFLAGS=""
18750     LIBASSUAN_LIBS=""
18751     have_libassuan=no
18752   fi
18753
18754
18755
18756 if test "$have_libassuan" = "yes"; then
18757
18758 cat >>confdefs.h <<_ACEOF
18759 #define GPGME_LIBASSUAN_VERSION "$libassuan_version"
18760 _ACEOF
18761
18762 fi
18763
18764
18765 #
18766 # Other checks
18767 #
18768
18769 # Check for funopen
18770 for ac_func in funopen
18771 do :
18772   ac_fn_c_check_func "$LINENO" "funopen" "ac_cv_func_funopen"
18773 if test "x$ac_cv_func_funopen" = xyes; then :
18774   cat >>confdefs.h <<_ACEOF
18775 #define HAVE_FUNOPEN 1
18776 _ACEOF
18777
18778 fi
18779 done
18780
18781 if test $ac_cv_func_funopen != yes; then
18782     # No funopen but we can implement that in terms of fopencookie.
18783     for ac_func in fopencookie
18784 do :
18785   ac_fn_c_check_func "$LINENO" "fopencookie" "ac_cv_func_fopencookie"
18786 if test "x$ac_cv_func_fopencookie" = xyes; then :
18787   cat >>confdefs.h <<_ACEOF
18788 #define HAVE_FOPENCOOKIE 1
18789 _ACEOF
18790
18791 fi
18792 done
18793
18794     if test $ac_cv_func_fopencookie = yes; then
18795         ac_fn_c_check_func "$LINENO" "funopen" "ac_cv_func_funopen"
18796 if test "x$ac_cv_func_funopen" = xyes; then :
18797   $as_echo "#define HAVE_FUNOPEN 1" >>confdefs.h
18798
18799 else
18800   case " $LIBOBJS " in
18801   *" funopen.$ac_objext "* ) ;;
18802   *) LIBOBJS="$LIBOBJS funopen.$ac_objext"
18803  ;;
18804 esac
18805
18806 fi
18807
18808
18809     else
18810         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18811 ***
18812 *** No implementation of fopencookie or funopen available
18813 ***" >&5
18814 $as_echo "$as_me: WARNING:
18815 ***
18816 *** No implementation of fopencookie or funopen available
18817 ***" >&2;}
18818     fi
18819 fi
18820
18821 # Check for getgid etc
18822 for ac_func in getgid getegid
18823 do :
18824   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18825 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18826 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18827   cat >>confdefs.h <<_ACEOF
18828 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18829 _ACEOF
18830
18831 fi
18832 done
18833
18834
18835
18836 # Replacement functions.
18837 ac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy"
18838 if test "x$ac_cv_func_stpcpy" = xyes; then :
18839   $as_echo "#define HAVE_STPCPY 1" >>confdefs.h
18840
18841 else
18842   case " $LIBOBJS " in
18843   *" stpcpy.$ac_objext "* ) ;;
18844   *) LIBOBJS="$LIBOBJS stpcpy.$ac_objext"
18845  ;;
18846 esac
18847
18848 fi
18849
18850
18851 ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
18852 if test "x$ac_cv_func_setenv" = xyes; then :
18853   $as_echo "#define HAVE_SETENV 1" >>confdefs.h
18854
18855 else
18856   case " $LIBOBJS " in
18857   *" setenv.$ac_objext "* ) ;;
18858   *) LIBOBJS="$LIBOBJS setenv.$ac_objext"
18859  ;;
18860 esac
18861
18862 fi
18863
18864
18865
18866 # Assuan check for descriptor passing.
18867 ac_fn_c_check_member "$LINENO" "struct cmsghdr" "cmsg_len" "ac_cv_member_struct_cmsghdr_cmsg_len" "
18868 #include <stdlib.h>
18869 #include <stddef.h>
18870 #include <stdio.h>
18871 #include <sys/types.h>
18872 #include <sys/socket.h>
18873 #include <sys/un.h>
18874 #if HAVE_SYS_UIO_H
18875 #include <sys/uio.h>
18876 #endif
18877 #include <unistd.h>
18878
18879 "
18880 if test "x$ac_cv_member_struct_cmsghdr_cmsg_len" = xyes; then :
18881   supports_descriptor_passing=yes
18882 else
18883   supports_descriptor_passing=no
18884                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18885 ***
18886 *** Data structure for sending ancillary data missing.
18887 *** Descriptor passing won't work.
18888 ***" >&5
18889 $as_echo "$as_me: WARNING:
18890 ***
18891 *** Data structure for sending ancillary data missing.
18892 *** Descriptor passing won't work.
18893 ***" >&2;}
18894 fi
18895
18896
18897
18898 case "${host}" in
18899     *-apple-darwin*)
18900       use_descriptor_passing=no
18901       ;;
18902     *)
18903       use_descriptor_passing=yes
18904       ;;
18905 esac
18906 # Check whether --enable-fd-passing was given.
18907 if test "${enable_fd_passing+set}" = set; then :
18908   enableval=$enable_fd_passing; use_descriptor_passing=$enableval
18909 fi
18910
18911
18912 if test "$supports_descriptor_passing" != "yes"; then
18913   use_descriptor_passing=no
18914 fi
18915
18916 if test "$use_descriptor_passing" = "yes"; then
18917
18918 $as_echo "#define USE_DESCRIPTOR_PASSING 1" >>confdefs.h
18919
18920 fi
18921
18922  if test "$use_descriptor_passing" = "yes"; then
18923   USE_DESCRIPTOR_PASSING_TRUE=
18924   USE_DESCRIPTOR_PASSING_FALSE='#'
18925 else
18926   USE_DESCRIPTOR_PASSING_TRUE='#'
18927   USE_DESCRIPTOR_PASSING_FALSE=
18928 fi
18929
18930
18931
18932 uiserver=no
18933 if test "$use_descriptor_passing" = "yes" && test "$have_libassuan" = "yes"; then
18934   uiserver=yes
18935 fi
18936 if test "$uiserver" != "no"; then
18937
18938 $as_echo "#define ENABLE_UISERVER 1" >>confdefs.h
18939
18940 fi
18941  if test "$uiserver" != "no"; then
18942   HAVE_UISERVER_TRUE=
18943   HAVE_UISERVER_FALSE='#'
18944 else
18945   HAVE_UISERVER_TRUE='#'
18946   HAVE_UISERVER_FALSE=
18947 fi
18948
18949
18950
18951 # Add a few constants to help porting to W32
18952
18953
18954
18955
18956
18957 # Substitution used for gpgme-config
18958 GPGME_CONFIG_LIBS="-lgpgme"
18959 GPGME_CONFIG_CFLAGS=""
18960 GPGME_CONFIG_HOST="$host"
18961
18962
18963
18964
18965
18966 # Frob'da Variables
18967 LTLIBOBJS=`echo "$LIBOBJS" |
18968            sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'`
18969
18970
18971 # Some checks for gpgme-tool
18972 # Done at top: AC_CHECK_HEADER([argp.h])
18973 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#include <errno.h>
18974 "
18975 if test "x$ac_cv_type_error_t" = xyes; then :
18976
18977 cat >>confdefs.h <<_ACEOF
18978 #define HAVE_ERROR_T 1
18979 _ACEOF
18980
18981
18982 else
18983
18984 $as_echo "#define error_t int" >>confdefs.h
18985
18986 fi
18987
18988
18989
18990 # A substitution to set generated files in a Emacs buffer to read-only.
18991 emacs_local_vars_begin='Local Variables:'
18992
18993 emacs_local_vars_read_only='buffer-read-only: t'
18994
18995 emacs_local_vars_end='End:'
18996
18997
18998
18999 # Last check.
19000 die=no
19001 if test "$have_gpg_error" = "no"; then
19002    die=yes
19003    { $as_echo "$as_me:${as_lineno-$LINENO}:
19004 ***
19005 *** You need libgpg-error to build this program.
19006 **  This library is for example available at
19007 ***   ftp://ftp.gnupg.org/gcrypt/libgpg-error
19008 *** (at least version $NEED_GPG_ERROR_VERSION is required.)
19009 ***" >&5
19010 $as_echo "$as_me:
19011 ***
19012 *** You need libgpg-error to build this program.
19013 **  This library is for example available at
19014 ***   ftp://ftp.gnupg.org/gcrypt/libgpg-error
19015 *** (at least version $NEED_GPG_ERROR_VERSION is required.)
19016 ***" >&6;}
19017 fi
19018 if test "$have_libassuan" = "no"; then
19019    die=yes
19020    { $as_echo "$as_me:${as_lineno-$LINENO}:
19021 ***
19022 *** You need libassuan to build this program.
19023 *** This library is for example available at
19024 ***   ftp://ftp.gnupg.org/gcrypt/libassuan/
19025 *** (at least version $NEED_LIBASSUAN_VERSION (API $NEED_LIBASSUAN_API) is required).
19026 ***" >&5
19027 $as_echo "$as_me:
19028 ***
19029 *** You need libassuan to build this program.
19030 *** This library is for example available at
19031 ***   ftp://ftp.gnupg.org/gcrypt/libassuan/
19032 *** (at least version $NEED_LIBASSUAN_VERSION (API $NEED_LIBASSUAN_API) is required).
19033 ***" >&6;}
19034 fi
19035
19036 if test "$die" = "yes"; then
19037     as_fn_error $? "
19038 ***
19039 *** Required libraries not found. Please consult the above messages
19040 *** and install them before running configure again.
19041 ***" "$LINENO" 5
19042 fi
19043
19044
19045 #
19046 # Create config files
19047
19048 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"
19049
19050 ac_config_files="$ac_config_files src/gpgme-config"
19051
19052 ac_config_files="$ac_config_files lang/Makefile lang/cl/Makefile lang/cl/gpgme.asd"
19053
19054 cat >confcache <<\_ACEOF
19055 # This file is a shell script that caches the results of configure
19056 # tests run on this system so they can be shared between configure
19057 # scripts and configure runs, see configure's option --config-cache.
19058 # It is not useful on other systems.  If it contains results you don't
19059 # want to keep, you may remove or edit it.
19060 #
19061 # config.status only pays attention to the cache file if you give it
19062 # the --recheck option to rerun configure.
19063 #
19064 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19065 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19066 # following values.
19067
19068 _ACEOF
19069
19070 # The following way of writing the cache mishandles newlines in values,
19071 # but we know of no workaround that is simple, portable, and efficient.
19072 # So, we kill variables containing newlines.
19073 # Ultrix sh set writes to stderr and can't be redirected directly,
19074 # and sets the high bit in the cache file unless we assign to the vars.
19075 (
19076   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19077     eval ac_val=\$$ac_var
19078     case $ac_val in #(
19079     *${as_nl}*)
19080       case $ac_var in #(
19081       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19082 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19083       esac
19084       case $ac_var in #(
19085       _ | IFS | as_nl) ;; #(
19086       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19087       *) { eval $ac_var=; unset $ac_var;} ;;
19088       esac ;;
19089     esac
19090   done
19091
19092   (set) 2>&1 |
19093     case $as_nl`(ac_space=' '; set) 2>&1` in #(
19094     *${as_nl}ac_space=\ *)
19095       # `set' does not quote correctly, so add quotes: double-quote
19096       # substitution turns \\\\ into \\, and sed turns \\ into \.
19097       sed -n \
19098         "s/'/'\\\\''/g;
19099           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19100       ;; #(
19101     *)
19102       # `set' quotes correctly as required by POSIX, so do not add quotes.
19103       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19104       ;;
19105     esac |
19106     sort
19107 ) |
19108   sed '
19109      /^ac_cv_env_/b end
19110      t clear
19111      :clear
19112      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19113      t end
19114      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19115      :end' >>confcache
19116 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19117   if test -w "$cache_file"; then
19118     if test "x$cache_file" != "x/dev/null"; then
19119       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19120 $as_echo "$as_me: updating cache $cache_file" >&6;}
19121       if test ! -f "$cache_file" || test -h "$cache_file"; then
19122         cat confcache >"$cache_file"
19123       else
19124         case $cache_file in #(
19125         */* | ?:*)
19126           mv -f confcache "$cache_file"$$ &&
19127           mv -f "$cache_file"$$ "$cache_file" ;; #(
19128         *)
19129           mv -f confcache "$cache_file" ;;
19130         esac
19131       fi
19132     fi
19133   else
19134     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19135 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19136   fi
19137 fi
19138 rm -f confcache
19139
19140 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19141 # Let make expand exec_prefix.
19142 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19143
19144 DEFS=-DHAVE_CONFIG_H
19145
19146 ac_libobjs=
19147 ac_ltlibobjs=
19148 U=
19149 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19150   # 1. Remove the extension, and $U if already installed.
19151   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19152   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19153   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19154   #    will be set to the directory where LIBOBJS objects are built.
19155   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19156   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19157 done
19158 LIBOBJS=$ac_libobjs
19159
19160 LTLIBOBJS=$ac_ltlibobjs
19161
19162
19163  if test -n "$EXEEXT"; then
19164   am__EXEEXT_TRUE=
19165   am__EXEEXT_FALSE='#'
19166 else
19167   am__EXEEXT_TRUE='#'
19168   am__EXEEXT_FALSE=
19169 fi
19170
19171 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19172   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
19173 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19174 fi
19175 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19176   as_fn_error $? "conditional \"AMDEP\" was never defined.
19177 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19178 fi
19179 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19180   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19181 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19182 fi
19183 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19184   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19185 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19186 fi
19187 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19188   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19189 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19190 fi
19191 if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
19192   as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
19193 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19194 fi
19195 if test -z "${HAVE_DOSISH_SYSTEM_TRUE}" && test -z "${HAVE_DOSISH_SYSTEM_FALSE}"; then
19196   as_fn_error $? "conditional \"HAVE_DOSISH_SYSTEM\" was never defined.
19197 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19198 fi
19199 if test -z "${HAVE_W32_SYSTEM_TRUE}" && test -z "${HAVE_W32_SYSTEM_FALSE}"; then
19200   as_fn_error $? "conditional \"HAVE_W32_SYSTEM\" was never defined.
19201 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19202 fi
19203 if test -z "${HAVE_W64_SYSTEM_TRUE}" && test -z "${HAVE_W64_SYSTEM_FALSE}"; then
19204   as_fn_error $? "conditional \"HAVE_W64_SYSTEM\" was never defined.
19205 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19206 fi
19207 if test -z "${HAVE_W32CE_SYSTEM_TRUE}" && test -z "${HAVE_W32CE_SYSTEM_FALSE}"; then
19208   as_fn_error $? "conditional \"HAVE_W32CE_SYSTEM\" was never defined.
19209 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19210 fi
19211 if test -z "${HAVE_ANDROID_SYSTEM_TRUE}" && test -z "${HAVE_ANDROID_SYSTEM_FALSE}"; then
19212   as_fn_error $? "conditional \"HAVE_ANDROID_SYSTEM\" was never defined.
19213 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19214 fi
19215 if test -z "${BUILD_W32_GLIB_TRUE}" && test -z "${BUILD_W32_GLIB_FALSE}"; then
19216   as_fn_error $? "conditional \"BUILD_W32_GLIB\" was never defined.
19217 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19218 fi
19219 if test -z "${BUILD_W32_QT_TRUE}" && test -z "${BUILD_W32_QT_FALSE}"; then
19220   as_fn_error $? "conditional \"BUILD_W32_QT\" was never defined.
19221 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19222 fi
19223 if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then
19224   as_fn_error $? "conditional \"HAVE_PTHREAD\" was never defined.
19225 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19226 fi
19227 if test -z "${RUN_GPGCONF_TESTS_TRUE}" && test -z "${RUN_GPGCONF_TESTS_FALSE}"; then
19228   as_fn_error $? "conditional \"RUN_GPGCONF_TESTS\" was never defined.
19229 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19230 fi
19231 if test -z "${RUN_GPG_TESTS_TRUE}" && test -z "${RUN_GPG_TESTS_FALSE}"; then
19232   as_fn_error $? "conditional \"RUN_GPG_TESTS\" was never defined.
19233 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19234 fi
19235 if test -z "${RUN_GPGSM_TESTS_TRUE}" && test -z "${RUN_GPGSM_TESTS_FALSE}"; then
19236   as_fn_error $? "conditional \"RUN_GPGSM_TESTS\" was never defined.
19237 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19238 fi
19239 if test -z "${RUN_G13_TESTS_TRUE}" && test -z "${RUN_G13_TESTS_FALSE}"; then
19240   as_fn_error $? "conditional \"RUN_G13_TESTS\" was never defined.
19241 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19242 fi
19243 if test -z "${USE_DESCRIPTOR_PASSING_TRUE}" && test -z "${USE_DESCRIPTOR_PASSING_FALSE}"; then
19244   as_fn_error $? "conditional \"USE_DESCRIPTOR_PASSING\" was never defined.
19245 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19246 fi
19247 if test -z "${HAVE_UISERVER_TRUE}" && test -z "${HAVE_UISERVER_FALSE}"; then
19248   as_fn_error $? "conditional \"HAVE_UISERVER\" was never defined.
19249 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19250 fi
19251
19252 : "${CONFIG_STATUS=./config.status}"
19253 ac_write_fail=0
19254 ac_clean_files_save=$ac_clean_files
19255 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19256 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19257 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19258 as_write_fail=0
19259 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19260 #! $SHELL
19261 # Generated by $as_me.
19262 # Run this file to recreate the current configuration.
19263 # Compiler output produced by configure, useful for debugging
19264 # configure, is in config.log if it exists.
19265
19266 debug=false
19267 ac_cs_recheck=false
19268 ac_cs_silent=false
19269
19270 SHELL=\${CONFIG_SHELL-$SHELL}
19271 export SHELL
19272 _ASEOF
19273 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19274 ## -------------------- ##
19275 ## M4sh Initialization. ##
19276 ## -------------------- ##
19277
19278 # Be more Bourne compatible
19279 DUALCASE=1; export DUALCASE # for MKS sh
19280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19281   emulate sh
19282   NULLCMD=:
19283   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19284   # is contrary to our usage.  Disable this feature.
19285   alias -g '${1+"$@"}'='"$@"'
19286   setopt NO_GLOB_SUBST
19287 else
19288   case `(set -o) 2>/dev/null` in #(
19289   *posix*) :
19290     set -o posix ;; #(
19291   *) :
19292      ;;
19293 esac
19294 fi
19295
19296
19297 as_nl='
19298 '
19299 export as_nl
19300 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19301 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19302 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19303 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19304 # Prefer a ksh shell builtin over an external printf program on Solaris,
19305 # but without wasting forks for bash or zsh.
19306 if test -z "$BASH_VERSION$ZSH_VERSION" \
19307     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19308   as_echo='print -r --'
19309   as_echo_n='print -rn --'
19310 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19311   as_echo='printf %s\n'
19312   as_echo_n='printf %s'
19313 else
19314   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19315     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19316     as_echo_n='/usr/ucb/echo -n'
19317   else
19318     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19319     as_echo_n_body='eval
19320       arg=$1;
19321       case $arg in #(
19322       *"$as_nl"*)
19323         expr "X$arg" : "X\\(.*\\)$as_nl";
19324         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19325       esac;
19326       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19327     '
19328     export as_echo_n_body
19329     as_echo_n='sh -c $as_echo_n_body as_echo'
19330   fi
19331   export as_echo_body
19332   as_echo='sh -c $as_echo_body as_echo'
19333 fi
19334
19335 # The user is always right.
19336 if test "${PATH_SEPARATOR+set}" != set; then
19337   PATH_SEPARATOR=:
19338   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19339     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19340       PATH_SEPARATOR=';'
19341   }
19342 fi
19343
19344
19345 # IFS
19346 # We need space, tab and new line, in precisely that order.  Quoting is
19347 # there to prevent editors from complaining about space-tab.
19348 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19349 # splitting by setting IFS to empty value.)
19350 IFS=" ""        $as_nl"
19351
19352 # Find who we are.  Look in the path if we contain no directory separator.
19353 as_myself=
19354 case $0 in #((
19355   *[\\/]* ) as_myself=$0 ;;
19356   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19357 for as_dir in $PATH
19358 do
19359   IFS=$as_save_IFS
19360   test -z "$as_dir" && as_dir=.
19361     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19362   done
19363 IFS=$as_save_IFS
19364
19365      ;;
19366 esac
19367 # We did not find ourselves, most probably we were run as `sh COMMAND'
19368 # in which case we are not to be found in the path.
19369 if test "x$as_myself" = x; then
19370   as_myself=$0
19371 fi
19372 if test ! -f "$as_myself"; then
19373   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19374   exit 1
19375 fi
19376
19377 # Unset variables that we do not need and which cause bugs (e.g. in
19378 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
19379 # suppresses any "Segmentation fault" message there.  '((' could
19380 # trigger a bug in pdksh 5.2.14.
19381 for as_var in BASH_ENV ENV MAIL MAILPATH
19382 do eval test x\${$as_var+set} = xset \
19383   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19384 done
19385 PS1='$ '
19386 PS2='> '
19387 PS4='+ '
19388
19389 # NLS nuisances.
19390 LC_ALL=C
19391 export LC_ALL
19392 LANGUAGE=C
19393 export LANGUAGE
19394
19395 # CDPATH.
19396 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19397
19398
19399 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19400 # ----------------------------------------
19401 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19402 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19403 # script with STATUS, using 1 if that was 0.
19404 as_fn_error ()
19405 {
19406   as_status=$1; test $as_status -eq 0 && as_status=1
19407   if test "$4"; then
19408     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19409     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19410   fi
19411   $as_echo "$as_me: error: $2" >&2
19412   as_fn_exit $as_status
19413 } # as_fn_error
19414
19415
19416 # as_fn_set_status STATUS
19417 # -----------------------
19418 # Set $? to STATUS, without forking.
19419 as_fn_set_status ()
19420 {
19421   return $1
19422 } # as_fn_set_status
19423
19424 # as_fn_exit STATUS
19425 # -----------------
19426 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19427 as_fn_exit ()
19428 {
19429   set +e
19430   as_fn_set_status $1
19431   exit $1
19432 } # as_fn_exit
19433
19434 # as_fn_unset VAR
19435 # ---------------
19436 # Portably unset VAR.
19437 as_fn_unset ()
19438 {
19439   { eval $1=; unset $1;}
19440 }
19441 as_unset=as_fn_unset
19442 # as_fn_append VAR VALUE
19443 # ----------------------
19444 # Append the text in VALUE to the end of the definition contained in VAR. Take
19445 # advantage of any shell optimizations that allow amortized linear growth over
19446 # repeated appends, instead of the typical quadratic growth present in naive
19447 # implementations.
19448 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19449   eval 'as_fn_append ()
19450   {
19451     eval $1+=\$2
19452   }'
19453 else
19454   as_fn_append ()
19455   {
19456     eval $1=\$$1\$2
19457   }
19458 fi # as_fn_append
19459
19460 # as_fn_arith ARG...
19461 # ------------------
19462 # Perform arithmetic evaluation on the ARGs, and store the result in the
19463 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19464 # must be portable across $(()) and expr.
19465 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19466   eval 'as_fn_arith ()
19467   {
19468     as_val=$(( $* ))
19469   }'
19470 else
19471   as_fn_arith ()
19472   {
19473     as_val=`expr "$@" || test $? -eq 1`
19474   }
19475 fi # as_fn_arith
19476
19477
19478 if expr a : '\(a\)' >/dev/null 2>&1 &&
19479    test "X`expr 00001 : '.*\(...\)'`" = X001; then
19480   as_expr=expr
19481 else
19482   as_expr=false
19483 fi
19484
19485 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19486   as_basename=basename
19487 else
19488   as_basename=false
19489 fi
19490
19491 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19492   as_dirname=dirname
19493 else
19494   as_dirname=false
19495 fi
19496
19497 as_me=`$as_basename -- "$0" ||
19498 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19499          X"$0" : 'X\(//\)$' \| \
19500          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19501 $as_echo X/"$0" |
19502     sed '/^.*\/\([^/][^/]*\)\/*$/{
19503             s//\1/
19504             q
19505           }
19506           /^X\/\(\/\/\)$/{
19507             s//\1/
19508             q
19509           }
19510           /^X\/\(\/\).*/{
19511             s//\1/
19512             q
19513           }
19514           s/.*/./; q'`
19515
19516 # Avoid depending upon Character Ranges.
19517 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19518 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19519 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19520 as_cr_digits='0123456789'
19521 as_cr_alnum=$as_cr_Letters$as_cr_digits
19522
19523 ECHO_C= ECHO_N= ECHO_T=
19524 case `echo -n x` in #(((((
19525 -n*)
19526   case `echo 'xy\c'` in
19527   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
19528   xy)  ECHO_C='\c';;
19529   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19530        ECHO_T=' ';;
19531   esac;;
19532 *)
19533   ECHO_N='-n';;
19534 esac
19535
19536 rm -f conf$$ conf$$.exe conf$$.file
19537 if test -d conf$$.dir; then
19538   rm -f conf$$.dir/conf$$.file
19539 else
19540   rm -f conf$$.dir
19541   mkdir conf$$.dir 2>/dev/null
19542 fi
19543 if (echo >conf$$.file) 2>/dev/null; then
19544   if ln -s conf$$.file conf$$ 2>/dev/null; then
19545     as_ln_s='ln -s'
19546     # ... but there are two gotchas:
19547     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19548     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19549     # In both cases, we have to default to `cp -pR'.
19550     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19551       as_ln_s='cp -pR'
19552   elif ln conf$$.file conf$$ 2>/dev/null; then
19553     as_ln_s=ln
19554   else
19555     as_ln_s='cp -pR'
19556   fi
19557 else
19558   as_ln_s='cp -pR'
19559 fi
19560 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19561 rmdir conf$$.dir 2>/dev/null
19562
19563
19564 # as_fn_mkdir_p
19565 # -------------
19566 # Create "$as_dir" as a directory, including parents if necessary.
19567 as_fn_mkdir_p ()
19568 {
19569
19570   case $as_dir in #(
19571   -*) as_dir=./$as_dir;;
19572   esac
19573   test -d "$as_dir" || eval $as_mkdir_p || {
19574     as_dirs=
19575     while :; do
19576       case $as_dir in #(
19577       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19578       *) as_qdir=$as_dir;;
19579       esac
19580       as_dirs="'$as_qdir' $as_dirs"
19581       as_dir=`$as_dirname -- "$as_dir" ||
19582 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19583          X"$as_dir" : 'X\(//\)[^/]' \| \
19584          X"$as_dir" : 'X\(//\)$' \| \
19585          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19586 $as_echo X"$as_dir" |
19587     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19588             s//\1/
19589             q
19590           }
19591           /^X\(\/\/\)[^/].*/{
19592             s//\1/
19593             q
19594           }
19595           /^X\(\/\/\)$/{
19596             s//\1/
19597             q
19598           }
19599           /^X\(\/\).*/{
19600             s//\1/
19601             q
19602           }
19603           s/.*/./; q'`
19604       test -d "$as_dir" && break
19605     done
19606     test -z "$as_dirs" || eval "mkdir $as_dirs"
19607   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19608
19609
19610 } # as_fn_mkdir_p
19611 if mkdir -p . 2>/dev/null; then
19612   as_mkdir_p='mkdir -p "$as_dir"'
19613 else
19614   test -d ./-p && rmdir ./-p
19615   as_mkdir_p=false
19616 fi
19617
19618
19619 # as_fn_executable_p FILE
19620 # -----------------------
19621 # Test if FILE is an executable regular file.
19622 as_fn_executable_p ()
19623 {
19624   test -f "$1" && test -x "$1"
19625 } # as_fn_executable_p
19626 as_test_x='test -x'
19627 as_executable_p=as_fn_executable_p
19628
19629 # Sed expression to map a string onto a valid CPP name.
19630 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19631
19632 # Sed expression to map a string onto a valid variable name.
19633 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19634
19635
19636 exec 6>&1
19637 ## ----------------------------------- ##
19638 ## Main body of $CONFIG_STATUS script. ##
19639 ## ----------------------------------- ##
19640 _ASEOF
19641 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19642
19643 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19644 # Save the log message, to keep $0 and so on meaningful, and to
19645 # report actual input values of CONFIG_FILES etc. instead of their
19646 # values after options handling.
19647 ac_log="
19648 This file was extended by gpgme $as_me 1.5.1, which was
19649 generated by GNU Autoconf 2.69.  Invocation command line was
19650
19651   CONFIG_FILES    = $CONFIG_FILES
19652   CONFIG_HEADERS  = $CONFIG_HEADERS
19653   CONFIG_LINKS    = $CONFIG_LINKS
19654   CONFIG_COMMANDS = $CONFIG_COMMANDS
19655   $ $0 $@
19656
19657 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19658 "
19659
19660 _ACEOF
19661
19662 case $ac_config_files in *"
19663 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19664 esac
19665
19666 case $ac_config_headers in *"
19667 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19668 esac
19669
19670
19671 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19672 # Files that config.status was made for.
19673 config_files="$ac_config_files"
19674 config_headers="$ac_config_headers"
19675 config_commands="$ac_config_commands"
19676
19677 _ACEOF
19678
19679 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19680 ac_cs_usage="\
19681 \`$as_me' instantiates files and other configuration actions
19682 from templates according to the current configuration.  Unless the files
19683 and actions are specified as TAGs, all are instantiated by default.
19684
19685 Usage: $0 [OPTION]... [TAG]...
19686
19687   -h, --help       print this help, then exit
19688   -V, --version    print version number and configuration settings, then exit
19689       --config     print configuration, then exit
19690   -q, --quiet, --silent
19691                    do not print progress messages
19692   -d, --debug      don't remove temporary files
19693       --recheck    update $as_me by reconfiguring in the same conditions
19694       --file=FILE[:TEMPLATE]
19695                    instantiate the configuration file FILE
19696       --header=FILE[:TEMPLATE]
19697                    instantiate the configuration header FILE
19698
19699 Configuration files:
19700 $config_files
19701
19702 Configuration headers:
19703 $config_headers
19704
19705 Configuration commands:
19706 $config_commands
19707
19708 Report bugs to <http://bugs.gnupg.org>."
19709
19710 _ACEOF
19711 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19712 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19713 ac_cs_version="\\
19714 gpgme config.status 1.5.1
19715 configured by $0, generated by GNU Autoconf 2.69,
19716   with options \\"\$ac_cs_config\\"
19717
19718 Copyright (C) 2012 Free Software Foundation, Inc.
19719 This config.status script is free software; the Free Software Foundation
19720 gives unlimited permission to copy, distribute and modify it."
19721
19722 ac_pwd='$ac_pwd'
19723 srcdir='$srcdir'
19724 INSTALL='$INSTALL'
19725 MKDIR_P='$MKDIR_P'
19726 AWK='$AWK'
19727 test -n "\$AWK" || AWK=awk
19728 _ACEOF
19729
19730 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19731 # The default lists apply if the user does not specify any file.
19732 ac_need_defaults=:
19733 while test $# != 0
19734 do
19735   case $1 in
19736   --*=?*)
19737     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19738     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19739     ac_shift=:
19740     ;;
19741   --*=)
19742     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19743     ac_optarg=
19744     ac_shift=:
19745     ;;
19746   *)
19747     ac_option=$1
19748     ac_optarg=$2
19749     ac_shift=shift
19750     ;;
19751   esac
19752
19753   case $ac_option in
19754   # Handling of the options.
19755   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19756     ac_cs_recheck=: ;;
19757   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19758     $as_echo "$ac_cs_version"; exit ;;
19759   --config | --confi | --conf | --con | --co | --c )
19760     $as_echo "$ac_cs_config"; exit ;;
19761   --debug | --debu | --deb | --de | --d | -d )
19762     debug=: ;;
19763   --file | --fil | --fi | --f )
19764     $ac_shift
19765     case $ac_optarg in
19766     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19767     '') as_fn_error $? "missing file argument" ;;
19768     esac
19769     as_fn_append CONFIG_FILES " '$ac_optarg'"
19770     ac_need_defaults=false;;
19771   --header | --heade | --head | --hea )
19772     $ac_shift
19773     case $ac_optarg in
19774     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19775     esac
19776     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19777     ac_need_defaults=false;;
19778   --he | --h)
19779     # Conflict between --help and --header
19780     as_fn_error $? "ambiguous option: \`$1'
19781 Try \`$0 --help' for more information.";;
19782   --help | --hel | -h )
19783     $as_echo "$ac_cs_usage"; exit ;;
19784   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19785   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19786     ac_cs_silent=: ;;
19787
19788   # This is an error.
19789   -*) as_fn_error $? "unrecognized option: \`$1'
19790 Try \`$0 --help' for more information." ;;
19791
19792   *) as_fn_append ac_config_targets " $1"
19793      ac_need_defaults=false ;;
19794
19795   esac
19796   shift
19797 done
19798
19799 ac_configure_extra_args=
19800
19801 if $ac_cs_silent; then
19802   exec 6>/dev/null
19803   ac_configure_extra_args="$ac_configure_extra_args --silent"
19804 fi
19805
19806 _ACEOF
19807 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19808 if \$ac_cs_recheck; then
19809   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19810   shift
19811   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19812   CONFIG_SHELL='$SHELL'
19813   export CONFIG_SHELL
19814   exec "\$@"
19815 fi
19816
19817 _ACEOF
19818 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19819 exec 5>>config.log
19820 {
19821   echo
19822   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19823 ## Running $as_me. ##
19824 _ASBOX
19825   $as_echo "$ac_log"
19826 } >&5
19827
19828 _ACEOF
19829 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19830 #
19831 # INIT-COMMANDS
19832 #
19833 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19834
19835
19836 # The HP-UX ksh and POSIX shell print the target directory to stdout
19837 # if CDPATH is set.
19838 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19839
19840 sed_quote_subst='$sed_quote_subst'
19841 double_quote_subst='$double_quote_subst'
19842 delay_variable_subst='$delay_variable_subst'
19843 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19844 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19845 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
19846 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19847 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19848 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19849 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19850 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19851 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19852 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19853 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19854 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19855 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19856 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19857 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19858 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19859 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19860 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19861 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19862 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19863 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19864 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19865 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19866 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19867 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19868 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19869 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19870 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19871 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19872 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19873 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19874 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19875 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19876 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19877 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19878 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19879 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19880 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19881 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19882 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19883 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19884 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19885 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19886 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19887 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19888 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19889 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19890 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19891 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19892 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19893 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19894 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19895 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19896 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19897 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19898 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19899 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19900 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"`'
19901 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19902 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19903 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19904 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19905 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19906 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19907 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19908 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19909 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19910 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19911 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19912 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19913 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19914 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19915 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19916 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19917 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19918 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19919 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19920 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19921 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19922 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19923 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19924 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19925 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19926 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19927 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19928 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19929 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19930 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19931 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19932 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19933 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19934 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19935 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19936 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19937 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19938 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19939 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19940 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19941 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19942 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19943 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19944 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19945 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19946 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19947 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19948 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19949 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19950 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19951 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19952 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19953 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19954 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19955 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19956 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19957 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19958 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19959 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19960 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19961 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19962 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19963 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19964 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19965 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19966 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19967 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19968 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19969 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19970 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19971 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19972 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19973 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19974 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
19975 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
19976 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
19977 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
19978 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
19979 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
19980 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
19981 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
19982 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
19983 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
19984 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19985 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
19986 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19987 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
19988 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
19989 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
19990 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
19991 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
19992 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
19993 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
19994 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
19995 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
19996 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
19997 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
19998 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
19999 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
20000 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20001 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
20002 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20003 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
20004 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20005 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
20006 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20007 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
20008 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20009 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
20010 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20011 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
20012 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20013 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
20014 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20015 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
20016 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20017 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
20018 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20019 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
20020 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20021 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
20022 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20023 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
20024 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20025 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
20026 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20027 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
20028 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20029 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
20030 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20031 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
20032 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20033 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
20034 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20035 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
20036 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20037 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
20038 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20039 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
20040 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20041 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
20042 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20043 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
20044 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20045 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
20046 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20047 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
20048 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20049 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
20050 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20051 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
20052 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20053 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
20054 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20055 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
20056 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20057 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
20058 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20059 postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
20060 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20061 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
20062 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20063 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
20064 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20065 compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
20066 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20067 predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
20068 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20069 postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
20070 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20071 predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
20072 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20073 postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
20074 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
20075 compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
20076
20077 LTCC='$LTCC'
20078 LTCFLAGS='$LTCFLAGS'
20079 compiler='$compiler_DEFAULT'
20080
20081 # A function that is used when there is no print builtin or printf.
20082 func_fallback_echo ()
20083 {
20084   eval 'cat <<_LTECHO_EOF
20085 \$1
20086 _LTECHO_EOF'
20087 }
20088
20089 # Quote evaled strings.
20090 for var in AS \
20091 DLLTOOL \
20092 OBJDUMP \
20093 SHELL \
20094 ECHO \
20095 PATH_SEPARATOR \
20096 SED \
20097 GREP \
20098 EGREP \
20099 FGREP \
20100 LD \
20101 NM \
20102 LN_S \
20103 lt_SP2NL \
20104 lt_NL2SP \
20105 reload_flag \
20106 deplibs_check_method \
20107 file_magic_cmd \
20108 file_magic_glob \
20109 want_nocaseglob \
20110 sharedlib_from_linklib_cmd \
20111 AR \
20112 AR_FLAGS \
20113 archiver_list_spec \
20114 STRIP \
20115 RANLIB \
20116 CC \
20117 CFLAGS \
20118 compiler \
20119 lt_cv_sys_global_symbol_pipe \
20120 lt_cv_sys_global_symbol_to_cdecl \
20121 lt_cv_sys_global_symbol_to_c_name_address \
20122 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20123 nm_file_list_spec \
20124 lt_prog_compiler_no_builtin_flag \
20125 lt_prog_compiler_pic \
20126 lt_prog_compiler_wl \
20127 lt_prog_compiler_static \
20128 lt_cv_prog_compiler_c_o \
20129 need_locks \
20130 MANIFEST_TOOL \
20131 DSYMUTIL \
20132 NMEDIT \
20133 LIPO \
20134 OTOOL \
20135 OTOOL64 \
20136 shrext_cmds \
20137 export_dynamic_flag_spec \
20138 whole_archive_flag_spec \
20139 compiler_needs_object \
20140 with_gnu_ld \
20141 allow_undefined_flag \
20142 no_undefined_flag \
20143 hardcode_libdir_flag_spec \
20144 hardcode_libdir_separator \
20145 exclude_expsyms \
20146 include_expsyms \
20147 file_list_spec \
20148 variables_saved_for_relink \
20149 libname_spec \
20150 library_names_spec \
20151 soname_spec \
20152 install_override_mode \
20153 finish_eval \
20154 old_striplib \
20155 striplib \
20156 compiler_lib_search_dirs \
20157 predep_objects \
20158 postdep_objects \
20159 predeps \
20160 postdeps \
20161 compiler_lib_search_path \
20162 LD_CXX \
20163 LD_RC \
20164 reload_flag_CXX \
20165 reload_flag_RC \
20166 compiler_CXX \
20167 compiler_RC \
20168 lt_prog_compiler_no_builtin_flag_CXX \
20169 lt_prog_compiler_no_builtin_flag_RC \
20170 lt_prog_compiler_pic_CXX \
20171 lt_prog_compiler_pic_RC \
20172 lt_prog_compiler_wl_CXX \
20173 lt_prog_compiler_wl_RC \
20174 lt_prog_compiler_static_CXX \
20175 lt_prog_compiler_static_RC \
20176 lt_cv_prog_compiler_c_o_CXX \
20177 lt_cv_prog_compiler_c_o_RC \
20178 export_dynamic_flag_spec_CXX \
20179 export_dynamic_flag_spec_RC \
20180 whole_archive_flag_spec_CXX \
20181 whole_archive_flag_spec_RC \
20182 compiler_needs_object_CXX \
20183 compiler_needs_object_RC \
20184 with_gnu_ld_CXX \
20185 with_gnu_ld_RC \
20186 allow_undefined_flag_CXX \
20187 allow_undefined_flag_RC \
20188 no_undefined_flag_CXX \
20189 no_undefined_flag_RC \
20190 hardcode_libdir_flag_spec_CXX \
20191 hardcode_libdir_flag_spec_RC \
20192 hardcode_libdir_separator_CXX \
20193 hardcode_libdir_separator_RC \
20194 exclude_expsyms_CXX \
20195 exclude_expsyms_RC \
20196 include_expsyms_CXX \
20197 include_expsyms_RC \
20198 file_list_spec_CXX \
20199 file_list_spec_RC \
20200 compiler_lib_search_dirs_CXX \
20201 compiler_lib_search_dirs_RC \
20202 predep_objects_CXX \
20203 predep_objects_RC \
20204 postdep_objects_CXX \
20205 postdep_objects_RC \
20206 predeps_CXX \
20207 predeps_RC \
20208 postdeps_CXX \
20209 postdeps_RC \
20210 compiler_lib_search_path_CXX \
20211 compiler_lib_search_path_RC; do
20212     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20213     *[\\\\\\\`\\"\\\$]*)
20214       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20215       ;;
20216     *)
20217       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20218       ;;
20219     esac
20220 done
20221
20222 # Double-quote double-evaled strings.
20223 for var in reload_cmds \
20224 old_postinstall_cmds \
20225 old_postuninstall_cmds \
20226 old_archive_cmds \
20227 extract_expsyms_cmds \
20228 old_archive_from_new_cmds \
20229 old_archive_from_expsyms_cmds \
20230 archive_cmds \
20231 archive_expsym_cmds \
20232 module_cmds \
20233 module_expsym_cmds \
20234 export_symbols_cmds \
20235 prelink_cmds \
20236 postlink_cmds \
20237 postinstall_cmds \
20238 postuninstall_cmds \
20239 finish_cmds \
20240 sys_lib_search_path_spec \
20241 sys_lib_dlsearch_path_spec \
20242 reload_cmds_CXX \
20243 reload_cmds_RC \
20244 old_archive_cmds_CXX \
20245 old_archive_cmds_RC \
20246 old_archive_from_new_cmds_CXX \
20247 old_archive_from_new_cmds_RC \
20248 old_archive_from_expsyms_cmds_CXX \
20249 old_archive_from_expsyms_cmds_RC \
20250 archive_cmds_CXX \
20251 archive_cmds_RC \
20252 archive_expsym_cmds_CXX \
20253 archive_expsym_cmds_RC \
20254 module_cmds_CXX \
20255 module_cmds_RC \
20256 module_expsym_cmds_CXX \
20257 module_expsym_cmds_RC \
20258 export_symbols_cmds_CXX \
20259 export_symbols_cmds_RC \
20260 prelink_cmds_CXX \
20261 prelink_cmds_RC \
20262 postlink_cmds_CXX \
20263 postlink_cmds_RC; do
20264     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20265     *[\\\\\\\`\\"\\\$]*)
20266       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20267       ;;
20268     *)
20269       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20270       ;;
20271     esac
20272 done
20273
20274 ac_aux_dir='$ac_aux_dir'
20275 xsi_shell='$xsi_shell'
20276 lt_shell_append='$lt_shell_append'
20277
20278 # See if we are running on zsh, and set the options which allow our
20279 # commands through without removal of \ escapes INIT.
20280 if test -n "\${ZSH_VERSION+set}" ; then
20281    setopt NO_GLOB_SUBST
20282 fi
20283
20284
20285     PACKAGE='$PACKAGE'
20286     VERSION='$VERSION'
20287     TIMESTAMP='$TIMESTAMP'
20288     RM='$RM'
20289     ofile='$ofile'
20290
20291
20292
20293
20294
20295
20296
20297
20298 _ACEOF
20299
20300 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20301
20302 # Handling of arguments.
20303 for ac_config_target in $ac_config_targets
20304 do
20305   case $ac_config_target in
20306     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20307     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20308     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20309     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20310     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20311     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
20312     "tests/gpg/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gpg/Makefile" ;;
20313     "tests/gpgsm/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gpgsm/Makefile" ;;
20314     "tests/opassuan/Makefile") CONFIG_FILES="$CONFIG_FILES tests/opassuan/Makefile" ;;
20315     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20316     "src/versioninfo.rc") CONFIG_FILES="$CONFIG_FILES src/versioninfo.rc" ;;
20317     "src/gpgme.h") CONFIG_FILES="$CONFIG_FILES src/gpgme.h" ;;
20318     "src/gpgme-config") CONFIG_FILES="$CONFIG_FILES src/gpgme-config" ;;
20319     "lang/Makefile") CONFIG_FILES="$CONFIG_FILES lang/Makefile" ;;
20320     "lang/cl/Makefile") CONFIG_FILES="$CONFIG_FILES lang/cl/Makefile" ;;
20321     "lang/cl/gpgme.asd") CONFIG_FILES="$CONFIG_FILES lang/cl/gpgme.asd" ;;
20322
20323   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20324   esac
20325 done
20326
20327
20328 # If the user did not use the arguments to specify the items to instantiate,
20329 # then the envvar interface is used.  Set only those that are not.
20330 # We use the long form for the default assignment because of an extremely
20331 # bizarre bug on SunOS 4.1.3.
20332 if $ac_need_defaults; then
20333   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20334   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20335   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20336 fi
20337
20338 # Have a temporary directory for convenience.  Make it in the build tree
20339 # simply because there is no reason against having it here, and in addition,
20340 # creating and moving files from /tmp can sometimes cause problems.
20341 # Hook for its removal unless debugging.
20342 # Note that there is a small window in which the directory will not be cleaned:
20343 # after its creation but before its name has been assigned to `$tmp'.
20344 $debug ||
20345 {
20346   tmp= ac_tmp=
20347   trap 'exit_status=$?
20348   : "${ac_tmp:=$tmp}"
20349   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20350 ' 0
20351   trap 'as_fn_exit 1' 1 2 13 15
20352 }
20353 # Create a (secure) tmp directory for tmp files.
20354
20355 {
20356   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20357   test -d "$tmp"
20358 }  ||
20359 {
20360   tmp=./conf$$-$RANDOM
20361   (umask 077 && mkdir "$tmp")
20362 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20363 ac_tmp=$tmp
20364
20365 # Set up the scripts for CONFIG_FILES section.
20366 # No need to generate them if there are no CONFIG_FILES.
20367 # This happens for instance with `./config.status config.h'.
20368 if test -n "$CONFIG_FILES"; then
20369
20370
20371 ac_cr=`echo X | tr X '\015'`
20372 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20373 # But we know of no other shell where ac_cr would be empty at this
20374 # point, so we can use a bashism as a fallback.
20375 if test "x$ac_cr" = x; then
20376   eval ac_cr=\$\'\\r\'
20377 fi
20378 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20379 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20380   ac_cs_awk_cr='\\r'
20381 else
20382   ac_cs_awk_cr=$ac_cr
20383 fi
20384
20385 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20386 _ACEOF
20387
20388
20389 {
20390   echo "cat >conf$$subs.awk <<_ACEOF" &&
20391   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20392   echo "_ACEOF"
20393 } >conf$$subs.sh ||
20394   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20395 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20396 ac_delim='%!_!# '
20397 for ac_last_try in false false false false false :; do
20398   . ./conf$$subs.sh ||
20399     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20400
20401   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20402   if test $ac_delim_n = $ac_delim_num; then
20403     break
20404   elif $ac_last_try; then
20405     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20406   else
20407     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20408   fi
20409 done
20410 rm -f conf$$subs.sh
20411
20412 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20413 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20414 _ACEOF
20415 sed -n '
20416 h
20417 s/^/S["/; s/!.*/"]=/
20418 p
20419 g
20420 s/^[^!]*!//
20421 :repl
20422 t repl
20423 s/'"$ac_delim"'$//
20424 t delim
20425 :nl
20426 h
20427 s/\(.\{148\}\)..*/\1/
20428 t more1
20429 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20430 p
20431 n
20432 b repl
20433 :more1
20434 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20435 p
20436 g
20437 s/.\{148\}//
20438 t nl
20439 :delim
20440 h
20441 s/\(.\{148\}\)..*/\1/
20442 t more2
20443 s/["\\]/\\&/g; s/^/"/; s/$/"/
20444 p
20445 b
20446 :more2
20447 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20448 p
20449 g
20450 s/.\{148\}//
20451 t delim
20452 ' <conf$$subs.awk | sed '
20453 /^[^""]/{
20454   N
20455   s/\n//
20456 }
20457 ' >>$CONFIG_STATUS || ac_write_fail=1
20458 rm -f conf$$subs.awk
20459 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20460 _ACAWK
20461 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20462   for (key in S) S_is_set[key] = 1
20463   FS = "\a"
20464
20465 }
20466 {
20467   line = $ 0
20468   nfields = split(line, field, "@")
20469   substed = 0
20470   len = length(field[1])
20471   for (i = 2; i < nfields; i++) {
20472     key = field[i]
20473     keylen = length(key)
20474     if (S_is_set[key]) {
20475       value = S[key]
20476       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20477       len += length(value) + length(field[++i])
20478       substed = 1
20479     } else
20480       len += 1 + keylen
20481   }
20482
20483   print line
20484 }
20485
20486 _ACAWK
20487 _ACEOF
20488 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20489 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20490   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20491 else
20492   cat
20493 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20494   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20495 _ACEOF
20496
20497 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20498 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20499 # trailing colons and then remove the whole line if VPATH becomes empty
20500 # (actually we leave an empty line to preserve line numbers).
20501 if test "x$srcdir" = x.; then
20502   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
20503 h
20504 s///
20505 s/^/:/
20506 s/[      ]*$/:/
20507 s/:\$(srcdir):/:/g
20508 s/:\${srcdir}:/:/g
20509 s/:@srcdir@:/:/g
20510 s/^:*//
20511 s/:*$//
20512 x
20513 s/\(=[   ]*\).*/\1/
20514 G
20515 s/\n//
20516 s/^[^=]*=[       ]*$//
20517 }'
20518 fi
20519
20520 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20521 fi # test -n "$CONFIG_FILES"
20522
20523 # Set up the scripts for CONFIG_HEADERS section.
20524 # No need to generate them if there are no CONFIG_HEADERS.
20525 # This happens for instance with `./config.status Makefile'.
20526 if test -n "$CONFIG_HEADERS"; then
20527 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20528 BEGIN {
20529 _ACEOF
20530
20531 # Transform confdefs.h into an awk script `defines.awk', embedded as
20532 # here-document in config.status, that substitutes the proper values into
20533 # config.h.in to produce config.h.
20534
20535 # Create a delimiter string that does not exist in confdefs.h, to ease
20536 # handling of long lines.
20537 ac_delim='%!_!# '
20538 for ac_last_try in false false :; do
20539   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20540   if test -z "$ac_tt"; then
20541     break
20542   elif $ac_last_try; then
20543     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20544   else
20545     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20546   fi
20547 done
20548
20549 # For the awk script, D is an array of macro values keyed by name,
20550 # likewise P contains macro parameters if any.  Preserve backslash
20551 # newline sequences.
20552
20553 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20554 sed -n '
20555 s/.\{148\}/&'"$ac_delim"'/g
20556 t rset
20557 :rset
20558 s/^[     ]*#[    ]*define[       ][      ]*/ /
20559 t def
20560 d
20561 :def
20562 s/\\$//
20563 t bsnl
20564 s/["\\]/\\&/g
20565 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
20566 D["\1"]=" \3"/p
20567 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
20568 d
20569 :bsnl
20570 s/["\\]/\\&/g
20571 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
20572 D["\1"]=" \3\\\\\\n"\\/p
20573 t cont
20574 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20575 t cont
20576 d
20577 :cont
20578 n
20579 s/.\{148\}/&'"$ac_delim"'/g
20580 t clear
20581 :clear
20582 s/\\$//
20583 t bsnlc
20584 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20585 d
20586 :bsnlc
20587 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20588 b cont
20589 ' <confdefs.h | sed '
20590 s/'"$ac_delim"'/"\\\
20591 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20592
20593 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20594   for (key in D) D_is_set[key] = 1
20595   FS = "\a"
20596 }
20597 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20598   line = \$ 0
20599   split(line, arg, " ")
20600   if (arg[1] == "#") {
20601     defundef = arg[2]
20602     mac1 = arg[3]
20603   } else {
20604     defundef = substr(arg[1], 2)
20605     mac1 = arg[2]
20606   }
20607   split(mac1, mac2, "(") #)
20608   macro = mac2[1]
20609   prefix = substr(line, 1, index(line, defundef) - 1)
20610   if (D_is_set[macro]) {
20611     # Preserve the white space surrounding the "#".
20612     print prefix "define", macro P[macro] D[macro]
20613     next
20614   } else {
20615     # Replace #undef with comments.  This is necessary, for example,
20616     # in the case of _POSIX_SOURCE, which is predefined and required
20617     # on some systems where configure will not decide to define it.
20618     if (defundef == "undef") {
20619       print "/*", prefix defundef, macro, "*/"
20620       next
20621     }
20622   }
20623 }
20624 { print }
20625 _ACAWK
20626 _ACEOF
20627 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20628   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20629 fi # test -n "$CONFIG_HEADERS"
20630
20631
20632 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20633 shift
20634 for ac_tag
20635 do
20636   case $ac_tag in
20637   :[FHLC]) ac_mode=$ac_tag; continue;;
20638   esac
20639   case $ac_mode$ac_tag in
20640   :[FHL]*:*);;
20641   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20642   :[FH]-) ac_tag=-:-;;
20643   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20644   esac
20645   ac_save_IFS=$IFS
20646   IFS=:
20647   set x $ac_tag
20648   IFS=$ac_save_IFS
20649   shift
20650   ac_file=$1
20651   shift
20652
20653   case $ac_mode in
20654   :L) ac_source=$1;;
20655   :[FH])
20656     ac_file_inputs=
20657     for ac_f
20658     do
20659       case $ac_f in
20660       -) ac_f="$ac_tmp/stdin";;
20661       *) # Look for the file first in the build tree, then in the source tree
20662          # (if the path is not absolute).  The absolute path cannot be DOS-style,
20663          # because $ac_f cannot contain `:'.
20664          test -f "$ac_f" ||
20665            case $ac_f in
20666            [\\/$]*) false;;
20667            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20668            esac ||
20669            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20670       esac
20671       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20672       as_fn_append ac_file_inputs " '$ac_f'"
20673     done
20674
20675     # Let's still pretend it is `configure' which instantiates (i.e., don't
20676     # use $as_me), people would be surprised to read:
20677     #    /* config.h.  Generated by config.status.  */
20678     configure_input='Generated from '`
20679           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20680         `' by configure.'
20681     if test x"$ac_file" != x-; then
20682       configure_input="$ac_file.  $configure_input"
20683       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20684 $as_echo "$as_me: creating $ac_file" >&6;}
20685     fi
20686     # Neutralize special characters interpreted by sed in replacement strings.
20687     case $configure_input in #(
20688     *\&* | *\|* | *\\* )
20689        ac_sed_conf_input=`$as_echo "$configure_input" |
20690        sed 's/[\\\\&|]/\\\\&/g'`;; #(
20691     *) ac_sed_conf_input=$configure_input;;
20692     esac
20693
20694     case $ac_tag in
20695     *:-:* | *:-) cat >"$ac_tmp/stdin" \
20696       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20697     esac
20698     ;;
20699   esac
20700
20701   ac_dir=`$as_dirname -- "$ac_file" ||
20702 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20703          X"$ac_file" : 'X\(//\)[^/]' \| \
20704          X"$ac_file" : 'X\(//\)$' \| \
20705          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20706 $as_echo X"$ac_file" |
20707     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20708             s//\1/
20709             q
20710           }
20711           /^X\(\/\/\)[^/].*/{
20712             s//\1/
20713             q
20714           }
20715           /^X\(\/\/\)$/{
20716             s//\1/
20717             q
20718           }
20719           /^X\(\/\).*/{
20720             s//\1/
20721             q
20722           }
20723           s/.*/./; q'`
20724   as_dir="$ac_dir"; as_fn_mkdir_p
20725   ac_builddir=.
20726
20727 case "$ac_dir" in
20728 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20729 *)
20730   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20731   # A ".." for each directory in $ac_dir_suffix.
20732   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20733   case $ac_top_builddir_sub in
20734   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20735   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20736   esac ;;
20737 esac
20738 ac_abs_top_builddir=$ac_pwd
20739 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20740 # for backward compatibility:
20741 ac_top_builddir=$ac_top_build_prefix
20742
20743 case $srcdir in
20744   .)  # We are building in place.
20745     ac_srcdir=.
20746     ac_top_srcdir=$ac_top_builddir_sub
20747     ac_abs_top_srcdir=$ac_pwd ;;
20748   [\\/]* | ?:[\\/]* )  # Absolute name.
20749     ac_srcdir=$srcdir$ac_dir_suffix;
20750     ac_top_srcdir=$srcdir
20751     ac_abs_top_srcdir=$srcdir ;;
20752   *) # Relative name.
20753     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20754     ac_top_srcdir=$ac_top_build_prefix$srcdir
20755     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20756 esac
20757 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20758
20759
20760   case $ac_mode in
20761   :F)
20762   #
20763   # CONFIG_FILE
20764   #
20765
20766   case $INSTALL in
20767   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20768   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20769   esac
20770   ac_MKDIR_P=$MKDIR_P
20771   case $MKDIR_P in
20772   [\\/$]* | ?:[\\/]* ) ;;
20773   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20774   esac
20775 _ACEOF
20776
20777 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20778 # If the template does not know about datarootdir, expand it.
20779 # FIXME: This hack should be removed a few years after 2.60.
20780 ac_datarootdir_hack=; ac_datarootdir_seen=
20781 ac_sed_dataroot='
20782 /datarootdir/ {
20783   p
20784   q
20785 }
20786 /@datadir@/p
20787 /@docdir@/p
20788 /@infodir@/p
20789 /@localedir@/p
20790 /@mandir@/p'
20791 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20792 *datarootdir*) ac_datarootdir_seen=yes;;
20793 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20794   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20795 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20796 _ACEOF
20797 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20798   ac_datarootdir_hack='
20799   s&@datadir@&$datadir&g
20800   s&@docdir@&$docdir&g
20801   s&@infodir@&$infodir&g
20802   s&@localedir@&$localedir&g
20803   s&@mandir@&$mandir&g
20804   s&\\\${datarootdir}&$datarootdir&g' ;;
20805 esac
20806 _ACEOF
20807
20808 # Neutralize VPATH when `$srcdir' = `.'.
20809 # Shell code in configure.ac might set extrasub.
20810 # FIXME: do we really want to maintain this feature?
20811 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20812 ac_sed_extra="$ac_vpsub
20813 $extrasub
20814 _ACEOF
20815 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20816 :t
20817 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20818 s|@configure_input@|$ac_sed_conf_input|;t t
20819 s&@top_builddir@&$ac_top_builddir_sub&;t t
20820 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20821 s&@srcdir@&$ac_srcdir&;t t
20822 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20823 s&@top_srcdir@&$ac_top_srcdir&;t t
20824 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20825 s&@builddir@&$ac_builddir&;t t
20826 s&@abs_builddir@&$ac_abs_builddir&;t t
20827 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20828 s&@INSTALL@&$ac_INSTALL&;t t
20829 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20830 $ac_datarootdir_hack
20831 "
20832 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20833   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20834
20835 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20836   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20837   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
20838       "$ac_tmp/out"`; test -z "$ac_out"; } &&
20839   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20840 which seems to be undefined.  Please make sure it is defined" >&5
20841 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20842 which seems to be undefined.  Please make sure it is defined" >&2;}
20843
20844   rm -f "$ac_tmp/stdin"
20845   case $ac_file in
20846   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20847   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20848   esac \
20849   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20850  ;;
20851   :H)
20852   #
20853   # CONFIG_HEADER
20854   #
20855   if test x"$ac_file" != x-; then
20856     {
20857       $as_echo "/* $configure_input  */" \
20858       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20859     } >"$ac_tmp/config.h" \
20860       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20861     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20862       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20863 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20864     else
20865       rm -f "$ac_file"
20866       mv "$ac_tmp/config.h" "$ac_file" \
20867         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20868     fi
20869   else
20870     $as_echo "/* $configure_input  */" \
20871       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20872       || as_fn_error $? "could not create -" "$LINENO" 5
20873   fi
20874 # Compute "$ac_file"'s index in $config_headers.
20875 _am_arg="$ac_file"
20876 _am_stamp_count=1
20877 for _am_header in $config_headers :; do
20878   case $_am_header in
20879     $_am_arg | $_am_arg:* )
20880       break ;;
20881     * )
20882       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20883   esac
20884 done
20885 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20886 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20887          X"$_am_arg" : 'X\(//\)[^/]' \| \
20888          X"$_am_arg" : 'X\(//\)$' \| \
20889          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20890 $as_echo X"$_am_arg" |
20891     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20892             s//\1/
20893             q
20894           }
20895           /^X\(\/\/\)[^/].*/{
20896             s//\1/
20897             q
20898           }
20899           /^X\(\/\/\)$/{
20900             s//\1/
20901             q
20902           }
20903           /^X\(\/\).*/{
20904             s//\1/
20905             q
20906           }
20907           s/.*/./; q'`/stamp-h$_am_stamp_count
20908  ;;
20909
20910   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20911 $as_echo "$as_me: executing $ac_file commands" >&6;}
20912  ;;
20913   esac
20914
20915
20916   case $ac_file$ac_mode in
20917     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20918   # Autoconf 2.62 quotes --file arguments for eval, but not when files
20919   # are listed without --file.  Let's play safe and only enable the eval
20920   # if we detect the quoting.
20921   case $CONFIG_FILES in
20922   *\'*) eval set x "$CONFIG_FILES" ;;
20923   *)   set x $CONFIG_FILES ;;
20924   esac
20925   shift
20926   for mf
20927   do
20928     # Strip MF so we end up with the name of the file.
20929     mf=`echo "$mf" | sed -e 's/:.*$//'`
20930     # Check whether this is an Automake generated Makefile or not.
20931     # We used to match only the files named `Makefile.in', but
20932     # some people rename them; so instead we look at the file content.
20933     # Grep'ing the first line is not enough: some people post-process
20934     # each Makefile.in and add a new line on top of each file to say so.
20935     # Grep'ing the whole file is not good either: AIX grep has a line
20936     # limit of 2048, but all sed's we know have understand at least 4000.
20937     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20938       dirpart=`$as_dirname -- "$mf" ||
20939 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20940          X"$mf" : 'X\(//\)[^/]' \| \
20941          X"$mf" : 'X\(//\)$' \| \
20942          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20943 $as_echo X"$mf" |
20944     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20945             s//\1/
20946             q
20947           }
20948           /^X\(\/\/\)[^/].*/{
20949             s//\1/
20950             q
20951           }
20952           /^X\(\/\/\)$/{
20953             s//\1/
20954             q
20955           }
20956           /^X\(\/\).*/{
20957             s//\1/
20958             q
20959           }
20960           s/.*/./; q'`
20961     else
20962       continue
20963     fi
20964     # Extract the definition of DEPDIR, am__include, and am__quote
20965     # from the Makefile without running `make'.
20966     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20967     test -z "$DEPDIR" && continue
20968     am__include=`sed -n 's/^am__include = //p' < "$mf"`
20969     test -z "am__include" && continue
20970     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20971     # When using ansi2knr, U may be empty or an underscore; expand it
20972     U=`sed -n 's/^U = //p' < "$mf"`
20973     # Find all dependency output files, they are included files with
20974     # $(DEPDIR) in their names.  We invoke sed twice because it is the
20975     # simplest approach to changing $(DEPDIR) to its actual value in the
20976     # expansion.
20977     for file in `sed -n "
20978       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20979          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20980       # Make sure the directory exists.
20981       test -f "$dirpart/$file" && continue
20982       fdir=`$as_dirname -- "$file" ||
20983 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20984          X"$file" : 'X\(//\)[^/]' \| \
20985          X"$file" : 'X\(//\)$' \| \
20986          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20987 $as_echo X"$file" |
20988     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20989             s//\1/
20990             q
20991           }
20992           /^X\(\/\/\)[^/].*/{
20993             s//\1/
20994             q
20995           }
20996           /^X\(\/\/\)$/{
20997             s//\1/
20998             q
20999           }
21000           /^X\(\/\).*/{
21001             s//\1/
21002             q
21003           }
21004           s/.*/./; q'`
21005       as_dir=$dirpart/$fdir; as_fn_mkdir_p
21006       # echo "creating $dirpart/$file"
21007       echo '# dummy' > "$dirpart/$file"
21008     done
21009   done
21010 }
21011  ;;
21012     "libtool":C)
21013
21014     # See if we are running on zsh, and set the options which allow our
21015     # commands through without removal of \ escapes.
21016     if test -n "${ZSH_VERSION+set}" ; then
21017       setopt NO_GLOB_SUBST
21018     fi
21019
21020     cfgfile="${ofile}T"
21021     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21022     $RM "$cfgfile"
21023
21024     cat <<_LT_EOF >> "$cfgfile"
21025 #! $SHELL
21026
21027 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21028 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21029 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21030 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21031 #
21032 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21033 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
21034 #                 Foundation, Inc.
21035 #   Written by Gordon Matzigkeit, 1996
21036 #
21037 #   This file is part of GNU Libtool.
21038 #
21039 # GNU Libtool is free software; you can redistribute it and/or
21040 # modify it under the terms of the GNU General Public License as
21041 # published by the Free Software Foundation; either version 2 of
21042 # the License, or (at your option) any later version.
21043 #
21044 # As a special exception to the GNU General Public License,
21045 # if you distribute this file as part of a program or library that
21046 # is built using GNU Libtool, you may include this file under the
21047 # same distribution terms that you use for the rest of that program.
21048 #
21049 # GNU Libtool is distributed in the hope that it will be useful,
21050 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21051 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21052 # GNU General Public License for more details.
21053 #
21054 # You should have received a copy of the GNU General Public License
21055 # along with GNU Libtool; see the file COPYING.  If not, a copy
21056 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21057 # obtained by writing to the Free Software Foundation, Inc.,
21058 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21059
21060
21061 # The names of the tagged configurations supported by this script.
21062 available_tags="CXX RC "
21063
21064 # ### BEGIN LIBTOOL CONFIG
21065
21066 # Which release of libtool.m4 was used?
21067 macro_version=$macro_version
21068 macro_revision=$macro_revision
21069
21070 # Assembler program.
21071 AS=$lt_AS
21072
21073 # DLL creation program.
21074 DLLTOOL=$lt_DLLTOOL
21075
21076 # Object dumper program.
21077 OBJDUMP=$lt_OBJDUMP
21078
21079 # Whether or not to build static libraries.
21080 build_old_libs=$enable_static
21081
21082 # Whether or not to build shared libraries.
21083 build_libtool_libs=$enable_shared
21084
21085 # What type of objects to build.
21086 pic_mode=$pic_mode
21087
21088 # Whether or not to optimize for fast installation.
21089 fast_install=$enable_fast_install
21090
21091 # Shell to use when invoking shell scripts.
21092 SHELL=$lt_SHELL
21093
21094 # An echo program that protects backslashes.
21095 ECHO=$lt_ECHO
21096
21097 # The PATH separator for the build system.
21098 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21099
21100 # The host system.
21101 host_alias=$host_alias
21102 host=$host
21103 host_os=$host_os
21104
21105 # The build system.
21106 build_alias=$build_alias
21107 build=$build
21108 build_os=$build_os
21109
21110 # A sed program that does not truncate output.
21111 SED=$lt_SED
21112
21113 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21114 Xsed="\$SED -e 1s/^X//"
21115
21116 # A grep program that handles long lines.
21117 GREP=$lt_GREP
21118
21119 # An ERE matcher.
21120 EGREP=$lt_EGREP
21121
21122 # A literal string matcher.
21123 FGREP=$lt_FGREP
21124
21125 # A BSD- or MS-compatible name lister.
21126 NM=$lt_NM
21127
21128 # Whether we need soft or hard links.
21129 LN_S=$lt_LN_S
21130
21131 # What is the maximum length of a command?
21132 max_cmd_len=$max_cmd_len
21133
21134 # Object file suffix (normally "o").
21135 objext=$ac_objext
21136
21137 # Executable file suffix (normally "").
21138 exeext=$exeext
21139
21140 # whether the shell understands "unset".
21141 lt_unset=$lt_unset
21142
21143 # turn spaces into newlines.
21144 SP2NL=$lt_lt_SP2NL
21145
21146 # turn newlines into spaces.
21147 NL2SP=$lt_lt_NL2SP
21148
21149 # convert \$build file names to \$host format.
21150 to_host_file_cmd=$lt_cv_to_host_file_cmd
21151
21152 # convert \$build files to toolchain format.
21153 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21154
21155 # Method to check whether dependent libraries are shared objects.
21156 deplibs_check_method=$lt_deplibs_check_method
21157
21158 # Command to use when deplibs_check_method = "file_magic".
21159 file_magic_cmd=$lt_file_magic_cmd
21160
21161 # How to find potential files when deplibs_check_method = "file_magic".
21162 file_magic_glob=$lt_file_magic_glob
21163
21164 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21165 want_nocaseglob=$lt_want_nocaseglob
21166
21167 # Command to associate shared and link libraries.
21168 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21169
21170 # The archiver.
21171 AR=$lt_AR
21172
21173 # Flags to create an archive.
21174 AR_FLAGS=$lt_AR_FLAGS
21175
21176 # How to feed a file listing to the archiver.
21177 archiver_list_spec=$lt_archiver_list_spec
21178
21179 # A symbol stripping program.
21180 STRIP=$lt_STRIP
21181
21182 # Commands used to install an old-style archive.
21183 RANLIB=$lt_RANLIB
21184 old_postinstall_cmds=$lt_old_postinstall_cmds
21185 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21186
21187 # Whether to use a lock for old archive extraction.
21188 lock_old_archive_extraction=$lock_old_archive_extraction
21189
21190 # A C compiler.
21191 LTCC=$lt_CC
21192
21193 # LTCC compiler flags.
21194 LTCFLAGS=$lt_CFLAGS
21195
21196 # Take the output of nm and produce a listing of raw symbols and C names.
21197 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21198
21199 # Transform the output of nm in a proper C declaration.
21200 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21201
21202 # Transform the output of nm in a C name address pair.
21203 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21204
21205 # Transform the output of nm in a C name address pair when lib prefix is needed.
21206 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21207
21208 # Specify filename containing input files for \$NM.
21209 nm_file_list_spec=$lt_nm_file_list_spec
21210
21211 # The root where to search for dependent libraries,and in which our libraries should be installed.
21212 lt_sysroot=$lt_sysroot
21213
21214 # The name of the directory that contains temporary libtool files.
21215 objdir=$objdir
21216
21217 # Used to examine libraries when file_magic_cmd begins with "file".
21218 MAGIC_CMD=$MAGIC_CMD
21219
21220 # Must we lock files when doing compilation?
21221 need_locks=$lt_need_locks
21222
21223 # Manifest tool.
21224 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21225
21226 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21227 DSYMUTIL=$lt_DSYMUTIL
21228
21229 # Tool to change global to local symbols on Mac OS X.
21230 NMEDIT=$lt_NMEDIT
21231
21232 # Tool to manipulate fat objects and archives on Mac OS X.
21233 LIPO=$lt_LIPO
21234
21235 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21236 OTOOL=$lt_OTOOL
21237
21238 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21239 OTOOL64=$lt_OTOOL64
21240
21241 # Old archive suffix (normally "a").
21242 libext=$libext
21243
21244 # Shared library suffix (normally ".so").
21245 shrext_cmds=$lt_shrext_cmds
21246
21247 # The commands to extract the exported symbol list from a shared archive.
21248 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21249
21250 # Variables whose values should be saved in libtool wrapper scripts and
21251 # restored at link time.
21252 variables_saved_for_relink=$lt_variables_saved_for_relink
21253
21254 # Do we need the "lib" prefix for modules?
21255 need_lib_prefix=$need_lib_prefix
21256
21257 # Do we need a version for libraries?
21258 need_version=$need_version
21259
21260 # Library versioning type.
21261 version_type=$version_type
21262
21263 # Shared library runtime path variable.
21264 runpath_var=$runpath_var
21265
21266 # Shared library path variable.
21267 shlibpath_var=$shlibpath_var
21268
21269 # Is shlibpath searched before the hard-coded library search path?
21270 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21271
21272 # Format of library name prefix.
21273 libname_spec=$lt_libname_spec
21274
21275 # List of archive names.  First name is the real one, the rest are links.
21276 # The last name is the one that the linker finds with -lNAME
21277 library_names_spec=$lt_library_names_spec
21278
21279 # The coded name of the library, if different from the real name.
21280 soname_spec=$lt_soname_spec
21281
21282 # Permission mode override for installation of shared libraries.
21283 install_override_mode=$lt_install_override_mode
21284
21285 # Command to use after installation of a shared archive.
21286 postinstall_cmds=$lt_postinstall_cmds
21287
21288 # Command to use after uninstallation of a shared archive.
21289 postuninstall_cmds=$lt_postuninstall_cmds
21290
21291 # Commands used to finish a libtool library installation in a directory.
21292 finish_cmds=$lt_finish_cmds
21293
21294 # As "finish_cmds", except a single script fragment to be evaled but
21295 # not shown.
21296 finish_eval=$lt_finish_eval
21297
21298 # Whether we should hardcode library paths into libraries.
21299 hardcode_into_libs=$hardcode_into_libs
21300
21301 # Compile-time system search path for libraries.
21302 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21303
21304 # Run-time system search path for libraries.
21305 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21306
21307 # Whether dlopen is supported.
21308 dlopen_support=$enable_dlopen
21309
21310 # Whether dlopen of programs is supported.
21311 dlopen_self=$enable_dlopen_self
21312
21313 # Whether dlopen of statically linked programs is supported.
21314 dlopen_self_static=$enable_dlopen_self_static
21315
21316 # Commands to strip libraries.
21317 old_striplib=$lt_old_striplib
21318 striplib=$lt_striplib
21319
21320
21321 # The linker used to build libraries.
21322 LD=$lt_LD
21323
21324 # How to create reloadable object files.
21325 reload_flag=$lt_reload_flag
21326 reload_cmds=$lt_reload_cmds
21327
21328 # Commands used to build an old-style archive.
21329 old_archive_cmds=$lt_old_archive_cmds
21330
21331 # A language specific compiler.
21332 CC=$lt_compiler
21333
21334 # Is the compiler the GNU compiler?
21335 with_gcc=$GCC
21336
21337 # Compiler flag to turn off builtin functions.
21338 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21339
21340 # Additional compiler flags for building library objects.
21341 pic_flag=$lt_lt_prog_compiler_pic
21342
21343 # How to pass a linker flag through the compiler.
21344 wl=$lt_lt_prog_compiler_wl
21345
21346 # Compiler flag to prevent dynamic linking.
21347 link_static_flag=$lt_lt_prog_compiler_static
21348
21349 # Does compiler simultaneously support -c and -o options?
21350 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21351
21352 # Whether or not to add -lc for building shared libraries.
21353 build_libtool_need_lc=$archive_cmds_need_lc
21354
21355 # Whether or not to disallow shared libs when runtime libs are static.
21356 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21357
21358 # Compiler flag to allow reflexive dlopens.
21359 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21360
21361 # Compiler flag to generate shared objects directly from archives.
21362 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21363
21364 # Whether the compiler copes with passing no objects directly.
21365 compiler_needs_object=$lt_compiler_needs_object
21366
21367 # Create an old-style archive from a shared archive.
21368 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21369
21370 # Create a temporary old-style archive to link instead of a shared archive.
21371 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21372
21373 # Commands used to build a shared archive.
21374 archive_cmds=$lt_archive_cmds
21375 archive_expsym_cmds=$lt_archive_expsym_cmds
21376
21377 # Commands used to build a loadable module if different from building
21378 # a shared archive.
21379 module_cmds=$lt_module_cmds
21380 module_expsym_cmds=$lt_module_expsym_cmds
21381
21382 # Whether we are building with GNU ld or not.
21383 with_gnu_ld=$lt_with_gnu_ld
21384
21385 # Flag that allows shared libraries with undefined symbols to be built.
21386 allow_undefined_flag=$lt_allow_undefined_flag
21387
21388 # Flag that enforces no undefined symbols.
21389 no_undefined_flag=$lt_no_undefined_flag
21390
21391 # Flag to hardcode \$libdir into a binary during linking.
21392 # This must work even if \$libdir does not exist
21393 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21394
21395 # Whether we need a single "-rpath" flag with a separated argument.
21396 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21397
21398 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21399 # DIR into the resulting binary.
21400 hardcode_direct=$hardcode_direct
21401
21402 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21403 # DIR into the resulting binary and the resulting library dependency is
21404 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21405 # library is relocated.
21406 hardcode_direct_absolute=$hardcode_direct_absolute
21407
21408 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21409 # into the resulting binary.
21410 hardcode_minus_L=$hardcode_minus_L
21411
21412 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21413 # into the resulting binary.
21414 hardcode_shlibpath_var=$hardcode_shlibpath_var
21415
21416 # Set to "yes" if building a shared library automatically hardcodes DIR
21417 # into the library and all subsequent libraries and executables linked
21418 # against it.
21419 hardcode_automatic=$hardcode_automatic
21420
21421 # Set to yes if linker adds runtime paths of dependent libraries
21422 # to runtime path list.
21423 inherit_rpath=$inherit_rpath
21424
21425 # Whether libtool must link a program against all its dependency libraries.
21426 link_all_deplibs=$link_all_deplibs
21427
21428 # Set to "yes" if exported symbols are required.
21429 always_export_symbols=$always_export_symbols
21430
21431 # The commands to list exported symbols.
21432 export_symbols_cmds=$lt_export_symbols_cmds
21433
21434 # Symbols that should not be listed in the preloaded symbols.
21435 exclude_expsyms=$lt_exclude_expsyms
21436
21437 # Symbols that must always be exported.
21438 include_expsyms=$lt_include_expsyms
21439
21440 # Commands necessary for linking programs (against libraries) with templates.
21441 prelink_cmds=$lt_prelink_cmds
21442
21443 # Commands necessary for finishing linking programs.
21444 postlink_cmds=$lt_postlink_cmds
21445
21446 # Specify filename containing input files.
21447 file_list_spec=$lt_file_list_spec
21448
21449 # How to hardcode a shared library path into an executable.
21450 hardcode_action=$hardcode_action
21451
21452 # The directories searched by this compiler when creating a shared library.
21453 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21454
21455 # Dependencies to place before and after the objects being linked to
21456 # create a shared library.
21457 predep_objects=$lt_predep_objects
21458 postdep_objects=$lt_postdep_objects
21459 predeps=$lt_predeps
21460 postdeps=$lt_postdeps
21461
21462 # The library search path used internally by the compiler when linking
21463 # a shared library.
21464 compiler_lib_search_path=$lt_compiler_lib_search_path
21465
21466 # ### END LIBTOOL CONFIG
21467
21468 _LT_EOF
21469
21470   case $host_os in
21471   aix3*)
21472     cat <<\_LT_EOF >> "$cfgfile"
21473 # AIX sometimes has problems with the GCC collect2 program.  For some
21474 # reason, if we set the COLLECT_NAMES environment variable, the problems
21475 # vanish in a puff of smoke.
21476 if test "X${COLLECT_NAMES+set}" != Xset; then
21477   COLLECT_NAMES=
21478   export COLLECT_NAMES
21479 fi
21480 _LT_EOF
21481     ;;
21482   esac
21483
21484
21485 ltmain="$ac_aux_dir/ltmain.sh"
21486
21487
21488   # We use sed instead of cat because bash on DJGPP gets confused if
21489   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21490   # text mode, it properly converts lines to CR/LF.  This bash problem
21491   # is reportedly fixed, but why not run on old versions too?
21492   sed '$q' "$ltmain" >> "$cfgfile" \
21493      || (rm -f "$cfgfile"; exit 1)
21494
21495   if test x"$xsi_shell" = xyes; then
21496   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
21497 func_dirname ()\
21498 {\
21499 \    case ${1} in\
21500 \      */*) func_dirname_result="${1%/*}${2}" ;;\
21501 \      *  ) func_dirname_result="${3}" ;;\
21502 \    esac\
21503 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
21504   && mv -f "$cfgfile.tmp" "$cfgfile" \
21505     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21506 test 0 -eq $? || _lt_function_replace_fail=:
21507
21508
21509   sed -e '/^func_basename ()$/,/^} # func_basename /c\
21510 func_basename ()\
21511 {\
21512 \    func_basename_result="${1##*/}"\
21513 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
21514   && mv -f "$cfgfile.tmp" "$cfgfile" \
21515     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21516 test 0 -eq $? || _lt_function_replace_fail=:
21517
21518
21519   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
21520 func_dirname_and_basename ()\
21521 {\
21522 \    case ${1} in\
21523 \      */*) func_dirname_result="${1%/*}${2}" ;;\
21524 \      *  ) func_dirname_result="${3}" ;;\
21525 \    esac\
21526 \    func_basename_result="${1##*/}"\
21527 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
21528   && mv -f "$cfgfile.tmp" "$cfgfile" \
21529     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21530 test 0 -eq $? || _lt_function_replace_fail=:
21531
21532
21533   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
21534 func_stripname ()\
21535 {\
21536 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
21537 \    # positional parameters, so assign one to ordinary parameter first.\
21538 \    func_stripname_result=${3}\
21539 \    func_stripname_result=${func_stripname_result#"${1}"}\
21540 \    func_stripname_result=${func_stripname_result%"${2}"}\
21541 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
21542   && mv -f "$cfgfile.tmp" "$cfgfile" \
21543     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21544 test 0 -eq $? || _lt_function_replace_fail=:
21545
21546
21547   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
21548 func_split_long_opt ()\
21549 {\
21550 \    func_split_long_opt_name=${1%%=*}\
21551 \    func_split_long_opt_arg=${1#*=}\
21552 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
21553   && mv -f "$cfgfile.tmp" "$cfgfile" \
21554     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21555 test 0 -eq $? || _lt_function_replace_fail=:
21556
21557
21558   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21559 func_split_short_opt ()\
21560 {\
21561 \    func_split_short_opt_arg=${1#??}\
21562 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21563 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21564   && mv -f "$cfgfile.tmp" "$cfgfile" \
21565     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21566 test 0 -eq $? || _lt_function_replace_fail=:
21567
21568
21569   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21570 func_lo2o ()\
21571 {\
21572 \    case ${1} in\
21573 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21574 \      *)    func_lo2o_result=${1} ;;\
21575 \    esac\
21576 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
21577   && mv -f "$cfgfile.tmp" "$cfgfile" \
21578     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21579 test 0 -eq $? || _lt_function_replace_fail=:
21580
21581
21582   sed -e '/^func_xform ()$/,/^} # func_xform /c\
21583 func_xform ()\
21584 {\
21585     func_xform_result=${1%.*}.lo\
21586 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
21587   && mv -f "$cfgfile.tmp" "$cfgfile" \
21588     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21589 test 0 -eq $? || _lt_function_replace_fail=:
21590
21591
21592   sed -e '/^func_arith ()$/,/^} # func_arith /c\
21593 func_arith ()\
21594 {\
21595     func_arith_result=$(( $* ))\
21596 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21597   && mv -f "$cfgfile.tmp" "$cfgfile" \
21598     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21599 test 0 -eq $? || _lt_function_replace_fail=:
21600
21601
21602   sed -e '/^func_len ()$/,/^} # func_len /c\
21603 func_len ()\
21604 {\
21605     func_len_result=${#1}\
21606 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21607   && mv -f "$cfgfile.tmp" "$cfgfile" \
21608     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21609 test 0 -eq $? || _lt_function_replace_fail=:
21610
21611 fi
21612
21613 if test x"$lt_shell_append" = xyes; then
21614   sed -e '/^func_append ()$/,/^} # func_append /c\
21615 func_append ()\
21616 {\
21617     eval "${1}+=\\${2}"\
21618 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21619   && mv -f "$cfgfile.tmp" "$cfgfile" \
21620     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21621 test 0 -eq $? || _lt_function_replace_fail=:
21622
21623
21624   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21625 func_append_quoted ()\
21626 {\
21627 \    func_quote_for_eval "${2}"\
21628 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21629 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21630   && mv -f "$cfgfile.tmp" "$cfgfile" \
21631     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21632 test 0 -eq $? || _lt_function_replace_fail=:
21633
21634
21635   # Save a `func_append' function call where possible by direct use of '+='
21636   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
21637     && mv -f "$cfgfile.tmp" "$cfgfile" \
21638       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21639   test 0 -eq $? || _lt_function_replace_fail=:
21640 else
21641   # Save a `func_append' function call even when '+=' is not available
21642   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21643     && mv -f "$cfgfile.tmp" "$cfgfile" \
21644       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21645   test 0 -eq $? || _lt_function_replace_fail=:
21646 fi
21647
21648 if test x"$_lt_function_replace_fail" = x":"; then
21649   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21650 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
21651 fi
21652
21653
21654    mv -f "$cfgfile" "$ofile" ||
21655     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21656   chmod +x "$ofile"
21657
21658
21659     cat <<_LT_EOF >> "$ofile"
21660
21661 # ### BEGIN LIBTOOL TAG CONFIG: CXX
21662
21663 # The linker used to build libraries.
21664 LD=$lt_LD_CXX
21665
21666 # How to create reloadable object files.
21667 reload_flag=$lt_reload_flag_CXX
21668 reload_cmds=$lt_reload_cmds_CXX
21669
21670 # Commands used to build an old-style archive.
21671 old_archive_cmds=$lt_old_archive_cmds_CXX
21672
21673 # A language specific compiler.
21674 CC=$lt_compiler_CXX
21675
21676 # Is the compiler the GNU compiler?
21677 with_gcc=$GCC_CXX
21678
21679 # Compiler flag to turn off builtin functions.
21680 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21681
21682 # Additional compiler flags for building library objects.
21683 pic_flag=$lt_lt_prog_compiler_pic_CXX
21684
21685 # How to pass a linker flag through the compiler.
21686 wl=$lt_lt_prog_compiler_wl_CXX
21687
21688 # Compiler flag to prevent dynamic linking.
21689 link_static_flag=$lt_lt_prog_compiler_static_CXX
21690
21691 # Does compiler simultaneously support -c and -o options?
21692 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21693
21694 # Whether or not to add -lc for building shared libraries.
21695 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21696
21697 # Whether or not to disallow shared libs when runtime libs are static.
21698 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21699
21700 # Compiler flag to allow reflexive dlopens.
21701 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21702
21703 # Compiler flag to generate shared objects directly from archives.
21704 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21705
21706 # Whether the compiler copes with passing no objects directly.
21707 compiler_needs_object=$lt_compiler_needs_object_CXX
21708
21709 # Create an old-style archive from a shared archive.
21710 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21711
21712 # Create a temporary old-style archive to link instead of a shared archive.
21713 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21714
21715 # Commands used to build a shared archive.
21716 archive_cmds=$lt_archive_cmds_CXX
21717 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21718
21719 # Commands used to build a loadable module if different from building
21720 # a shared archive.
21721 module_cmds=$lt_module_cmds_CXX
21722 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21723
21724 # Whether we are building with GNU ld or not.
21725 with_gnu_ld=$lt_with_gnu_ld_CXX
21726
21727 # Flag that allows shared libraries with undefined symbols to be built.
21728 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21729
21730 # Flag that enforces no undefined symbols.
21731 no_undefined_flag=$lt_no_undefined_flag_CXX
21732
21733 # Flag to hardcode \$libdir into a binary during linking.
21734 # This must work even if \$libdir does not exist
21735 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21736
21737 # Whether we need a single "-rpath" flag with a separated argument.
21738 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21739
21740 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21741 # DIR into the resulting binary.
21742 hardcode_direct=$hardcode_direct_CXX
21743
21744 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21745 # DIR into the resulting binary and the resulting library dependency is
21746 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21747 # library is relocated.
21748 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21749
21750 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21751 # into the resulting binary.
21752 hardcode_minus_L=$hardcode_minus_L_CXX
21753
21754 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21755 # into the resulting binary.
21756 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21757
21758 # Set to "yes" if building a shared library automatically hardcodes DIR
21759 # into the library and all subsequent libraries and executables linked
21760 # against it.
21761 hardcode_automatic=$hardcode_automatic_CXX
21762
21763 # Set to yes if linker adds runtime paths of dependent libraries
21764 # to runtime path list.
21765 inherit_rpath=$inherit_rpath_CXX
21766
21767 # Whether libtool must link a program against all its dependency libraries.
21768 link_all_deplibs=$link_all_deplibs_CXX
21769
21770 # Set to "yes" if exported symbols are required.
21771 always_export_symbols=$always_export_symbols_CXX
21772
21773 # The commands to list exported symbols.
21774 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21775
21776 # Symbols that should not be listed in the preloaded symbols.
21777 exclude_expsyms=$lt_exclude_expsyms_CXX
21778
21779 # Symbols that must always be exported.
21780 include_expsyms=$lt_include_expsyms_CXX
21781
21782 # Commands necessary for linking programs (against libraries) with templates.
21783 prelink_cmds=$lt_prelink_cmds_CXX
21784
21785 # Commands necessary for finishing linking programs.
21786 postlink_cmds=$lt_postlink_cmds_CXX
21787
21788 # Specify filename containing input files.
21789 file_list_spec=$lt_file_list_spec_CXX
21790
21791 # How to hardcode a shared library path into an executable.
21792 hardcode_action=$hardcode_action_CXX
21793
21794 # The directories searched by this compiler when creating a shared library.
21795 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21796
21797 # Dependencies to place before and after the objects being linked to
21798 # create a shared library.
21799 predep_objects=$lt_predep_objects_CXX
21800 postdep_objects=$lt_postdep_objects_CXX
21801 predeps=$lt_predeps_CXX
21802 postdeps=$lt_postdeps_CXX
21803
21804 # The library search path used internally by the compiler when linking
21805 # a shared library.
21806 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21807
21808 # ### END LIBTOOL TAG CONFIG: CXX
21809 _LT_EOF
21810
21811
21812     cat <<_LT_EOF >> "$ofile"
21813
21814 # ### BEGIN LIBTOOL TAG CONFIG: RC
21815
21816 # The linker used to build libraries.
21817 LD=$lt_LD_RC
21818
21819 # How to create reloadable object files.
21820 reload_flag=$lt_reload_flag_RC
21821 reload_cmds=$lt_reload_cmds_RC
21822
21823 # Commands used to build an old-style archive.
21824 old_archive_cmds=$lt_old_archive_cmds_RC
21825
21826 # A language specific compiler.
21827 CC=$lt_compiler_RC
21828
21829 # Is the compiler the GNU compiler?
21830 with_gcc=$GCC_RC
21831
21832 # Compiler flag to turn off builtin functions.
21833 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
21834
21835 # Additional compiler flags for building library objects.
21836 pic_flag=$lt_lt_prog_compiler_pic_RC
21837
21838 # How to pass a linker flag through the compiler.
21839 wl=$lt_lt_prog_compiler_wl_RC
21840
21841 # Compiler flag to prevent dynamic linking.
21842 link_static_flag=$lt_lt_prog_compiler_static_RC
21843
21844 # Does compiler simultaneously support -c and -o options?
21845 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
21846
21847 # Whether or not to add -lc for building shared libraries.
21848 build_libtool_need_lc=$archive_cmds_need_lc_RC
21849
21850 # Whether or not to disallow shared libs when runtime libs are static.
21851 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
21852
21853 # Compiler flag to allow reflexive dlopens.
21854 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
21855
21856 # Compiler flag to generate shared objects directly from archives.
21857 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
21858
21859 # Whether the compiler copes with passing no objects directly.
21860 compiler_needs_object=$lt_compiler_needs_object_RC
21861
21862 # Create an old-style archive from a shared archive.
21863 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
21864
21865 # Create a temporary old-style archive to link instead of a shared archive.
21866 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
21867
21868 # Commands used to build a shared archive.
21869 archive_cmds=$lt_archive_cmds_RC
21870 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
21871
21872 # Commands used to build a loadable module if different from building
21873 # a shared archive.
21874 module_cmds=$lt_module_cmds_RC
21875 module_expsym_cmds=$lt_module_expsym_cmds_RC
21876
21877 # Whether we are building with GNU ld or not.
21878 with_gnu_ld=$lt_with_gnu_ld_RC
21879
21880 # Flag that allows shared libraries with undefined symbols to be built.
21881 allow_undefined_flag=$lt_allow_undefined_flag_RC
21882
21883 # Flag that enforces no undefined symbols.
21884 no_undefined_flag=$lt_no_undefined_flag_RC
21885
21886 # Flag to hardcode \$libdir into a binary during linking.
21887 # This must work even if \$libdir does not exist
21888 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
21889
21890 # Whether we need a single "-rpath" flag with a separated argument.
21891 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
21892
21893 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21894 # DIR into the resulting binary.
21895 hardcode_direct=$hardcode_direct_RC
21896
21897 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21898 # DIR into the resulting binary and the resulting library dependency is
21899 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21900 # library is relocated.
21901 hardcode_direct_absolute=$hardcode_direct_absolute_RC
21902
21903 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21904 # into the resulting binary.
21905 hardcode_minus_L=$hardcode_minus_L_RC
21906
21907 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21908 # into the resulting binary.
21909 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21910
21911 # Set to "yes" if building a shared library automatically hardcodes DIR
21912 # into the library and all subsequent libraries and executables linked
21913 # against it.
21914 hardcode_automatic=$hardcode_automatic_RC
21915
21916 # Set to yes if linker adds runtime paths of dependent libraries
21917 # to runtime path list.
21918 inherit_rpath=$inherit_rpath_RC
21919
21920 # Whether libtool must link a program against all its dependency libraries.
21921 link_all_deplibs=$link_all_deplibs_RC
21922
21923 # Set to "yes" if exported symbols are required.
21924 always_export_symbols=$always_export_symbols_RC
21925
21926 # The commands to list exported symbols.
21927 export_symbols_cmds=$lt_export_symbols_cmds_RC
21928
21929 # Symbols that should not be listed in the preloaded symbols.
21930 exclude_expsyms=$lt_exclude_expsyms_RC
21931
21932 # Symbols that must always be exported.
21933 include_expsyms=$lt_include_expsyms_RC
21934
21935 # Commands necessary for linking programs (against libraries) with templates.
21936 prelink_cmds=$lt_prelink_cmds_RC
21937
21938 # Commands necessary for finishing linking programs.
21939 postlink_cmds=$lt_postlink_cmds_RC
21940
21941 # Specify filename containing input files.
21942 file_list_spec=$lt_file_list_spec_RC
21943
21944 # How to hardcode a shared library path into an executable.
21945 hardcode_action=$hardcode_action_RC
21946
21947 # The directories searched by this compiler when creating a shared library.
21948 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
21949
21950 # Dependencies to place before and after the objects being linked to
21951 # create a shared library.
21952 predep_objects=$lt_predep_objects_RC
21953 postdep_objects=$lt_postdep_objects_RC
21954 predeps=$lt_predeps_RC
21955 postdeps=$lt_postdeps_RC
21956
21957 # The library search path used internally by the compiler when linking
21958 # a shared library.
21959 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
21960
21961 # ### END LIBTOOL TAG CONFIG: RC
21962 _LT_EOF
21963
21964  ;;
21965     "src/gpgme-config":F) chmod +x src/gpgme-config ;;
21966
21967   esac
21968 done # for ac_tag
21969
21970
21971 as_fn_exit 0
21972 _ACEOF
21973 ac_clean_files=$ac_clean_files_save
21974
21975 test $ac_write_fail = 0 ||
21976   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21977
21978
21979 # configure is writing to config.log, and then calls config.status.
21980 # config.status does its own redirection, appending to config.log.
21981 # Unfortunately, on DOS this fails, as config.log is still kept open
21982 # by configure, so config.status won't be able to write to it; its
21983 # output is simply discarded.  So we exec the FD to /dev/null,
21984 # effectively closing config.log, so it can be properly (re)opened and
21985 # appended to by config.status.  When coming back to configure, we
21986 # need to make the FD available again.
21987 if test "$no_create" != yes; then
21988   ac_cs_success=:
21989   ac_config_status_args=
21990   test "$silent" = yes &&
21991     ac_config_status_args="$ac_config_status_args --quiet"
21992   exec 5>/dev/null
21993   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21994   exec 5>>config.log
21995   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21996   # would make configure fail if this is the last instruction.
21997   $ac_cs_success || as_fn_exit 1
21998 fi
21999 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22000   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22001 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22002 fi
22003
22004
22005 echo "
22006         GPGME v${VERSION} has been configured as follows:
22007
22008         Revision:        16835c3  (5763)
22009         Platform:        $host
22010
22011         UI Server:       $uiserver
22012         FD Passing:      $use_descriptor_passing
22013         GPGME Pthread:   $have_pthread
22014 "