Imported Upstream version 1.15.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.15.1.
4 #
5 # Report bugs to <https://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: https://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.15.1'
594 PACKAGE_STRING='gpgme 1.15.1'
595 PACKAGE_BUGREPORT='https://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_AVAIL_LANG
643 GPGME_CONFIG_HOST
644 GPGME_CONFIG_CFLAGS
645 GPGME_CONFIG_LIBS
646 GPGME_CONFIG_API_VERSION
647 HAVE_UISERVER_FALSE
648 HAVE_UISERVER_TRUE
649 USE_DESCRIPTOR_PASSING_FALSE
650 USE_DESCRIPTOR_PASSING_TRUE
651 LIBASSUAN_LIBS
652 LIBASSUAN_CFLAGS
653 LIBASSUAN_CONFIG
654 GPG_ERROR_MT_LIBS
655 GPG_ERROR_MT_CFLAGS
656 GPG_ERROR_LIBS
657 GPG_ERROR_CFLAGS
658 GPGRT_CONFIG
659 GPG_ERROR_CONFIG
660 GLIBC21
661 LIBOBJS
662 API__SSIZE_T
663 API__OFF_T
664 INSERT__TYPEDEFS_FOR_GPGME_H
665 NEED__FILE_OFFSET_BITS
666 RUN_G13_TESTS_FALSE
667 RUN_G13_TESTS_TRUE
668 RUN_GPGSM_TESTS_FALSE
669 RUN_GPGSM_TESTS_TRUE
670 RUN_GPG_TESTS_FALSE
671 RUN_GPG_TESTS_TRUE
672 RUN_GPGCONF_TESTS_FALSE
673 RUN_GPGCONF_TESTS_TRUE
674 BUILD_TIMESTAMP
675 BUILD_FILEVERSION
676 BUILD_VERSION
677 BUILD_REVISION
678 ENABLED_LANGUAGES
679 PYTHONS
680 PYTHON_EXTRA_LDFLAGS
681 PYTHON_EXTRA_LIBS
682 PYTHON_SITE_PKG
683 PYTHON_LDFLAGS
684 PYTHON_CPPFLAGS
685 pkgpyexecdir
686 pyexecdir
687 pkgpythondir
688 pythondir
689 PYTHON_PLATFORM
690 PYTHON_EXEC_PREFIX
691 PYTHON_PREFIX
692 PYTHON_VERSION
693 PYTHON
694 SWIG_LIB
695 SWIG
696 HAVE_DOT
697 HAVE_DOXYGEN_FALSE
698 HAVE_DOXYGEN_TRUE
699 GRAPHVIZ
700 DOXYGEN
701 QTCHOOSER
702 MOC2
703 MOC
704 GPGME_QTTEST_LIBS
705 GPGME_QTTEST_CFLAGS
706 GPGME_QT_LIBS
707 GPGME_QT_CFLAGS
708 HAVE_CXX11
709 BUILD_W32_GLIB_FALSE
710 BUILD_W32_GLIB_TRUE
711 HAVE_MACOS_SYSTEM_FALSE
712 HAVE_MACOS_SYSTEM_TRUE
713 HAVE_ANDROID_SYSTEM_FALSE
714 HAVE_ANDROID_SYSTEM_TRUE
715 HAVE_W64_SYSTEM_FALSE
716 HAVE_W64_SYSTEM_TRUE
717 HAVE_W32_SYSTEM_FALSE
718 HAVE_W32_SYSTEM_TRUE
719 HAVE_DOSISH_SYSTEM_FALSE
720 HAVE_DOSISH_SYSTEM_TRUE
721 GLIB_MKENUMS
722 GOBJECT_QUERY
723 GLIB_GENMARSHAL
724 GLIB_LIBS
725 GLIB_CFLAGS
726 PKG_CONFIG
727 HAVE_LD_VERSION_SCRIPT_FALSE
728 HAVE_LD_VERSION_SCRIPT_TRUE
729 RC
730 CXXCPP
731 OTOOL64
732 OTOOL
733 LIPO
734 NMEDIT
735 DSYMUTIL
736 MANIFEST_TOOL
737 RANLIB
738 ac_ct_AR
739 AR
740 LN_S
741 NM
742 ac_ct_DUMPBIN
743 DUMPBIN
744 LD
745 FGREP
746 SED
747 LIBTOOL
748 OBJDUMP
749 DLLTOOL
750 AS
751 CC_FOR_BUILD
752 VERSION_NUMBER
753 VERSION_MICRO
754 VERSION_MINOR
755 VERSION_MAJOR
756 GITLOG_TO_CHANGELOG
757 am__fastdepCXX_FALSE
758 am__fastdepCXX_TRUE
759 CXXDEPMODE
760 ac_ct_CXX
761 CXXFLAGS
762 CXX
763 LDADD_FOR_TESTS_KLUDGE
764 EGREP
765 GREP
766 CPP
767 am__fastdepCC_FALSE
768 am__fastdepCC_TRUE
769 CCDEPMODE
770 am__nodep
771 AMDEPBACKSLASH
772 AMDEP_FALSE
773 AMDEP_TRUE
774 am__include
775 DEPDIR
776 OBJEXT
777 EXEEXT
778 ac_ct_CC
779 CPPFLAGS
780 LDFLAGS
781 CFLAGS
782 CC
783 SYSROOT
784 host_os
785 host_vendor
786 host_cpu
787 host
788 build_os
789 build_vendor
790 build_cpu
791 build
792 MAINT
793 MAINTAINER_MODE_FALSE
794 MAINTAINER_MODE_TRUE
795 AM_BACKSLASH
796 AM_DEFAULT_VERBOSITY
797 AM_DEFAULT_V
798 AM_V
799 am__untar
800 am__tar
801 AMTAR
802 am__leading_dot
803 SET_MAKE
804 AWK
805 mkdir_p
806 MKDIR_P
807 INSTALL_STRIP_PROGRAM
808 STRIP
809 install_sh
810 MAKEINFO
811 AUTOHEADER
812 AUTOMAKE
813 AUTOCONF
814 ACLOCAL
815 VERSION
816 PACKAGE
817 CYGPATH_W
818 am__isrc
819 INSTALL_DATA
820 INSTALL_SCRIPT
821 INSTALL_PROGRAM
822 LIBQGPGME_LT_REVISION
823 LIBQGPGME_LT_AGE
824 LIBQGPGME_LT_CURRENT
825 LIBGPGMEPP_LT_REVISION
826 LIBGPGMEPP_LT_AGE
827 LIBGPGMEPP_LT_CURRENT
828 LIBGPGME_LT_REVISION
829 LIBGPGME_LT_AGE
830 LIBGPGME_LT_CURRENT
831 target_alias
832 host_alias
833 build_alias
834 LIBS
835 ECHO_T
836 ECHO_N
837 ECHO_C
838 DEFS
839 mandir
840 localedir
841 libdir
842 psdir
843 pdfdir
844 dvidir
845 htmldir
846 infodir
847 docdir
848 oldincludedir
849 includedir
850 runstatedir
851 localstatedir
852 sharedstatedir
853 sysconfdir
854 datadir
855 datarootdir
856 libexecdir
857 sbindir
858 bindir
859 program_transform_name
860 prefix
861 exec_prefix
862 PACKAGE_URL
863 PACKAGE_BUGREPORT
864 PACKAGE_STRING
865 PACKAGE_VERSION
866 PACKAGE_TARNAME
867 PACKAGE_NAME
868 PATH_SEPARATOR
869 SHELL
870 am__quote'
871 ac_subst_files=''
872 ac_user_opts='
873 enable_option_checking
874 enable_silent_rules
875 enable_maintainer_mode
876 enable_dependency_tracking
877 enable_static
878 enable_shared
879 with_pic
880 enable_fast_install
881 with_gnu_ld
882 with_sysroot
883 enable_libtool_lock
884 enable_glibtest
885 enable_w32_glib
886 enable_fixed_path
887 enable_languages
888 enable_build_timestamp
889 enable_gpgconf_test
890 enable_gpg_test
891 enable_gpgsm_test
892 enable_g13_test
893 enable_largefile
894 with_libgpg_error_prefix
895 with_gpg_error_prefix
896 with_libassuan_prefix
897 enable_fd_passing
898 enable_linux_getdents
899 '
900       ac_precious_vars='build_alias
901 host_alias
902 target_alias
903 SYSROOT
904 CC
905 CFLAGS
906 LDFLAGS
907 LIBS
908 CPPFLAGS
909 CPP
910 CXX
911 CXXFLAGS
912 CCC
913 CC_FOR_BUILD
914 CXXCPP
915 PKG_CONFIG
916 GPGME_QT_CFLAGS
917 GPGME_QT_LIBS
918 GPGME_QTTEST_CFLAGS
919 GPGME_QTTEST_LIBS
920 PYTHON
921 PYTHON_VERSION'
922
923
924 # Initialize some variables set by options.
925 ac_init_help=
926 ac_init_version=false
927 ac_unrecognized_opts=
928 ac_unrecognized_sep=
929 # The variables have the same names as the options, with
930 # dashes changed to underlines.
931 cache_file=/dev/null
932 exec_prefix=NONE
933 no_create=
934 no_recursion=
935 prefix=NONE
936 program_prefix=NONE
937 program_suffix=NONE
938 program_transform_name=s,x,x,
939 silent=
940 site=
941 srcdir=
942 verbose=
943 x_includes=NONE
944 x_libraries=NONE
945
946 # Installation directory options.
947 # These are left unexpanded so users can "make install exec_prefix=/foo"
948 # and all the variables that are supposed to be based on exec_prefix
949 # by default will actually change.
950 # Use braces instead of parens because sh, perl, etc. also accept them.
951 # (The list follows the same order as the GNU Coding Standards.)
952 bindir='${exec_prefix}/bin'
953 sbindir='${exec_prefix}/sbin'
954 libexecdir='${exec_prefix}/libexec'
955 datarootdir='${prefix}/share'
956 datadir='${datarootdir}'
957 sysconfdir='${prefix}/etc'
958 sharedstatedir='${prefix}/com'
959 localstatedir='${prefix}/var'
960 runstatedir='${localstatedir}/run'
961 includedir='${prefix}/include'
962 oldincludedir='/usr/include'
963 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
964 infodir='${datarootdir}/info'
965 htmldir='${docdir}'
966 dvidir='${docdir}'
967 pdfdir='${docdir}'
968 psdir='${docdir}'
969 libdir='${exec_prefix}/lib'
970 localedir='${datarootdir}/locale'
971 mandir='${datarootdir}/man'
972
973 ac_prev=
974 ac_dashdash=
975 for ac_option
976 do
977   # If the previous option needs an argument, assign it.
978   if test -n "$ac_prev"; then
979     eval $ac_prev=\$ac_option
980     ac_prev=
981     continue
982   fi
983
984   case $ac_option in
985   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
986   *=)   ac_optarg= ;;
987   *)    ac_optarg=yes ;;
988   esac
989
990   # Accept the important Cygnus configure options, so we can diagnose typos.
991
992   case $ac_dashdash$ac_option in
993   --)
994     ac_dashdash=yes ;;
995
996   -bindir | --bindir | --bindi | --bind | --bin | --bi)
997     ac_prev=bindir ;;
998   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
999     bindir=$ac_optarg ;;
1000
1001   -build | --build | --buil | --bui | --bu)
1002     ac_prev=build_alias ;;
1003   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1004     build_alias=$ac_optarg ;;
1005
1006   -cache-file | --cache-file | --cache-fil | --cache-fi \
1007   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1008     ac_prev=cache_file ;;
1009   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1010   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1011     cache_file=$ac_optarg ;;
1012
1013   --config-cache | -C)
1014     cache_file=config.cache ;;
1015
1016   -datadir | --datadir | --datadi | --datad)
1017     ac_prev=datadir ;;
1018   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1019     datadir=$ac_optarg ;;
1020
1021   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1022   | --dataroo | --dataro | --datar)
1023     ac_prev=datarootdir ;;
1024   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1025   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1026     datarootdir=$ac_optarg ;;
1027
1028   -disable-* | --disable-*)
1029     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1030     # Reject names that are not valid shell variable names.
1031     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1032       as_fn_error $? "invalid feature name: $ac_useropt"
1033     ac_useropt_orig=$ac_useropt
1034     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1035     case $ac_user_opts in
1036       *"
1037 "enable_$ac_useropt"
1038 "*) ;;
1039       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1040          ac_unrecognized_sep=', ';;
1041     esac
1042     eval enable_$ac_useropt=no ;;
1043
1044   -docdir | --docdir | --docdi | --doc | --do)
1045     ac_prev=docdir ;;
1046   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1047     docdir=$ac_optarg ;;
1048
1049   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1050     ac_prev=dvidir ;;
1051   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1052     dvidir=$ac_optarg ;;
1053
1054   -enable-* | --enable-*)
1055     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1056     # Reject names that are not valid shell variable names.
1057     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1058       as_fn_error $? "invalid feature name: $ac_useropt"
1059     ac_useropt_orig=$ac_useropt
1060     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1061     case $ac_user_opts in
1062       *"
1063 "enable_$ac_useropt"
1064 "*) ;;
1065       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1066          ac_unrecognized_sep=', ';;
1067     esac
1068     eval enable_$ac_useropt=\$ac_optarg ;;
1069
1070   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1071   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1072   | --exec | --exe | --ex)
1073     ac_prev=exec_prefix ;;
1074   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1075   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1076   | --exec=* | --exe=* | --ex=*)
1077     exec_prefix=$ac_optarg ;;
1078
1079   -gas | --gas | --ga | --g)
1080     # Obsolete; use --with-gas.
1081     with_gas=yes ;;
1082
1083   -help | --help | --hel | --he | -h)
1084     ac_init_help=long ;;
1085   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1086     ac_init_help=recursive ;;
1087   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1088     ac_init_help=short ;;
1089
1090   -host | --host | --hos | --ho)
1091     ac_prev=host_alias ;;
1092   -host=* | --host=* | --hos=* | --ho=*)
1093     host_alias=$ac_optarg ;;
1094
1095   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1096     ac_prev=htmldir ;;
1097   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1098   | --ht=*)
1099     htmldir=$ac_optarg ;;
1100
1101   -includedir | --includedir | --includedi | --included | --include \
1102   | --includ | --inclu | --incl | --inc)
1103     ac_prev=includedir ;;
1104   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1105   | --includ=* | --inclu=* | --incl=* | --inc=*)
1106     includedir=$ac_optarg ;;
1107
1108   -infodir | --infodir | --infodi | --infod | --info | --inf)
1109     ac_prev=infodir ;;
1110   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1111     infodir=$ac_optarg ;;
1112
1113   -libdir | --libdir | --libdi | --libd)
1114     ac_prev=libdir ;;
1115   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1116     libdir=$ac_optarg ;;
1117
1118   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1119   | --libexe | --libex | --libe)
1120     ac_prev=libexecdir ;;
1121   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1122   | --libexe=* | --libex=* | --libe=*)
1123     libexecdir=$ac_optarg ;;
1124
1125   -localedir | --localedir | --localedi | --localed | --locale)
1126     ac_prev=localedir ;;
1127   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1128     localedir=$ac_optarg ;;
1129
1130   -localstatedir | --localstatedir | --localstatedi | --localstated \
1131   | --localstate | --localstat | --localsta | --localst | --locals)
1132     ac_prev=localstatedir ;;
1133   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1134   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1135     localstatedir=$ac_optarg ;;
1136
1137   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1138     ac_prev=mandir ;;
1139   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1140     mandir=$ac_optarg ;;
1141
1142   -nfp | --nfp | --nf)
1143     # Obsolete; use --without-fp.
1144     with_fp=no ;;
1145
1146   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1147   | --no-cr | --no-c | -n)
1148     no_create=yes ;;
1149
1150   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1151   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1152     no_recursion=yes ;;
1153
1154   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1155   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1156   | --oldin | --oldi | --old | --ol | --o)
1157     ac_prev=oldincludedir ;;
1158   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1159   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1160   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1161     oldincludedir=$ac_optarg ;;
1162
1163   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1164     ac_prev=prefix ;;
1165   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1166     prefix=$ac_optarg ;;
1167
1168   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1169   | --program-pre | --program-pr | --program-p)
1170     ac_prev=program_prefix ;;
1171   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1172   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1173     program_prefix=$ac_optarg ;;
1174
1175   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1176   | --program-suf | --program-su | --program-s)
1177     ac_prev=program_suffix ;;
1178   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1179   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1180     program_suffix=$ac_optarg ;;
1181
1182   -program-transform-name | --program-transform-name \
1183   | --program-transform-nam | --program-transform-na \
1184   | --program-transform-n | --program-transform- \
1185   | --program-transform | --program-transfor \
1186   | --program-transfo | --program-transf \
1187   | --program-trans | --program-tran \
1188   | --progr-tra | --program-tr | --program-t)
1189     ac_prev=program_transform_name ;;
1190   -program-transform-name=* | --program-transform-name=* \
1191   | --program-transform-nam=* | --program-transform-na=* \
1192   | --program-transform-n=* | --program-transform-=* \
1193   | --program-transform=* | --program-transfor=* \
1194   | --program-transfo=* | --program-transf=* \
1195   | --program-trans=* | --program-tran=* \
1196   | --progr-tra=* | --program-tr=* | --program-t=*)
1197     program_transform_name=$ac_optarg ;;
1198
1199   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1200     ac_prev=pdfdir ;;
1201   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1202     pdfdir=$ac_optarg ;;
1203
1204   -psdir | --psdir | --psdi | --psd | --ps)
1205     ac_prev=psdir ;;
1206   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1207     psdir=$ac_optarg ;;
1208
1209   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1210   | -silent | --silent | --silen | --sile | --sil)
1211     silent=yes ;;
1212
1213   -runstatedir | --runstatedir | --runstatedi | --runstated \
1214   | --runstate | --runstat | --runsta | --runst | --runs \
1215   | --run | --ru | --r)
1216     ac_prev=runstatedir ;;
1217   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1218   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1219   | --run=* | --ru=* | --r=*)
1220     runstatedir=$ac_optarg ;;
1221
1222   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1223     ac_prev=sbindir ;;
1224   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1225   | --sbi=* | --sb=*)
1226     sbindir=$ac_optarg ;;
1227
1228   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1229   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1230   | --sharedst | --shareds | --shared | --share | --shar \
1231   | --sha | --sh)
1232     ac_prev=sharedstatedir ;;
1233   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1234   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1235   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1236   | --sha=* | --sh=*)
1237     sharedstatedir=$ac_optarg ;;
1238
1239   -site | --site | --sit)
1240     ac_prev=site ;;
1241   -site=* | --site=* | --sit=*)
1242     site=$ac_optarg ;;
1243
1244   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1245     ac_prev=srcdir ;;
1246   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1247     srcdir=$ac_optarg ;;
1248
1249   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1250   | --syscon | --sysco | --sysc | --sys | --sy)
1251     ac_prev=sysconfdir ;;
1252   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1253   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1254     sysconfdir=$ac_optarg ;;
1255
1256   -target | --target | --targe | --targ | --tar | --ta | --t)
1257     ac_prev=target_alias ;;
1258   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1259     target_alias=$ac_optarg ;;
1260
1261   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1262     verbose=yes ;;
1263
1264   -version | --version | --versio | --versi | --vers | -V)
1265     ac_init_version=: ;;
1266
1267   -with-* | --with-*)
1268     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1269     # Reject names that are not valid shell variable names.
1270     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1271       as_fn_error $? "invalid package name: $ac_useropt"
1272     ac_useropt_orig=$ac_useropt
1273     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1274     case $ac_user_opts in
1275       *"
1276 "with_$ac_useropt"
1277 "*) ;;
1278       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1279          ac_unrecognized_sep=', ';;
1280     esac
1281     eval with_$ac_useropt=\$ac_optarg ;;
1282
1283   -without-* | --without-*)
1284     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1285     # Reject names that are not valid shell variable names.
1286     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1287       as_fn_error $? "invalid package name: $ac_useropt"
1288     ac_useropt_orig=$ac_useropt
1289     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1290     case $ac_user_opts in
1291       *"
1292 "with_$ac_useropt"
1293 "*) ;;
1294       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1295          ac_unrecognized_sep=', ';;
1296     esac
1297     eval with_$ac_useropt=no ;;
1298
1299   --x)
1300     # Obsolete; use --with-x.
1301     with_x=yes ;;
1302
1303   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1304   | --x-incl | --x-inc | --x-in | --x-i)
1305     ac_prev=x_includes ;;
1306   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1307   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1308     x_includes=$ac_optarg ;;
1309
1310   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1311   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1312     ac_prev=x_libraries ;;
1313   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1314   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1315     x_libraries=$ac_optarg ;;
1316
1317   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1318 Try \`$0 --help' for more information"
1319     ;;
1320
1321   *=*)
1322     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1323     # Reject names that are not valid shell variable names.
1324     case $ac_envvar in #(
1325       '' | [0-9]* | *[!_$as_cr_alnum]* )
1326       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1327     esac
1328     eval $ac_envvar=\$ac_optarg
1329     export $ac_envvar ;;
1330
1331   *)
1332     # FIXME: should be removed in autoconf 3.0.
1333     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1334     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1335       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1336     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1337     ;;
1338
1339   esac
1340 done
1341
1342 if test -n "$ac_prev"; then
1343   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1344   as_fn_error $? "missing argument to $ac_option"
1345 fi
1346
1347 if test -n "$ac_unrecognized_opts"; then
1348   case $enable_option_checking in
1349     no) ;;
1350     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1351     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1352   esac
1353 fi
1354
1355 # Check all directory arguments for consistency.
1356 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1357                 datadir sysconfdir sharedstatedir localstatedir includedir \
1358                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1359                 libdir localedir mandir runstatedir
1360 do
1361   eval ac_val=\$$ac_var
1362   # Remove trailing slashes.
1363   case $ac_val in
1364     */ )
1365       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1366       eval $ac_var=\$ac_val;;
1367   esac
1368   # Be sure to have absolute directory names.
1369   case $ac_val in
1370     [\\/$]* | ?:[\\/]* )  continue;;
1371     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1372   esac
1373   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1374 done
1375
1376 # There might be people who depend on the old broken behavior: `$host'
1377 # used to hold the argument of --host etc.
1378 # FIXME: To remove some day.
1379 build=$build_alias
1380 host=$host_alias
1381 target=$target_alias
1382
1383 # FIXME: To remove some day.
1384 if test "x$host_alias" != x; then
1385   if test "x$build_alias" = x; then
1386     cross_compiling=maybe
1387   elif test "x$build_alias" != "x$host_alias"; then
1388     cross_compiling=yes
1389   fi
1390 fi
1391
1392 ac_tool_prefix=
1393 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1394
1395 test "$silent" = yes && exec 6>/dev/null
1396
1397
1398 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1399 ac_ls_di=`ls -di .` &&
1400 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1401   as_fn_error $? "working directory cannot be determined"
1402 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1403   as_fn_error $? "pwd does not report name of working directory"
1404
1405
1406 # Find the source files, if location was not specified.
1407 if test -z "$srcdir"; then
1408   ac_srcdir_defaulted=yes
1409   # Try the directory containing this script, then the parent directory.
1410   ac_confdir=`$as_dirname -- "$as_myself" ||
1411 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1412          X"$as_myself" : 'X\(//\)[^/]' \| \
1413          X"$as_myself" : 'X\(//\)$' \| \
1414          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1415 $as_echo X"$as_myself" |
1416     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1417             s//\1/
1418             q
1419           }
1420           /^X\(\/\/\)[^/].*/{
1421             s//\1/
1422             q
1423           }
1424           /^X\(\/\/\)$/{
1425             s//\1/
1426             q
1427           }
1428           /^X\(\/\).*/{
1429             s//\1/
1430             q
1431           }
1432           s/.*/./; q'`
1433   srcdir=$ac_confdir
1434   if test ! -r "$srcdir/$ac_unique_file"; then
1435     srcdir=..
1436   fi
1437 else
1438   ac_srcdir_defaulted=no
1439 fi
1440 if test ! -r "$srcdir/$ac_unique_file"; then
1441   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1442   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1443 fi
1444 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1445 ac_abs_confdir=`(
1446         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1447         pwd)`
1448 # When building in place, set srcdir=.
1449 if test "$ac_abs_confdir" = "$ac_pwd"; then
1450   srcdir=.
1451 fi
1452 # Remove unnecessary trailing slashes from srcdir.
1453 # Double slashes in file names in object file debugging info
1454 # mess up M-x gdb in Emacs.
1455 case $srcdir in
1456 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1457 esac
1458 for ac_var in $ac_precious_vars; do
1459   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1460   eval ac_env_${ac_var}_value=\$${ac_var}
1461   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1462   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1463 done
1464
1465 #
1466 # Report the --help message.
1467 #
1468 if test "$ac_init_help" = "long"; then
1469   # Omit some internal or obsolete options to make the list less imposing.
1470   # This message is too long to be a string in the A/UX 3.1 sh.
1471   cat <<_ACEOF
1472 \`configure' configures gpgme 1.15.1 to adapt to many kinds of systems.
1473
1474 Usage: $0 [OPTION]... [VAR=VALUE]...
1475
1476 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1477 VAR=VALUE.  See below for descriptions of some of the useful variables.
1478
1479 Defaults for the options are specified in brackets.
1480
1481 Configuration:
1482   -h, --help              display this help and exit
1483       --help=short        display options specific to this package
1484       --help=recursive    display the short help of all the included packages
1485   -V, --version           display version information and exit
1486   -q, --quiet, --silent   do not print \`checking ...' messages
1487       --cache-file=FILE   cache test results in FILE [disabled]
1488   -C, --config-cache      alias for \`--cache-file=config.cache'
1489   -n, --no-create         do not create output files
1490       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1491
1492 Installation directories:
1493   --prefix=PREFIX         install architecture-independent files in PREFIX
1494                           [$ac_default_prefix]
1495   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1496                           [PREFIX]
1497
1498 By default, \`make install' will install all the files in
1499 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1500 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1501 for instance \`--prefix=\$HOME'.
1502
1503 For better control, use the options below.
1504
1505 Fine tuning of the installation directories:
1506   --bindir=DIR            user executables [EPREFIX/bin]
1507   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1508   --libexecdir=DIR        program executables [EPREFIX/libexec]
1509   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1510   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1511   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1512   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1513   --libdir=DIR            object code libraries [EPREFIX/lib]
1514   --includedir=DIR        C header files [PREFIX/include]
1515   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1516   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1517   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1518   --infodir=DIR           info documentation [DATAROOTDIR/info]
1519   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1520   --mandir=DIR            man documentation [DATAROOTDIR/man]
1521   --docdir=DIR            documentation root [DATAROOTDIR/doc/gpgme]
1522   --htmldir=DIR           html documentation [DOCDIR]
1523   --dvidir=DIR            dvi documentation [DOCDIR]
1524   --pdfdir=DIR            pdf documentation [DOCDIR]
1525   --psdir=DIR             ps documentation [DOCDIR]
1526 _ACEOF
1527
1528   cat <<\_ACEOF
1529
1530 Program names:
1531   --program-prefix=PREFIX            prepend PREFIX to installed program names
1532   --program-suffix=SUFFIX            append SUFFIX to installed program names
1533   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1534
1535 System types:
1536   --build=BUILD     configure for building on BUILD [guessed]
1537   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1538 _ACEOF
1539 fi
1540
1541 if test -n "$ac_init_help"; then
1542   case $ac_init_help in
1543      short | recursive ) echo "Configuration of gpgme 1.15.1:";;
1544    esac
1545   cat <<\_ACEOF
1546
1547 Optional Features:
1548   --disable-option-checking  ignore unrecognized --enable/--with options
1549   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1550   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1551   --enable-silent-rules   less verbose build output (undo: "make V=1")
1552   --disable-silent-rules  verbose build output (undo: "make V=0")
1553   --enable-maintainer-mode
1554                           enable make rules and dependencies not useful (and
1555                           sometimes confusing) to the casual installer
1556   --enable-dependency-tracking
1557                           do not reject slow dependency extractors
1558   --disable-dependency-tracking
1559                           speeds up one-time build
1560   --enable-static[=PKGS]  build static libraries [default=no]
1561   --enable-shared[=PKGS]  build shared libraries [default=yes]
1562   --enable-fast-install[=PKGS]
1563                           optimize for fast installation [default=yes]
1564   --disable-libtool-lock  avoid locking (might break parallel builds)
1565   --disable-glibtest      do not try to compile and run a test GLIB program
1566   --enable-w32-glib       build GPGME Glib for W32
1567   --enable-fixed-path=PATH
1568                           locate binaries only via this PATH
1569   --enable-languages=languages
1570                           enable only specific language bindings
1571   --enable-build-timestamp
1572                           set an explicit build timestamp for reproducibility.
1573                           (default is the current time in ISO-8601 format)
1574   --disable-gpgconf-test  disable GPGCONF regression test
1575   --disable-gpg-test      disable GPG regression test
1576   --disable-gpgsm-test    disable GPGSM regression test
1577   --disable-g13-test      disable G13 regression test
1578   --disable-largefile     omit support for large files
1579   --disable-fd-passing    do not use FD passing
1580   --disable-linux-getdents
1581                           do not use SYS_getdents on Linux
1582
1583 Optional Packages:
1584   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1585   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1586   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1587                           both]
1588   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1589   --with-sysroot=DIR Search for dependent libraries within DIR
1590                         (or the compiler's sysroot if not specified).
1591   --with-libgpg-error-prefix=PFX
1592                           prefix where GPG Error is installed (optional)
1593
1594   --with-libassuan-prefix=PFX
1595                           prefix where LIBASSUAN is installed (optional)
1596
1597 Some influential environment variables:
1598   SYSROOT     locate config scripts also below that directory
1599   CC          C compiler command
1600   CFLAGS      C compiler flags
1601   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1602               nonstandard directory <lib dir>
1603   LIBS        libraries to pass to the linker, e.g. -l<library>
1604   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1605               you have headers in a nonstandard directory <include dir>
1606   CPP         C preprocessor
1607   CXX         C++ compiler command
1608   CXXFLAGS    C++ compiler flags
1609   CC_FOR_BUILD
1610               build system C compiler
1611   CXXCPP      C++ preprocessor
1612   PKG_CONFIG  path to pkg-config utility
1613   GPGME_QT_CFLAGS
1614               C compiler flags for GPGME_QT, overriding pkg-config
1615   GPGME_QT_LIBS
1616               linker flags for GPGME_QT, overriding pkg-config
1617   GPGME_QTTEST_CFLAGS
1618               C compiler flags for GPGME_QTTEST, overriding pkg-config
1619   GPGME_QTTEST_LIBS
1620               linker flags for GPGME_QTTEST, overriding pkg-config
1621   PYTHON      the Python interpreter
1622   PYTHON_VERSION
1623               The installed Python version to use, for example '2.3'. This
1624               string will be appended to the Python interpreter canonical
1625               name.
1626
1627 Use these variables to override the choices made by `configure' or to help
1628 it to find libraries and programs with nonstandard names/locations.
1629
1630 Report bugs to <https://bugs.gnupg.org>.
1631 _ACEOF
1632 ac_status=$?
1633 fi
1634
1635 if test "$ac_init_help" = "recursive"; then
1636   # If there are subdirs, report their specific --help.
1637   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1638     test -d "$ac_dir" ||
1639       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1640       continue
1641     ac_builddir=.
1642
1643 case "$ac_dir" in
1644 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1645 *)
1646   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1647   # A ".." for each directory in $ac_dir_suffix.
1648   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1649   case $ac_top_builddir_sub in
1650   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1651   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1652   esac ;;
1653 esac
1654 ac_abs_top_builddir=$ac_pwd
1655 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1656 # for backward compatibility:
1657 ac_top_builddir=$ac_top_build_prefix
1658
1659 case $srcdir in
1660   .)  # We are building in place.
1661     ac_srcdir=.
1662     ac_top_srcdir=$ac_top_builddir_sub
1663     ac_abs_top_srcdir=$ac_pwd ;;
1664   [\\/]* | ?:[\\/]* )  # Absolute name.
1665     ac_srcdir=$srcdir$ac_dir_suffix;
1666     ac_top_srcdir=$srcdir
1667     ac_abs_top_srcdir=$srcdir ;;
1668   *) # Relative name.
1669     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1670     ac_top_srcdir=$ac_top_build_prefix$srcdir
1671     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1672 esac
1673 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1674
1675     cd "$ac_dir" || { ac_status=$?; continue; }
1676     # Check for guested configure.
1677     if test -f "$ac_srcdir/configure.gnu"; then
1678       echo &&
1679       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1680     elif test -f "$ac_srcdir/configure"; then
1681       echo &&
1682       $SHELL "$ac_srcdir/configure" --help=recursive
1683     else
1684       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1685     fi || ac_status=$?
1686     cd "$ac_pwd" || { ac_status=$?; break; }
1687   done
1688 fi
1689
1690 test -n "$ac_init_help" && exit $ac_status
1691 if $ac_init_version; then
1692   cat <<\_ACEOF
1693 gpgme configure 1.15.1
1694 generated by GNU Autoconf 2.69
1695
1696 Copyright (C) 2012 Free Software Foundation, Inc.
1697 This configure script is free software; the Free Software Foundation
1698 gives unlimited permission to copy, distribute and modify it.
1699 _ACEOF
1700   exit
1701 fi
1702
1703 ## ------------------------ ##
1704 ## Autoconf initialization. ##
1705 ## ------------------------ ##
1706
1707 # ac_fn_c_try_compile LINENO
1708 # --------------------------
1709 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1710 ac_fn_c_try_compile ()
1711 {
1712   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713   rm -f conftest.$ac_objext
1714   if { { ac_try="$ac_compile"
1715 case "(($ac_try" in
1716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1717   *) ac_try_echo=$ac_try;;
1718 esac
1719 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1720 $as_echo "$ac_try_echo"; } >&5
1721   (eval "$ac_compile") 2>conftest.err
1722   ac_status=$?
1723   if test -s conftest.err; then
1724     grep -v '^ *+' conftest.err >conftest.er1
1725     cat conftest.er1 >&5
1726     mv -f conftest.er1 conftest.err
1727   fi
1728   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1729   test $ac_status = 0; } && {
1730          test -z "$ac_c_werror_flag" ||
1731          test ! -s conftest.err
1732        } && test -s conftest.$ac_objext; then :
1733   ac_retval=0
1734 else
1735   $as_echo "$as_me: failed program was:" >&5
1736 sed 's/^/| /' conftest.$ac_ext >&5
1737
1738         ac_retval=1
1739 fi
1740   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1741   as_fn_set_status $ac_retval
1742
1743 } # ac_fn_c_try_compile
1744
1745 # ac_fn_c_try_cpp LINENO
1746 # ----------------------
1747 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1748 ac_fn_c_try_cpp ()
1749 {
1750   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751   if { { ac_try="$ac_cpp conftest.$ac_ext"
1752 case "(($ac_try" in
1753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1754   *) ac_try_echo=$ac_try;;
1755 esac
1756 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1757 $as_echo "$ac_try_echo"; } >&5
1758   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1759   ac_status=$?
1760   if test -s conftest.err; then
1761     grep -v '^ *+' conftest.err >conftest.er1
1762     cat conftest.er1 >&5
1763     mv -f conftest.er1 conftest.err
1764   fi
1765   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1766   test $ac_status = 0; } > conftest.i && {
1767          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1768          test ! -s conftest.err
1769        }; then :
1770   ac_retval=0
1771 else
1772   $as_echo "$as_me: failed program was:" >&5
1773 sed 's/^/| /' conftest.$ac_ext >&5
1774
1775     ac_retval=1
1776 fi
1777   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1778   as_fn_set_status $ac_retval
1779
1780 } # ac_fn_c_try_cpp
1781
1782 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1783 # -------------------------------------------------------
1784 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1785 # the include files in INCLUDES and setting the cache variable VAR
1786 # accordingly.
1787 ac_fn_c_check_header_mongrel ()
1788 {
1789   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790   if eval \${$3+:} false; then :
1791   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1792 $as_echo_n "checking for $2... " >&6; }
1793 if eval \${$3+:} false; then :
1794   $as_echo_n "(cached) " >&6
1795 fi
1796 eval ac_res=\$$3
1797                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1798 $as_echo "$ac_res" >&6; }
1799 else
1800   # Is the header compilable?
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1802 $as_echo_n "checking $2 usability... " >&6; }
1803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1804 /* end confdefs.h.  */
1805 $4
1806 #include <$2>
1807 _ACEOF
1808 if ac_fn_c_try_compile "$LINENO"; then :
1809   ac_header_compiler=yes
1810 else
1811   ac_header_compiler=no
1812 fi
1813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1815 $as_echo "$ac_header_compiler" >&6; }
1816
1817 # Is the header present?
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1819 $as_echo_n "checking $2 presence... " >&6; }
1820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1821 /* end confdefs.h.  */
1822 #include <$2>
1823 _ACEOF
1824 if ac_fn_c_try_cpp "$LINENO"; then :
1825   ac_header_preproc=yes
1826 else
1827   ac_header_preproc=no
1828 fi
1829 rm -f conftest.err conftest.i conftest.$ac_ext
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1831 $as_echo "$ac_header_preproc" >&6; }
1832
1833 # So?  What about this header?
1834 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1835   yes:no: )
1836     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1837 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1838     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1839 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1840     ;;
1841   no:yes:* )
1842     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1843 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1844     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1845 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1846     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1847 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1848     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1849 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1850     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1851 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1852 ( $as_echo "## ------------------------------------- ##
1853 ## Report this to https://bugs.gnupg.org ##
1854 ## ------------------------------------- ##"
1855      ) | sed "s/^/$as_me: WARNING:     /" >&2
1856     ;;
1857 esac
1858   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1859 $as_echo_n "checking for $2... " >&6; }
1860 if eval \${$3+:} false; then :
1861   $as_echo_n "(cached) " >&6
1862 else
1863   eval "$3=\$ac_header_compiler"
1864 fi
1865 eval ac_res=\$$3
1866                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1867 $as_echo "$ac_res" >&6; }
1868 fi
1869   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1870
1871 } # ac_fn_c_check_header_mongrel
1872
1873 # ac_fn_c_try_run LINENO
1874 # ----------------------
1875 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1876 # that executables *can* be run.
1877 ac_fn_c_try_run ()
1878 {
1879   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880   if { { ac_try="$ac_link"
1881 case "(($ac_try" in
1882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1883   *) ac_try_echo=$ac_try;;
1884 esac
1885 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1886 $as_echo "$ac_try_echo"; } >&5
1887   (eval "$ac_link") 2>&5
1888   ac_status=$?
1889   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1890   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1891   { { case "(($ac_try" in
1892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1893   *) ac_try_echo=$ac_try;;
1894 esac
1895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1896 $as_echo "$ac_try_echo"; } >&5
1897   (eval "$ac_try") 2>&5
1898   ac_status=$?
1899   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1900   test $ac_status = 0; }; }; then :
1901   ac_retval=0
1902 else
1903   $as_echo "$as_me: program exited with status $ac_status" >&5
1904        $as_echo "$as_me: failed program was:" >&5
1905 sed 's/^/| /' conftest.$ac_ext >&5
1906
1907        ac_retval=$ac_status
1908 fi
1909   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1910   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1911   as_fn_set_status $ac_retval
1912
1913 } # ac_fn_c_try_run
1914
1915 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1916 # -------------------------------------------------------
1917 # Tests whether HEADER exists and can be compiled using the include files in
1918 # INCLUDES, setting the cache variable VAR accordingly.
1919 ac_fn_c_check_header_compile ()
1920 {
1921   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1922   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1923 $as_echo_n "checking for $2... " >&6; }
1924 if eval \${$3+:} false; then :
1925   $as_echo_n "(cached) " >&6
1926 else
1927   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1928 /* end confdefs.h.  */
1929 $4
1930 #include <$2>
1931 _ACEOF
1932 if ac_fn_c_try_compile "$LINENO"; then :
1933   eval "$3=yes"
1934 else
1935   eval "$3=no"
1936 fi
1937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1938 fi
1939 eval ac_res=\$$3
1940                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1941 $as_echo "$ac_res" >&6; }
1942   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1943
1944 } # ac_fn_c_check_header_compile
1945
1946 # ac_fn_c_try_link LINENO
1947 # -----------------------
1948 # Try to link conftest.$ac_ext, and return whether this succeeded.
1949 ac_fn_c_try_link ()
1950 {
1951   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1952   rm -f conftest.$ac_objext conftest$ac_exeext
1953   if { { ac_try="$ac_link"
1954 case "(($ac_try" in
1955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1956   *) ac_try_echo=$ac_try;;
1957 esac
1958 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1959 $as_echo "$ac_try_echo"; } >&5
1960   (eval "$ac_link") 2>conftest.err
1961   ac_status=$?
1962   if test -s conftest.err; then
1963     grep -v '^ *+' conftest.err >conftest.er1
1964     cat conftest.er1 >&5
1965     mv -f conftest.er1 conftest.err
1966   fi
1967   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1968   test $ac_status = 0; } && {
1969          test -z "$ac_c_werror_flag" ||
1970          test ! -s conftest.err
1971        } && test -s conftest$ac_exeext && {
1972          test "$cross_compiling" = yes ||
1973          test -x conftest$ac_exeext
1974        }; then :
1975   ac_retval=0
1976 else
1977   $as_echo "$as_me: failed program was:" >&5
1978 sed 's/^/| /' conftest.$ac_ext >&5
1979
1980         ac_retval=1
1981 fi
1982   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1983   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1984   # interfere with the next link command; also delete a directory that is
1985   # left behind by Apple's compiler.  We do this before executing the actions.
1986   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1987   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1988   as_fn_set_status $ac_retval
1989
1990 } # ac_fn_c_try_link
1991
1992 # ac_fn_cxx_try_compile LINENO
1993 # ----------------------------
1994 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1995 ac_fn_cxx_try_compile ()
1996 {
1997   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1998   rm -f conftest.$ac_objext
1999   if { { ac_try="$ac_compile"
2000 case "(($ac_try" in
2001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2002   *) ac_try_echo=$ac_try;;
2003 esac
2004 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2005 $as_echo "$ac_try_echo"; } >&5
2006   (eval "$ac_compile") 2>conftest.err
2007   ac_status=$?
2008   if test -s conftest.err; then
2009     grep -v '^ *+' conftest.err >conftest.er1
2010     cat conftest.er1 >&5
2011     mv -f conftest.er1 conftest.err
2012   fi
2013   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2014   test $ac_status = 0; } && {
2015          test -z "$ac_cxx_werror_flag" ||
2016          test ! -s conftest.err
2017        } && test -s conftest.$ac_objext; then :
2018   ac_retval=0
2019 else
2020   $as_echo "$as_me: failed program was:" >&5
2021 sed 's/^/| /' conftest.$ac_ext >&5
2022
2023         ac_retval=1
2024 fi
2025   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2026   as_fn_set_status $ac_retval
2027
2028 } # ac_fn_cxx_try_compile
2029
2030 # ac_fn_c_check_func LINENO FUNC VAR
2031 # ----------------------------------
2032 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2033 ac_fn_c_check_func ()
2034 {
2035   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2036   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2037 $as_echo_n "checking for $2... " >&6; }
2038 if eval \${$3+:} false; then :
2039   $as_echo_n "(cached) " >&6
2040 else
2041   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2042 /* end confdefs.h.  */
2043 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2044    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2045 #define $2 innocuous_$2
2046
2047 /* System header to define __stub macros and hopefully few prototypes,
2048     which can conflict with char $2 (); below.
2049     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2050     <limits.h> exists even on freestanding compilers.  */
2051
2052 #ifdef __STDC__
2053 # include <limits.h>
2054 #else
2055 # include <assert.h>
2056 #endif
2057
2058 #undef $2
2059
2060 /* Override any GCC internal prototype to avoid an error.
2061    Use char because int might match the return type of a GCC
2062    builtin and then its argument prototype would still apply.  */
2063 #ifdef __cplusplus
2064 extern "C"
2065 #endif
2066 char $2 ();
2067 /* The GNU C library defines this for functions which it implements
2068     to always fail with ENOSYS.  Some functions are actually named
2069     something starting with __ and the normal name is an alias.  */
2070 #if defined __stub_$2 || defined __stub___$2
2071 choke me
2072 #endif
2073
2074 int
2075 main ()
2076 {
2077 return $2 ();
2078   ;
2079   return 0;
2080 }
2081 _ACEOF
2082 if ac_fn_c_try_link "$LINENO"; then :
2083   eval "$3=yes"
2084 else
2085   eval "$3=no"
2086 fi
2087 rm -f core conftest.err conftest.$ac_objext \
2088     conftest$ac_exeext conftest.$ac_ext
2089 fi
2090 eval ac_res=\$$3
2091                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2092 $as_echo "$ac_res" >&6; }
2093   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2094
2095 } # ac_fn_c_check_func
2096
2097 # ac_fn_cxx_try_cpp LINENO
2098 # ------------------------
2099 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2100 ac_fn_cxx_try_cpp ()
2101 {
2102   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2103   if { { ac_try="$ac_cpp conftest.$ac_ext"
2104 case "(($ac_try" in
2105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2106   *) ac_try_echo=$ac_try;;
2107 esac
2108 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2109 $as_echo "$ac_try_echo"; } >&5
2110   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2111   ac_status=$?
2112   if test -s conftest.err; then
2113     grep -v '^ *+' conftest.err >conftest.er1
2114     cat conftest.er1 >&5
2115     mv -f conftest.er1 conftest.err
2116   fi
2117   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2118   test $ac_status = 0; } > conftest.i && {
2119          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2120          test ! -s conftest.err
2121        }; then :
2122   ac_retval=0
2123 else
2124   $as_echo "$as_me: failed program was:" >&5
2125 sed 's/^/| /' conftest.$ac_ext >&5
2126
2127     ac_retval=1
2128 fi
2129   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2130   as_fn_set_status $ac_retval
2131
2132 } # ac_fn_cxx_try_cpp
2133
2134 # ac_fn_cxx_try_link LINENO
2135 # -------------------------
2136 # Try to link conftest.$ac_ext, and return whether this succeeded.
2137 ac_fn_cxx_try_link ()
2138 {
2139   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2140   rm -f conftest.$ac_objext conftest$ac_exeext
2141   if { { ac_try="$ac_link"
2142 case "(($ac_try" in
2143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2144   *) ac_try_echo=$ac_try;;
2145 esac
2146 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2147 $as_echo "$ac_try_echo"; } >&5
2148   (eval "$ac_link") 2>conftest.err
2149   ac_status=$?
2150   if test -s conftest.err; then
2151     grep -v '^ *+' conftest.err >conftest.er1
2152     cat conftest.er1 >&5
2153     mv -f conftest.er1 conftest.err
2154   fi
2155   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2156   test $ac_status = 0; } && {
2157          test -z "$ac_cxx_werror_flag" ||
2158          test ! -s conftest.err
2159        } && test -s conftest$ac_exeext && {
2160          test "$cross_compiling" = yes ||
2161          test -x conftest$ac_exeext
2162        }; then :
2163   ac_retval=0
2164 else
2165   $as_echo "$as_me: failed program was:" >&5
2166 sed 's/^/| /' conftest.$ac_ext >&5
2167
2168         ac_retval=1
2169 fi
2170   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2171   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2172   # interfere with the next link command; also delete a directory that is
2173   # left behind by Apple's compiler.  We do this before executing the actions.
2174   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2175   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2176   as_fn_set_status $ac_retval
2177
2178 } # ac_fn_cxx_try_link
2179
2180 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2181 # --------------------------------------------
2182 # Tries to find the compile-time value of EXPR in a program that includes
2183 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2184 # computed
2185 ac_fn_c_compute_int ()
2186 {
2187   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2188   if test "$cross_compiling" = yes; then
2189     # Depending upon the size, compute the lo and hi bounds.
2190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2191 /* end confdefs.h.  */
2192 $4
2193 int
2194 main ()
2195 {
2196 static int test_array [1 - 2 * !(($2) >= 0)];
2197 test_array [0] = 0;
2198 return test_array [0];
2199
2200   ;
2201   return 0;
2202 }
2203 _ACEOF
2204 if ac_fn_c_try_compile "$LINENO"; then :
2205   ac_lo=0 ac_mid=0
2206   while :; do
2207     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2208 /* end confdefs.h.  */
2209 $4
2210 int
2211 main ()
2212 {
2213 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2214 test_array [0] = 0;
2215 return test_array [0];
2216
2217   ;
2218   return 0;
2219 }
2220 _ACEOF
2221 if ac_fn_c_try_compile "$LINENO"; then :
2222   ac_hi=$ac_mid; break
2223 else
2224   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2225                         if test $ac_lo -le $ac_mid; then
2226                           ac_lo= ac_hi=
2227                           break
2228                         fi
2229                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2230 fi
2231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2232   done
2233 else
2234   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2235 /* end confdefs.h.  */
2236 $4
2237 int
2238 main ()
2239 {
2240 static int test_array [1 - 2 * !(($2) < 0)];
2241 test_array [0] = 0;
2242 return test_array [0];
2243
2244   ;
2245   return 0;
2246 }
2247 _ACEOF
2248 if ac_fn_c_try_compile "$LINENO"; then :
2249   ac_hi=-1 ac_mid=-1
2250   while :; do
2251     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2252 /* end confdefs.h.  */
2253 $4
2254 int
2255 main ()
2256 {
2257 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2258 test_array [0] = 0;
2259 return test_array [0];
2260
2261   ;
2262   return 0;
2263 }
2264 _ACEOF
2265 if ac_fn_c_try_compile "$LINENO"; then :
2266   ac_lo=$ac_mid; break
2267 else
2268   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2269                         if test $ac_mid -le $ac_hi; then
2270                           ac_lo= ac_hi=
2271                           break
2272                         fi
2273                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2274 fi
2275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2276   done
2277 else
2278   ac_lo= ac_hi=
2279 fi
2280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2281 fi
2282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2283 # Binary search between lo and hi bounds.
2284 while test "x$ac_lo" != "x$ac_hi"; do
2285   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2286   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2287 /* end confdefs.h.  */
2288 $4
2289 int
2290 main ()
2291 {
2292 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2293 test_array [0] = 0;
2294 return test_array [0];
2295
2296   ;
2297   return 0;
2298 }
2299 _ACEOF
2300 if ac_fn_c_try_compile "$LINENO"; then :
2301   ac_hi=$ac_mid
2302 else
2303   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2304 fi
2305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2306 done
2307 case $ac_lo in #((
2308 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2309 '') ac_retval=1 ;;
2310 esac
2311   else
2312     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2313 /* end confdefs.h.  */
2314 $4
2315 static long int longval () { return $2; }
2316 static unsigned long int ulongval () { return $2; }
2317 #include <stdio.h>
2318 #include <stdlib.h>
2319 int
2320 main ()
2321 {
2322
2323   FILE *f = fopen ("conftest.val", "w");
2324   if (! f)
2325     return 1;
2326   if (($2) < 0)
2327     {
2328       long int i = longval ();
2329       if (i != ($2))
2330         return 1;
2331       fprintf (f, "%ld", i);
2332     }
2333   else
2334     {
2335       unsigned long int i = ulongval ();
2336       if (i != ($2))
2337         return 1;
2338       fprintf (f, "%lu", i);
2339     }
2340   /* Do not output a trailing newline, as this causes \r\n confusion
2341      on some platforms.  */
2342   return ferror (f) || fclose (f) != 0;
2343
2344   ;
2345   return 0;
2346 }
2347 _ACEOF
2348 if ac_fn_c_try_run "$LINENO"; then :
2349   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2350 else
2351   ac_retval=1
2352 fi
2353 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2354   conftest.$ac_objext conftest.beam conftest.$ac_ext
2355 rm -f conftest.val
2356
2357   fi
2358   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2359   as_fn_set_status $ac_retval
2360
2361 } # ac_fn_c_compute_int
2362
2363 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2364 # -------------------------------------------
2365 # Tests whether TYPE exists after having included INCLUDES, setting cache
2366 # variable VAR accordingly.
2367 ac_fn_c_check_type ()
2368 {
2369   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2370   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2371 $as_echo_n "checking for $2... " >&6; }
2372 if eval \${$3+:} false; then :
2373   $as_echo_n "(cached) " >&6
2374 else
2375   eval "$3=no"
2376   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2377 /* end confdefs.h.  */
2378 $4
2379 int
2380 main ()
2381 {
2382 if (sizeof ($2))
2383          return 0;
2384   ;
2385   return 0;
2386 }
2387 _ACEOF
2388 if ac_fn_c_try_compile "$LINENO"; then :
2389   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2390 /* end confdefs.h.  */
2391 $4
2392 int
2393 main ()
2394 {
2395 if (sizeof (($2)))
2396             return 0;
2397   ;
2398   return 0;
2399 }
2400 _ACEOF
2401 if ac_fn_c_try_compile "$LINENO"; then :
2402
2403 else
2404   eval "$3=yes"
2405 fi
2406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2407 fi
2408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2409 fi
2410 eval ac_res=\$$3
2411                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2412 $as_echo "$ac_res" >&6; }
2413   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2414
2415 } # ac_fn_c_check_type
2416
2417 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2418 # ---------------------------------------------
2419 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2420 # accordingly.
2421 ac_fn_c_check_decl ()
2422 {
2423   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2424   as_decl_name=`echo $2|sed 's/ *(.*//'`
2425   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2426   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2427 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2428 if eval \${$3+:} false; then :
2429   $as_echo_n "(cached) " >&6
2430 else
2431   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2432 /* end confdefs.h.  */
2433 $4
2434 int
2435 main ()
2436 {
2437 #ifndef $as_decl_name
2438 #ifdef __cplusplus
2439   (void) $as_decl_use;
2440 #else
2441   (void) $as_decl_name;
2442 #endif
2443 #endif
2444
2445   ;
2446   return 0;
2447 }
2448 _ACEOF
2449 if ac_fn_c_try_compile "$LINENO"; then :
2450   eval "$3=yes"
2451 else
2452   eval "$3=no"
2453 fi
2454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2455 fi
2456 eval ac_res=\$$3
2457                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2458 $as_echo "$ac_res" >&6; }
2459   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2460
2461 } # ac_fn_c_check_decl
2462
2463 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2464 # ----------------------------------------------------
2465 # Tries to find if the field MEMBER exists in type AGGR, after including
2466 # INCLUDES, setting cache variable VAR accordingly.
2467 ac_fn_c_check_member ()
2468 {
2469   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2470   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2471 $as_echo_n "checking for $2.$3... " >&6; }
2472 if eval \${$4+:} false; then :
2473   $as_echo_n "(cached) " >&6
2474 else
2475   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2476 /* end confdefs.h.  */
2477 $5
2478 int
2479 main ()
2480 {
2481 static $2 ac_aggr;
2482 if (ac_aggr.$3)
2483 return 0;
2484   ;
2485   return 0;
2486 }
2487 _ACEOF
2488 if ac_fn_c_try_compile "$LINENO"; then :
2489   eval "$4=yes"
2490 else
2491   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2492 /* end confdefs.h.  */
2493 $5
2494 int
2495 main ()
2496 {
2497 static $2 ac_aggr;
2498 if (sizeof ac_aggr.$3)
2499 return 0;
2500   ;
2501   return 0;
2502 }
2503 _ACEOF
2504 if ac_fn_c_try_compile "$LINENO"; then :
2505   eval "$4=yes"
2506 else
2507   eval "$4=no"
2508 fi
2509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2510 fi
2511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2512 fi
2513 eval ac_res=\$$4
2514                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2515 $as_echo "$ac_res" >&6; }
2516   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2517
2518 } # ac_fn_c_check_member
2519 cat >config.log <<_ACEOF
2520 This file contains any messages produced by compilers while
2521 running configure, to aid debugging if configure makes a mistake.
2522
2523 It was created by gpgme $as_me 1.15.1, which was
2524 generated by GNU Autoconf 2.69.  Invocation command line was
2525
2526   $ $0 $@
2527
2528 _ACEOF
2529 exec 5>>config.log
2530 {
2531 cat <<_ASUNAME
2532 ## --------- ##
2533 ## Platform. ##
2534 ## --------- ##
2535
2536 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2537 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2538 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2539 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2540 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2541
2542 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2543 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2544
2545 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2546 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2547 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2548 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2549 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2550 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2551 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2552
2553 _ASUNAME
2554
2555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2556 for as_dir in $PATH
2557 do
2558   IFS=$as_save_IFS
2559   test -z "$as_dir" && as_dir=.
2560     $as_echo "PATH: $as_dir"
2561   done
2562 IFS=$as_save_IFS
2563
2564 } >&5
2565
2566 cat >&5 <<_ACEOF
2567
2568
2569 ## ----------- ##
2570 ## Core tests. ##
2571 ## ----------- ##
2572
2573 _ACEOF
2574
2575
2576 # Keep a trace of the command line.
2577 # Strip out --no-create and --no-recursion so they do not pile up.
2578 # Strip out --silent because we don't want to record it for future runs.
2579 # Also quote any args containing shell meta-characters.
2580 # Make two passes to allow for proper duplicate-argument suppression.
2581 ac_configure_args=
2582 ac_configure_args0=
2583 ac_configure_args1=
2584 ac_must_keep_next=false
2585 for ac_pass in 1 2
2586 do
2587   for ac_arg
2588   do
2589     case $ac_arg in
2590     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2591     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2592     | -silent | --silent | --silen | --sile | --sil)
2593       continue ;;
2594     *\'*)
2595       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2596     esac
2597     case $ac_pass in
2598     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2599     2)
2600       as_fn_append ac_configure_args1 " '$ac_arg'"
2601       if test $ac_must_keep_next = true; then
2602         ac_must_keep_next=false # Got value, back to normal.
2603       else
2604         case $ac_arg in
2605           *=* | --config-cache | -C | -disable-* | --disable-* \
2606           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2607           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2608           | -with-* | --with-* | -without-* | --without-* | --x)
2609             case "$ac_configure_args0 " in
2610               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2611             esac
2612             ;;
2613           -* ) ac_must_keep_next=true ;;
2614         esac
2615       fi
2616       as_fn_append ac_configure_args " '$ac_arg'"
2617       ;;
2618     esac
2619   done
2620 done
2621 { ac_configure_args0=; unset ac_configure_args0;}
2622 { ac_configure_args1=; unset ac_configure_args1;}
2623
2624 # When interrupted or exit'd, cleanup temporary files, and complete
2625 # config.log.  We remove comments because anyway the quotes in there
2626 # would cause problems or look ugly.
2627 # WARNING: Use '\'' to represent an apostrophe within the trap.
2628 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2629 trap 'exit_status=$?
2630   # Save into config.log some information that might help in debugging.
2631   {
2632     echo
2633
2634     $as_echo "## ---------------- ##
2635 ## Cache variables. ##
2636 ## ---------------- ##"
2637     echo
2638     # The following way of writing the cache mishandles newlines in values,
2639 (
2640   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2641     eval ac_val=\$$ac_var
2642     case $ac_val in #(
2643     *${as_nl}*)
2644       case $ac_var in #(
2645       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2646 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2647       esac
2648       case $ac_var in #(
2649       _ | IFS | as_nl) ;; #(
2650       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2651       *) { eval $ac_var=; unset $ac_var;} ;;
2652       esac ;;
2653     esac
2654   done
2655   (set) 2>&1 |
2656     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2657     *${as_nl}ac_space=\ *)
2658       sed -n \
2659         "s/'\''/'\''\\\\'\'''\''/g;
2660           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2661       ;; #(
2662     *)
2663       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2664       ;;
2665     esac |
2666     sort
2667 )
2668     echo
2669
2670     $as_echo "## ----------------- ##
2671 ## Output variables. ##
2672 ## ----------------- ##"
2673     echo
2674     for ac_var in $ac_subst_vars
2675     do
2676       eval ac_val=\$$ac_var
2677       case $ac_val in
2678       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2679       esac
2680       $as_echo "$ac_var='\''$ac_val'\''"
2681     done | sort
2682     echo
2683
2684     if test -n "$ac_subst_files"; then
2685       $as_echo "## ------------------- ##
2686 ## File substitutions. ##
2687 ## ------------------- ##"
2688       echo
2689       for ac_var in $ac_subst_files
2690       do
2691         eval ac_val=\$$ac_var
2692         case $ac_val in
2693         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2694         esac
2695         $as_echo "$ac_var='\''$ac_val'\''"
2696       done | sort
2697       echo
2698     fi
2699
2700     if test -s confdefs.h; then
2701       $as_echo "## ----------- ##
2702 ## confdefs.h. ##
2703 ## ----------- ##"
2704       echo
2705       cat confdefs.h
2706       echo
2707     fi
2708     test "$ac_signal" != 0 &&
2709       $as_echo "$as_me: caught signal $ac_signal"
2710     $as_echo "$as_me: exit $exit_status"
2711   } >&5
2712   rm -f core *.core core.conftest.* &&
2713     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2714     exit $exit_status
2715 ' 0
2716 for ac_signal in 1 2 13 15; do
2717   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2718 done
2719 ac_signal=0
2720
2721 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2722 rm -f -r conftest* confdefs.h
2723
2724 $as_echo "/* confdefs.h */" > confdefs.h
2725
2726 # Predefined preprocessor variables.
2727
2728 cat >>confdefs.h <<_ACEOF
2729 #define PACKAGE_NAME "$PACKAGE_NAME"
2730 _ACEOF
2731
2732 cat >>confdefs.h <<_ACEOF
2733 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2734 _ACEOF
2735
2736 cat >>confdefs.h <<_ACEOF
2737 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2738 _ACEOF
2739
2740 cat >>confdefs.h <<_ACEOF
2741 #define PACKAGE_STRING "$PACKAGE_STRING"
2742 _ACEOF
2743
2744 cat >>confdefs.h <<_ACEOF
2745 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2746 _ACEOF
2747
2748 cat >>confdefs.h <<_ACEOF
2749 #define PACKAGE_URL "$PACKAGE_URL"
2750 _ACEOF
2751
2752
2753 # Let the site file select an alternate cache file if it wants to.
2754 # Prefer an explicitly selected file to automatically selected ones.
2755 ac_site_file1=NONE
2756 ac_site_file2=NONE
2757 if test -n "$CONFIG_SITE"; then
2758   # We do not want a PATH search for config.site.
2759   case $CONFIG_SITE in #((
2760     -*)  ac_site_file1=./$CONFIG_SITE;;
2761     */*) ac_site_file1=$CONFIG_SITE;;
2762     *)   ac_site_file1=./$CONFIG_SITE;;
2763   esac
2764 elif test "x$prefix" != xNONE; then
2765   ac_site_file1=$prefix/share/config.site
2766   ac_site_file2=$prefix/etc/config.site
2767 else
2768   ac_site_file1=$ac_default_prefix/share/config.site
2769   ac_site_file2=$ac_default_prefix/etc/config.site
2770 fi
2771 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2772 do
2773   test "x$ac_site_file" = xNONE && continue
2774   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2775     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2776 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2777     sed 's/^/| /' "$ac_site_file" >&5
2778     . "$ac_site_file" \
2779       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2780 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2781 as_fn_error $? "failed to load site script $ac_site_file
2782 See \`config.log' for more details" "$LINENO" 5; }
2783   fi
2784 done
2785
2786 if test -r "$cache_file"; then
2787   # Some versions of bash will fail to source /dev/null (special files
2788   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2789   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2790     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2791 $as_echo "$as_me: loading cache $cache_file" >&6;}
2792     case $cache_file in
2793       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2794       *)                      . "./$cache_file";;
2795     esac
2796   fi
2797 else
2798   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2799 $as_echo "$as_me: creating cache $cache_file" >&6;}
2800   >$cache_file
2801 fi
2802
2803 as_fn_append ac_header_list " locale.h"
2804 as_fn_append ac_header_list " sys/select.h"
2805 as_fn_append ac_header_list " sys/uio.h"
2806 as_fn_append ac_header_list " argp.h"
2807 as_fn_append ac_header_list " stdint.h"
2808 as_fn_append ac_header_list " unistd.h"
2809 as_fn_append ac_header_list " sys/time.h"
2810 as_fn_append ac_header_list " sys/types.h"
2811 as_fn_append ac_header_list " sys/stat.h"
2812 # Check that the precious variables saved in the cache have kept the same
2813 # value.
2814 ac_cache_corrupted=false
2815 for ac_var in $ac_precious_vars; do
2816   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2817   eval ac_new_set=\$ac_env_${ac_var}_set
2818   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2819   eval ac_new_val=\$ac_env_${ac_var}_value
2820   case $ac_old_set,$ac_new_set in
2821     set,)
2822       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2823 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2824       ac_cache_corrupted=: ;;
2825     ,set)
2826       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2827 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2828       ac_cache_corrupted=: ;;
2829     ,);;
2830     *)
2831       if test "x$ac_old_val" != "x$ac_new_val"; then
2832         # differences in whitespace do not lead to failure.
2833         ac_old_val_w=`echo x $ac_old_val`
2834         ac_new_val_w=`echo x $ac_new_val`
2835         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2836           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2837 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2838           ac_cache_corrupted=:
2839         else
2840           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2841 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2842           eval $ac_var=\$ac_old_val
2843         fi
2844         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2845 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2846         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2847 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2848       fi;;
2849   esac
2850   # Pass precious variables to config.status.
2851   if test "$ac_new_set" = set; then
2852     case $ac_new_val in
2853     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2854     *) ac_arg=$ac_var=$ac_new_val ;;
2855     esac
2856     case " $ac_configure_args " in
2857       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2858       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2859     esac
2860   fi
2861 done
2862 if $ac_cache_corrupted; then
2863   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2864 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2865   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2866 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2867   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2868 fi
2869 ## -------------------- ##
2870 ## Main body of script. ##
2871 ## -------------------- ##
2872
2873 ac_ext=c
2874 ac_cpp='$CPP $CPPFLAGS'
2875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2878
2879
2880
2881 # LT Version numbers, remember to change them just *before* a release.
2882 #   (Code changed:                      REVISION++)
2883 #   (Interfaces added/removed/changed:  CURRENT++, REVISION=0)
2884 #   (Interfaces added:                  AGE++)
2885 #   (Interfaces removed:                AGE=0)
2886 #
2887 LIBGPGME_LT_CURRENT=35
2888 LIBGPGME_LT_AGE=24
2889 LIBGPGME_LT_REVISION=1
2890
2891 # If there is an ABI break in gpgmepp or qgpgme also bump the
2892 # version in IMPORTED_LOCATION in the GpgmeppConfig-w32.cmake.in.in
2893
2894 LIBGPGMEPP_LT_CURRENT=18
2895 LIBGPGMEPP_LT_AGE=12
2896 LIBGPGMEPP_LT_REVISION=1
2897
2898 LIBQGPGME_LT_CURRENT=12
2899 LIBQGPGME_LT_AGE=5
2900 LIBQGPGME_LT_REVISION=1
2901 ################################################
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915 # If the API is changed in an incompatible way: increment the next counter.
2916 GPGME_CONFIG_API_VERSION=1
2917 ##############################################
2918
2919 NEED_GPG_ERROR_VERSION=1.36
2920 NEED_LIBASSUAN_API=2
2921 NEED_LIBASSUAN_VERSION=2.4.2
2922
2923
2924 VERSION_MAJOR=1
2925 VERSION_MINOR=15
2926 VERSION_MICRO=1
2927
2928 ac_aux_dir=
2929 for ac_dir in build-aux "$srcdir"/build-aux; do
2930   if test -f "$ac_dir/install-sh"; then
2931     ac_aux_dir=$ac_dir
2932     ac_install_sh="$ac_aux_dir/install-sh -c"
2933     break
2934   elif test -f "$ac_dir/install.sh"; then
2935     ac_aux_dir=$ac_dir
2936     ac_install_sh="$ac_aux_dir/install.sh -c"
2937     break
2938   elif test -f "$ac_dir/shtool"; then
2939     ac_aux_dir=$ac_dir
2940     ac_install_sh="$ac_aux_dir/shtool install -c"
2941     break
2942   fi
2943 done
2944 if test -z "$ac_aux_dir"; then
2945   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2946 fi
2947
2948 # These three variables are undocumented and unsupported,
2949 # and are intended to be withdrawn in a future Autoconf release.
2950 # They can cause serious problems if a builder's source tree is in a directory
2951 # whose full name contains unusual characters.
2952 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2953 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2954 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2955
2956
2957
2958
2959 ac_config_headers="$ac_config_headers conf/config.h"
2960
2961 am__api_version='1.16'
2962
2963 # Find a good install program.  We prefer a C program (faster),
2964 # so one script is as good as another.  But avoid the broken or
2965 # incompatible versions:
2966 # SysV /etc/install, /usr/sbin/install
2967 # SunOS /usr/etc/install
2968 # IRIX /sbin/install
2969 # AIX /bin/install
2970 # AmigaOS /C/install, which installs bootblocks on floppy discs
2971 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2972 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2973 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2974 # OS/2's system install, which has a completely different semantic
2975 # ./install, which can be erroneously created by make from ./install.sh.
2976 # Reject install programs that cannot install multiple files.
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2978 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2979 if test -z "$INSTALL"; then
2980 if ${ac_cv_path_install+:} false; then :
2981   $as_echo_n "(cached) " >&6
2982 else
2983   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984 for as_dir in $PATH
2985 do
2986   IFS=$as_save_IFS
2987   test -z "$as_dir" && as_dir=.
2988     # Account for people who put trailing slashes in PATH elements.
2989 case $as_dir/ in #((
2990   ./ | .// | /[cC]/* | \
2991   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2992   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2993   /usr/ucb/* ) ;;
2994   *)
2995     # OSF1 and SCO ODT 3.0 have their own names for install.
2996     # Don't use installbsd from OSF since it installs stuff as root
2997     # by default.
2998     for ac_prog in ginstall scoinst install; do
2999       for ac_exec_ext in '' $ac_executable_extensions; do
3000         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3001           if test $ac_prog = install &&
3002             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3003             # AIX install.  It has an incompatible calling convention.
3004             :
3005           elif test $ac_prog = install &&
3006             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3007             # program-specific install script used by HP pwplus--don't use.
3008             :
3009           else
3010             rm -rf conftest.one conftest.two conftest.dir
3011             echo one > conftest.one
3012             echo two > conftest.two
3013             mkdir conftest.dir
3014             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3015               test -s conftest.one && test -s conftest.two &&
3016               test -s conftest.dir/conftest.one &&
3017               test -s conftest.dir/conftest.two
3018             then
3019               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3020               break 3
3021             fi
3022           fi
3023         fi
3024       done
3025     done
3026     ;;
3027 esac
3028
3029   done
3030 IFS=$as_save_IFS
3031
3032 rm -rf conftest.one conftest.two conftest.dir
3033
3034 fi
3035   if test "${ac_cv_path_install+set}" = set; then
3036     INSTALL=$ac_cv_path_install
3037   else
3038     # As a last resort, use the slow shell script.  Don't cache a
3039     # value for INSTALL within a source directory, because that will
3040     # break other packages using the cache if that directory is
3041     # removed, or if the value is a relative name.
3042     INSTALL=$ac_install_sh
3043   fi
3044 fi
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3046 $as_echo "$INSTALL" >&6; }
3047
3048 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3049 # It thinks the first close brace ends the variable substitution.
3050 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3051
3052 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3053
3054 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3055
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3057 $as_echo_n "checking whether build environment is sane... " >&6; }
3058 # Reject unsafe characters in $srcdir or the absolute working directory
3059 # name.  Accept space and tab only in the latter.
3060 am_lf='
3061 '
3062 case `pwd` in
3063   *[\\\"\#\$\&\'\`$am_lf]*)
3064     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3065 esac
3066 case $srcdir in
3067   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3068     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3069 esac
3070
3071 # Do 'set' in a subshell so we don't clobber the current shell's
3072 # arguments.  Must try -L first in case configure is actually a
3073 # symlink; some systems play weird games with the mod time of symlinks
3074 # (eg FreeBSD returns the mod time of the symlink's containing
3075 # directory).
3076 if (
3077    am_has_slept=no
3078    for am_try in 1 2; do
3079      echo "timestamp, slept: $am_has_slept" > conftest.file
3080      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3081      if test "$*" = "X"; then
3082         # -L didn't work.
3083         set X `ls -t "$srcdir/configure" conftest.file`
3084      fi
3085      if test "$*" != "X $srcdir/configure conftest.file" \
3086         && test "$*" != "X conftest.file $srcdir/configure"; then
3087
3088         # If neither matched, then we have a broken ls.  This can happen
3089         # if, for instance, CONFIG_SHELL is bash and it inherits a
3090         # broken ls alias from the environment.  This has actually
3091         # happened.  Such a system could not be considered "sane".
3092         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3093   alias in your environment" "$LINENO" 5
3094      fi
3095      if test "$2" = conftest.file || test $am_try -eq 2; then
3096        break
3097      fi
3098      # Just in case.
3099      sleep 1
3100      am_has_slept=yes
3101    done
3102    test "$2" = conftest.file
3103    )
3104 then
3105    # Ok.
3106    :
3107 else
3108    as_fn_error $? "newly created file is older than distributed files!
3109 Check your system clock" "$LINENO" 5
3110 fi
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3112 $as_echo "yes" >&6; }
3113 # If we didn't sleep, we still need to ensure time stamps of config.status and
3114 # generated files are strictly newer.
3115 am_sleep_pid=
3116 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3117   ( sleep 1 ) &
3118   am_sleep_pid=$!
3119 fi
3120
3121 rm -f conftest.file
3122
3123 test "$program_prefix" != NONE &&
3124   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3125 # Use a double $ so make ignores it.
3126 test "$program_suffix" != NONE &&
3127   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3128 # Double any \ or $.
3129 # By default was `s,x,x', remove it if useless.
3130 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3131 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3132
3133 # Expand $ac_aux_dir to an absolute path.
3134 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3135
3136 if test x"${MISSING+set}" != xset; then
3137   case $am_aux_dir in
3138   *\ * | *\     *)
3139     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3140   *)
3141     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3142   esac
3143 fi
3144 # Use eval to expand $SHELL
3145 if eval "$MISSING --is-lightweight"; then
3146   am_missing_run="$MISSING "
3147 else
3148   am_missing_run=
3149   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3150 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3151 fi
3152
3153 if test x"${install_sh+set}" != xset; then
3154   case $am_aux_dir in
3155   *\ * | *\     *)
3156     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3157   *)
3158     install_sh="\${SHELL} $am_aux_dir/install-sh"
3159   esac
3160 fi
3161
3162 # Installed binaries are usually stripped using 'strip' when the user
3163 # run "make install-strip".  However 'strip' might not be the right
3164 # tool to use in cross-compilation environments, therefore Automake
3165 # will honor the 'STRIP' environment variable to overrule this program.
3166 if test "$cross_compiling" != no; then
3167   if test -n "$ac_tool_prefix"; then
3168   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3169 set dummy ${ac_tool_prefix}strip; ac_word=$2
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3171 $as_echo_n "checking for $ac_word... " >&6; }
3172 if ${ac_cv_prog_STRIP+:} false; then :
3173   $as_echo_n "(cached) " >&6
3174 else
3175   if test -n "$STRIP"; then
3176   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3177 else
3178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3179 for as_dir in $PATH
3180 do
3181   IFS=$as_save_IFS
3182   test -z "$as_dir" && as_dir=.
3183     for ac_exec_ext in '' $ac_executable_extensions; do
3184   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3185     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3186     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3187     break 2
3188   fi
3189 done
3190   done
3191 IFS=$as_save_IFS
3192
3193 fi
3194 fi
3195 STRIP=$ac_cv_prog_STRIP
3196 if test -n "$STRIP"; then
3197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3198 $as_echo "$STRIP" >&6; }
3199 else
3200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3201 $as_echo "no" >&6; }
3202 fi
3203
3204
3205 fi
3206 if test -z "$ac_cv_prog_STRIP"; then
3207   ac_ct_STRIP=$STRIP
3208   # Extract the first word of "strip", so it can be a program name with args.
3209 set dummy strip; ac_word=$2
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3211 $as_echo_n "checking for $ac_word... " >&6; }
3212 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3213   $as_echo_n "(cached) " >&6
3214 else
3215   if test -n "$ac_ct_STRIP"; then
3216   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3217 else
3218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3219 for as_dir in $PATH
3220 do
3221   IFS=$as_save_IFS
3222   test -z "$as_dir" && as_dir=.
3223     for ac_exec_ext in '' $ac_executable_extensions; do
3224   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3225     ac_cv_prog_ac_ct_STRIP="strip"
3226     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3227     break 2
3228   fi
3229 done
3230   done
3231 IFS=$as_save_IFS
3232
3233 fi
3234 fi
3235 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3236 if test -n "$ac_ct_STRIP"; then
3237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3238 $as_echo "$ac_ct_STRIP" >&6; }
3239 else
3240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3241 $as_echo "no" >&6; }
3242 fi
3243
3244   if test "x$ac_ct_STRIP" = x; then
3245     STRIP=":"
3246   else
3247     case $cross_compiling:$ac_tool_warned in
3248 yes:)
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3250 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3251 ac_tool_warned=yes ;;
3252 esac
3253     STRIP=$ac_ct_STRIP
3254   fi
3255 else
3256   STRIP="$ac_cv_prog_STRIP"
3257 fi
3258
3259 fi
3260 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3261
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3263 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3264 if test -z "$MKDIR_P"; then
3265   if ${ac_cv_path_mkdir+:} false; then :
3266   $as_echo_n "(cached) " >&6
3267 else
3268   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3269 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3270 do
3271   IFS=$as_save_IFS
3272   test -z "$as_dir" && as_dir=.
3273     for ac_prog in mkdir gmkdir; do
3274          for ac_exec_ext in '' $ac_executable_extensions; do
3275            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3276            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3277              'mkdir (GNU coreutils) '* | \
3278              'mkdir (coreutils) '* | \
3279              'mkdir (fileutils) '4.1*)
3280                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3281                break 3;;
3282            esac
3283          done
3284        done
3285   done
3286 IFS=$as_save_IFS
3287
3288 fi
3289
3290   test -d ./--version && rmdir ./--version
3291   if test "${ac_cv_path_mkdir+set}" = set; then
3292     MKDIR_P="$ac_cv_path_mkdir -p"
3293   else
3294     # As a last resort, use the slow shell script.  Don't cache a
3295     # value for MKDIR_P within a source directory, because that will
3296     # break other packages using the cache if that directory is
3297     # removed, or if the value is a relative name.
3298     MKDIR_P="$ac_install_sh -d"
3299   fi
3300 fi
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3302 $as_echo "$MKDIR_P" >&6; }
3303
3304 for ac_prog in gawk mawk nawk awk
3305 do
3306   # Extract the first word of "$ac_prog", so it can be a program name with args.
3307 set dummy $ac_prog; ac_word=$2
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3309 $as_echo_n "checking for $ac_word... " >&6; }
3310 if ${ac_cv_prog_AWK+:} false; then :
3311   $as_echo_n "(cached) " >&6
3312 else
3313   if test -n "$AWK"; then
3314   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3315 else
3316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3317 for as_dir in $PATH
3318 do
3319   IFS=$as_save_IFS
3320   test -z "$as_dir" && as_dir=.
3321     for ac_exec_ext in '' $ac_executable_extensions; do
3322   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3323     ac_cv_prog_AWK="$ac_prog"
3324     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3325     break 2
3326   fi
3327 done
3328   done
3329 IFS=$as_save_IFS
3330
3331 fi
3332 fi
3333 AWK=$ac_cv_prog_AWK
3334 if test -n "$AWK"; then
3335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3336 $as_echo "$AWK" >&6; }
3337 else
3338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3339 $as_echo "no" >&6; }
3340 fi
3341
3342
3343   test -n "$AWK" && break
3344 done
3345
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3347 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3348 set x ${MAKE-make}
3349 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3350 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3351   $as_echo_n "(cached) " >&6
3352 else
3353   cat >conftest.make <<\_ACEOF
3354 SHELL = /bin/sh
3355 all:
3356         @echo '@@@%%%=$(MAKE)=@@@%%%'
3357 _ACEOF
3358 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3359 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3360   *@@@%%%=?*=@@@%%%*)
3361     eval ac_cv_prog_make_${ac_make}_set=yes;;
3362   *)
3363     eval ac_cv_prog_make_${ac_make}_set=no;;
3364 esac
3365 rm -f conftest.make
3366 fi
3367 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3369 $as_echo "yes" >&6; }
3370   SET_MAKE=
3371 else
3372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3373 $as_echo "no" >&6; }
3374   SET_MAKE="MAKE=${MAKE-make}"
3375 fi
3376
3377 rm -rf .tst 2>/dev/null
3378 mkdir .tst 2>/dev/null
3379 if test -d .tst; then
3380   am__leading_dot=.
3381 else
3382   am__leading_dot=_
3383 fi
3384 rmdir .tst 2>/dev/null
3385
3386 # Check whether --enable-silent-rules was given.
3387 if test "${enable_silent_rules+set}" = set; then :
3388   enableval=$enable_silent_rules;
3389 fi
3390
3391 case $enable_silent_rules in # (((
3392   yes) AM_DEFAULT_VERBOSITY=0;;
3393    no) AM_DEFAULT_VERBOSITY=1;;
3394     *) AM_DEFAULT_VERBOSITY=1;;
3395 esac
3396 am_make=${MAKE-make}
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3398 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3399 if ${am_cv_make_support_nested_variables+:} false; then :
3400   $as_echo_n "(cached) " >&6
3401 else
3402   if $as_echo 'TRUE=$(BAR$(V))
3403 BAR0=false
3404 BAR1=true
3405 V=1
3406 am__doit:
3407         @$(TRUE)
3408 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3409   am_cv_make_support_nested_variables=yes
3410 else
3411   am_cv_make_support_nested_variables=no
3412 fi
3413 fi
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3415 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3416 if test $am_cv_make_support_nested_variables = yes; then
3417     AM_V='$(V)'
3418   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3419 else
3420   AM_V=$AM_DEFAULT_VERBOSITY
3421   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3422 fi
3423 AM_BACKSLASH='\'
3424
3425 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3426   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3427   # is not polluted with repeated "-I."
3428   am__isrc=' -I$(srcdir)'
3429   # test to see if srcdir already configured
3430   if test -f $srcdir/config.status; then
3431     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3432   fi
3433 fi
3434
3435 # test whether we have cygpath
3436 if test -z "$CYGPATH_W"; then
3437   if (cygpath --version) >/dev/null 2>/dev/null; then
3438     CYGPATH_W='cygpath -w'
3439   else
3440     CYGPATH_W=echo
3441   fi
3442 fi
3443
3444
3445 # Define the identity of the package.
3446  PACKAGE='gpgme'
3447  VERSION='1.15.1'
3448
3449
3450 cat >>confdefs.h <<_ACEOF
3451 #define PACKAGE "$PACKAGE"
3452 _ACEOF
3453
3454
3455 cat >>confdefs.h <<_ACEOF
3456 #define VERSION "$VERSION"
3457 _ACEOF
3458
3459 # Some tools Automake needs.
3460
3461 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3462
3463
3464 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3465
3466
3467 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3468
3469
3470 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3471
3472
3473 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3474
3475 # For better backward compatibility.  To be removed once Automake 1.9.x
3476 # dies out for good.  For more background, see:
3477 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3478 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3479 mkdir_p='$(MKDIR_P)'
3480
3481 # We need awk for the "check" target (and possibly the TAP driver).  The
3482 # system "awk" is bad on some platforms.
3483 # Always define AMTAR for backward compatibility.  Yes, it's still used
3484 # in the wild :-(  We should find a proper way to deprecate it ...
3485 AMTAR='$${TAR-tar}'
3486
3487
3488 # We'll loop over all known methods to create a tar archive until one works.
3489 _am_tools='gnutar  pax cpio none'
3490
3491 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3492
3493
3494
3495
3496
3497
3498 # POSIX will say in a future version that running "rm -f" with no argument
3499 # is OK; and we want to be able to make that assumption in our Makefile
3500 # recipes.  So use an aggressive probe to check that the usage we want is
3501 # actually supported "in the wild" to an acceptable degree.
3502 # See automake bug#10828.
3503 # To make any issue more visible, cause the running configure to be aborted
3504 # by default if the 'rm' program in use doesn't match our expectations; the
3505 # user can still override this though.
3506 if rm -f && rm -fr && rm -rf; then : OK; else
3507   cat >&2 <<'END'
3508 Oops!
3509
3510 Your 'rm' program seems unable to run without file operands specified
3511 on the command line, even when the '-f' option is present.  This is contrary
3512 to the behaviour of most rm programs out there, and not conforming with
3513 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3514
3515 Please tell bug-automake@gnu.org about your system, including the value
3516 of your $PATH and any error possibly output before this message.  This
3517 can help us improve future automake versions.
3518
3519 END
3520   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3521     echo 'Configuration will proceed anyway, since you have set the' >&2
3522     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3523     echo >&2
3524   else
3525     cat >&2 <<'END'
3526 Aborting the configuration process, to ensure you take notice of the issue.
3527
3528 You can download and install GNU coreutils to get an 'rm' implementation
3529 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3530
3531 If you want to complete the configuration process using your problematic
3532 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3533 to "yes", and re-run configure.
3534
3535 END
3536     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3537   fi
3538 fi
3539
3540
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3542 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3543     # Check whether --enable-maintainer-mode was given.
3544 if test "${enable_maintainer_mode+set}" = set; then :
3545   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3546 else
3547   USE_MAINTAINER_MODE=no
3548 fi
3549
3550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3551 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3552    if test $USE_MAINTAINER_MODE = yes; then
3553   MAINTAINER_MODE_TRUE=
3554   MAINTAINER_MODE_FALSE='#'
3555 else
3556   MAINTAINER_MODE_TRUE='#'
3557   MAINTAINER_MODE_FALSE=
3558 fi
3559
3560   MAINT=$MAINTAINER_MODE_TRUE
3561
3562
3563 # Make sure we can run config.sub.
3564 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3565   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3566
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3568 $as_echo_n "checking build system type... " >&6; }
3569 if ${ac_cv_build+:} false; then :
3570   $as_echo_n "(cached) " >&6
3571 else
3572   ac_build_alias=$build_alias
3573 test "x$ac_build_alias" = x &&
3574   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3575 test "x$ac_build_alias" = x &&
3576   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3577 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3578   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3579
3580 fi
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3582 $as_echo "$ac_cv_build" >&6; }
3583 case $ac_cv_build in
3584 *-*-*) ;;
3585 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3586 esac
3587 build=$ac_cv_build
3588 ac_save_IFS=$IFS; IFS='-'
3589 set x $ac_cv_build
3590 shift
3591 build_cpu=$1
3592 build_vendor=$2
3593 shift; shift
3594 # Remember, the first character of IFS is used to create $*,
3595 # except with old shells:
3596 build_os=$*
3597 IFS=$ac_save_IFS
3598 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3599
3600
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3602 $as_echo_n "checking host system type... " >&6; }
3603 if ${ac_cv_host+:} false; then :
3604   $as_echo_n "(cached) " >&6
3605 else
3606   if test "x$host_alias" = x; then
3607   ac_cv_host=$ac_cv_build
3608 else
3609   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3610     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3611 fi
3612
3613 fi
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3615 $as_echo "$ac_cv_host" >&6; }
3616 case $ac_cv_host in
3617 *-*-*) ;;
3618 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3619 esac
3620 host=$ac_cv_host
3621 ac_save_IFS=$IFS; IFS='-'
3622 set x $ac_cv_host
3623 shift
3624 host_cpu=$1
3625 host_vendor=$2
3626 shift; shift
3627 # Remember, the first character of IFS is used to create $*,
3628 # except with old shells:
3629 host_os=$*
3630 IFS=$ac_save_IFS
3631 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3632
3633
3634 # Check whether --enable-silent-rules was given.
3635 if test "${enable_silent_rules+set}" = set; then :
3636   enableval=$enable_silent_rules;
3637 fi
3638
3639 case $enable_silent_rules in # (((
3640   yes) AM_DEFAULT_VERBOSITY=0;;
3641    no) AM_DEFAULT_VERBOSITY=1;;
3642     *) AM_DEFAULT_VERBOSITY=1;;
3643 esac
3644 am_make=${MAKE-make}
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3646 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3647 if ${am_cv_make_support_nested_variables+:} false; then :
3648   $as_echo_n "(cached) " >&6
3649 else
3650   if $as_echo 'TRUE=$(BAR$(V))
3651 BAR0=false
3652 BAR1=true
3653 V=1
3654 am__doit:
3655         @$(TRUE)
3656 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3657   am_cv_make_support_nested_variables=yes
3658 else
3659   am_cv_make_support_nested_variables=no
3660 fi
3661 fi
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3663 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3664 if test $am_cv_make_support_nested_variables = yes; then
3665     AM_V='$(V)'
3666   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3667 else
3668   AM_V=$AM_DEFAULT_VERBOSITY
3669   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3670 fi
3671 AM_BACKSLASH='\'
3672
3673
3674
3675 # Enable GNU extensions on systems that have them.
3676 DEPDIR="${am__leading_dot}deps"
3677
3678 ac_config_commands="$ac_config_commands depfiles"
3679
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3681 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3682 cat > confinc.mk << 'END'
3683 am__doit:
3684         @echo this is the am__doit target >confinc.out
3685 .PHONY: am__doit
3686 END
3687 am__include="#"
3688 am__quote=
3689 # BSD make does it like this.
3690 echo '.include "confinc.mk" # ignored' > confmf.BSD
3691 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3692 echo 'include confinc.mk # ignored' > confmf.GNU
3693 _am_result=no
3694 for s in GNU BSD; do
3695   { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3696    (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3697    ac_status=$?
3698    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699    (exit $ac_status); }
3700   case $?:`cat confinc.out 2>/dev/null` in #(
3701   '0:this is the am__doit target') :
3702     case $s in #(
3703   BSD) :
3704     am__include='.include' am__quote='"' ;; #(
3705   *) :
3706     am__include='include' am__quote='' ;;
3707 esac ;; #(
3708   *) :
3709      ;;
3710 esac
3711   if test "$am__include" != "#"; then
3712     _am_result="yes ($s style)"
3713     break
3714   fi
3715 done
3716 rm -f confinc.* confmf.*
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3718 $as_echo "${_am_result}" >&6; }
3719
3720 # Check whether --enable-dependency-tracking was given.
3721 if test "${enable_dependency_tracking+set}" = set; then :
3722   enableval=$enable_dependency_tracking;
3723 fi
3724
3725 if test "x$enable_dependency_tracking" != xno; then
3726   am_depcomp="$ac_aux_dir/depcomp"
3727   AMDEPBACKSLASH='\'
3728   am__nodep='_no'
3729 fi
3730  if test "x$enable_dependency_tracking" != xno; then
3731   AMDEP_TRUE=
3732   AMDEP_FALSE='#'
3733 else
3734   AMDEP_TRUE='#'
3735   AMDEP_FALSE=
3736 fi
3737
3738
3739 ac_ext=c
3740 ac_cpp='$CPP $CPPFLAGS'
3741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3744 if test -n "$ac_tool_prefix"; then
3745   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3746 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3748 $as_echo_n "checking for $ac_word... " >&6; }
3749 if ${ac_cv_prog_CC+:} false; then :
3750   $as_echo_n "(cached) " >&6
3751 else
3752   if test -n "$CC"; then
3753   ac_cv_prog_CC="$CC" # Let the user override the test.
3754 else
3755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3756 for as_dir in $PATH
3757 do
3758   IFS=$as_save_IFS
3759   test -z "$as_dir" && as_dir=.
3760     for ac_exec_ext in '' $ac_executable_extensions; do
3761   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3762     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3763     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3764     break 2
3765   fi
3766 done
3767   done
3768 IFS=$as_save_IFS
3769
3770 fi
3771 fi
3772 CC=$ac_cv_prog_CC
3773 if test -n "$CC"; then
3774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3775 $as_echo "$CC" >&6; }
3776 else
3777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3778 $as_echo "no" >&6; }
3779 fi
3780
3781
3782 fi
3783 if test -z "$ac_cv_prog_CC"; then
3784   ac_ct_CC=$CC
3785   # Extract the first word of "gcc", so it can be a program name with args.
3786 set dummy gcc; ac_word=$2
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3788 $as_echo_n "checking for $ac_word... " >&6; }
3789 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3790   $as_echo_n "(cached) " >&6
3791 else
3792   if test -n "$ac_ct_CC"; then
3793   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3794 else
3795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3796 for as_dir in $PATH
3797 do
3798   IFS=$as_save_IFS
3799   test -z "$as_dir" && as_dir=.
3800     for ac_exec_ext in '' $ac_executable_extensions; do
3801   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3802     ac_cv_prog_ac_ct_CC="gcc"
3803     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3804     break 2
3805   fi
3806 done
3807   done
3808 IFS=$as_save_IFS
3809
3810 fi
3811 fi
3812 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3813 if test -n "$ac_ct_CC"; then
3814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3815 $as_echo "$ac_ct_CC" >&6; }
3816 else
3817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3818 $as_echo "no" >&6; }
3819 fi
3820
3821   if test "x$ac_ct_CC" = x; then
3822     CC=""
3823   else
3824     case $cross_compiling:$ac_tool_warned in
3825 yes:)
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3827 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3828 ac_tool_warned=yes ;;
3829 esac
3830     CC=$ac_ct_CC
3831   fi
3832 else
3833   CC="$ac_cv_prog_CC"
3834 fi
3835
3836 if test -z "$CC"; then
3837           if test -n "$ac_tool_prefix"; then
3838     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3839 set dummy ${ac_tool_prefix}cc; ac_word=$2
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3841 $as_echo_n "checking for $ac_word... " >&6; }
3842 if ${ac_cv_prog_CC+:} false; then :
3843   $as_echo_n "(cached) " >&6
3844 else
3845   if test -n "$CC"; then
3846   ac_cv_prog_CC="$CC" # Let the user override the test.
3847 else
3848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3849 for as_dir in $PATH
3850 do
3851   IFS=$as_save_IFS
3852   test -z "$as_dir" && as_dir=.
3853     for ac_exec_ext in '' $ac_executable_extensions; do
3854   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3855     ac_cv_prog_CC="${ac_tool_prefix}cc"
3856     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3857     break 2
3858   fi
3859 done
3860   done
3861 IFS=$as_save_IFS
3862
3863 fi
3864 fi
3865 CC=$ac_cv_prog_CC
3866 if test -n "$CC"; then
3867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3868 $as_echo "$CC" >&6; }
3869 else
3870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3871 $as_echo "no" >&6; }
3872 fi
3873
3874
3875   fi
3876 fi
3877 if test -z "$CC"; then
3878   # Extract the first word of "cc", so it can be a program name with args.
3879 set dummy cc; ac_word=$2
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3881 $as_echo_n "checking for $ac_word... " >&6; }
3882 if ${ac_cv_prog_CC+:} false; then :
3883   $as_echo_n "(cached) " >&6
3884 else
3885   if test -n "$CC"; then
3886   ac_cv_prog_CC="$CC" # Let the user override the test.
3887 else
3888   ac_prog_rejected=no
3889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3890 for as_dir in $PATH
3891 do
3892   IFS=$as_save_IFS
3893   test -z "$as_dir" && as_dir=.
3894     for ac_exec_ext in '' $ac_executable_extensions; do
3895   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3896     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3897        ac_prog_rejected=yes
3898        continue
3899      fi
3900     ac_cv_prog_CC="cc"
3901     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3902     break 2
3903   fi
3904 done
3905   done
3906 IFS=$as_save_IFS
3907
3908 if test $ac_prog_rejected = yes; then
3909   # We found a bogon in the path, so make sure we never use it.
3910   set dummy $ac_cv_prog_CC
3911   shift
3912   if test $# != 0; then
3913     # We chose a different compiler from the bogus one.
3914     # However, it has the same basename, so the bogon will be chosen
3915     # first if we set CC to just the basename; use the full file name.
3916     shift
3917     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3918   fi
3919 fi
3920 fi
3921 fi
3922 CC=$ac_cv_prog_CC
3923 if test -n "$CC"; then
3924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3925 $as_echo "$CC" >&6; }
3926 else
3927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3928 $as_echo "no" >&6; }
3929 fi
3930
3931
3932 fi
3933 if test -z "$CC"; then
3934   if test -n "$ac_tool_prefix"; then
3935   for ac_prog in cl.exe
3936   do
3937     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3938 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3940 $as_echo_n "checking for $ac_word... " >&6; }
3941 if ${ac_cv_prog_CC+:} false; then :
3942   $as_echo_n "(cached) " >&6
3943 else
3944   if test -n "$CC"; then
3945   ac_cv_prog_CC="$CC" # Let the user override the test.
3946 else
3947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3948 for as_dir in $PATH
3949 do
3950   IFS=$as_save_IFS
3951   test -z "$as_dir" && as_dir=.
3952     for ac_exec_ext in '' $ac_executable_extensions; do
3953   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3954     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3955     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3956     break 2
3957   fi
3958 done
3959   done
3960 IFS=$as_save_IFS
3961
3962 fi
3963 fi
3964 CC=$ac_cv_prog_CC
3965 if test -n "$CC"; then
3966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3967 $as_echo "$CC" >&6; }
3968 else
3969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3970 $as_echo "no" >&6; }
3971 fi
3972
3973
3974     test -n "$CC" && break
3975   done
3976 fi
3977 if test -z "$CC"; then
3978   ac_ct_CC=$CC
3979   for ac_prog in cl.exe
3980 do
3981   # Extract the first word of "$ac_prog", so it can be a program name with args.
3982 set dummy $ac_prog; ac_word=$2
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3984 $as_echo_n "checking for $ac_word... " >&6; }
3985 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3986   $as_echo_n "(cached) " >&6
3987 else
3988   if test -n "$ac_ct_CC"; then
3989   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3990 else
3991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3992 for as_dir in $PATH
3993 do
3994   IFS=$as_save_IFS
3995   test -z "$as_dir" && as_dir=.
3996     for ac_exec_ext in '' $ac_executable_extensions; do
3997   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3998     ac_cv_prog_ac_ct_CC="$ac_prog"
3999     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4000     break 2
4001   fi
4002 done
4003   done
4004 IFS=$as_save_IFS
4005
4006 fi
4007 fi
4008 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4009 if test -n "$ac_ct_CC"; then
4010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4011 $as_echo "$ac_ct_CC" >&6; }
4012 else
4013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4014 $as_echo "no" >&6; }
4015 fi
4016
4017
4018   test -n "$ac_ct_CC" && break
4019 done
4020
4021   if test "x$ac_ct_CC" = x; then
4022     CC=""
4023   else
4024     case $cross_compiling:$ac_tool_warned in
4025 yes:)
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4027 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4028 ac_tool_warned=yes ;;
4029 esac
4030     CC=$ac_ct_CC
4031   fi
4032 fi
4033
4034 fi
4035
4036
4037 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4038 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4039 as_fn_error $? "no acceptable C compiler found in \$PATH
4040 See \`config.log' for more details" "$LINENO" 5; }
4041
4042 # Provide some information about the compiler.
4043 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4044 set X $ac_compile
4045 ac_compiler=$2
4046 for ac_option in --version -v -V -qversion; do
4047   { { ac_try="$ac_compiler $ac_option >&5"
4048 case "(($ac_try" in
4049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4050   *) ac_try_echo=$ac_try;;
4051 esac
4052 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4053 $as_echo "$ac_try_echo"; } >&5
4054   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4055   ac_status=$?
4056   if test -s conftest.err; then
4057     sed '10a\
4058 ... rest of stderr output deleted ...
4059          10q' conftest.err >conftest.er1
4060     cat conftest.er1 >&5
4061   fi
4062   rm -f conftest.er1 conftest.err
4063   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4064   test $ac_status = 0; }
4065 done
4066
4067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4068 /* end confdefs.h.  */
4069
4070 int
4071 main ()
4072 {
4073
4074   ;
4075   return 0;
4076 }
4077 _ACEOF
4078 ac_clean_files_save=$ac_clean_files
4079 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4080 # Try to create an executable without -o first, disregard a.out.
4081 # It will help us diagnose broken compilers, and finding out an intuition
4082 # of exeext.
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4084 $as_echo_n "checking whether the C compiler works... " >&6; }
4085 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4086
4087 # The possible output files:
4088 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4089
4090 ac_rmfiles=
4091 for ac_file in $ac_files
4092 do
4093   case $ac_file in
4094     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4095     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4096   esac
4097 done
4098 rm -f $ac_rmfiles
4099
4100 if { { ac_try="$ac_link_default"
4101 case "(($ac_try" in
4102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4103   *) ac_try_echo=$ac_try;;
4104 esac
4105 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4106 $as_echo "$ac_try_echo"; } >&5
4107   (eval "$ac_link_default") 2>&5
4108   ac_status=$?
4109   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4110   test $ac_status = 0; }; then :
4111   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4112 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4113 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4114 # so that the user can short-circuit this test for compilers unknown to
4115 # Autoconf.
4116 for ac_file in $ac_files ''
4117 do
4118   test -f "$ac_file" || continue
4119   case $ac_file in
4120     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4121         ;;
4122     [ab].out )
4123         # We found the default executable, but exeext='' is most
4124         # certainly right.
4125         break;;
4126     *.* )
4127         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4128         then :; else
4129            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4130         fi
4131         # We set ac_cv_exeext here because the later test for it is not
4132         # safe: cross compilers may not add the suffix if given an `-o'
4133         # argument, so we may need to know it at that point already.
4134         # Even if this section looks crufty: it has the advantage of
4135         # actually working.
4136         break;;
4137     * )
4138         break;;
4139   esac
4140 done
4141 test "$ac_cv_exeext" = no && ac_cv_exeext=
4142
4143 else
4144   ac_file=''
4145 fi
4146 if test -z "$ac_file"; then :
4147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4148 $as_echo "no" >&6; }
4149 $as_echo "$as_me: failed program was:" >&5
4150 sed 's/^/| /' conftest.$ac_ext >&5
4151
4152 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4153 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4154 as_fn_error 77 "C compiler cannot create executables
4155 See \`config.log' for more details" "$LINENO" 5; }
4156 else
4157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4158 $as_echo "yes" >&6; }
4159 fi
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4161 $as_echo_n "checking for C compiler default output file name... " >&6; }
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4163 $as_echo "$ac_file" >&6; }
4164 ac_exeext=$ac_cv_exeext
4165
4166 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4167 ac_clean_files=$ac_clean_files_save
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4169 $as_echo_n "checking for suffix of executables... " >&6; }
4170 if { { ac_try="$ac_link"
4171 case "(($ac_try" in
4172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4173   *) ac_try_echo=$ac_try;;
4174 esac
4175 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4176 $as_echo "$ac_try_echo"; } >&5
4177   (eval "$ac_link") 2>&5
4178   ac_status=$?
4179   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4180   test $ac_status = 0; }; then :
4181   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4182 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4183 # work properly (i.e., refer to `conftest.exe'), while it won't with
4184 # `rm'.
4185 for ac_file in conftest.exe conftest conftest.*; do
4186   test -f "$ac_file" || continue
4187   case $ac_file in
4188     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4189     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4190           break;;
4191     * ) break;;
4192   esac
4193 done
4194 else
4195   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4196 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4197 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4198 See \`config.log' for more details" "$LINENO" 5; }
4199 fi
4200 rm -f conftest conftest$ac_cv_exeext
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4202 $as_echo "$ac_cv_exeext" >&6; }
4203
4204 rm -f conftest.$ac_ext
4205 EXEEXT=$ac_cv_exeext
4206 ac_exeext=$EXEEXT
4207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4208 /* end confdefs.h.  */
4209 #include <stdio.h>
4210 int
4211 main ()
4212 {
4213 FILE *f = fopen ("conftest.out", "w");
4214  return ferror (f) || fclose (f) != 0;
4215
4216   ;
4217   return 0;
4218 }
4219 _ACEOF
4220 ac_clean_files="$ac_clean_files conftest.out"
4221 # Check that the compiler produces executables we can run.  If not, either
4222 # the compiler is broken, or we cross compile.
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4224 $as_echo_n "checking whether we are cross compiling... " >&6; }
4225 if test "$cross_compiling" != yes; then
4226   { { ac_try="$ac_link"
4227 case "(($ac_try" in
4228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4229   *) ac_try_echo=$ac_try;;
4230 esac
4231 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4232 $as_echo "$ac_try_echo"; } >&5
4233   (eval "$ac_link") 2>&5
4234   ac_status=$?
4235   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4236   test $ac_status = 0; }
4237   if { ac_try='./conftest$ac_cv_exeext'
4238   { { case "(($ac_try" in
4239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4240   *) ac_try_echo=$ac_try;;
4241 esac
4242 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4243 $as_echo "$ac_try_echo"; } >&5
4244   (eval "$ac_try") 2>&5
4245   ac_status=$?
4246   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4247   test $ac_status = 0; }; }; then
4248     cross_compiling=no
4249   else
4250     if test "$cross_compiling" = maybe; then
4251         cross_compiling=yes
4252     else
4253         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4254 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4255 as_fn_error $? "cannot run C compiled programs.
4256 If you meant to cross compile, use \`--host'.
4257 See \`config.log' for more details" "$LINENO" 5; }
4258     fi
4259   fi
4260 fi
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4262 $as_echo "$cross_compiling" >&6; }
4263
4264 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4265 ac_clean_files=$ac_clean_files_save
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4267 $as_echo_n "checking for suffix of object files... " >&6; }
4268 if ${ac_cv_objext+:} false; then :
4269   $as_echo_n "(cached) " >&6
4270 else
4271   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4272 /* end confdefs.h.  */
4273
4274 int
4275 main ()
4276 {
4277
4278   ;
4279   return 0;
4280 }
4281 _ACEOF
4282 rm -f conftest.o conftest.obj
4283 if { { ac_try="$ac_compile"
4284 case "(($ac_try" in
4285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4286   *) ac_try_echo=$ac_try;;
4287 esac
4288 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4289 $as_echo "$ac_try_echo"; } >&5
4290   (eval "$ac_compile") 2>&5
4291   ac_status=$?
4292   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4293   test $ac_status = 0; }; then :
4294   for ac_file in conftest.o conftest.obj conftest.*; do
4295   test -f "$ac_file" || continue;
4296   case $ac_file in
4297     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4298     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4299        break;;
4300   esac
4301 done
4302 else
4303   $as_echo "$as_me: failed program was:" >&5
4304 sed 's/^/| /' conftest.$ac_ext >&5
4305
4306 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4307 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4308 as_fn_error $? "cannot compute suffix of object files: cannot compile
4309 See \`config.log' for more details" "$LINENO" 5; }
4310 fi
4311 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4312 fi
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4314 $as_echo "$ac_cv_objext" >&6; }
4315 OBJEXT=$ac_cv_objext
4316 ac_objext=$OBJEXT
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4318 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4319 if ${ac_cv_c_compiler_gnu+:} false; then :
4320   $as_echo_n "(cached) " >&6
4321 else
4322   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4323 /* end confdefs.h.  */
4324
4325 int
4326 main ()
4327 {
4328 #ifndef __GNUC__
4329        choke me
4330 #endif
4331
4332   ;
4333   return 0;
4334 }
4335 _ACEOF
4336 if ac_fn_c_try_compile "$LINENO"; then :
4337   ac_compiler_gnu=yes
4338 else
4339   ac_compiler_gnu=no
4340 fi
4341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4342 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4343
4344 fi
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4346 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4347 if test $ac_compiler_gnu = yes; then
4348   GCC=yes
4349 else
4350   GCC=
4351 fi
4352 ac_test_CFLAGS=${CFLAGS+set}
4353 ac_save_CFLAGS=$CFLAGS
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4355 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4356 if ${ac_cv_prog_cc_g+:} false; then :
4357   $as_echo_n "(cached) " >&6
4358 else
4359   ac_save_c_werror_flag=$ac_c_werror_flag
4360    ac_c_werror_flag=yes
4361    ac_cv_prog_cc_g=no
4362    CFLAGS="-g"
4363    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4364 /* end confdefs.h.  */
4365
4366 int
4367 main ()
4368 {
4369
4370   ;
4371   return 0;
4372 }
4373 _ACEOF
4374 if ac_fn_c_try_compile "$LINENO"; then :
4375   ac_cv_prog_cc_g=yes
4376 else
4377   CFLAGS=""
4378       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4379 /* end confdefs.h.  */
4380
4381 int
4382 main ()
4383 {
4384
4385   ;
4386   return 0;
4387 }
4388 _ACEOF
4389 if ac_fn_c_try_compile "$LINENO"; then :
4390
4391 else
4392   ac_c_werror_flag=$ac_save_c_werror_flag
4393          CFLAGS="-g"
4394          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4395 /* end confdefs.h.  */
4396
4397 int
4398 main ()
4399 {
4400
4401   ;
4402   return 0;
4403 }
4404 _ACEOF
4405 if ac_fn_c_try_compile "$LINENO"; then :
4406   ac_cv_prog_cc_g=yes
4407 fi
4408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4409 fi
4410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4411 fi
4412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4413    ac_c_werror_flag=$ac_save_c_werror_flag
4414 fi
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4416 $as_echo "$ac_cv_prog_cc_g" >&6; }
4417 if test "$ac_test_CFLAGS" = set; then
4418   CFLAGS=$ac_save_CFLAGS
4419 elif test $ac_cv_prog_cc_g = yes; then
4420   if test "$GCC" = yes; then
4421     CFLAGS="-g -O2"
4422   else
4423     CFLAGS="-g"
4424   fi
4425 else
4426   if test "$GCC" = yes; then
4427     CFLAGS="-O2"
4428   else
4429     CFLAGS=
4430   fi
4431 fi
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4433 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4434 if ${ac_cv_prog_cc_c89+:} false; then :
4435   $as_echo_n "(cached) " >&6
4436 else
4437   ac_cv_prog_cc_c89=no
4438 ac_save_CC=$CC
4439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4440 /* end confdefs.h.  */
4441 #include <stdarg.h>
4442 #include <stdio.h>
4443 struct stat;
4444 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4445 struct buf { int x; };
4446 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4447 static char *e (p, i)
4448      char **p;
4449      int i;
4450 {
4451   return p[i];
4452 }
4453 static char *f (char * (*g) (char **, int), char **p, ...)
4454 {
4455   char *s;
4456   va_list v;
4457   va_start (v,p);
4458   s = g (p, va_arg (v,int));
4459   va_end (v);
4460   return s;
4461 }
4462
4463 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4464    function prototypes and stuff, but not '\xHH' hex character constants.
4465    These don't provoke an error unfortunately, instead are silently treated
4466    as 'x'.  The following induces an error, until -std is added to get
4467    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4468    array size at least.  It's necessary to write '\x00'==0 to get something
4469    that's true only with -std.  */
4470 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4471
4472 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4473    inside strings and character constants.  */
4474 #define FOO(x) 'x'
4475 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4476
4477 int test (int i, double x);
4478 struct s1 {int (*f) (int a);};
4479 struct s2 {int (*f) (double a);};
4480 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4481 int argc;
4482 char **argv;
4483 int
4484 main ()
4485 {
4486 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4487   ;
4488   return 0;
4489 }
4490 _ACEOF
4491 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4492         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4493 do
4494   CC="$ac_save_CC $ac_arg"
4495   if ac_fn_c_try_compile "$LINENO"; then :
4496   ac_cv_prog_cc_c89=$ac_arg
4497 fi
4498 rm -f core conftest.err conftest.$ac_objext
4499   test "x$ac_cv_prog_cc_c89" != "xno" && break
4500 done
4501 rm -f conftest.$ac_ext
4502 CC=$ac_save_CC
4503
4504 fi
4505 # AC_CACHE_VAL
4506 case "x$ac_cv_prog_cc_c89" in
4507   x)
4508     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4509 $as_echo "none needed" >&6; } ;;
4510   xno)
4511     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4512 $as_echo "unsupported" >&6; } ;;
4513   *)
4514     CC="$CC $ac_cv_prog_cc_c89"
4515     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4516 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4517 esac
4518 if test "x$ac_cv_prog_cc_c89" != xno; then :
4519
4520 fi
4521
4522 ac_ext=c
4523 ac_cpp='$CPP $CPPFLAGS'
4524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4527
4528 ac_ext=c
4529 ac_cpp='$CPP $CPPFLAGS'
4530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4534 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4535 if ${am_cv_prog_cc_c_o+:} false; then :
4536   $as_echo_n "(cached) " >&6
4537 else
4538   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4539 /* end confdefs.h.  */
4540
4541 int
4542 main ()
4543 {
4544
4545   ;
4546   return 0;
4547 }
4548 _ACEOF
4549   # Make sure it works both with $CC and with simple cc.
4550   # Following AC_PROG_CC_C_O, we do the test twice because some
4551   # compilers refuse to overwrite an existing .o file with -o,
4552   # though they will create one.
4553   am_cv_prog_cc_c_o=yes
4554   for am_i in 1 2; do
4555     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4556    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4557    ac_status=$?
4558    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559    (exit $ac_status); } \
4560          && test -f conftest2.$ac_objext; then
4561       : OK
4562     else
4563       am_cv_prog_cc_c_o=no
4564       break
4565     fi
4566   done
4567   rm -f core conftest*
4568   unset am_i
4569 fi
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4571 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4572 if test "$am_cv_prog_cc_c_o" != yes; then
4573    # Losing compiler, so override with the script.
4574    # FIXME: It is wrong to rewrite CC.
4575    # But if we don't then we get into trouble of one sort or another.
4576    # A longer-term fix would be to have automake use am__CC in this case,
4577    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4578    CC="$am_aux_dir/compile $CC"
4579 fi
4580 ac_ext=c
4581 ac_cpp='$CPP $CPPFLAGS'
4582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4585
4586
4587 depcc="$CC"   am_compiler_list=
4588
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4590 $as_echo_n "checking dependency style of $depcc... " >&6; }
4591 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4592   $as_echo_n "(cached) " >&6
4593 else
4594   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4595   # We make a subdir and do the tests there.  Otherwise we can end up
4596   # making bogus files that we don't know about and never remove.  For
4597   # instance it was reported that on HP-UX the gcc test will end up
4598   # making a dummy file named 'D' -- because '-MD' means "put the output
4599   # in D".
4600   rm -rf conftest.dir
4601   mkdir conftest.dir
4602   # Copy depcomp to subdir because otherwise we won't find it if we're
4603   # using a relative directory.
4604   cp "$am_depcomp" conftest.dir
4605   cd conftest.dir
4606   # We will build objects and dependencies in a subdirectory because
4607   # it helps to detect inapplicable dependency modes.  For instance
4608   # both Tru64's cc and ICC support -MD to output dependencies as a
4609   # side effect of compilation, but ICC will put the dependencies in
4610   # the current directory while Tru64 will put them in the object
4611   # directory.
4612   mkdir sub
4613
4614   am_cv_CC_dependencies_compiler_type=none
4615   if test "$am_compiler_list" = ""; then
4616      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4617   fi
4618   am__universal=false
4619   case " $depcc " in #(
4620      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4621      esac
4622
4623   for depmode in $am_compiler_list; do
4624     # Setup a source with many dependencies, because some compilers
4625     # like to wrap large dependency lists on column 80 (with \), and
4626     # we should not choose a depcomp mode which is confused by this.
4627     #
4628     # We need to recreate these files for each test, as the compiler may
4629     # overwrite some of them when testing with obscure command lines.
4630     # This happens at least with the AIX C compiler.
4631     : > sub/conftest.c
4632     for i in 1 2 3 4 5 6; do
4633       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4634       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4635       # Solaris 10 /bin/sh.
4636       echo '/* dummy */' > sub/conftst$i.h
4637     done
4638     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4639
4640     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4641     # mode.  It turns out that the SunPro C++ compiler does not properly
4642     # handle '-M -o', and we need to detect this.  Also, some Intel
4643     # versions had trouble with output in subdirs.
4644     am__obj=sub/conftest.${OBJEXT-o}
4645     am__minus_obj="-o $am__obj"
4646     case $depmode in
4647     gcc)
4648       # This depmode causes a compiler race in universal mode.
4649       test "$am__universal" = false || continue
4650       ;;
4651     nosideeffect)
4652       # After this tag, mechanisms are not by side-effect, so they'll
4653       # only be used when explicitly requested.
4654       if test "x$enable_dependency_tracking" = xyes; then
4655         continue
4656       else
4657         break
4658       fi
4659       ;;
4660     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4661       # This compiler won't grok '-c -o', but also, the minuso test has
4662       # not run yet.  These depmodes are late enough in the game, and
4663       # so weak that their functioning should not be impacted.
4664       am__obj=conftest.${OBJEXT-o}
4665       am__minus_obj=
4666       ;;
4667     none) break ;;
4668     esac
4669     if depmode=$depmode \
4670        source=sub/conftest.c object=$am__obj \
4671        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4672        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4673          >/dev/null 2>conftest.err &&
4674        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4675        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4676        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4677        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4678       # icc doesn't choke on unknown options, it will just issue warnings
4679       # or remarks (even with -Werror).  So we grep stderr for any message
4680       # that says an option was ignored or not supported.
4681       # When given -MP, icc 7.0 and 7.1 complain thusly:
4682       #   icc: Command line warning: ignoring option '-M'; no argument required
4683       # The diagnosis changed in icc 8.0:
4684       #   icc: Command line remark: option '-MP' not supported
4685       if (grep 'ignoring option' conftest.err ||
4686           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4687         am_cv_CC_dependencies_compiler_type=$depmode
4688         break
4689       fi
4690     fi
4691   done
4692
4693   cd ..
4694   rm -rf conftest.dir
4695 else
4696   am_cv_CC_dependencies_compiler_type=none
4697 fi
4698
4699 fi
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4701 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4702 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4703
4704  if
4705   test "x$enable_dependency_tracking" != xno \
4706   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4707   am__fastdepCC_TRUE=
4708   am__fastdepCC_FALSE='#'
4709 else
4710   am__fastdepCC_TRUE='#'
4711   am__fastdepCC_FALSE=
4712 fi
4713
4714
4715
4716 ac_ext=c
4717 ac_cpp='$CPP $CPPFLAGS'
4718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4722 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4723 # On Suns, sometimes $CPP names a directory.
4724 if test -n "$CPP" && test -d "$CPP"; then
4725   CPP=
4726 fi
4727 if test -z "$CPP"; then
4728   if ${ac_cv_prog_CPP+:} false; then :
4729   $as_echo_n "(cached) " >&6
4730 else
4731       # Double quotes because CPP needs to be expanded
4732     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4733     do
4734       ac_preproc_ok=false
4735 for ac_c_preproc_warn_flag in '' yes
4736 do
4737   # Use a header file that comes with gcc, so configuring glibc
4738   # with a fresh cross-compiler works.
4739   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4740   # <limits.h> exists even on freestanding compilers.
4741   # On the NeXT, cc -E runs the code through the compiler's parser,
4742   # not just through cpp. "Syntax error" is here to catch this case.
4743   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4744 /* end confdefs.h.  */
4745 #ifdef __STDC__
4746 # include <limits.h>
4747 #else
4748 # include <assert.h>
4749 #endif
4750                      Syntax error
4751 _ACEOF
4752 if ac_fn_c_try_cpp "$LINENO"; then :
4753
4754 else
4755   # Broken: fails on valid input.
4756 continue
4757 fi
4758 rm -f conftest.err conftest.i conftest.$ac_ext
4759
4760   # OK, works on sane cases.  Now check whether nonexistent headers
4761   # can be detected and how.
4762   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4763 /* end confdefs.h.  */
4764 #include <ac_nonexistent.h>
4765 _ACEOF
4766 if ac_fn_c_try_cpp "$LINENO"; then :
4767   # Broken: success on invalid input.
4768 continue
4769 else
4770   # Passes both tests.
4771 ac_preproc_ok=:
4772 break
4773 fi
4774 rm -f conftest.err conftest.i conftest.$ac_ext
4775
4776 done
4777 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4778 rm -f conftest.i conftest.err conftest.$ac_ext
4779 if $ac_preproc_ok; then :
4780   break
4781 fi
4782
4783     done
4784     ac_cv_prog_CPP=$CPP
4785
4786 fi
4787   CPP=$ac_cv_prog_CPP
4788 else
4789   ac_cv_prog_CPP=$CPP
4790 fi
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4792 $as_echo "$CPP" >&6; }
4793 ac_preproc_ok=false
4794 for ac_c_preproc_warn_flag in '' yes
4795 do
4796   # Use a header file that comes with gcc, so configuring glibc
4797   # with a fresh cross-compiler works.
4798   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4799   # <limits.h> exists even on freestanding compilers.
4800   # On the NeXT, cc -E runs the code through the compiler's parser,
4801   # not just through cpp. "Syntax error" is here to catch this case.
4802   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4803 /* end confdefs.h.  */
4804 #ifdef __STDC__
4805 # include <limits.h>
4806 #else
4807 # include <assert.h>
4808 #endif
4809                      Syntax error
4810 _ACEOF
4811 if ac_fn_c_try_cpp "$LINENO"; then :
4812
4813 else
4814   # Broken: fails on valid input.
4815 continue
4816 fi
4817 rm -f conftest.err conftest.i conftest.$ac_ext
4818
4819   # OK, works on sane cases.  Now check whether nonexistent headers
4820   # can be detected and how.
4821   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4822 /* end confdefs.h.  */
4823 #include <ac_nonexistent.h>
4824 _ACEOF
4825 if ac_fn_c_try_cpp "$LINENO"; then :
4826   # Broken: success on invalid input.
4827 continue
4828 else
4829   # Passes both tests.
4830 ac_preproc_ok=:
4831 break
4832 fi
4833 rm -f conftest.err conftest.i conftest.$ac_ext
4834
4835 done
4836 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4837 rm -f conftest.i conftest.err conftest.$ac_ext
4838 if $ac_preproc_ok; then :
4839
4840 else
4841   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4842 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4843 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4844 See \`config.log' for more details" "$LINENO" 5; }
4845 fi
4846
4847 ac_ext=c
4848 ac_cpp='$CPP $CPPFLAGS'
4849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4852
4853
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4855 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4856 if ${ac_cv_path_GREP+:} false; then :
4857   $as_echo_n "(cached) " >&6
4858 else
4859   if test -z "$GREP"; then
4860   ac_path_GREP_found=false
4861   # Loop through the user's path and test for each of PROGNAME-LIST
4862   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4864 do
4865   IFS=$as_save_IFS
4866   test -z "$as_dir" && as_dir=.
4867     for ac_prog in grep ggrep; do
4868     for ac_exec_ext in '' $ac_executable_extensions; do
4869       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4870       as_fn_executable_p "$ac_path_GREP" || continue
4871 # Check for GNU ac_path_GREP and select it if it is found.
4872   # Check for GNU $ac_path_GREP
4873 case `"$ac_path_GREP" --version 2>&1` in
4874 *GNU*)
4875   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4876 *)
4877   ac_count=0
4878   $as_echo_n 0123456789 >"conftest.in"
4879   while :
4880   do
4881     cat "conftest.in" "conftest.in" >"conftest.tmp"
4882     mv "conftest.tmp" "conftest.in"
4883     cp "conftest.in" "conftest.nl"
4884     $as_echo 'GREP' >> "conftest.nl"
4885     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4886     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4887     as_fn_arith $ac_count + 1 && ac_count=$as_val
4888     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4889       # Best one so far, save it but keep looking for a better one
4890       ac_cv_path_GREP="$ac_path_GREP"
4891       ac_path_GREP_max=$ac_count
4892     fi
4893     # 10*(2^10) chars as input seems more than enough
4894     test $ac_count -gt 10 && break
4895   done
4896   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4897 esac
4898
4899       $ac_path_GREP_found && break 3
4900     done
4901   done
4902   done
4903 IFS=$as_save_IFS
4904   if test -z "$ac_cv_path_GREP"; then
4905     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4906   fi
4907 else
4908   ac_cv_path_GREP=$GREP
4909 fi
4910
4911 fi
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4913 $as_echo "$ac_cv_path_GREP" >&6; }
4914  GREP="$ac_cv_path_GREP"
4915
4916
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4918 $as_echo_n "checking for egrep... " >&6; }
4919 if ${ac_cv_path_EGREP+:} false; then :
4920   $as_echo_n "(cached) " >&6
4921 else
4922   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4923    then ac_cv_path_EGREP="$GREP -E"
4924    else
4925      if test -z "$EGREP"; then
4926   ac_path_EGREP_found=false
4927   # Loop through the user's path and test for each of PROGNAME-LIST
4928   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4929 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4930 do
4931   IFS=$as_save_IFS
4932   test -z "$as_dir" && as_dir=.
4933     for ac_prog in egrep; do
4934     for ac_exec_ext in '' $ac_executable_extensions; do
4935       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4936       as_fn_executable_p "$ac_path_EGREP" || continue
4937 # Check for GNU ac_path_EGREP and select it if it is found.
4938   # Check for GNU $ac_path_EGREP
4939 case `"$ac_path_EGREP" --version 2>&1` in
4940 *GNU*)
4941   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4942 *)
4943   ac_count=0
4944   $as_echo_n 0123456789 >"conftest.in"
4945   while :
4946   do
4947     cat "conftest.in" "conftest.in" >"conftest.tmp"
4948     mv "conftest.tmp" "conftest.in"
4949     cp "conftest.in" "conftest.nl"
4950     $as_echo 'EGREP' >> "conftest.nl"
4951     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4952     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4953     as_fn_arith $ac_count + 1 && ac_count=$as_val
4954     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4955       # Best one so far, save it but keep looking for a better one
4956       ac_cv_path_EGREP="$ac_path_EGREP"
4957       ac_path_EGREP_max=$ac_count
4958     fi
4959     # 10*(2^10) chars as input seems more than enough
4960     test $ac_count -gt 10 && break
4961   done
4962   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4963 esac
4964
4965       $ac_path_EGREP_found && break 3
4966     done
4967   done
4968   done
4969 IFS=$as_save_IFS
4970   if test -z "$ac_cv_path_EGREP"; then
4971     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4972   fi
4973 else
4974   ac_cv_path_EGREP=$EGREP
4975 fi
4976
4977    fi
4978 fi
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4980 $as_echo "$ac_cv_path_EGREP" >&6; }
4981  EGREP="$ac_cv_path_EGREP"
4982
4983
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4985 $as_echo_n "checking for ANSI C header files... " >&6; }
4986 if ${ac_cv_header_stdc+:} false; then :
4987   $as_echo_n "(cached) " >&6
4988 else
4989   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4990 /* end confdefs.h.  */
4991 #include <stdlib.h>
4992 #include <stdarg.h>
4993 #include <string.h>
4994 #include <float.h>
4995
4996 int
4997 main ()
4998 {
4999
5000   ;
5001   return 0;
5002 }
5003 _ACEOF
5004 if ac_fn_c_try_compile "$LINENO"; then :
5005   ac_cv_header_stdc=yes
5006 else
5007   ac_cv_header_stdc=no
5008 fi
5009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5010
5011 if test $ac_cv_header_stdc = yes; then
5012   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5013   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5014 /* end confdefs.h.  */
5015 #include <string.h>
5016
5017 _ACEOF
5018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5019   $EGREP "memchr" >/dev/null 2>&1; then :
5020
5021 else
5022   ac_cv_header_stdc=no
5023 fi
5024 rm -f conftest*
5025
5026 fi
5027
5028 if test $ac_cv_header_stdc = yes; then
5029   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5030   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5031 /* end confdefs.h.  */
5032 #include <stdlib.h>
5033
5034 _ACEOF
5035 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5036   $EGREP "free" >/dev/null 2>&1; then :
5037
5038 else
5039   ac_cv_header_stdc=no
5040 fi
5041 rm -f conftest*
5042
5043 fi
5044
5045 if test $ac_cv_header_stdc = yes; then
5046   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5047   if test "$cross_compiling" = yes; then :
5048   :
5049 else
5050   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5051 /* end confdefs.h.  */
5052 #include <ctype.h>
5053 #include <stdlib.h>
5054 #if ((' ' & 0x0FF) == 0x020)
5055 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5056 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5057 #else
5058 # define ISLOWER(c) \
5059                    (('a' <= (c) && (c) <= 'i') \
5060                      || ('j' <= (c) && (c) <= 'r') \
5061                      || ('s' <= (c) && (c) <= 'z'))
5062 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5063 #endif
5064
5065 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5066 int
5067 main ()
5068 {
5069   int i;
5070   for (i = 0; i < 256; i++)
5071     if (XOR (islower (i), ISLOWER (i))
5072         || toupper (i) != TOUPPER (i))
5073       return 2;
5074   return 0;
5075 }
5076 _ACEOF
5077 if ac_fn_c_try_run "$LINENO"; then :
5078
5079 else
5080   ac_cv_header_stdc=no
5081 fi
5082 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5083   conftest.$ac_objext conftest.beam conftest.$ac_ext
5084 fi
5085
5086 fi
5087 fi
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5089 $as_echo "$ac_cv_header_stdc" >&6; }
5090 if test $ac_cv_header_stdc = yes; then
5091
5092 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5093
5094 fi
5095
5096 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5097 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5098                   inttypes.h stdint.h unistd.h
5099 do :
5100   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5101 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5102 "
5103 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5104   cat >>confdefs.h <<_ACEOF
5105 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5106 _ACEOF
5107
5108 fi
5109
5110 done
5111
5112
5113
5114   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5115 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5116   MINIX=yes
5117 else
5118   MINIX=
5119 fi
5120
5121
5122   if test "$MINIX" = yes; then
5123
5124 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5125
5126
5127 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5128
5129
5130 $as_echo "#define _MINIX 1" >>confdefs.h
5131
5132   fi
5133
5134
5135   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5136 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5137 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5138   $as_echo_n "(cached) " >&6
5139 else
5140   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5141 /* end confdefs.h.  */
5142
5143 #         define __EXTENSIONS__ 1
5144           $ac_includes_default
5145 int
5146 main ()
5147 {
5148
5149   ;
5150   return 0;
5151 }
5152 _ACEOF
5153 if ac_fn_c_try_compile "$LINENO"; then :
5154   ac_cv_safe_to_define___extensions__=yes
5155 else
5156   ac_cv_safe_to_define___extensions__=no
5157 fi
5158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5159 fi
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5161 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5162   test $ac_cv_safe_to_define___extensions__ = yes &&
5163     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5164
5165   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5166
5167   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5168
5169   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5170
5171   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5172
5173
5174
5175 # Taken from mpfr-4.0.1, then modified for LDADD_FOR_TESTS_KLUDGE
5176 case $host in
5177   *-*-linux*)
5178     if test -n "$LD_LIBRARY_PATH"; then
5179       saved_LDFLAGS="$LDFLAGS"
5180       LDADD_FOR_TESTS_KLUDGE="-Wl,--disable-new-dtags"
5181       LDFLAGS="$LDFLAGS $LDADD_FOR_TESTS_KLUDGE"
5182       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --disable-new-dtags is supported by the linker" >&5
5183 $as_echo_n "checking whether --disable-new-dtags is supported by the linker... " >&6; }
5184       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5185 /* end confdefs.h.  */
5186
5187 int main (void) { return 0; }
5188
5189 _ACEOF
5190 if ac_fn_c_try_link "$LINENO"; then :
5191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (use it since LD_LIBRARY_PATH is set)" >&5
5192 $as_echo "yes (use it since LD_LIBRARY_PATH is set)" >&6; }
5193 else
5194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5195 $as_echo "no" >&6; }
5196        LDADD_FOR_TESTS_KLUDGE=""
5197
5198 fi
5199 rm -f core conftest.err conftest.$ac_objext \
5200     conftest$ac_exeext conftest.$ac_ext
5201       LDFLAGS="$saved_LDFLAGS"
5202     fi
5203     ;;
5204 esac
5205
5206
5207
5208
5209 ac_ext=c
5210 ac_cpp='$CPP $CPPFLAGS'
5211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5214 if test -n "$ac_tool_prefix"; then
5215   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5216 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5218 $as_echo_n "checking for $ac_word... " >&6; }
5219 if ${ac_cv_prog_CC+:} false; then :
5220   $as_echo_n "(cached) " >&6
5221 else
5222   if test -n "$CC"; then
5223   ac_cv_prog_CC="$CC" # Let the user override the test.
5224 else
5225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5226 for as_dir in $PATH
5227 do
5228   IFS=$as_save_IFS
5229   test -z "$as_dir" && as_dir=.
5230     for ac_exec_ext in '' $ac_executable_extensions; do
5231   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5232     ac_cv_prog_CC="${ac_tool_prefix}gcc"
5233     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5234     break 2
5235   fi
5236 done
5237   done
5238 IFS=$as_save_IFS
5239
5240 fi
5241 fi
5242 CC=$ac_cv_prog_CC
5243 if test -n "$CC"; then
5244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5245 $as_echo "$CC" >&6; }
5246 else
5247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5248 $as_echo "no" >&6; }
5249 fi
5250
5251
5252 fi
5253 if test -z "$ac_cv_prog_CC"; then
5254   ac_ct_CC=$CC
5255   # Extract the first word of "gcc", so it can be a program name with args.
5256 set dummy gcc; ac_word=$2
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5258 $as_echo_n "checking for $ac_word... " >&6; }
5259 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5260   $as_echo_n "(cached) " >&6
5261 else
5262   if test -n "$ac_ct_CC"; then
5263   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5264 else
5265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5266 for as_dir in $PATH
5267 do
5268   IFS=$as_save_IFS
5269   test -z "$as_dir" && as_dir=.
5270     for ac_exec_ext in '' $ac_executable_extensions; do
5271   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5272     ac_cv_prog_ac_ct_CC="gcc"
5273     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5274     break 2
5275   fi
5276 done
5277   done
5278 IFS=$as_save_IFS
5279
5280 fi
5281 fi
5282 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5283 if test -n "$ac_ct_CC"; then
5284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5285 $as_echo "$ac_ct_CC" >&6; }
5286 else
5287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5288 $as_echo "no" >&6; }
5289 fi
5290
5291   if test "x$ac_ct_CC" = x; then
5292     CC=""
5293   else
5294     case $cross_compiling:$ac_tool_warned in
5295 yes:)
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5297 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5298 ac_tool_warned=yes ;;
5299 esac
5300     CC=$ac_ct_CC
5301   fi
5302 else
5303   CC="$ac_cv_prog_CC"
5304 fi
5305
5306 if test -z "$CC"; then
5307           if test -n "$ac_tool_prefix"; then
5308     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5309 set dummy ${ac_tool_prefix}cc; ac_word=$2
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5311 $as_echo_n "checking for $ac_word... " >&6; }
5312 if ${ac_cv_prog_CC+:} false; then :
5313   $as_echo_n "(cached) " >&6
5314 else
5315   if test -n "$CC"; then
5316   ac_cv_prog_CC="$CC" # Let the user override the test.
5317 else
5318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5319 for as_dir in $PATH
5320 do
5321   IFS=$as_save_IFS
5322   test -z "$as_dir" && as_dir=.
5323     for ac_exec_ext in '' $ac_executable_extensions; do
5324   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5325     ac_cv_prog_CC="${ac_tool_prefix}cc"
5326     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5327     break 2
5328   fi
5329 done
5330   done
5331 IFS=$as_save_IFS
5332
5333 fi
5334 fi
5335 CC=$ac_cv_prog_CC
5336 if test -n "$CC"; then
5337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5338 $as_echo "$CC" >&6; }
5339 else
5340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5341 $as_echo "no" >&6; }
5342 fi
5343
5344
5345   fi
5346 fi
5347 if test -z "$CC"; then
5348   # Extract the first word of "cc", so it can be a program name with args.
5349 set dummy cc; ac_word=$2
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5351 $as_echo_n "checking for $ac_word... " >&6; }
5352 if ${ac_cv_prog_CC+:} false; then :
5353   $as_echo_n "(cached) " >&6
5354 else
5355   if test -n "$CC"; then
5356   ac_cv_prog_CC="$CC" # Let the user override the test.
5357 else
5358   ac_prog_rejected=no
5359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5360 for as_dir in $PATH
5361 do
5362   IFS=$as_save_IFS
5363   test -z "$as_dir" && as_dir=.
5364     for ac_exec_ext in '' $ac_executable_extensions; do
5365   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5366     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5367        ac_prog_rejected=yes
5368        continue
5369      fi
5370     ac_cv_prog_CC="cc"
5371     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5372     break 2
5373   fi
5374 done
5375   done
5376 IFS=$as_save_IFS
5377
5378 if test $ac_prog_rejected = yes; then
5379   # We found a bogon in the path, so make sure we never use it.
5380   set dummy $ac_cv_prog_CC
5381   shift
5382   if test $# != 0; then
5383     # We chose a different compiler from the bogus one.
5384     # However, it has the same basename, so the bogon will be chosen
5385     # first if we set CC to just the basename; use the full file name.
5386     shift
5387     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5388   fi
5389 fi
5390 fi
5391 fi
5392 CC=$ac_cv_prog_CC
5393 if test -n "$CC"; then
5394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5395 $as_echo "$CC" >&6; }
5396 else
5397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5398 $as_echo "no" >&6; }
5399 fi
5400
5401
5402 fi
5403 if test -z "$CC"; then
5404   if test -n "$ac_tool_prefix"; then
5405   for ac_prog in cl.exe
5406   do
5407     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5408 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5410 $as_echo_n "checking for $ac_word... " >&6; }
5411 if ${ac_cv_prog_CC+:} false; then :
5412   $as_echo_n "(cached) " >&6
5413 else
5414   if test -n "$CC"; then
5415   ac_cv_prog_CC="$CC" # Let the user override the test.
5416 else
5417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5418 for as_dir in $PATH
5419 do
5420   IFS=$as_save_IFS
5421   test -z "$as_dir" && as_dir=.
5422     for ac_exec_ext in '' $ac_executable_extensions; do
5423   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5424     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5425     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5426     break 2
5427   fi
5428 done
5429   done
5430 IFS=$as_save_IFS
5431
5432 fi
5433 fi
5434 CC=$ac_cv_prog_CC
5435 if test -n "$CC"; then
5436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5437 $as_echo "$CC" >&6; }
5438 else
5439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5440 $as_echo "no" >&6; }
5441 fi
5442
5443
5444     test -n "$CC" && break
5445   done
5446 fi
5447 if test -z "$CC"; then
5448   ac_ct_CC=$CC
5449   for ac_prog in cl.exe
5450 do
5451   # Extract the first word of "$ac_prog", so it can be a program name with args.
5452 set dummy $ac_prog; ac_word=$2
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5454 $as_echo_n "checking for $ac_word... " >&6; }
5455 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5456   $as_echo_n "(cached) " >&6
5457 else
5458   if test -n "$ac_ct_CC"; then
5459   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5460 else
5461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5462 for as_dir in $PATH
5463 do
5464   IFS=$as_save_IFS
5465   test -z "$as_dir" && as_dir=.
5466     for ac_exec_ext in '' $ac_executable_extensions; do
5467   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5468     ac_cv_prog_ac_ct_CC="$ac_prog"
5469     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5470     break 2
5471   fi
5472 done
5473   done
5474 IFS=$as_save_IFS
5475
5476 fi
5477 fi
5478 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5479 if test -n "$ac_ct_CC"; then
5480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5481 $as_echo "$ac_ct_CC" >&6; }
5482 else
5483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5484 $as_echo "no" >&6; }
5485 fi
5486
5487
5488   test -n "$ac_ct_CC" && break
5489 done
5490
5491   if test "x$ac_ct_CC" = x; then
5492     CC=""
5493   else
5494     case $cross_compiling:$ac_tool_warned in
5495 yes:)
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5497 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5498 ac_tool_warned=yes ;;
5499 esac
5500     CC=$ac_ct_CC
5501   fi
5502 fi
5503
5504 fi
5505
5506
5507 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5508 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5509 as_fn_error $? "no acceptable C compiler found in \$PATH
5510 See \`config.log' for more details" "$LINENO" 5; }
5511
5512 # Provide some information about the compiler.
5513 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5514 set X $ac_compile
5515 ac_compiler=$2
5516 for ac_option in --version -v -V -qversion; do
5517   { { ac_try="$ac_compiler $ac_option >&5"
5518 case "(($ac_try" in
5519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5520   *) ac_try_echo=$ac_try;;
5521 esac
5522 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5523 $as_echo "$ac_try_echo"; } >&5
5524   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5525   ac_status=$?
5526   if test -s conftest.err; then
5527     sed '10a\
5528 ... rest of stderr output deleted ...
5529          10q' conftest.err >conftest.er1
5530     cat conftest.er1 >&5
5531   fi
5532   rm -f conftest.er1 conftest.err
5533   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5534   test $ac_status = 0; }
5535 done
5536
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5538 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5539 if ${ac_cv_c_compiler_gnu+:} false; then :
5540   $as_echo_n "(cached) " >&6
5541 else
5542   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5543 /* end confdefs.h.  */
5544
5545 int
5546 main ()
5547 {
5548 #ifndef __GNUC__
5549        choke me
5550 #endif
5551
5552   ;
5553   return 0;
5554 }
5555 _ACEOF
5556 if ac_fn_c_try_compile "$LINENO"; then :
5557   ac_compiler_gnu=yes
5558 else
5559   ac_compiler_gnu=no
5560 fi
5561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5562 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5563
5564 fi
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5566 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5567 if test $ac_compiler_gnu = yes; then
5568   GCC=yes
5569 else
5570   GCC=
5571 fi
5572 ac_test_CFLAGS=${CFLAGS+set}
5573 ac_save_CFLAGS=$CFLAGS
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5575 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5576 if ${ac_cv_prog_cc_g+:} false; then :
5577   $as_echo_n "(cached) " >&6
5578 else
5579   ac_save_c_werror_flag=$ac_c_werror_flag
5580    ac_c_werror_flag=yes
5581    ac_cv_prog_cc_g=no
5582    CFLAGS="-g"
5583    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5584 /* end confdefs.h.  */
5585
5586 int
5587 main ()
5588 {
5589
5590   ;
5591   return 0;
5592 }
5593 _ACEOF
5594 if ac_fn_c_try_compile "$LINENO"; then :
5595   ac_cv_prog_cc_g=yes
5596 else
5597   CFLAGS=""
5598       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5599 /* end confdefs.h.  */
5600
5601 int
5602 main ()
5603 {
5604
5605   ;
5606   return 0;
5607 }
5608 _ACEOF
5609 if ac_fn_c_try_compile "$LINENO"; then :
5610
5611 else
5612   ac_c_werror_flag=$ac_save_c_werror_flag
5613          CFLAGS="-g"
5614          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5615 /* end confdefs.h.  */
5616
5617 int
5618 main ()
5619 {
5620
5621   ;
5622   return 0;
5623 }
5624 _ACEOF
5625 if ac_fn_c_try_compile "$LINENO"; then :
5626   ac_cv_prog_cc_g=yes
5627 fi
5628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5629 fi
5630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5631 fi
5632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5633    ac_c_werror_flag=$ac_save_c_werror_flag
5634 fi
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5636 $as_echo "$ac_cv_prog_cc_g" >&6; }
5637 if test "$ac_test_CFLAGS" = set; then
5638   CFLAGS=$ac_save_CFLAGS
5639 elif test $ac_cv_prog_cc_g = yes; then
5640   if test "$GCC" = yes; then
5641     CFLAGS="-g -O2"
5642   else
5643     CFLAGS="-g"
5644   fi
5645 else
5646   if test "$GCC" = yes; then
5647     CFLAGS="-O2"
5648   else
5649     CFLAGS=
5650   fi
5651 fi
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5653 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5654 if ${ac_cv_prog_cc_c89+:} false; then :
5655   $as_echo_n "(cached) " >&6
5656 else
5657   ac_cv_prog_cc_c89=no
5658 ac_save_CC=$CC
5659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5660 /* end confdefs.h.  */
5661 #include <stdarg.h>
5662 #include <stdio.h>
5663 struct stat;
5664 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5665 struct buf { int x; };
5666 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5667 static char *e (p, i)
5668      char **p;
5669      int i;
5670 {
5671   return p[i];
5672 }
5673 static char *f (char * (*g) (char **, int), char **p, ...)
5674 {
5675   char *s;
5676   va_list v;
5677   va_start (v,p);
5678   s = g (p, va_arg (v,int));
5679   va_end (v);
5680   return s;
5681 }
5682
5683 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5684    function prototypes and stuff, but not '\xHH' hex character constants.
5685    These don't provoke an error unfortunately, instead are silently treated
5686    as 'x'.  The following induces an error, until -std is added to get
5687    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5688    array size at least.  It's necessary to write '\x00'==0 to get something
5689    that's true only with -std.  */
5690 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5691
5692 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5693    inside strings and character constants.  */
5694 #define FOO(x) 'x'
5695 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5696
5697 int test (int i, double x);
5698 struct s1 {int (*f) (int a);};
5699 struct s2 {int (*f) (double a);};
5700 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5701 int argc;
5702 char **argv;
5703 int
5704 main ()
5705 {
5706 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5707   ;
5708   return 0;
5709 }
5710 _ACEOF
5711 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5712         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5713 do
5714   CC="$ac_save_CC $ac_arg"
5715   if ac_fn_c_try_compile "$LINENO"; then :
5716   ac_cv_prog_cc_c89=$ac_arg
5717 fi
5718 rm -f core conftest.err conftest.$ac_objext
5719   test "x$ac_cv_prog_cc_c89" != "xno" && break
5720 done
5721 rm -f conftest.$ac_ext
5722 CC=$ac_save_CC
5723
5724 fi
5725 # AC_CACHE_VAL
5726 case "x$ac_cv_prog_cc_c89" in
5727   x)
5728     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5729 $as_echo "none needed" >&6; } ;;
5730   xno)
5731     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5732 $as_echo "unsupported" >&6; } ;;
5733   *)
5734     CC="$CC $ac_cv_prog_cc_c89"
5735     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5736 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5737 esac
5738 if test "x$ac_cv_prog_cc_c89" != xno; then :
5739
5740 fi
5741
5742 ac_ext=c
5743 ac_cpp='$CPP $CPPFLAGS'
5744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5747
5748 ac_ext=c
5749 ac_cpp='$CPP $CPPFLAGS'
5750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5754 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5755 if ${am_cv_prog_cc_c_o+:} false; then :
5756   $as_echo_n "(cached) " >&6
5757 else
5758   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5759 /* end confdefs.h.  */
5760
5761 int
5762 main ()
5763 {
5764
5765   ;
5766   return 0;
5767 }
5768 _ACEOF
5769   # Make sure it works both with $CC and with simple cc.
5770   # Following AC_PROG_CC_C_O, we do the test twice because some
5771   # compilers refuse to overwrite an existing .o file with -o,
5772   # though they will create one.
5773   am_cv_prog_cc_c_o=yes
5774   for am_i in 1 2; do
5775     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5776    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5777    ac_status=$?
5778    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779    (exit $ac_status); } \
5780          && test -f conftest2.$ac_objext; then
5781       : OK
5782     else
5783       am_cv_prog_cc_c_o=no
5784       break
5785     fi
5786   done
5787   rm -f core conftest*
5788   unset am_i
5789 fi
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5791 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5792 if test "$am_cv_prog_cc_c_o" != yes; then
5793    # Losing compiler, so override with the script.
5794    # FIXME: It is wrong to rewrite CC.
5795    # But if we don't then we get into trouble of one sort or another.
5796    # A longer-term fix would be to have automake use am__CC in this case,
5797    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5798    CC="$am_aux_dir/compile $CC"
5799 fi
5800 ac_ext=c
5801 ac_cpp='$CPP $CPPFLAGS'
5802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5805
5806
5807 depcc="$CC"   am_compiler_list=
5808
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5810 $as_echo_n "checking dependency style of $depcc... " >&6; }
5811 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5812   $as_echo_n "(cached) " >&6
5813 else
5814   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5815   # We make a subdir and do the tests there.  Otherwise we can end up
5816   # making bogus files that we don't know about and never remove.  For
5817   # instance it was reported that on HP-UX the gcc test will end up
5818   # making a dummy file named 'D' -- because '-MD' means "put the output
5819   # in D".
5820   rm -rf conftest.dir
5821   mkdir conftest.dir
5822   # Copy depcomp to subdir because otherwise we won't find it if we're
5823   # using a relative directory.
5824   cp "$am_depcomp" conftest.dir
5825   cd conftest.dir
5826   # We will build objects and dependencies in a subdirectory because
5827   # it helps to detect inapplicable dependency modes.  For instance
5828   # both Tru64's cc and ICC support -MD to output dependencies as a
5829   # side effect of compilation, but ICC will put the dependencies in
5830   # the current directory while Tru64 will put them in the object
5831   # directory.
5832   mkdir sub
5833
5834   am_cv_CC_dependencies_compiler_type=none
5835   if test "$am_compiler_list" = ""; then
5836      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5837   fi
5838   am__universal=false
5839   case " $depcc " in #(
5840      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5841      esac
5842
5843   for depmode in $am_compiler_list; do
5844     # Setup a source with many dependencies, because some compilers
5845     # like to wrap large dependency lists on column 80 (with \), and
5846     # we should not choose a depcomp mode which is confused by this.
5847     #
5848     # We need to recreate these files for each test, as the compiler may
5849     # overwrite some of them when testing with obscure command lines.
5850     # This happens at least with the AIX C compiler.
5851     : > sub/conftest.c
5852     for i in 1 2 3 4 5 6; do
5853       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5854       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5855       # Solaris 10 /bin/sh.
5856       echo '/* dummy */' > sub/conftst$i.h
5857     done
5858     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5859
5860     # We check with '-c' and '-o' for the sake of the "dashmstdout"
5861     # mode.  It turns out that the SunPro C++ compiler does not properly
5862     # handle '-M -o', and we need to detect this.  Also, some Intel
5863     # versions had trouble with output in subdirs.
5864     am__obj=sub/conftest.${OBJEXT-o}
5865     am__minus_obj="-o $am__obj"
5866     case $depmode in
5867     gcc)
5868       # This depmode causes a compiler race in universal mode.
5869       test "$am__universal" = false || continue
5870       ;;
5871     nosideeffect)
5872       # After this tag, mechanisms are not by side-effect, so they'll
5873       # only be used when explicitly requested.
5874       if test "x$enable_dependency_tracking" = xyes; then
5875         continue
5876       else
5877         break
5878       fi
5879       ;;
5880     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5881       # This compiler won't grok '-c -o', but also, the minuso test has
5882       # not run yet.  These depmodes are late enough in the game, and
5883       # so weak that their functioning should not be impacted.
5884       am__obj=conftest.${OBJEXT-o}
5885       am__minus_obj=
5886       ;;
5887     none) break ;;
5888     esac
5889     if depmode=$depmode \
5890        source=sub/conftest.c object=$am__obj \
5891        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5892        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5893          >/dev/null 2>conftest.err &&
5894        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5895        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5896        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5897        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5898       # icc doesn't choke on unknown options, it will just issue warnings
5899       # or remarks (even with -Werror).  So we grep stderr for any message
5900       # that says an option was ignored or not supported.
5901       # When given -MP, icc 7.0 and 7.1 complain thusly:
5902       #   icc: Command line warning: ignoring option '-M'; no argument required
5903       # The diagnosis changed in icc 8.0:
5904       #   icc: Command line remark: option '-MP' not supported
5905       if (grep 'ignoring option' conftest.err ||
5906           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5907         am_cv_CC_dependencies_compiler_type=$depmode
5908         break
5909       fi
5910     fi
5911   done
5912
5913   cd ..
5914   rm -rf conftest.dir
5915 else
5916   am_cv_CC_dependencies_compiler_type=none
5917 fi
5918
5919 fi
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5921 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5922 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5923
5924  if
5925   test "x$enable_dependency_tracking" != xno \
5926   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5927   am__fastdepCC_TRUE=
5928   am__fastdepCC_FALSE='#'
5929 else
5930   am__fastdepCC_TRUE='#'
5931   am__fastdepCC_FALSE=
5932 fi
5933
5934
5935 ac_ext=c
5936 ac_cpp='$CPP $CPPFLAGS'
5937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5941 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5942 # On Suns, sometimes $CPP names a directory.
5943 if test -n "$CPP" && test -d "$CPP"; then
5944   CPP=
5945 fi
5946 if test -z "$CPP"; then
5947   if ${ac_cv_prog_CPP+:} false; then :
5948   $as_echo_n "(cached) " >&6
5949 else
5950       # Double quotes because CPP needs to be expanded
5951     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5952     do
5953       ac_preproc_ok=false
5954 for ac_c_preproc_warn_flag in '' yes
5955 do
5956   # Use a header file that comes with gcc, so configuring glibc
5957   # with a fresh cross-compiler works.
5958   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5959   # <limits.h> exists even on freestanding compilers.
5960   # On the NeXT, cc -E runs the code through the compiler's parser,
5961   # not just through cpp. "Syntax error" is here to catch this case.
5962   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5963 /* end confdefs.h.  */
5964 #ifdef __STDC__
5965 # include <limits.h>
5966 #else
5967 # include <assert.h>
5968 #endif
5969                      Syntax error
5970 _ACEOF
5971 if ac_fn_c_try_cpp "$LINENO"; then :
5972
5973 else
5974   # Broken: fails on valid input.
5975 continue
5976 fi
5977 rm -f conftest.err conftest.i conftest.$ac_ext
5978
5979   # OK, works on sane cases.  Now check whether nonexistent headers
5980   # can be detected and how.
5981   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5982 /* end confdefs.h.  */
5983 #include <ac_nonexistent.h>
5984 _ACEOF
5985 if ac_fn_c_try_cpp "$LINENO"; then :
5986   # Broken: success on invalid input.
5987 continue
5988 else
5989   # Passes both tests.
5990 ac_preproc_ok=:
5991 break
5992 fi
5993 rm -f conftest.err conftest.i conftest.$ac_ext
5994
5995 done
5996 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5997 rm -f conftest.i conftest.err conftest.$ac_ext
5998 if $ac_preproc_ok; then :
5999   break
6000 fi
6001
6002     done
6003     ac_cv_prog_CPP=$CPP
6004
6005 fi
6006   CPP=$ac_cv_prog_CPP
6007 else
6008   ac_cv_prog_CPP=$CPP
6009 fi
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6011 $as_echo "$CPP" >&6; }
6012 ac_preproc_ok=false
6013 for ac_c_preproc_warn_flag in '' yes
6014 do
6015   # Use a header file that comes with gcc, so configuring glibc
6016   # with a fresh cross-compiler works.
6017   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6018   # <limits.h> exists even on freestanding compilers.
6019   # On the NeXT, cc -E runs the code through the compiler's parser,
6020   # not just through cpp. "Syntax error" is here to catch this case.
6021   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6022 /* end confdefs.h.  */
6023 #ifdef __STDC__
6024 # include <limits.h>
6025 #else
6026 # include <assert.h>
6027 #endif
6028                      Syntax error
6029 _ACEOF
6030 if ac_fn_c_try_cpp "$LINENO"; then :
6031
6032 else
6033   # Broken: fails on valid input.
6034 continue
6035 fi
6036 rm -f conftest.err conftest.i conftest.$ac_ext
6037
6038   # OK, works on sane cases.  Now check whether nonexistent headers
6039   # can be detected and how.
6040   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6041 /* end confdefs.h.  */
6042 #include <ac_nonexistent.h>
6043 _ACEOF
6044 if ac_fn_c_try_cpp "$LINENO"; then :
6045   # Broken: success on invalid input.
6046 continue
6047 else
6048   # Passes both tests.
6049 ac_preproc_ok=:
6050 break
6051 fi
6052 rm -f conftest.err conftest.i conftest.$ac_ext
6053
6054 done
6055 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6056 rm -f conftest.i conftest.err conftest.$ac_ext
6057 if $ac_preproc_ok; then :
6058
6059 else
6060   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6061 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6062 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6063 See \`config.log' for more details" "$LINENO" 5; }
6064 fi
6065
6066 ac_ext=c
6067 ac_cpp='$CPP $CPPFLAGS'
6068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6071
6072 ac_ext=cpp
6073 ac_cpp='$CXXCPP $CPPFLAGS'
6074 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6075 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6076 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6077 if test -z "$CXX"; then
6078   if test -n "$CCC"; then
6079     CXX=$CCC
6080   else
6081     if test -n "$ac_tool_prefix"; then
6082   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6083   do
6084     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6085 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6087 $as_echo_n "checking for $ac_word... " >&6; }
6088 if ${ac_cv_prog_CXX+:} false; then :
6089   $as_echo_n "(cached) " >&6
6090 else
6091   if test -n "$CXX"; then
6092   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6093 else
6094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6095 for as_dir in $PATH
6096 do
6097   IFS=$as_save_IFS
6098   test -z "$as_dir" && as_dir=.
6099     for ac_exec_ext in '' $ac_executable_extensions; do
6100   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6101     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6102     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6103     break 2
6104   fi
6105 done
6106   done
6107 IFS=$as_save_IFS
6108
6109 fi
6110 fi
6111 CXX=$ac_cv_prog_CXX
6112 if test -n "$CXX"; then
6113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6114 $as_echo "$CXX" >&6; }
6115 else
6116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6117 $as_echo "no" >&6; }
6118 fi
6119
6120
6121     test -n "$CXX" && break
6122   done
6123 fi
6124 if test -z "$CXX"; then
6125   ac_ct_CXX=$CXX
6126   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6127 do
6128   # Extract the first word of "$ac_prog", so it can be a program name with args.
6129 set dummy $ac_prog; ac_word=$2
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6131 $as_echo_n "checking for $ac_word... " >&6; }
6132 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
6133   $as_echo_n "(cached) " >&6
6134 else
6135   if test -n "$ac_ct_CXX"; then
6136   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6137 else
6138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6139 for as_dir in $PATH
6140 do
6141   IFS=$as_save_IFS
6142   test -z "$as_dir" && as_dir=.
6143     for ac_exec_ext in '' $ac_executable_extensions; do
6144   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6145     ac_cv_prog_ac_ct_CXX="$ac_prog"
6146     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6147     break 2
6148   fi
6149 done
6150   done
6151 IFS=$as_save_IFS
6152
6153 fi
6154 fi
6155 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6156 if test -n "$ac_ct_CXX"; then
6157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6158 $as_echo "$ac_ct_CXX" >&6; }
6159 else
6160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6161 $as_echo "no" >&6; }
6162 fi
6163
6164
6165   test -n "$ac_ct_CXX" && break
6166 done
6167
6168   if test "x$ac_ct_CXX" = x; then
6169     CXX="g++"
6170   else
6171     case $cross_compiling:$ac_tool_warned in
6172 yes:)
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6174 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6175 ac_tool_warned=yes ;;
6176 esac
6177     CXX=$ac_ct_CXX
6178   fi
6179 fi
6180
6181   fi
6182 fi
6183 # Provide some information about the compiler.
6184 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6185 set X $ac_compile
6186 ac_compiler=$2
6187 for ac_option in --version -v -V -qversion; do
6188   { { ac_try="$ac_compiler $ac_option >&5"
6189 case "(($ac_try" in
6190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6191   *) ac_try_echo=$ac_try;;
6192 esac
6193 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6194 $as_echo "$ac_try_echo"; } >&5
6195   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6196   ac_status=$?
6197   if test -s conftest.err; then
6198     sed '10a\
6199 ... rest of stderr output deleted ...
6200          10q' conftest.err >conftest.er1
6201     cat conftest.er1 >&5
6202   fi
6203   rm -f conftest.er1 conftest.err
6204   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6205   test $ac_status = 0; }
6206 done
6207
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6209 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6210 if ${ac_cv_cxx_compiler_gnu+:} false; then :
6211   $as_echo_n "(cached) " >&6
6212 else
6213   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6214 /* end confdefs.h.  */
6215
6216 int
6217 main ()
6218 {
6219 #ifndef __GNUC__
6220        choke me
6221 #endif
6222
6223   ;
6224   return 0;
6225 }
6226 _ACEOF
6227 if ac_fn_cxx_try_compile "$LINENO"; then :
6228   ac_compiler_gnu=yes
6229 else
6230   ac_compiler_gnu=no
6231 fi
6232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6233 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6234
6235 fi
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6237 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6238 if test $ac_compiler_gnu = yes; then
6239   GXX=yes
6240 else
6241   GXX=
6242 fi
6243 ac_test_CXXFLAGS=${CXXFLAGS+set}
6244 ac_save_CXXFLAGS=$CXXFLAGS
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6246 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
6247 if ${ac_cv_prog_cxx_g+:} false; then :
6248   $as_echo_n "(cached) " >&6
6249 else
6250   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6251    ac_cxx_werror_flag=yes
6252    ac_cv_prog_cxx_g=no
6253    CXXFLAGS="-g"
6254    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6255 /* end confdefs.h.  */
6256
6257 int
6258 main ()
6259 {
6260
6261   ;
6262   return 0;
6263 }
6264 _ACEOF
6265 if ac_fn_cxx_try_compile "$LINENO"; then :
6266   ac_cv_prog_cxx_g=yes
6267 else
6268   CXXFLAGS=""
6269       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6270 /* end confdefs.h.  */
6271
6272 int
6273 main ()
6274 {
6275
6276   ;
6277   return 0;
6278 }
6279 _ACEOF
6280 if ac_fn_cxx_try_compile "$LINENO"; then :
6281
6282 else
6283   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6284          CXXFLAGS="-g"
6285          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6286 /* end confdefs.h.  */
6287
6288 int
6289 main ()
6290 {
6291
6292   ;
6293   return 0;
6294 }
6295 _ACEOF
6296 if ac_fn_cxx_try_compile "$LINENO"; then :
6297   ac_cv_prog_cxx_g=yes
6298 fi
6299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6300 fi
6301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6302 fi
6303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6304    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6305 fi
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6307 $as_echo "$ac_cv_prog_cxx_g" >&6; }
6308 if test "$ac_test_CXXFLAGS" = set; then
6309   CXXFLAGS=$ac_save_CXXFLAGS
6310 elif test $ac_cv_prog_cxx_g = yes; then
6311   if test "$GXX" = yes; then
6312     CXXFLAGS="-g -O2"
6313   else
6314     CXXFLAGS="-g"
6315   fi
6316 else
6317   if test "$GXX" = yes; then
6318     CXXFLAGS="-O2"
6319   else
6320     CXXFLAGS=
6321   fi
6322 fi
6323 ac_ext=c
6324 ac_cpp='$CPP $CPPFLAGS'
6325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6328
6329 depcc="$CXX"  am_compiler_list=
6330
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6332 $as_echo_n "checking dependency style of $depcc... " >&6; }
6333 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
6334   $as_echo_n "(cached) " >&6
6335 else
6336   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6337   # We make a subdir and do the tests there.  Otherwise we can end up
6338   # making bogus files that we don't know about and never remove.  For
6339   # instance it was reported that on HP-UX the gcc test will end up
6340   # making a dummy file named 'D' -- because '-MD' means "put the output
6341   # in D".
6342   rm -rf conftest.dir
6343   mkdir conftest.dir
6344   # Copy depcomp to subdir because otherwise we won't find it if we're
6345   # using a relative directory.
6346   cp "$am_depcomp" conftest.dir
6347   cd conftest.dir
6348   # We will build objects and dependencies in a subdirectory because
6349   # it helps to detect inapplicable dependency modes.  For instance
6350   # both Tru64's cc and ICC support -MD to output dependencies as a
6351   # side effect of compilation, but ICC will put the dependencies in
6352   # the current directory while Tru64 will put them in the object
6353   # directory.
6354   mkdir sub
6355
6356   am_cv_CXX_dependencies_compiler_type=none
6357   if test "$am_compiler_list" = ""; then
6358      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6359   fi
6360   am__universal=false
6361   case " $depcc " in #(
6362      *\ -arch\ *\ -arch\ *) am__universal=true ;;
6363      esac
6364
6365   for depmode in $am_compiler_list; do
6366     # Setup a source with many dependencies, because some compilers
6367     # like to wrap large dependency lists on column 80 (with \), and
6368     # we should not choose a depcomp mode which is confused by this.
6369     #
6370     # We need to recreate these files for each test, as the compiler may
6371     # overwrite some of them when testing with obscure command lines.
6372     # This happens at least with the AIX C compiler.
6373     : > sub/conftest.c
6374     for i in 1 2 3 4 5 6; do
6375       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6376       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6377       # Solaris 10 /bin/sh.
6378       echo '/* dummy */' > sub/conftst$i.h
6379     done
6380     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6381
6382     # We check with '-c' and '-o' for the sake of the "dashmstdout"
6383     # mode.  It turns out that the SunPro C++ compiler does not properly
6384     # handle '-M -o', and we need to detect this.  Also, some Intel
6385     # versions had trouble with output in subdirs.
6386     am__obj=sub/conftest.${OBJEXT-o}
6387     am__minus_obj="-o $am__obj"
6388     case $depmode in
6389     gcc)
6390       # This depmode causes a compiler race in universal mode.
6391       test "$am__universal" = false || continue
6392       ;;
6393     nosideeffect)
6394       # After this tag, mechanisms are not by side-effect, so they'll
6395       # only be used when explicitly requested.
6396       if test "x$enable_dependency_tracking" = xyes; then
6397         continue
6398       else
6399         break
6400       fi
6401       ;;
6402     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6403       # This compiler won't grok '-c -o', but also, the minuso test has
6404       # not run yet.  These depmodes are late enough in the game, and
6405       # so weak that their functioning should not be impacted.
6406       am__obj=conftest.${OBJEXT-o}
6407       am__minus_obj=
6408       ;;
6409     none) break ;;
6410     esac
6411     if depmode=$depmode \
6412        source=sub/conftest.c object=$am__obj \
6413        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6414        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6415          >/dev/null 2>conftest.err &&
6416        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6417        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6418        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6419        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6420       # icc doesn't choke on unknown options, it will just issue warnings
6421       # or remarks (even with -Werror).  So we grep stderr for any message
6422       # that says an option was ignored or not supported.
6423       # When given -MP, icc 7.0 and 7.1 complain thusly:
6424       #   icc: Command line warning: ignoring option '-M'; no argument required
6425       # The diagnosis changed in icc 8.0:
6426       #   icc: Command line remark: option '-MP' not supported
6427       if (grep 'ignoring option' conftest.err ||
6428           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6429         am_cv_CXX_dependencies_compiler_type=$depmode
6430         break
6431       fi
6432     fi
6433   done
6434
6435   cd ..
6436   rm -rf conftest.dir
6437 else
6438   am_cv_CXX_dependencies_compiler_type=none
6439 fi
6440
6441 fi
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6443 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6444 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6445
6446  if
6447   test "x$enable_dependency_tracking" != xno \
6448   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6449   am__fastdepCXX_TRUE=
6450   am__fastdepCXX_FALSE='#'
6451 else
6452   am__fastdepCXX_TRUE='#'
6453   am__fastdepCXX_FALSE=
6454 fi
6455
6456
6457
6458 # Note: A suitable gitlog-to-changelog script can be found in GnuPG master.
6459 for ac_prog in gitlog-to-changelog
6460 do
6461   # Extract the first word of "$ac_prog", so it can be a program name with args.
6462 set dummy $ac_prog; ac_word=$2
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6464 $as_echo_n "checking for $ac_word... " >&6; }
6465 if ${ac_cv_prog_GITLOG_TO_CHANGELOG+:} false; then :
6466   $as_echo_n "(cached) " >&6
6467 else
6468   if test -n "$GITLOG_TO_CHANGELOG"; then
6469   ac_cv_prog_GITLOG_TO_CHANGELOG="$GITLOG_TO_CHANGELOG" # Let the user override the test.
6470 else
6471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6472 for as_dir in $PATH
6473 do
6474   IFS=$as_save_IFS
6475   test -z "$as_dir" && as_dir=.
6476     for ac_exec_ext in '' $ac_executable_extensions; do
6477   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6478     ac_cv_prog_GITLOG_TO_CHANGELOG="$ac_prog"
6479     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6480     break 2
6481   fi
6482 done
6483   done
6484 IFS=$as_save_IFS
6485
6486 fi
6487 fi
6488 GITLOG_TO_CHANGELOG=$ac_cv_prog_GITLOG_TO_CHANGELOG
6489 if test -n "$GITLOG_TO_CHANGELOG"; then
6490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GITLOG_TO_CHANGELOG" >&5
6491 $as_echo "$GITLOG_TO_CHANGELOG" >&6; }
6492 else
6493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6494 $as_echo "no" >&6; }
6495 fi
6496
6497
6498   test -n "$GITLOG_TO_CHANGELOG" && break
6499 done
6500 test -n "$GITLOG_TO_CHANGELOG" || GITLOG_TO_CHANGELOG="gitlog-to-changelog"
6501
6502
6503
6504
6505
6506
6507 VERSION_NUMBER=0x010f01
6508
6509
6510 # We need to compile and run a program on the build machine.  A
6511 # comment in libgpg-error says that the AC_PROG_CC_FOR_BUILD macro in
6512 # the AC archive is broken for autoconf 2.57.  Given that there is no
6513 # newer version of that macro, we assume that it is also broken for
6514 # autoconf 2.61 and thus we use a simple but usually sufficient
6515 # approach.
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc for build" >&5
6517 $as_echo_n "checking for cc for build... " >&6; }
6518 if test "$cross_compiling" = "yes"; then
6519   CC_FOR_BUILD="${CC_FOR_BUILD-cc}"
6520 else
6521   CC_FOR_BUILD="${CC_FOR_BUILD-$CC}"
6522 fi
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
6524 $as_echo "$CC_FOR_BUILD" >&6; }
6525
6526
6527
6528 # Don't default to build static libs.
6529
6530 case `pwd` in
6531   *\ * | *\     *)
6532     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6533 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6534 esac
6535
6536
6537
6538 macro_version='2.4.2'
6539 macro_revision='1.3337'
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553 ltmain="$ac_aux_dir/ltmain.sh"
6554
6555 # Backslashify metacharacters that are still active within
6556 # double-quoted strings.
6557 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6558
6559 # Same as above, but do not quote variable references.
6560 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6561
6562 # Sed substitution to delay expansion of an escaped shell variable in a
6563 # double_quote_subst'ed string.
6564 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6565
6566 # Sed substitution to delay expansion of an escaped single quote.
6567 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6568
6569 # Sed substitution to avoid accidental globbing in evaled expressions
6570 no_glob_subst='s/\*/\\\*/g'
6571
6572 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6573 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6574 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6575
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6577 $as_echo_n "checking how to print strings... " >&6; }
6578 # Test print first, because it will be a builtin if present.
6579 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6580    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6581   ECHO='print -r --'
6582 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6583   ECHO='printf %s\n'
6584 else
6585   # Use this function as a fallback that always works.
6586   func_fallback_echo ()
6587   {
6588     eval 'cat <<_LTECHO_EOF
6589 $1
6590 _LTECHO_EOF'
6591   }
6592   ECHO='func_fallback_echo'
6593 fi
6594
6595 # func_echo_all arg...
6596 # Invoke $ECHO with all args, space-separated.
6597 func_echo_all ()
6598 {
6599     $ECHO ""
6600 }
6601
6602 case "$ECHO" in
6603   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6604 $as_echo "printf" >&6; } ;;
6605   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6606 $as_echo "print -r" >&6; } ;;
6607   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6608 $as_echo "cat" >&6; } ;;
6609 esac
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6625 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6626 if ${ac_cv_path_SED+:} false; then :
6627   $as_echo_n "(cached) " >&6
6628 else
6629             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6630      for ac_i in 1 2 3 4 5 6 7; do
6631        ac_script="$ac_script$as_nl$ac_script"
6632      done
6633      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6634      { ac_script=; unset ac_script;}
6635      if test -z "$SED"; then
6636   ac_path_SED_found=false
6637   # Loop through the user's path and test for each of PROGNAME-LIST
6638   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6639 for as_dir in $PATH
6640 do
6641   IFS=$as_save_IFS
6642   test -z "$as_dir" && as_dir=.
6643     for ac_prog in sed gsed; do
6644     for ac_exec_ext in '' $ac_executable_extensions; do
6645       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6646       as_fn_executable_p "$ac_path_SED" || continue
6647 # Check for GNU ac_path_SED and select it if it is found.
6648   # Check for GNU $ac_path_SED
6649 case `"$ac_path_SED" --version 2>&1` in
6650 *GNU*)
6651   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6652 *)
6653   ac_count=0
6654   $as_echo_n 0123456789 >"conftest.in"
6655   while :
6656   do
6657     cat "conftest.in" "conftest.in" >"conftest.tmp"
6658     mv "conftest.tmp" "conftest.in"
6659     cp "conftest.in" "conftest.nl"
6660     $as_echo '' >> "conftest.nl"
6661     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6662     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6663     as_fn_arith $ac_count + 1 && ac_count=$as_val
6664     if test $ac_count -gt ${ac_path_SED_max-0}; then
6665       # Best one so far, save it but keep looking for a better one
6666       ac_cv_path_SED="$ac_path_SED"
6667       ac_path_SED_max=$ac_count
6668     fi
6669     # 10*(2^10) chars as input seems more than enough
6670     test $ac_count -gt 10 && break
6671   done
6672   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6673 esac
6674
6675       $ac_path_SED_found && break 3
6676     done
6677   done
6678   done
6679 IFS=$as_save_IFS
6680   if test -z "$ac_cv_path_SED"; then
6681     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6682   fi
6683 else
6684   ac_cv_path_SED=$SED
6685 fi
6686
6687 fi
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6689 $as_echo "$ac_cv_path_SED" >&6; }
6690  SED="$ac_cv_path_SED"
6691   rm -f conftest.sed
6692
6693 test -z "$SED" && SED=sed
6694 Xsed="$SED -e 1s/^X//"
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6707 $as_echo_n "checking for fgrep... " >&6; }
6708 if ${ac_cv_path_FGREP+:} false; then :
6709   $as_echo_n "(cached) " >&6
6710 else
6711   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6712    then ac_cv_path_FGREP="$GREP -F"
6713    else
6714      if test -z "$FGREP"; then
6715   ac_path_FGREP_found=false
6716   # Loop through the user's path and test for each of PROGNAME-LIST
6717   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6718 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6719 do
6720   IFS=$as_save_IFS
6721   test -z "$as_dir" && as_dir=.
6722     for ac_prog in fgrep; do
6723     for ac_exec_ext in '' $ac_executable_extensions; do
6724       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6725       as_fn_executable_p "$ac_path_FGREP" || continue
6726 # Check for GNU ac_path_FGREP and select it if it is found.
6727   # Check for GNU $ac_path_FGREP
6728 case `"$ac_path_FGREP" --version 2>&1` in
6729 *GNU*)
6730   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6731 *)
6732   ac_count=0
6733   $as_echo_n 0123456789 >"conftest.in"
6734   while :
6735   do
6736     cat "conftest.in" "conftest.in" >"conftest.tmp"
6737     mv "conftest.tmp" "conftest.in"
6738     cp "conftest.in" "conftest.nl"
6739     $as_echo 'FGREP' >> "conftest.nl"
6740     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6741     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6742     as_fn_arith $ac_count + 1 && ac_count=$as_val
6743     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6744       # Best one so far, save it but keep looking for a better one
6745       ac_cv_path_FGREP="$ac_path_FGREP"
6746       ac_path_FGREP_max=$ac_count
6747     fi
6748     # 10*(2^10) chars as input seems more than enough
6749     test $ac_count -gt 10 && break
6750   done
6751   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6752 esac
6753
6754       $ac_path_FGREP_found && break 3
6755     done
6756   done
6757   done
6758 IFS=$as_save_IFS
6759   if test -z "$ac_cv_path_FGREP"; then
6760     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6761   fi
6762 else
6763   ac_cv_path_FGREP=$FGREP
6764 fi
6765
6766    fi
6767 fi
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6769 $as_echo "$ac_cv_path_FGREP" >&6; }
6770  FGREP="$ac_cv_path_FGREP"
6771
6772
6773 test -z "$GREP" && GREP=grep
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793 # Check whether --with-gnu-ld was given.
6794 if test "${with_gnu_ld+set}" = set; then :
6795   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6796 else
6797   with_gnu_ld=no
6798 fi
6799
6800 ac_prog=ld
6801 if test "$GCC" = yes; then
6802   # Check if gcc -print-prog-name=ld gives a path.
6803   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6804 $as_echo_n "checking for ld used by $CC... " >&6; }
6805   case $host in
6806   *-*-mingw*)
6807     # gcc leaves a trailing carriage return which upsets mingw
6808     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6809   *)
6810     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6811   esac
6812   case $ac_prog in
6813     # Accept absolute paths.
6814     [\\/]* | ?:[\\/]*)
6815       re_direlt='/[^/][^/]*/\.\./'
6816       # Canonicalize the pathname of ld
6817       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6818       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6819         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6820       done
6821       test -z "$LD" && LD="$ac_prog"
6822       ;;
6823   "")
6824     # If it fails, then pretend we aren't using GCC.
6825     ac_prog=ld
6826     ;;
6827   *)
6828     # If it is relative, then search for the first ld in PATH.
6829     with_gnu_ld=unknown
6830     ;;
6831   esac
6832 elif test "$with_gnu_ld" = yes; then
6833   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6834 $as_echo_n "checking for GNU ld... " >&6; }
6835 else
6836   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6837 $as_echo_n "checking for non-GNU ld... " >&6; }
6838 fi
6839 if ${lt_cv_path_LD+:} false; then :
6840   $as_echo_n "(cached) " >&6
6841 else
6842   if test -z "$LD"; then
6843   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6844   for ac_dir in $PATH; do
6845     IFS="$lt_save_ifs"
6846     test -z "$ac_dir" && ac_dir=.
6847     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6848       lt_cv_path_LD="$ac_dir/$ac_prog"
6849       # Check to see if the program is GNU ld.  I'd rather use --version,
6850       # but apparently some variants of GNU ld only accept -v.
6851       # Break only if it was the GNU/non-GNU ld that we prefer.
6852       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6853       *GNU* | *'with BFD'*)
6854         test "$with_gnu_ld" != no && break
6855         ;;
6856       *)
6857         test "$with_gnu_ld" != yes && break
6858         ;;
6859       esac
6860     fi
6861   done
6862   IFS="$lt_save_ifs"
6863 else
6864   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6865 fi
6866 fi
6867
6868 LD="$lt_cv_path_LD"
6869 if test -n "$LD"; then
6870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6871 $as_echo "$LD" >&6; }
6872 else
6873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6874 $as_echo "no" >&6; }
6875 fi
6876 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6878 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6879 if ${lt_cv_prog_gnu_ld+:} false; then :
6880   $as_echo_n "(cached) " >&6
6881 else
6882   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6883 case `$LD -v 2>&1 </dev/null` in
6884 *GNU* | *'with BFD'*)
6885   lt_cv_prog_gnu_ld=yes
6886   ;;
6887 *)
6888   lt_cv_prog_gnu_ld=no
6889   ;;
6890 esac
6891 fi
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6893 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6894 with_gnu_ld=$lt_cv_prog_gnu_ld
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6905 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6906 if ${lt_cv_path_NM+:} false; then :
6907   $as_echo_n "(cached) " >&6
6908 else
6909   if test -n "$NM"; then
6910   # Let the user override the test.
6911   lt_cv_path_NM="$NM"
6912 else
6913   lt_nm_to_check="${ac_tool_prefix}nm"
6914   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6915     lt_nm_to_check="$lt_nm_to_check nm"
6916   fi
6917   for lt_tmp_nm in $lt_nm_to_check; do
6918     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6919     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6920       IFS="$lt_save_ifs"
6921       test -z "$ac_dir" && ac_dir=.
6922       tmp_nm="$ac_dir/$lt_tmp_nm"
6923       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6924         # Check to see if the nm accepts a BSD-compat flag.
6925         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6926         #   nm: unknown option "B" ignored
6927         # Tru64's nm complains that /dev/null is an invalid object file
6928         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6929         */dev/null* | *'Invalid file or object type'*)
6930           lt_cv_path_NM="$tmp_nm -B"
6931           break
6932           ;;
6933         *)
6934           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6935           */dev/null*)
6936             lt_cv_path_NM="$tmp_nm -p"
6937             break
6938             ;;
6939           *)
6940             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6941             continue # so that we can try to find one that supports BSD flags
6942             ;;
6943           esac
6944           ;;
6945         esac
6946       fi
6947     done
6948     IFS="$lt_save_ifs"
6949   done
6950   : ${lt_cv_path_NM=no}
6951 fi
6952 fi
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6954 $as_echo "$lt_cv_path_NM" >&6; }
6955 if test "$lt_cv_path_NM" != "no"; then
6956   NM="$lt_cv_path_NM"
6957 else
6958   # Didn't find any BSD compatible name lister, look for dumpbin.
6959   if test -n "$DUMPBIN"; then :
6960     # Let the user override the test.
6961   else
6962     if test -n "$ac_tool_prefix"; then
6963   for ac_prog in dumpbin "link -dump"
6964   do
6965     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6966 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6968 $as_echo_n "checking for $ac_word... " >&6; }
6969 if ${ac_cv_prog_DUMPBIN+:} false; then :
6970   $as_echo_n "(cached) " >&6
6971 else
6972   if test -n "$DUMPBIN"; then
6973   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6974 else
6975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6976 for as_dir in $PATH
6977 do
6978   IFS=$as_save_IFS
6979   test -z "$as_dir" && as_dir=.
6980     for ac_exec_ext in '' $ac_executable_extensions; do
6981   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6982     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6983     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6984     break 2
6985   fi
6986 done
6987   done
6988 IFS=$as_save_IFS
6989
6990 fi
6991 fi
6992 DUMPBIN=$ac_cv_prog_DUMPBIN
6993 if test -n "$DUMPBIN"; then
6994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6995 $as_echo "$DUMPBIN" >&6; }
6996 else
6997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6998 $as_echo "no" >&6; }
6999 fi
7000
7001
7002     test -n "$DUMPBIN" && break
7003   done
7004 fi
7005 if test -z "$DUMPBIN"; then
7006   ac_ct_DUMPBIN=$DUMPBIN
7007   for ac_prog in dumpbin "link -dump"
7008 do
7009   # Extract the first word of "$ac_prog", so it can be a program name with args.
7010 set dummy $ac_prog; ac_word=$2
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7012 $as_echo_n "checking for $ac_word... " >&6; }
7013 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7014   $as_echo_n "(cached) " >&6
7015 else
7016   if test -n "$ac_ct_DUMPBIN"; then
7017   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7018 else
7019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7020 for as_dir in $PATH
7021 do
7022   IFS=$as_save_IFS
7023   test -z "$as_dir" && as_dir=.
7024     for ac_exec_ext in '' $ac_executable_extensions; do
7025   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7026     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7027     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7028     break 2
7029   fi
7030 done
7031   done
7032 IFS=$as_save_IFS
7033
7034 fi
7035 fi
7036 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7037 if test -n "$ac_ct_DUMPBIN"; then
7038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7039 $as_echo "$ac_ct_DUMPBIN" >&6; }
7040 else
7041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7042 $as_echo "no" >&6; }
7043 fi
7044
7045
7046   test -n "$ac_ct_DUMPBIN" && break
7047 done
7048
7049   if test "x$ac_ct_DUMPBIN" = x; then
7050     DUMPBIN=":"
7051   else
7052     case $cross_compiling:$ac_tool_warned in
7053 yes:)
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7055 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7056 ac_tool_warned=yes ;;
7057 esac
7058     DUMPBIN=$ac_ct_DUMPBIN
7059   fi
7060 fi
7061
7062     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7063     *COFF*)
7064       DUMPBIN="$DUMPBIN -symbols"
7065       ;;
7066     *)
7067       DUMPBIN=:
7068       ;;
7069     esac
7070   fi
7071
7072   if test "$DUMPBIN" != ":"; then
7073     NM="$DUMPBIN"
7074   fi
7075 fi
7076 test -z "$NM" && NM=nm
7077
7078
7079
7080
7081
7082
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7084 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7085 if ${lt_cv_nm_interface+:} false; then :
7086   $as_echo_n "(cached) " >&6
7087 else
7088   lt_cv_nm_interface="BSD nm"
7089   echo "int some_variable = 0;" > conftest.$ac_ext
7090   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7091   (eval "$ac_compile" 2>conftest.err)
7092   cat conftest.err >&5
7093   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7094   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7095   cat conftest.err >&5
7096   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7097   cat conftest.out >&5
7098   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7099     lt_cv_nm_interface="MS dumpbin"
7100   fi
7101   rm -f conftest*
7102 fi
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7104 $as_echo "$lt_cv_nm_interface" >&6; }
7105
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7107 $as_echo_n "checking whether ln -s works... " >&6; }
7108 LN_S=$as_ln_s
7109 if test "$LN_S" = "ln -s"; then
7110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7111 $as_echo "yes" >&6; }
7112 else
7113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7114 $as_echo "no, using $LN_S" >&6; }
7115 fi
7116
7117 # find the maximum length of command line arguments
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7119 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7120 if ${lt_cv_sys_max_cmd_len+:} false; then :
7121   $as_echo_n "(cached) " >&6
7122 else
7123     i=0
7124   teststring="ABCD"
7125
7126   case $build_os in
7127   msdosdjgpp*)
7128     # On DJGPP, this test can blow up pretty badly due to problems in libc
7129     # (any single argument exceeding 2000 bytes causes a buffer overrun
7130     # during glob expansion).  Even if it were fixed, the result of this
7131     # check would be larger than it should be.
7132     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7133     ;;
7134
7135   gnu*)
7136     # Under GNU Hurd, this test is not required because there is
7137     # no limit to the length of command line arguments.
7138     # Libtool will interpret -1 as no limit whatsoever
7139     lt_cv_sys_max_cmd_len=-1;
7140     ;;
7141
7142   cygwin* | mingw* | cegcc*)
7143     # On Win9x/ME, this test blows up -- it succeeds, but takes
7144     # about 5 minutes as the teststring grows exponentially.
7145     # Worse, since 9x/ME are not pre-emptively multitasking,
7146     # you end up with a "frozen" computer, even though with patience
7147     # the test eventually succeeds (with a max line length of 256k).
7148     # Instead, let's just punt: use the minimum linelength reported by
7149     # all of the supported platforms: 8192 (on NT/2K/XP).
7150     lt_cv_sys_max_cmd_len=8192;
7151     ;;
7152
7153   mint*)
7154     # On MiNT this can take a long time and run out of memory.
7155     lt_cv_sys_max_cmd_len=8192;
7156     ;;
7157
7158   amigaos*)
7159     # On AmigaOS with pdksh, this test takes hours, literally.
7160     # So we just punt and use a minimum line length of 8192.
7161     lt_cv_sys_max_cmd_len=8192;
7162     ;;
7163
7164   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7165     # This has been around since 386BSD, at least.  Likely further.
7166     if test -x /sbin/sysctl; then
7167       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7168     elif test -x /usr/sbin/sysctl; then
7169       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7170     else
7171       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7172     fi
7173     # And add a safety zone
7174     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7175     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7176     ;;
7177
7178   interix*)
7179     # We know the value 262144 and hardcode it with a safety zone (like BSD)
7180     lt_cv_sys_max_cmd_len=196608
7181     ;;
7182
7183   os2*)
7184     # The test takes a long time on OS/2.
7185     lt_cv_sys_max_cmd_len=8192
7186     ;;
7187
7188   osf*)
7189     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7190     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7191     # nice to cause kernel panics so lets avoid the loop below.
7192     # First set a reasonable default.
7193     lt_cv_sys_max_cmd_len=16384
7194     #
7195     if test -x /sbin/sysconfig; then
7196       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7197         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7198       esac
7199     fi
7200     ;;
7201   sco3.2v5*)
7202     lt_cv_sys_max_cmd_len=102400
7203     ;;
7204   sysv5* | sco5v6* | sysv4.2uw2*)
7205     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7206     if test -n "$kargmax"; then
7207       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
7208     else
7209       lt_cv_sys_max_cmd_len=32768
7210     fi
7211     ;;
7212   *)
7213     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7214     if test -n "$lt_cv_sys_max_cmd_len"; then
7215       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7216       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7217     else
7218       # Make teststring a little bigger before we do anything with it.
7219       # a 1K string should be a reasonable start.
7220       for i in 1 2 3 4 5 6 7 8 ; do
7221         teststring=$teststring$teststring
7222       done
7223       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7224       # If test is not a shell built-in, we'll probably end up computing a
7225       # maximum length that is only half of the actual maximum length, but
7226       # we can't tell.
7227       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
7228                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7229               test $i != 17 # 1/2 MB should be enough
7230       do
7231         i=`expr $i + 1`
7232         teststring=$teststring$teststring
7233       done
7234       # Only check the string length outside the loop.
7235       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7236       teststring=
7237       # Add a significant safety factor because C++ compilers can tack on
7238       # massive amounts of additional arguments before passing them to the
7239       # linker.  It appears as though 1/2 is a usable value.
7240       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7241     fi
7242     ;;
7243   esac
7244
7245 fi
7246
7247 if test -n $lt_cv_sys_max_cmd_len ; then
7248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7249 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7250 else
7251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7252 $as_echo "none" >&6; }
7253 fi
7254 max_cmd_len=$lt_cv_sys_max_cmd_len
7255
7256
7257
7258
7259
7260
7261 : ${CP="cp -f"}
7262 : ${MV="mv -f"}
7263 : ${RM="rm -f"}
7264
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7266 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7267 # Try some XSI features
7268 xsi_shell=no
7269 ( _lt_dummy="a/b/c"
7270   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7271       = c,a/b,b/c, \
7272     && eval 'test $(( 1 + 1 )) -eq 2 \
7273     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7274   && xsi_shell=yes
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7276 $as_echo "$xsi_shell" >&6; }
7277
7278
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7280 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7281 lt_shell_append=no
7282 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7283     >/dev/null 2>&1 \
7284   && lt_shell_append=yes
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7286 $as_echo "$lt_shell_append" >&6; }
7287
7288
7289 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7290   lt_unset=unset
7291 else
7292   lt_unset=false
7293 fi
7294
7295
7296
7297
7298
7299 # test EBCDIC or ASCII
7300 case `echo X|tr X '\101'` in
7301  A) # ASCII based system
7302     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7303   lt_SP2NL='tr \040 \012'
7304   lt_NL2SP='tr \015\012 \040\040'
7305   ;;
7306  *) # EBCDIC based system
7307   lt_SP2NL='tr \100 \n'
7308   lt_NL2SP='tr \r\n \100\100'
7309   ;;
7310 esac
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7321 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7322 if ${lt_cv_to_host_file_cmd+:} false; then :
7323   $as_echo_n "(cached) " >&6
7324 else
7325   case $host in
7326   *-*-mingw* )
7327     case $build in
7328       *-*-mingw* ) # actually msys
7329         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7330         ;;
7331       *-*-cygwin* )
7332         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7333         ;;
7334       * ) # otherwise, assume *nix
7335         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7336         ;;
7337     esac
7338     ;;
7339   *-*-cygwin* )
7340     case $build in
7341       *-*-mingw* ) # actually msys
7342         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7343         ;;
7344       *-*-cygwin* )
7345         lt_cv_to_host_file_cmd=func_convert_file_noop
7346         ;;
7347       * ) # otherwise, assume *nix
7348         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7349         ;;
7350     esac
7351     ;;
7352   * ) # unhandled hosts (and "normal" native builds)
7353     lt_cv_to_host_file_cmd=func_convert_file_noop
7354     ;;
7355 esac
7356
7357 fi
7358
7359 to_host_file_cmd=$lt_cv_to_host_file_cmd
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7361 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7362
7363
7364
7365
7366
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7368 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7369 if ${lt_cv_to_tool_file_cmd+:} false; then :
7370   $as_echo_n "(cached) " >&6
7371 else
7372   #assume ordinary cross tools, or native build.
7373 lt_cv_to_tool_file_cmd=func_convert_file_noop
7374 case $host in
7375   *-*-mingw* )
7376     case $build in
7377       *-*-mingw* ) # actually msys
7378         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7379         ;;
7380     esac
7381     ;;
7382 esac
7383
7384 fi
7385
7386 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7388 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7389
7390
7391
7392
7393
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7395 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7396 if ${lt_cv_ld_reload_flag+:} false; then :
7397   $as_echo_n "(cached) " >&6
7398 else
7399   lt_cv_ld_reload_flag='-r'
7400 fi
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7402 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7403 reload_flag=$lt_cv_ld_reload_flag
7404 case $reload_flag in
7405 "" | " "*) ;;
7406 *) reload_flag=" $reload_flag" ;;
7407 esac
7408 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7409 case $host_os in
7410   cygwin* | mingw* | pw32* | cegcc*)
7411     if test "$GCC" != yes; then
7412       reload_cmds=false
7413     fi
7414     ;;
7415   darwin*)
7416     if test "$GCC" = yes; then
7417       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7418     else
7419       reload_cmds='$LD$reload_flag -o $output$reload_objs'
7420     fi
7421     ;;
7422 esac
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432 if test -n "$ac_tool_prefix"; then
7433   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7434 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7436 $as_echo_n "checking for $ac_word... " >&6; }
7437 if ${ac_cv_prog_OBJDUMP+:} false; then :
7438   $as_echo_n "(cached) " >&6
7439 else
7440   if test -n "$OBJDUMP"; then
7441   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7442 else
7443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7444 for as_dir in $PATH
7445 do
7446   IFS=$as_save_IFS
7447   test -z "$as_dir" && as_dir=.
7448     for ac_exec_ext in '' $ac_executable_extensions; do
7449   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7450     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7451     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7452     break 2
7453   fi
7454 done
7455   done
7456 IFS=$as_save_IFS
7457
7458 fi
7459 fi
7460 OBJDUMP=$ac_cv_prog_OBJDUMP
7461 if test -n "$OBJDUMP"; then
7462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7463 $as_echo "$OBJDUMP" >&6; }
7464 else
7465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7466 $as_echo "no" >&6; }
7467 fi
7468
7469
7470 fi
7471 if test -z "$ac_cv_prog_OBJDUMP"; then
7472   ac_ct_OBJDUMP=$OBJDUMP
7473   # Extract the first word of "objdump", so it can be a program name with args.
7474 set dummy objdump; ac_word=$2
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7476 $as_echo_n "checking for $ac_word... " >&6; }
7477 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7478   $as_echo_n "(cached) " >&6
7479 else
7480   if test -n "$ac_ct_OBJDUMP"; then
7481   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7482 else
7483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7484 for as_dir in $PATH
7485 do
7486   IFS=$as_save_IFS
7487   test -z "$as_dir" && as_dir=.
7488     for ac_exec_ext in '' $ac_executable_extensions; do
7489   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7490     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7491     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7492     break 2
7493   fi
7494 done
7495   done
7496 IFS=$as_save_IFS
7497
7498 fi
7499 fi
7500 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7501 if test -n "$ac_ct_OBJDUMP"; then
7502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7503 $as_echo "$ac_ct_OBJDUMP" >&6; }
7504 else
7505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7506 $as_echo "no" >&6; }
7507 fi
7508
7509   if test "x$ac_ct_OBJDUMP" = x; then
7510     OBJDUMP="false"
7511   else
7512     case $cross_compiling:$ac_tool_warned in
7513 yes:)
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7515 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7516 ac_tool_warned=yes ;;
7517 esac
7518     OBJDUMP=$ac_ct_OBJDUMP
7519   fi
7520 else
7521   OBJDUMP="$ac_cv_prog_OBJDUMP"
7522 fi
7523
7524 test -z "$OBJDUMP" && OBJDUMP=objdump
7525
7526
7527
7528
7529
7530
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7532 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7533 if ${lt_cv_deplibs_check_method+:} false; then :
7534   $as_echo_n "(cached) " >&6
7535 else
7536   lt_cv_file_magic_cmd='$MAGIC_CMD'
7537 lt_cv_file_magic_test_file=
7538 lt_cv_deplibs_check_method='unknown'
7539 # Need to set the preceding variable on all platforms that support
7540 # interlibrary dependencies.
7541 # 'none' -- dependencies not supported.
7542 # `unknown' -- same as none, but documents that we really don't know.
7543 # 'pass_all' -- all dependencies passed with no checks.
7544 # 'test_compile' -- check by making test program.
7545 # 'file_magic [[regex]]' -- check by looking for files in library path
7546 # which responds to the $file_magic_cmd with a given extended regex.
7547 # If you have `file' or equivalent on your system and you're not sure
7548 # whether `pass_all' will *always* work, you probably want this one.
7549
7550 case $host_os in
7551 aix[4-9]*)
7552   lt_cv_deplibs_check_method=pass_all
7553   ;;
7554
7555 beos*)
7556   lt_cv_deplibs_check_method=pass_all
7557   ;;
7558
7559 bsdi[45]*)
7560   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7561   lt_cv_file_magic_cmd='/usr/bin/file -L'
7562   lt_cv_file_magic_test_file=/shlib/libc.so
7563   ;;
7564
7565 cygwin*)
7566   # func_win32_libid is a shell function defined in ltmain.sh
7567   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7568   lt_cv_file_magic_cmd='func_win32_libid'
7569   ;;
7570
7571 mingw* | pw32*)
7572   # Base MSYS/MinGW do not provide the 'file' command needed by
7573   # func_win32_libid shell function, so use a weaker test based on 'objdump',
7574   # unless we find 'file', for example because we are cross-compiling.
7575   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7576   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7577     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7578     lt_cv_file_magic_cmd='func_win32_libid'
7579   else
7580     # Keep this pattern in sync with the one in func_win32_libid.
7581     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7582     lt_cv_file_magic_cmd='$OBJDUMP -f'
7583   fi
7584   ;;
7585
7586 cegcc*)
7587   # use the weaker test based on 'objdump'. See mingw*.
7588   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7589   lt_cv_file_magic_cmd='$OBJDUMP -f'
7590   ;;
7591
7592 darwin* | rhapsody*)
7593   lt_cv_deplibs_check_method=pass_all
7594   ;;
7595
7596 freebsd* | dragonfly*)
7597   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7598     case $host_cpu in
7599     i*86 )
7600       # Not sure whether the presence of OpenBSD here was a mistake.
7601       # Let's accept both of them until this is cleared up.
7602       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7603       lt_cv_file_magic_cmd=/usr/bin/file
7604       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7605       ;;
7606     esac
7607   else
7608     lt_cv_deplibs_check_method=pass_all
7609   fi
7610   ;;
7611
7612 gnu*)
7613   lt_cv_deplibs_check_method=pass_all
7614   ;;
7615
7616 haiku*)
7617   lt_cv_deplibs_check_method=pass_all
7618   ;;
7619
7620 hpux10.20* | hpux11*)
7621   lt_cv_file_magic_cmd=/usr/bin/file
7622   case $host_cpu in
7623   ia64*)
7624     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7625     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7626     ;;
7627   hppa*64*)
7628     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]'
7629     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7630     ;;
7631   *)
7632     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7633     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7634     ;;
7635   esac
7636   ;;
7637
7638 interix[3-9]*)
7639   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7640   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7641   ;;
7642
7643 irix5* | irix6* | nonstopux*)
7644   case $LD in
7645   *-32|*"-32 ") libmagic=32-bit;;
7646   *-n32|*"-n32 ") libmagic=N32;;
7647   *-64|*"-64 ") libmagic=64-bit;;
7648   *) libmagic=never-match;;
7649   esac
7650   lt_cv_deplibs_check_method=pass_all
7651   ;;
7652
7653 # This must be glibc/ELF.
7654 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7655   lt_cv_deplibs_check_method=pass_all
7656   ;;
7657
7658 netbsd* | netbsdelf*-gnu)
7659   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7660     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7661   else
7662     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7663   fi
7664   ;;
7665
7666 newos6*)
7667   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7668   lt_cv_file_magic_cmd=/usr/bin/file
7669   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7670   ;;
7671
7672 *nto* | *qnx*)
7673   lt_cv_deplibs_check_method=pass_all
7674   ;;
7675
7676 openbsd*)
7677   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7678     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7679   else
7680     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7681   fi
7682   ;;
7683
7684 osf3* | osf4* | osf5*)
7685   lt_cv_deplibs_check_method=pass_all
7686   ;;
7687
7688 rdos*)
7689   lt_cv_deplibs_check_method=pass_all
7690   ;;
7691
7692 solaris*)
7693   lt_cv_deplibs_check_method=pass_all
7694   ;;
7695
7696 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7697   lt_cv_deplibs_check_method=pass_all
7698   ;;
7699
7700 sysv4 | sysv4.3*)
7701   case $host_vendor in
7702   motorola)
7703     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]'
7704     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7705     ;;
7706   ncr)
7707     lt_cv_deplibs_check_method=pass_all
7708     ;;
7709   sequent)
7710     lt_cv_file_magic_cmd='/bin/file'
7711     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7712     ;;
7713   sni)
7714     lt_cv_file_magic_cmd='/bin/file'
7715     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7716     lt_cv_file_magic_test_file=/lib/libc.so
7717     ;;
7718   siemens)
7719     lt_cv_deplibs_check_method=pass_all
7720     ;;
7721   pc)
7722     lt_cv_deplibs_check_method=pass_all
7723     ;;
7724   esac
7725   ;;
7726
7727 tpf*)
7728   lt_cv_deplibs_check_method=pass_all
7729   ;;
7730 esac
7731
7732 fi
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7734 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7735
7736 file_magic_glob=
7737 want_nocaseglob=no
7738 if test "$build" = "$host"; then
7739   case $host_os in
7740   mingw* | pw32*)
7741     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7742       want_nocaseglob=yes
7743     else
7744       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7745     fi
7746     ;;
7747   esac
7748 fi
7749
7750 file_magic_cmd=$lt_cv_file_magic_cmd
7751 deplibs_check_method=$lt_cv_deplibs_check_method
7752 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775 if test -n "$ac_tool_prefix"; then
7776   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7777 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7779 $as_echo_n "checking for $ac_word... " >&6; }
7780 if ${ac_cv_prog_DLLTOOL+:} false; then :
7781   $as_echo_n "(cached) " >&6
7782 else
7783   if test -n "$DLLTOOL"; then
7784   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7785 else
7786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7787 for as_dir in $PATH
7788 do
7789   IFS=$as_save_IFS
7790   test -z "$as_dir" && as_dir=.
7791     for ac_exec_ext in '' $ac_executable_extensions; do
7792   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7793     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7794     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7795     break 2
7796   fi
7797 done
7798   done
7799 IFS=$as_save_IFS
7800
7801 fi
7802 fi
7803 DLLTOOL=$ac_cv_prog_DLLTOOL
7804 if test -n "$DLLTOOL"; then
7805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7806 $as_echo "$DLLTOOL" >&6; }
7807 else
7808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7809 $as_echo "no" >&6; }
7810 fi
7811
7812
7813 fi
7814 if test -z "$ac_cv_prog_DLLTOOL"; then
7815   ac_ct_DLLTOOL=$DLLTOOL
7816   # Extract the first word of "dlltool", so it can be a program name with args.
7817 set dummy dlltool; ac_word=$2
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7819 $as_echo_n "checking for $ac_word... " >&6; }
7820 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7821   $as_echo_n "(cached) " >&6
7822 else
7823   if test -n "$ac_ct_DLLTOOL"; then
7824   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7825 else
7826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7827 for as_dir in $PATH
7828 do
7829   IFS=$as_save_IFS
7830   test -z "$as_dir" && as_dir=.
7831     for ac_exec_ext in '' $ac_executable_extensions; do
7832   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7833     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7834     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7835     break 2
7836   fi
7837 done
7838   done
7839 IFS=$as_save_IFS
7840
7841 fi
7842 fi
7843 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7844 if test -n "$ac_ct_DLLTOOL"; then
7845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7846 $as_echo "$ac_ct_DLLTOOL" >&6; }
7847 else
7848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7849 $as_echo "no" >&6; }
7850 fi
7851
7852   if test "x$ac_ct_DLLTOOL" = x; then
7853     DLLTOOL="false"
7854   else
7855     case $cross_compiling:$ac_tool_warned in
7856 yes:)
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7858 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7859 ac_tool_warned=yes ;;
7860 esac
7861     DLLTOOL=$ac_ct_DLLTOOL
7862   fi
7863 else
7864   DLLTOOL="$ac_cv_prog_DLLTOOL"
7865 fi
7866
7867 test -z "$DLLTOOL" && DLLTOOL=dlltool
7868
7869
7870
7871
7872
7873
7874
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7876 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7877 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7878   $as_echo_n "(cached) " >&6
7879 else
7880   lt_cv_sharedlib_from_linklib_cmd='unknown'
7881
7882 case $host_os in
7883 cygwin* | mingw* | pw32* | cegcc*)
7884   # two different shell functions defined in ltmain.sh
7885   # decide which to use based on capabilities of $DLLTOOL
7886   case `$DLLTOOL --help 2>&1` in
7887   *--identify-strict*)
7888     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7889     ;;
7890   *)
7891     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7892     ;;
7893   esac
7894   ;;
7895 *)
7896   # fallback: assume linklib IS sharedlib
7897   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7898   ;;
7899 esac
7900
7901 fi
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7903 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7904 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7905 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7906
7907
7908
7909
7910
7911
7912
7913 if test -n "$ac_tool_prefix"; then
7914   for ac_prog in ar
7915   do
7916     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7917 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7919 $as_echo_n "checking for $ac_word... " >&6; }
7920 if ${ac_cv_prog_AR+:} false; then :
7921   $as_echo_n "(cached) " >&6
7922 else
7923   if test -n "$AR"; then
7924   ac_cv_prog_AR="$AR" # Let the user override the test.
7925 else
7926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7927 for as_dir in $PATH
7928 do
7929   IFS=$as_save_IFS
7930   test -z "$as_dir" && as_dir=.
7931     for ac_exec_ext in '' $ac_executable_extensions; do
7932   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7933     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7934     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7935     break 2
7936   fi
7937 done
7938   done
7939 IFS=$as_save_IFS
7940
7941 fi
7942 fi
7943 AR=$ac_cv_prog_AR
7944 if test -n "$AR"; then
7945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7946 $as_echo "$AR" >&6; }
7947 else
7948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7949 $as_echo "no" >&6; }
7950 fi
7951
7952
7953     test -n "$AR" && break
7954   done
7955 fi
7956 if test -z "$AR"; then
7957   ac_ct_AR=$AR
7958   for ac_prog in ar
7959 do
7960   # Extract the first word of "$ac_prog", so it can be a program name with args.
7961 set dummy $ac_prog; ac_word=$2
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7963 $as_echo_n "checking for $ac_word... " >&6; }
7964 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7965   $as_echo_n "(cached) " >&6
7966 else
7967   if test -n "$ac_ct_AR"; then
7968   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7969 else
7970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7971 for as_dir in $PATH
7972 do
7973   IFS=$as_save_IFS
7974   test -z "$as_dir" && as_dir=.
7975     for ac_exec_ext in '' $ac_executable_extensions; do
7976   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7977     ac_cv_prog_ac_ct_AR="$ac_prog"
7978     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7979     break 2
7980   fi
7981 done
7982   done
7983 IFS=$as_save_IFS
7984
7985 fi
7986 fi
7987 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7988 if test -n "$ac_ct_AR"; then
7989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7990 $as_echo "$ac_ct_AR" >&6; }
7991 else
7992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7993 $as_echo "no" >&6; }
7994 fi
7995
7996
7997   test -n "$ac_ct_AR" && break
7998 done
7999
8000   if test "x$ac_ct_AR" = x; then
8001     AR="false"
8002   else
8003     case $cross_compiling:$ac_tool_warned in
8004 yes:)
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8006 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8007 ac_tool_warned=yes ;;
8008 esac
8009     AR=$ac_ct_AR
8010   fi
8011 fi
8012
8013 : ${AR=ar}
8014 : ${AR_FLAGS=cru}
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8027 $as_echo_n "checking for archiver @FILE support... " >&6; }
8028 if ${lt_cv_ar_at_file+:} false; then :
8029   $as_echo_n "(cached) " >&6
8030 else
8031   lt_cv_ar_at_file=no
8032    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8033 /* end confdefs.h.  */
8034
8035 int
8036 main ()
8037 {
8038
8039   ;
8040   return 0;
8041 }
8042 _ACEOF
8043 if ac_fn_c_try_compile "$LINENO"; then :
8044   echo conftest.$ac_objext > conftest.lst
8045       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8046       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8047   (eval $lt_ar_try) 2>&5
8048   ac_status=$?
8049   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8050   test $ac_status = 0; }
8051       if test "$ac_status" -eq 0; then
8052         # Ensure the archiver fails upon bogus file names.
8053         rm -f conftest.$ac_objext libconftest.a
8054         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8055   (eval $lt_ar_try) 2>&5
8056   ac_status=$?
8057   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8058   test $ac_status = 0; }
8059         if test "$ac_status" -ne 0; then
8060           lt_cv_ar_at_file=@
8061         fi
8062       fi
8063       rm -f conftest.* libconftest.a
8064
8065 fi
8066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8067
8068 fi
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8070 $as_echo "$lt_cv_ar_at_file" >&6; }
8071
8072 if test "x$lt_cv_ar_at_file" = xno; then
8073   archiver_list_spec=
8074 else
8075   archiver_list_spec=$lt_cv_ar_at_file
8076 fi
8077
8078
8079
8080
8081
8082
8083
8084 if test -n "$ac_tool_prefix"; then
8085   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8086 set dummy ${ac_tool_prefix}strip; ac_word=$2
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8088 $as_echo_n "checking for $ac_word... " >&6; }
8089 if ${ac_cv_prog_STRIP+:} false; then :
8090   $as_echo_n "(cached) " >&6
8091 else
8092   if test -n "$STRIP"; then
8093   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8094 else
8095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8096 for as_dir in $PATH
8097 do
8098   IFS=$as_save_IFS
8099   test -z "$as_dir" && as_dir=.
8100     for ac_exec_ext in '' $ac_executable_extensions; do
8101   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8102     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8103     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8104     break 2
8105   fi
8106 done
8107   done
8108 IFS=$as_save_IFS
8109
8110 fi
8111 fi
8112 STRIP=$ac_cv_prog_STRIP
8113 if test -n "$STRIP"; then
8114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8115 $as_echo "$STRIP" >&6; }
8116 else
8117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8118 $as_echo "no" >&6; }
8119 fi
8120
8121
8122 fi
8123 if test -z "$ac_cv_prog_STRIP"; then
8124   ac_ct_STRIP=$STRIP
8125   # Extract the first word of "strip", so it can be a program name with args.
8126 set dummy strip; ac_word=$2
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8128 $as_echo_n "checking for $ac_word... " >&6; }
8129 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8130   $as_echo_n "(cached) " >&6
8131 else
8132   if test -n "$ac_ct_STRIP"; then
8133   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8134 else
8135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8136 for as_dir in $PATH
8137 do
8138   IFS=$as_save_IFS
8139   test -z "$as_dir" && as_dir=.
8140     for ac_exec_ext in '' $ac_executable_extensions; do
8141   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8142     ac_cv_prog_ac_ct_STRIP="strip"
8143     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8144     break 2
8145   fi
8146 done
8147   done
8148 IFS=$as_save_IFS
8149
8150 fi
8151 fi
8152 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8153 if test -n "$ac_ct_STRIP"; then
8154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8155 $as_echo "$ac_ct_STRIP" >&6; }
8156 else
8157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8158 $as_echo "no" >&6; }
8159 fi
8160
8161   if test "x$ac_ct_STRIP" = x; then
8162     STRIP=":"
8163   else
8164     case $cross_compiling:$ac_tool_warned in
8165 yes:)
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8167 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8168 ac_tool_warned=yes ;;
8169 esac
8170     STRIP=$ac_ct_STRIP
8171   fi
8172 else
8173   STRIP="$ac_cv_prog_STRIP"
8174 fi
8175
8176 test -z "$STRIP" && STRIP=:
8177
8178
8179
8180
8181
8182
8183 if test -n "$ac_tool_prefix"; then
8184   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8185 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8187 $as_echo_n "checking for $ac_word... " >&6; }
8188 if ${ac_cv_prog_RANLIB+:} false; then :
8189   $as_echo_n "(cached) " >&6
8190 else
8191   if test -n "$RANLIB"; then
8192   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8193 else
8194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8195 for as_dir in $PATH
8196 do
8197   IFS=$as_save_IFS
8198   test -z "$as_dir" && as_dir=.
8199     for ac_exec_ext in '' $ac_executable_extensions; do
8200   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8201     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8202     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8203     break 2
8204   fi
8205 done
8206   done
8207 IFS=$as_save_IFS
8208
8209 fi
8210 fi
8211 RANLIB=$ac_cv_prog_RANLIB
8212 if test -n "$RANLIB"; then
8213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8214 $as_echo "$RANLIB" >&6; }
8215 else
8216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8217 $as_echo "no" >&6; }
8218 fi
8219
8220
8221 fi
8222 if test -z "$ac_cv_prog_RANLIB"; then
8223   ac_ct_RANLIB=$RANLIB
8224   # Extract the first word of "ranlib", so it can be a program name with args.
8225 set dummy ranlib; ac_word=$2
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8227 $as_echo_n "checking for $ac_word... " >&6; }
8228 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8229   $as_echo_n "(cached) " >&6
8230 else
8231   if test -n "$ac_ct_RANLIB"; then
8232   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8233 else
8234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8235 for as_dir in $PATH
8236 do
8237   IFS=$as_save_IFS
8238   test -z "$as_dir" && as_dir=.
8239     for ac_exec_ext in '' $ac_executable_extensions; do
8240   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8241     ac_cv_prog_ac_ct_RANLIB="ranlib"
8242     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8243     break 2
8244   fi
8245 done
8246   done
8247 IFS=$as_save_IFS
8248
8249 fi
8250 fi
8251 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8252 if test -n "$ac_ct_RANLIB"; then
8253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8254 $as_echo "$ac_ct_RANLIB" >&6; }
8255 else
8256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8257 $as_echo "no" >&6; }
8258 fi
8259
8260   if test "x$ac_ct_RANLIB" = x; then
8261     RANLIB=":"
8262   else
8263     case $cross_compiling:$ac_tool_warned in
8264 yes:)
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8266 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8267 ac_tool_warned=yes ;;
8268 esac
8269     RANLIB=$ac_ct_RANLIB
8270   fi
8271 else
8272   RANLIB="$ac_cv_prog_RANLIB"
8273 fi
8274
8275 test -z "$RANLIB" && RANLIB=:
8276
8277
8278
8279
8280
8281
8282 # Determine commands to create old-style static archives.
8283 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8284 old_postinstall_cmds='chmod 644 $oldlib'
8285 old_postuninstall_cmds=
8286
8287 if test -n "$RANLIB"; then
8288   case $host_os in
8289   openbsd*)
8290     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8291     ;;
8292   *)
8293     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8294     ;;
8295   esac
8296   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8297 fi
8298
8299 case $host_os in
8300   darwin*)
8301     lock_old_archive_extraction=yes ;;
8302   *)
8303     lock_old_archive_extraction=no ;;
8304 esac
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344 # If no C compiler was specified, use CC.
8345 LTCC=${LTCC-"$CC"}
8346
8347 # If no C compiler flags were specified, use CFLAGS.
8348 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8349
8350 # Allow CC to be a program name with arguments.
8351 compiler=$CC
8352
8353
8354 # Check for command to grab the raw symbol name followed by C symbol from nm.
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8356 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8357 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8358   $as_echo_n "(cached) " >&6
8359 else
8360
8361 # These are sane defaults that work on at least a few old systems.
8362 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8363
8364 # Character class describing NM global symbol codes.
8365 symcode='[BCDEGRST]'
8366
8367 # Regexp to match symbols that can be accessed directly from C.
8368 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8369
8370 # Define system-specific variables.
8371 case $host_os in
8372 aix*)
8373   symcode='[BCDT]'
8374   ;;
8375 cygwin* | mingw* | pw32* | cegcc*)
8376   symcode='[ABCDGISTW]'
8377   ;;
8378 hpux*)
8379   if test "$host_cpu" = ia64; then
8380     symcode='[ABCDEGRST]'
8381   fi
8382   ;;
8383 irix* | nonstopux*)
8384   symcode='[BCDEGRST]'
8385   ;;
8386 osf*)
8387   symcode='[BCDEGQRST]'
8388   ;;
8389 solaris*)
8390   symcode='[BDRT]'
8391   ;;
8392 sco3.2v5*)
8393   symcode='[DT]'
8394   ;;
8395 sysv4.2uw2*)
8396   symcode='[DT]'
8397   ;;
8398 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8399   symcode='[ABDT]'
8400   ;;
8401 sysv4)
8402   symcode='[DFNSTU]'
8403   ;;
8404 esac
8405
8406 # If we're using GNU nm, then use its standard symbol codes.
8407 case `$NM -V 2>&1` in
8408 *GNU* | *'with BFD'*)
8409   symcode='[ABCDGIRSTW]' ;;
8410 esac
8411
8412 # Transform an extracted symbol line into a proper C declaration.
8413 # Some systems (esp. on ia64) link data and code symbols differently,
8414 # so use this general approach.
8415 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8416
8417 # Transform an extracted symbol line into symbol name and symbol address
8418 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
8419 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'"
8420
8421 # Handle CRLF in mingw tool chain
8422 opt_cr=
8423 case $build_os in
8424 mingw*)
8425   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8426   ;;
8427 esac
8428
8429 # Try without a prefix underscore, then with it.
8430 for ac_symprfx in "" "_"; do
8431
8432   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8433   symxfrm="\\1 $ac_symprfx\\2 \\2"
8434
8435   # Write the raw and C identifiers.
8436   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8437     # Fake it for dumpbin and say T for any non-static function
8438     # and D for any global variable.
8439     # Also find C++ and __fastcall symbols from MSVC++,
8440     # which start with @ or ?.
8441     lt_cv_sys_global_symbol_pipe="$AWK '"\
8442 "     {last_section=section; section=\$ 3};"\
8443 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8444 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8445 "     \$ 0!~/External *\|/{next};"\
8446 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8447 "     {if(hide[section]) next};"\
8448 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8449 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8450 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
8451 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8452 "     ' prfx=^$ac_symprfx"
8453   else
8454     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8455   fi
8456   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8457
8458   # Check to see that the pipe works correctly.
8459   pipe_works=no
8460
8461   rm -f conftest*
8462   cat > conftest.$ac_ext <<_LT_EOF
8463 #ifdef __cplusplus
8464 extern "C" {
8465 #endif
8466 char nm_test_var;
8467 void nm_test_func(void);
8468 void nm_test_func(void){}
8469 #ifdef __cplusplus
8470 }
8471 #endif
8472 int main(){nm_test_var='a';nm_test_func();return(0);}
8473 _LT_EOF
8474
8475   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8476   (eval $ac_compile) 2>&5
8477   ac_status=$?
8478   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8479   test $ac_status = 0; }; then
8480     # Now try to grab the symbols.
8481     nlist=conftest.nm
8482     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8483   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8484   ac_status=$?
8485   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8486   test $ac_status = 0; } && test -s "$nlist"; then
8487       # Try sorting and uniquifying the output.
8488       if sort "$nlist" | uniq > "$nlist"T; then
8489         mv -f "$nlist"T "$nlist"
8490       else
8491         rm -f "$nlist"T
8492       fi
8493
8494       # Make sure that we snagged all the symbols we need.
8495       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8496         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8497           cat <<_LT_EOF > conftest.$ac_ext
8498 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
8499 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8500 /* DATA imports from DLLs on WIN32 con't be const, because runtime
8501    relocations are performed -- see ld's documentation on pseudo-relocs.  */
8502 # define LT_DLSYM_CONST
8503 #elif defined(__osf__)
8504 /* This system does not cope well with relocations in const data.  */
8505 # define LT_DLSYM_CONST
8506 #else
8507 # define LT_DLSYM_CONST const
8508 #endif
8509
8510 #ifdef __cplusplus
8511 extern "C" {
8512 #endif
8513
8514 _LT_EOF
8515           # Now generate the symbol file.
8516           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8517
8518           cat <<_LT_EOF >> conftest.$ac_ext
8519
8520 /* The mapping between symbol names and symbols.  */
8521 LT_DLSYM_CONST struct {
8522   const char *name;
8523   void       *address;
8524 }
8525 lt__PROGRAM__LTX_preloaded_symbols[] =
8526 {
8527   { "@PROGRAM@", (void *) 0 },
8528 _LT_EOF
8529           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8530           cat <<\_LT_EOF >> conftest.$ac_ext
8531   {0, (void *) 0}
8532 };
8533
8534 /* This works around a problem in FreeBSD linker */
8535 #ifdef FREEBSD_WORKAROUND
8536 static const void *lt_preloaded_setup() {
8537   return lt__PROGRAM__LTX_preloaded_symbols;
8538 }
8539 #endif
8540
8541 #ifdef __cplusplus
8542 }
8543 #endif
8544 _LT_EOF
8545           # Now try linking the two files.
8546           mv conftest.$ac_objext conftstm.$ac_objext
8547           lt_globsym_save_LIBS=$LIBS
8548           lt_globsym_save_CFLAGS=$CFLAGS
8549           LIBS="conftstm.$ac_objext"
8550           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8551           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8552   (eval $ac_link) 2>&5
8553   ac_status=$?
8554   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8555   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8556             pipe_works=yes
8557           fi
8558           LIBS=$lt_globsym_save_LIBS
8559           CFLAGS=$lt_globsym_save_CFLAGS
8560         else
8561           echo "cannot find nm_test_func in $nlist" >&5
8562         fi
8563       else
8564         echo "cannot find nm_test_var in $nlist" >&5
8565       fi
8566     else
8567       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8568     fi
8569   else
8570     echo "$progname: failed program was:" >&5
8571     cat conftest.$ac_ext >&5
8572   fi
8573   rm -rf conftest* conftst*
8574
8575   # Do not use the global_symbol_pipe unless it works.
8576   if test "$pipe_works" = yes; then
8577     break
8578   else
8579     lt_cv_sys_global_symbol_pipe=
8580   fi
8581 done
8582
8583 fi
8584
8585 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8586   lt_cv_sys_global_symbol_to_cdecl=
8587 fi
8588 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8590 $as_echo "failed" >&6; }
8591 else
8592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8593 $as_echo "ok" >&6; }
8594 fi
8595
8596 # Response file support.
8597 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8598   nm_file_list_spec='@'
8599 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8600   nm_file_list_spec='@'
8601 fi
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8630 $as_echo_n "checking for sysroot... " >&6; }
8631
8632 # Check whether --with-sysroot was given.
8633 if test "${with_sysroot+set}" = set; then :
8634   withval=$with_sysroot;
8635 else
8636   with_sysroot=no
8637 fi
8638
8639
8640 lt_sysroot=
8641 case ${with_sysroot} in #(
8642  yes)
8643    if test "$GCC" = yes; then
8644      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8645    fi
8646    ;; #(
8647  /*)
8648    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8649    ;; #(
8650  no|'')
8651    ;; #(
8652  *)
8653    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8654 $as_echo "${with_sysroot}" >&6; }
8655    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8656    ;;
8657 esac
8658
8659  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8660 $as_echo "${lt_sysroot:-no}" >&6; }
8661
8662
8663
8664
8665
8666 # Check whether --enable-libtool-lock was given.
8667 if test "${enable_libtool_lock+set}" = set; then :
8668   enableval=$enable_libtool_lock;
8669 fi
8670
8671 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8672
8673 # Some flags need to be propagated to the compiler or linker for good
8674 # libtool support.
8675 case $host in
8676 ia64-*-hpux*)
8677   # Find out which ABI we are using.
8678   echo 'int i;' > conftest.$ac_ext
8679   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8680   (eval $ac_compile) 2>&5
8681   ac_status=$?
8682   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8683   test $ac_status = 0; }; then
8684     case `/usr/bin/file conftest.$ac_objext` in
8685       *ELF-32*)
8686         HPUX_IA64_MODE="32"
8687         ;;
8688       *ELF-64*)
8689         HPUX_IA64_MODE="64"
8690         ;;
8691     esac
8692   fi
8693   rm -rf conftest*
8694   ;;
8695 *-*-irix6*)
8696   # Find out which ABI we are using.
8697   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8698   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8699   (eval $ac_compile) 2>&5
8700   ac_status=$?
8701   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8702   test $ac_status = 0; }; then
8703     if test "$lt_cv_prog_gnu_ld" = yes; then
8704       case `/usr/bin/file conftest.$ac_objext` in
8705         *32-bit*)
8706           LD="${LD-ld} -melf32bsmip"
8707           ;;
8708         *N32*)
8709           LD="${LD-ld} -melf32bmipn32"
8710           ;;
8711         *64-bit*)
8712           LD="${LD-ld} -melf64bmip"
8713         ;;
8714       esac
8715     else
8716       case `/usr/bin/file conftest.$ac_objext` in
8717         *32-bit*)
8718           LD="${LD-ld} -32"
8719           ;;
8720         *N32*)
8721           LD="${LD-ld} -n32"
8722           ;;
8723         *64-bit*)
8724           LD="${LD-ld} -64"
8725           ;;
8726       esac
8727     fi
8728   fi
8729   rm -rf conftest*
8730   ;;
8731
8732 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8733 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8734   # Find out which ABI we are using.
8735   echo 'int i;' > conftest.$ac_ext
8736   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8737   (eval $ac_compile) 2>&5
8738   ac_status=$?
8739   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8740   test $ac_status = 0; }; then
8741     case `/usr/bin/file conftest.o` in
8742       *32-bit*)
8743         case $host in
8744           x86_64-*kfreebsd*-gnu)
8745             LD="${LD-ld} -m elf_i386_fbsd"
8746             ;;
8747           x86_64-*linux*)
8748             LD="${LD-ld} -m elf_i386"
8749             ;;
8750          powerpc64le-*)
8751            LD="${LD-ld} -m elf32lppclinux"
8752            ;;
8753          powerpc64-*)
8754             LD="${LD-ld} -m elf32ppclinux"
8755             ;;
8756           s390x-*linux*)
8757             LD="${LD-ld} -m elf_s390"
8758             ;;
8759           sparc64-*linux*)
8760             LD="${LD-ld} -m elf32_sparc"
8761             ;;
8762         esac
8763         ;;
8764       *64-bit*)
8765         case $host in
8766           x86_64-*kfreebsd*-gnu)
8767             LD="${LD-ld} -m elf_x86_64_fbsd"
8768             ;;
8769           x86_64-*linux*)
8770             LD="${LD-ld} -m elf_x86_64"
8771             ;;
8772          powerpcle-*)
8773            LD="${LD-ld} -m elf64lppc"
8774            ;;
8775          powerpc-*)
8776             LD="${LD-ld} -m elf64ppc"
8777             ;;
8778           s390*-*linux*|s390*-*tpf*)
8779             LD="${LD-ld} -m elf64_s390"
8780             ;;
8781           sparc*-*linux*)
8782             LD="${LD-ld} -m elf64_sparc"
8783             ;;
8784         esac
8785         ;;
8786     esac
8787   fi
8788   rm -rf conftest*
8789   ;;
8790
8791 *-*-sco3.2v5*)
8792   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8793   SAVE_CFLAGS="$CFLAGS"
8794   CFLAGS="$CFLAGS -belf"
8795   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8796 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8797 if ${lt_cv_cc_needs_belf+:} false; then :
8798   $as_echo_n "(cached) " >&6
8799 else
8800   ac_ext=c
8801 ac_cpp='$CPP $CPPFLAGS'
8802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8805
8806      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8807 /* end confdefs.h.  */
8808
8809 int
8810 main ()
8811 {
8812
8813   ;
8814   return 0;
8815 }
8816 _ACEOF
8817 if ac_fn_c_try_link "$LINENO"; then :
8818   lt_cv_cc_needs_belf=yes
8819 else
8820   lt_cv_cc_needs_belf=no
8821 fi
8822 rm -f core conftest.err conftest.$ac_objext \
8823     conftest$ac_exeext conftest.$ac_ext
8824      ac_ext=c
8825 ac_cpp='$CPP $CPPFLAGS'
8826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8829
8830 fi
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8832 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8833   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8834     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8835     CFLAGS="$SAVE_CFLAGS"
8836   fi
8837   ;;
8838 *-*solaris*)
8839   # Find out which ABI we are using.
8840   echo 'int i;' > conftest.$ac_ext
8841   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8842   (eval $ac_compile) 2>&5
8843   ac_status=$?
8844   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8845   test $ac_status = 0; }; then
8846     case `/usr/bin/file conftest.o` in
8847     *64-bit*)
8848       case $lt_cv_prog_gnu_ld in
8849       yes*)
8850         case $host in
8851         i?86-*-solaris*)
8852           LD="${LD-ld} -m elf_x86_64"
8853           ;;
8854         sparc*-*-solaris*)
8855           LD="${LD-ld} -m elf64_sparc"
8856           ;;
8857         esac
8858         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8859         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8860           LD="${LD-ld}_sol2"
8861         fi
8862         ;;
8863       *)
8864         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8865           LD="${LD-ld} -64"
8866         fi
8867         ;;
8868       esac
8869       ;;
8870     esac
8871   fi
8872   rm -rf conftest*
8873   ;;
8874 esac
8875
8876 need_locks="$enable_libtool_lock"
8877
8878 if test -n "$ac_tool_prefix"; then
8879   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8880 set dummy ${ac_tool_prefix}mt; ac_word=$2
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8882 $as_echo_n "checking for $ac_word... " >&6; }
8883 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8884   $as_echo_n "(cached) " >&6
8885 else
8886   if test -n "$MANIFEST_TOOL"; then
8887   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8888 else
8889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8890 for as_dir in $PATH
8891 do
8892   IFS=$as_save_IFS
8893   test -z "$as_dir" && as_dir=.
8894     for ac_exec_ext in '' $ac_executable_extensions; do
8895   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8896     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8897     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8898     break 2
8899   fi
8900 done
8901   done
8902 IFS=$as_save_IFS
8903
8904 fi
8905 fi
8906 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8907 if test -n "$MANIFEST_TOOL"; then
8908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8909 $as_echo "$MANIFEST_TOOL" >&6; }
8910 else
8911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8912 $as_echo "no" >&6; }
8913 fi
8914
8915
8916 fi
8917 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8918   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8919   # Extract the first word of "mt", so it can be a program name with args.
8920 set dummy mt; ac_word=$2
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8922 $as_echo_n "checking for $ac_word... " >&6; }
8923 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8924   $as_echo_n "(cached) " >&6
8925 else
8926   if test -n "$ac_ct_MANIFEST_TOOL"; then
8927   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8928 else
8929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8930 for as_dir in $PATH
8931 do
8932   IFS=$as_save_IFS
8933   test -z "$as_dir" && as_dir=.
8934     for ac_exec_ext in '' $ac_executable_extensions; do
8935   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8936     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8937     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8938     break 2
8939   fi
8940 done
8941   done
8942 IFS=$as_save_IFS
8943
8944 fi
8945 fi
8946 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8947 if test -n "$ac_ct_MANIFEST_TOOL"; then
8948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8949 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8950 else
8951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8952 $as_echo "no" >&6; }
8953 fi
8954
8955   if test "x$ac_ct_MANIFEST_TOOL" = x; then
8956     MANIFEST_TOOL=":"
8957   else
8958     case $cross_compiling:$ac_tool_warned in
8959 yes:)
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8961 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8962 ac_tool_warned=yes ;;
8963 esac
8964     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8965   fi
8966 else
8967   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8968 fi
8969
8970 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8972 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8973 if ${lt_cv_path_mainfest_tool+:} false; then :
8974   $as_echo_n "(cached) " >&6
8975 else
8976   lt_cv_path_mainfest_tool=no
8977   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8978   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8979   cat conftest.err >&5
8980   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8981     lt_cv_path_mainfest_tool=yes
8982   fi
8983   rm -f conftest*
8984 fi
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8986 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8987 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8988   MANIFEST_TOOL=:
8989 fi
8990
8991
8992
8993
8994
8995
8996   case $host_os in
8997     rhapsody* | darwin*)
8998     if test -n "$ac_tool_prefix"; then
8999   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9000 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9002 $as_echo_n "checking for $ac_word... " >&6; }
9003 if ${ac_cv_prog_DSYMUTIL+:} false; then :
9004   $as_echo_n "(cached) " >&6
9005 else
9006   if test -n "$DSYMUTIL"; then
9007   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9008 else
9009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9010 for as_dir in $PATH
9011 do
9012   IFS=$as_save_IFS
9013   test -z "$as_dir" && as_dir=.
9014     for ac_exec_ext in '' $ac_executable_extensions; do
9015   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9016     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9017     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9018     break 2
9019   fi
9020 done
9021   done
9022 IFS=$as_save_IFS
9023
9024 fi
9025 fi
9026 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9027 if test -n "$DSYMUTIL"; then
9028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9029 $as_echo "$DSYMUTIL" >&6; }
9030 else
9031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9032 $as_echo "no" >&6; }
9033 fi
9034
9035
9036 fi
9037 if test -z "$ac_cv_prog_DSYMUTIL"; then
9038   ac_ct_DSYMUTIL=$DSYMUTIL
9039   # Extract the first word of "dsymutil", so it can be a program name with args.
9040 set dummy dsymutil; ac_word=$2
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9042 $as_echo_n "checking for $ac_word... " >&6; }
9043 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9044   $as_echo_n "(cached) " >&6
9045 else
9046   if test -n "$ac_ct_DSYMUTIL"; then
9047   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9048 else
9049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9050 for as_dir in $PATH
9051 do
9052   IFS=$as_save_IFS
9053   test -z "$as_dir" && as_dir=.
9054     for ac_exec_ext in '' $ac_executable_extensions; do
9055   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9056     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9057     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9058     break 2
9059   fi
9060 done
9061   done
9062 IFS=$as_save_IFS
9063
9064 fi
9065 fi
9066 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9067 if test -n "$ac_ct_DSYMUTIL"; then
9068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9069 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9070 else
9071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9072 $as_echo "no" >&6; }
9073 fi
9074
9075   if test "x$ac_ct_DSYMUTIL" = x; then
9076     DSYMUTIL=":"
9077   else
9078     case $cross_compiling:$ac_tool_warned in
9079 yes:)
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9081 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9082 ac_tool_warned=yes ;;
9083 esac
9084     DSYMUTIL=$ac_ct_DSYMUTIL
9085   fi
9086 else
9087   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9088 fi
9089
9090     if test -n "$ac_tool_prefix"; then
9091   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9092 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9094 $as_echo_n "checking for $ac_word... " >&6; }
9095 if ${ac_cv_prog_NMEDIT+:} false; then :
9096   $as_echo_n "(cached) " >&6
9097 else
9098   if test -n "$NMEDIT"; then
9099   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9100 else
9101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9102 for as_dir in $PATH
9103 do
9104   IFS=$as_save_IFS
9105   test -z "$as_dir" && as_dir=.
9106     for ac_exec_ext in '' $ac_executable_extensions; do
9107   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9108     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9109     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9110     break 2
9111   fi
9112 done
9113   done
9114 IFS=$as_save_IFS
9115
9116 fi
9117 fi
9118 NMEDIT=$ac_cv_prog_NMEDIT
9119 if test -n "$NMEDIT"; then
9120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9121 $as_echo "$NMEDIT" >&6; }
9122 else
9123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9124 $as_echo "no" >&6; }
9125 fi
9126
9127
9128 fi
9129 if test -z "$ac_cv_prog_NMEDIT"; then
9130   ac_ct_NMEDIT=$NMEDIT
9131   # Extract the first word of "nmedit", so it can be a program name with args.
9132 set dummy nmedit; ac_word=$2
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9134 $as_echo_n "checking for $ac_word... " >&6; }
9135 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9136   $as_echo_n "(cached) " >&6
9137 else
9138   if test -n "$ac_ct_NMEDIT"; then
9139   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9140 else
9141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9142 for as_dir in $PATH
9143 do
9144   IFS=$as_save_IFS
9145   test -z "$as_dir" && as_dir=.
9146     for ac_exec_ext in '' $ac_executable_extensions; do
9147   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9148     ac_cv_prog_ac_ct_NMEDIT="nmedit"
9149     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9150     break 2
9151   fi
9152 done
9153   done
9154 IFS=$as_save_IFS
9155
9156 fi
9157 fi
9158 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9159 if test -n "$ac_ct_NMEDIT"; then
9160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9161 $as_echo "$ac_ct_NMEDIT" >&6; }
9162 else
9163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9164 $as_echo "no" >&6; }
9165 fi
9166
9167   if test "x$ac_ct_NMEDIT" = x; then
9168     NMEDIT=":"
9169   else
9170     case $cross_compiling:$ac_tool_warned in
9171 yes:)
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9173 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9174 ac_tool_warned=yes ;;
9175 esac
9176     NMEDIT=$ac_ct_NMEDIT
9177   fi
9178 else
9179   NMEDIT="$ac_cv_prog_NMEDIT"
9180 fi
9181
9182     if test -n "$ac_tool_prefix"; then
9183   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9184 set dummy ${ac_tool_prefix}lipo; 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_LIPO+:} false; then :
9188   $as_echo_n "(cached) " >&6
9189 else
9190   if test -n "$LIPO"; then
9191   ac_cv_prog_LIPO="$LIPO" # 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_LIPO="${ac_tool_prefix}lipo"
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 LIPO=$ac_cv_prog_LIPO
9211 if test -n "$LIPO"; then
9212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9213 $as_echo "$LIPO" >&6; }
9214 else
9215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9216 $as_echo "no" >&6; }
9217 fi
9218
9219
9220 fi
9221 if test -z "$ac_cv_prog_LIPO"; then
9222   ac_ct_LIPO=$LIPO
9223   # Extract the first word of "lipo", so it can be a program name with args.
9224 set dummy lipo; ac_word=$2
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9226 $as_echo_n "checking for $ac_word... " >&6; }
9227 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9228   $as_echo_n "(cached) " >&6
9229 else
9230   if test -n "$ac_ct_LIPO"; then
9231   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9232 else
9233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9234 for as_dir in $PATH
9235 do
9236   IFS=$as_save_IFS
9237   test -z "$as_dir" && as_dir=.
9238     for ac_exec_ext in '' $ac_executable_extensions; do
9239   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9240     ac_cv_prog_ac_ct_LIPO="lipo"
9241     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9242     break 2
9243   fi
9244 done
9245   done
9246 IFS=$as_save_IFS
9247
9248 fi
9249 fi
9250 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9251 if test -n "$ac_ct_LIPO"; then
9252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9253 $as_echo "$ac_ct_LIPO" >&6; }
9254 else
9255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9256 $as_echo "no" >&6; }
9257 fi
9258
9259   if test "x$ac_ct_LIPO" = x; then
9260     LIPO=":"
9261   else
9262     case $cross_compiling:$ac_tool_warned in
9263 yes:)
9264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9265 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9266 ac_tool_warned=yes ;;
9267 esac
9268     LIPO=$ac_ct_LIPO
9269   fi
9270 else
9271   LIPO="$ac_cv_prog_LIPO"
9272 fi
9273
9274     if test -n "$ac_tool_prefix"; then
9275   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9276 set dummy ${ac_tool_prefix}otool; 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_OTOOL+:} false; then :
9280   $as_echo_n "(cached) " >&6
9281 else
9282   if test -n "$OTOOL"; then
9283   ac_cv_prog_OTOOL="$OTOOL" # 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_OTOOL="${ac_tool_prefix}otool"
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 OTOOL=$ac_cv_prog_OTOOL
9303 if test -n "$OTOOL"; then
9304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9305 $as_echo "$OTOOL" >&6; }
9306 else
9307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9308 $as_echo "no" >&6; }
9309 fi
9310
9311
9312 fi
9313 if test -z "$ac_cv_prog_OTOOL"; then
9314   ac_ct_OTOOL=$OTOOL
9315   # Extract the first word of "otool", so it can be a program name with args.
9316 set dummy otool; ac_word=$2
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9318 $as_echo_n "checking for $ac_word... " >&6; }
9319 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9320   $as_echo_n "(cached) " >&6
9321 else
9322   if test -n "$ac_ct_OTOOL"; then
9323   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9324 else
9325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9326 for as_dir in $PATH
9327 do
9328   IFS=$as_save_IFS
9329   test -z "$as_dir" && as_dir=.
9330     for ac_exec_ext in '' $ac_executable_extensions; do
9331   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9332     ac_cv_prog_ac_ct_OTOOL="otool"
9333     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9334     break 2
9335   fi
9336 done
9337   done
9338 IFS=$as_save_IFS
9339
9340 fi
9341 fi
9342 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9343 if test -n "$ac_ct_OTOOL"; then
9344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9345 $as_echo "$ac_ct_OTOOL" >&6; }
9346 else
9347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9348 $as_echo "no" >&6; }
9349 fi
9350
9351   if test "x$ac_ct_OTOOL" = x; then
9352     OTOOL=":"
9353   else
9354     case $cross_compiling:$ac_tool_warned in
9355 yes:)
9356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9357 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9358 ac_tool_warned=yes ;;
9359 esac
9360     OTOOL=$ac_ct_OTOOL
9361   fi
9362 else
9363   OTOOL="$ac_cv_prog_OTOOL"
9364 fi
9365
9366     if test -n "$ac_tool_prefix"; then
9367   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9368 set dummy ${ac_tool_prefix}otool64; 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_OTOOL64+:} false; then :
9372   $as_echo_n "(cached) " >&6
9373 else
9374   if test -n "$OTOOL64"; then
9375   ac_cv_prog_OTOOL64="$OTOOL64" # 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_OTOOL64="${ac_tool_prefix}otool64"
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 OTOOL64=$ac_cv_prog_OTOOL64
9395 if test -n "$OTOOL64"; then
9396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9397 $as_echo "$OTOOL64" >&6; }
9398 else
9399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9400 $as_echo "no" >&6; }
9401 fi
9402
9403
9404 fi
9405 if test -z "$ac_cv_prog_OTOOL64"; then
9406   ac_ct_OTOOL64=$OTOOL64
9407   # Extract the first word of "otool64", so it can be a program name with args.
9408 set dummy otool64; ac_word=$2
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9410 $as_echo_n "checking for $ac_word... " >&6; }
9411 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9412   $as_echo_n "(cached) " >&6
9413 else
9414   if test -n "$ac_ct_OTOOL64"; then
9415   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9416 else
9417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9418 for as_dir in $PATH
9419 do
9420   IFS=$as_save_IFS
9421   test -z "$as_dir" && as_dir=.
9422     for ac_exec_ext in '' $ac_executable_extensions; do
9423   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9424     ac_cv_prog_ac_ct_OTOOL64="otool64"
9425     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9426     break 2
9427   fi
9428 done
9429   done
9430 IFS=$as_save_IFS
9431
9432 fi
9433 fi
9434 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9435 if test -n "$ac_ct_OTOOL64"; then
9436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9437 $as_echo "$ac_ct_OTOOL64" >&6; }
9438 else
9439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9440 $as_echo "no" >&6; }
9441 fi
9442
9443   if test "x$ac_ct_OTOOL64" = x; then
9444     OTOOL64=":"
9445   else
9446     case $cross_compiling:$ac_tool_warned in
9447 yes:)
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9449 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9450 ac_tool_warned=yes ;;
9451 esac
9452     OTOOL64=$ac_ct_OTOOL64
9453   fi
9454 else
9455   OTOOL64="$ac_cv_prog_OTOOL64"
9456 fi
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9485 $as_echo_n "checking for -single_module linker flag... " >&6; }
9486 if ${lt_cv_apple_cc_single_mod+:} false; then :
9487   $as_echo_n "(cached) " >&6
9488 else
9489   lt_cv_apple_cc_single_mod=no
9490       if test -z "${LT_MULTI_MODULE}"; then
9491         # By default we will add the -single_module flag. You can override
9492         # by either setting the environment variable LT_MULTI_MODULE
9493         # non-empty at configure time, or by adding -multi_module to the
9494         # link flags.
9495         rm -rf libconftest.dylib*
9496         echo "int foo(void){return 1;}" > conftest.c
9497         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9498 -dynamiclib -Wl,-single_module conftest.c" >&5
9499         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9500           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9501         _lt_result=$?
9502         # If there is a non-empty error log, and "single_module"
9503         # appears in it, assume the flag caused a linker warning
9504         if test -s conftest.err && $GREP single_module conftest.err; then
9505           cat conftest.err >&5
9506         # Otherwise, if the output was created with a 0 exit code from
9507         # the compiler, it worked.
9508         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
9509           lt_cv_apple_cc_single_mod=yes
9510         else
9511           cat conftest.err >&5
9512         fi
9513         rm -rf libconftest.dylib*
9514         rm -f conftest.*
9515       fi
9516 fi
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9518 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9519
9520     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9521 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9522 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9523   $as_echo_n "(cached) " >&6
9524 else
9525   lt_cv_ld_exported_symbols_list=no
9526       save_LDFLAGS=$LDFLAGS
9527       echo "_main" > conftest.sym
9528       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9529       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9530 /* end confdefs.h.  */
9531
9532 int
9533 main ()
9534 {
9535
9536   ;
9537   return 0;
9538 }
9539 _ACEOF
9540 if ac_fn_c_try_link "$LINENO"; then :
9541   lt_cv_ld_exported_symbols_list=yes
9542 else
9543   lt_cv_ld_exported_symbols_list=no
9544 fi
9545 rm -f core conftest.err conftest.$ac_objext \
9546     conftest$ac_exeext conftest.$ac_ext
9547         LDFLAGS="$save_LDFLAGS"
9548
9549 fi
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9551 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9552
9553     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9554 $as_echo_n "checking for -force_load linker flag... " >&6; }
9555 if ${lt_cv_ld_force_load+:} false; then :
9556   $as_echo_n "(cached) " >&6
9557 else
9558   lt_cv_ld_force_load=no
9559       cat > conftest.c << _LT_EOF
9560 int forced_loaded() { return 2;}
9561 _LT_EOF
9562       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9563       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9564       echo "$AR cru libconftest.a conftest.o" >&5
9565       $AR cru libconftest.a conftest.o 2>&5
9566       echo "$RANLIB libconftest.a" >&5
9567       $RANLIB libconftest.a 2>&5
9568       cat > conftest.c << _LT_EOF
9569 int main() { return 0;}
9570 _LT_EOF
9571       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9572       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9573       _lt_result=$?
9574       if test -s conftest.err && $GREP force_load conftest.err; then
9575         cat conftest.err >&5
9576       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
9577         lt_cv_ld_force_load=yes
9578       else
9579         cat conftest.err >&5
9580       fi
9581         rm -f conftest.err libconftest.a conftest conftest.c
9582         rm -rf conftest.dSYM
9583
9584 fi
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9586 $as_echo "$lt_cv_ld_force_load" >&6; }
9587     case $host_os in
9588     rhapsody* | darwin1.[012])
9589       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9590     darwin1.*)
9591       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9592     darwin*) # darwin 5.x on
9593       # if running on 10.5 or later, the deployment target defaults
9594       # to the OS version, if on x86, and 10.4, the deployment
9595       # target defaults to 10.4. Don't you love it?
9596       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9597         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9598           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9599         10.[012]*)
9600           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9601         10.*)
9602           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9603       esac
9604     ;;
9605   esac
9606     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9607       _lt_dar_single_mod='$single_module'
9608     fi
9609     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9610       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9611     else
9612       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9613     fi
9614     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9615       _lt_dsymutil='~$DSYMUTIL $lib || :'
9616     else
9617       _lt_dsymutil=
9618     fi
9619     ;;
9620   esac
9621
9622 for ac_header in dlfcn.h
9623 do :
9624   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9625 "
9626 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9627   cat >>confdefs.h <<_ACEOF
9628 #define HAVE_DLFCN_H 1
9629 _ACEOF
9630
9631 fi
9632
9633 done
9634
9635
9636
9637
9638 func_stripname_cnf ()
9639 {
9640   case ${2} in
9641   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9642   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9643   esac
9644 } # func_stripname_cnf
9645
9646
9647
9648
9649
9650 # Set options
9651 enable_win32_dll=yes
9652
9653 case $host in
9654 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
9655   if test -n "$ac_tool_prefix"; then
9656   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
9657 set dummy ${ac_tool_prefix}as; ac_word=$2
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9659 $as_echo_n "checking for $ac_word... " >&6; }
9660 if ${ac_cv_prog_AS+:} false; then :
9661   $as_echo_n "(cached) " >&6
9662 else
9663   if test -n "$AS"; then
9664   ac_cv_prog_AS="$AS" # Let the user override the test.
9665 else
9666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9667 for as_dir in $PATH
9668 do
9669   IFS=$as_save_IFS
9670   test -z "$as_dir" && as_dir=.
9671     for ac_exec_ext in '' $ac_executable_extensions; do
9672   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9673     ac_cv_prog_AS="${ac_tool_prefix}as"
9674     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9675     break 2
9676   fi
9677 done
9678   done
9679 IFS=$as_save_IFS
9680
9681 fi
9682 fi
9683 AS=$ac_cv_prog_AS
9684 if test -n "$AS"; then
9685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9686 $as_echo "$AS" >&6; }
9687 else
9688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9689 $as_echo "no" >&6; }
9690 fi
9691
9692
9693 fi
9694 if test -z "$ac_cv_prog_AS"; then
9695   ac_ct_AS=$AS
9696   # Extract the first word of "as", so it can be a program name with args.
9697 set dummy as; ac_word=$2
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9699 $as_echo_n "checking for $ac_word... " >&6; }
9700 if ${ac_cv_prog_ac_ct_AS+:} false; then :
9701   $as_echo_n "(cached) " >&6
9702 else
9703   if test -n "$ac_ct_AS"; then
9704   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9705 else
9706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9707 for as_dir in $PATH
9708 do
9709   IFS=$as_save_IFS
9710   test -z "$as_dir" && as_dir=.
9711     for ac_exec_ext in '' $ac_executable_extensions; do
9712   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9713     ac_cv_prog_ac_ct_AS="as"
9714     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9715     break 2
9716   fi
9717 done
9718   done
9719 IFS=$as_save_IFS
9720
9721 fi
9722 fi
9723 ac_ct_AS=$ac_cv_prog_ac_ct_AS
9724 if test -n "$ac_ct_AS"; then
9725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
9726 $as_echo "$ac_ct_AS" >&6; }
9727 else
9728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9729 $as_echo "no" >&6; }
9730 fi
9731
9732   if test "x$ac_ct_AS" = x; then
9733     AS="false"
9734   else
9735     case $cross_compiling:$ac_tool_warned in
9736 yes:)
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9738 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9739 ac_tool_warned=yes ;;
9740 esac
9741     AS=$ac_ct_AS
9742   fi
9743 else
9744   AS="$ac_cv_prog_AS"
9745 fi
9746
9747   if test -n "$ac_tool_prefix"; then
9748   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9749 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9751 $as_echo_n "checking for $ac_word... " >&6; }
9752 if ${ac_cv_prog_DLLTOOL+:} false; then :
9753   $as_echo_n "(cached) " >&6
9754 else
9755   if test -n "$DLLTOOL"; then
9756   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9757 else
9758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9759 for as_dir in $PATH
9760 do
9761   IFS=$as_save_IFS
9762   test -z "$as_dir" && as_dir=.
9763     for ac_exec_ext in '' $ac_executable_extensions; do
9764   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9765     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9766     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9767     break 2
9768   fi
9769 done
9770   done
9771 IFS=$as_save_IFS
9772
9773 fi
9774 fi
9775 DLLTOOL=$ac_cv_prog_DLLTOOL
9776 if test -n "$DLLTOOL"; then
9777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9778 $as_echo "$DLLTOOL" >&6; }
9779 else
9780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9781 $as_echo "no" >&6; }
9782 fi
9783
9784
9785 fi
9786 if test -z "$ac_cv_prog_DLLTOOL"; then
9787   ac_ct_DLLTOOL=$DLLTOOL
9788   # Extract the first word of "dlltool", so it can be a program name with args.
9789 set dummy dlltool; ac_word=$2
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9791 $as_echo_n "checking for $ac_word... " >&6; }
9792 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9793   $as_echo_n "(cached) " >&6
9794 else
9795   if test -n "$ac_ct_DLLTOOL"; then
9796   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9797 else
9798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9799 for as_dir in $PATH
9800 do
9801   IFS=$as_save_IFS
9802   test -z "$as_dir" && as_dir=.
9803     for ac_exec_ext in '' $ac_executable_extensions; do
9804   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9805     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9806     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9807     break 2
9808   fi
9809 done
9810   done
9811 IFS=$as_save_IFS
9812
9813 fi
9814 fi
9815 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9816 if test -n "$ac_ct_DLLTOOL"; then
9817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9818 $as_echo "$ac_ct_DLLTOOL" >&6; }
9819 else
9820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9821 $as_echo "no" >&6; }
9822 fi
9823
9824   if test "x$ac_ct_DLLTOOL" = x; then
9825     DLLTOOL="false"
9826   else
9827     case $cross_compiling:$ac_tool_warned in
9828 yes:)
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9830 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9831 ac_tool_warned=yes ;;
9832 esac
9833     DLLTOOL=$ac_ct_DLLTOOL
9834   fi
9835 else
9836   DLLTOOL="$ac_cv_prog_DLLTOOL"
9837 fi
9838
9839   if test -n "$ac_tool_prefix"; then
9840   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9841 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9843 $as_echo_n "checking for $ac_word... " >&6; }
9844 if ${ac_cv_prog_OBJDUMP+:} false; then :
9845   $as_echo_n "(cached) " >&6
9846 else
9847   if test -n "$OBJDUMP"; then
9848   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9849 else
9850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9851 for as_dir in $PATH
9852 do
9853   IFS=$as_save_IFS
9854   test -z "$as_dir" && as_dir=.
9855     for ac_exec_ext in '' $ac_executable_extensions; do
9856   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9857     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9858     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9859     break 2
9860   fi
9861 done
9862   done
9863 IFS=$as_save_IFS
9864
9865 fi
9866 fi
9867 OBJDUMP=$ac_cv_prog_OBJDUMP
9868 if test -n "$OBJDUMP"; then
9869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9870 $as_echo "$OBJDUMP" >&6; }
9871 else
9872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9873 $as_echo "no" >&6; }
9874 fi
9875
9876
9877 fi
9878 if test -z "$ac_cv_prog_OBJDUMP"; then
9879   ac_ct_OBJDUMP=$OBJDUMP
9880   # Extract the first word of "objdump", so it can be a program name with args.
9881 set dummy objdump; ac_word=$2
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9883 $as_echo_n "checking for $ac_word... " >&6; }
9884 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9885   $as_echo_n "(cached) " >&6
9886 else
9887   if test -n "$ac_ct_OBJDUMP"; then
9888   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9889 else
9890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9891 for as_dir in $PATH
9892 do
9893   IFS=$as_save_IFS
9894   test -z "$as_dir" && as_dir=.
9895     for ac_exec_ext in '' $ac_executable_extensions; do
9896   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9897     ac_cv_prog_ac_ct_OBJDUMP="objdump"
9898     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9899     break 2
9900   fi
9901 done
9902   done
9903 IFS=$as_save_IFS
9904
9905 fi
9906 fi
9907 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9908 if test -n "$ac_ct_OBJDUMP"; then
9909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9910 $as_echo "$ac_ct_OBJDUMP" >&6; }
9911 else
9912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9913 $as_echo "no" >&6; }
9914 fi
9915
9916   if test "x$ac_ct_OBJDUMP" = x; then
9917     OBJDUMP="false"
9918   else
9919     case $cross_compiling:$ac_tool_warned in
9920 yes:)
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9922 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9923 ac_tool_warned=yes ;;
9924 esac
9925     OBJDUMP=$ac_ct_OBJDUMP
9926   fi
9927 else
9928   OBJDUMP="$ac_cv_prog_OBJDUMP"
9929 fi
9930
9931   ;;
9932 esac
9933
9934 test -z "$AS" && AS=as
9935
9936
9937
9938
9939
9940 test -z "$DLLTOOL" && DLLTOOL=dlltool
9941
9942
9943
9944
9945
9946 test -z "$OBJDUMP" && OBJDUMP=objdump
9947
9948
9949
9950
9951 # Check whether --enable-static was given.
9952 if test "${enable_static+set}" = set; then :
9953   enableval=$enable_static; p=${PACKAGE-default}
9954     case $enableval in
9955     yes) enable_static=yes ;;
9956     no) enable_static=no ;;
9957     *)
9958      enable_static=no
9959       # Look at the argument we got.  We use all the common list separators.
9960       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9961       for pkg in $enableval; do
9962         IFS="$lt_save_ifs"
9963         if test "X$pkg" = "X$p"; then
9964           enable_static=yes
9965         fi
9966       done
9967       IFS="$lt_save_ifs"
9968       ;;
9969     esac
9970 else
9971   enable_static=no
9972 fi
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983         enable_dlopen=no
9984
9985
9986
9987             # Check whether --enable-shared was given.
9988 if test "${enable_shared+set}" = set; then :
9989   enableval=$enable_shared; p=${PACKAGE-default}
9990     case $enableval in
9991     yes) enable_shared=yes ;;
9992     no) enable_shared=no ;;
9993     *)
9994       enable_shared=no
9995       # Look at the argument we got.  We use all the common list separators.
9996       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9997       for pkg in $enableval; do
9998         IFS="$lt_save_ifs"
9999         if test "X$pkg" = "X$p"; then
10000           enable_shared=yes
10001         fi
10002       done
10003       IFS="$lt_save_ifs"
10004       ;;
10005     esac
10006 else
10007   enable_shared=yes
10008 fi
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020 # Check whether --with-pic was given.
10021 if test "${with_pic+set}" = set; then :
10022   withval=$with_pic; lt_p=${PACKAGE-default}
10023     case $withval in
10024     yes|no) pic_mode=$withval ;;
10025     *)
10026       pic_mode=default
10027       # Look at the argument we got.  We use all the common list separators.
10028       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10029       for lt_pkg in $withval; do
10030         IFS="$lt_save_ifs"
10031         if test "X$lt_pkg" = "X$lt_p"; then
10032           pic_mode=yes
10033         fi
10034       done
10035       IFS="$lt_save_ifs"
10036       ;;
10037     esac
10038 else
10039   pic_mode=default
10040 fi
10041
10042
10043 test -z "$pic_mode" && pic_mode=default
10044
10045
10046
10047
10048
10049
10050
10051   # Check whether --enable-fast-install was given.
10052 if test "${enable_fast_install+set}" = set; then :
10053   enableval=$enable_fast_install; p=${PACKAGE-default}
10054     case $enableval in
10055     yes) enable_fast_install=yes ;;
10056     no) enable_fast_install=no ;;
10057     *)
10058       enable_fast_install=no
10059       # Look at the argument we got.  We use all the common list separators.
10060       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10061       for pkg in $enableval; do
10062         IFS="$lt_save_ifs"
10063         if test "X$pkg" = "X$p"; then
10064           enable_fast_install=yes
10065         fi
10066       done
10067       IFS="$lt_save_ifs"
10068       ;;
10069     esac
10070 else
10071   enable_fast_install=yes
10072 fi
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084 # This can be used to rebuild libtool when needed
10085 LIBTOOL_DEPS="$ltmain"
10086
10087 # Always use our own libtool.
10088 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119 test -z "$LN_S" && LN_S="ln -s"
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134 if test -n "${ZSH_VERSION+set}" ; then
10135    setopt NO_GLOB_SUBST
10136 fi
10137
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10139 $as_echo_n "checking for objdir... " >&6; }
10140 if ${lt_cv_objdir+:} false; then :
10141   $as_echo_n "(cached) " >&6
10142 else
10143   rm -f .libs 2>/dev/null
10144 mkdir .libs 2>/dev/null
10145 if test -d .libs; then
10146   lt_cv_objdir=.libs
10147 else
10148   # MS-DOS does not allow filenames that begin with a dot.
10149   lt_cv_objdir=_libs
10150 fi
10151 rmdir .libs 2>/dev/null
10152 fi
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10154 $as_echo "$lt_cv_objdir" >&6; }
10155 objdir=$lt_cv_objdir
10156
10157
10158
10159
10160
10161 cat >>confdefs.h <<_ACEOF
10162 #define LT_OBJDIR "$lt_cv_objdir/"
10163 _ACEOF
10164
10165
10166
10167
10168 case $host_os in
10169 aix3*)
10170   # AIX sometimes has problems with the GCC collect2 program.  For some
10171   # reason, if we set the COLLECT_NAMES environment variable, the problems
10172   # vanish in a puff of smoke.
10173   if test "X${COLLECT_NAMES+set}" != Xset; then
10174     COLLECT_NAMES=
10175     export COLLECT_NAMES
10176   fi
10177   ;;
10178 esac
10179
10180 # Global variables:
10181 ofile=libtool
10182 can_build_shared=yes
10183
10184 # All known linkers require a `.a' archive for static linking (except MSVC,
10185 # which needs '.lib').
10186 libext=a
10187
10188 with_gnu_ld="$lt_cv_prog_gnu_ld"
10189
10190 old_CC="$CC"
10191 old_CFLAGS="$CFLAGS"
10192
10193 # Set sane defaults for various variables
10194 test -z "$CC" && CC=cc
10195 test -z "$LTCC" && LTCC=$CC
10196 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10197 test -z "$LD" && LD=ld
10198 test -z "$ac_objext" && ac_objext=o
10199
10200 for cc_temp in $compiler""; do
10201   case $cc_temp in
10202     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10203     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10204     \-*) ;;
10205     *) break;;
10206   esac
10207 done
10208 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10209
10210
10211 # Only perform the check for file, if the check method requires it
10212 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10213 case $deplibs_check_method in
10214 file_magic*)
10215   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10216     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10217 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10218 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10219   $as_echo_n "(cached) " >&6
10220 else
10221   case $MAGIC_CMD in
10222 [\\/*] |  ?:[\\/]*)
10223   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10224   ;;
10225 *)
10226   lt_save_MAGIC_CMD="$MAGIC_CMD"
10227   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10228   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10229   for ac_dir in $ac_dummy; do
10230     IFS="$lt_save_ifs"
10231     test -z "$ac_dir" && ac_dir=.
10232     if test -f $ac_dir/${ac_tool_prefix}file; then
10233       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10234       if test -n "$file_magic_test_file"; then
10235         case $deplibs_check_method in
10236         "file_magic "*)
10237           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10238           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10239           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10240             $EGREP "$file_magic_regex" > /dev/null; then
10241             :
10242           else
10243             cat <<_LT_EOF 1>&2
10244
10245 *** Warning: the command libtool uses to detect shared libraries,
10246 *** $file_magic_cmd, produces output that libtool cannot recognize.
10247 *** The result is that libtool may fail to recognize shared libraries
10248 *** as such.  This will affect the creation of libtool libraries that
10249 *** depend on shared libraries, but programs linked with such libtool
10250 *** libraries will work regardless of this problem.  Nevertheless, you
10251 *** may want to report the problem to your system manager and/or to
10252 *** bug-libtool@gnu.org
10253
10254 _LT_EOF
10255           fi ;;
10256         esac
10257       fi
10258       break
10259     fi
10260   done
10261   IFS="$lt_save_ifs"
10262   MAGIC_CMD="$lt_save_MAGIC_CMD"
10263   ;;
10264 esac
10265 fi
10266
10267 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10268 if test -n "$MAGIC_CMD"; then
10269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10270 $as_echo "$MAGIC_CMD" >&6; }
10271 else
10272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10273 $as_echo "no" >&6; }
10274 fi
10275
10276
10277
10278
10279
10280 if test -z "$lt_cv_path_MAGIC_CMD"; then
10281   if test -n "$ac_tool_prefix"; then
10282     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10283 $as_echo_n "checking for file... " >&6; }
10284 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10285   $as_echo_n "(cached) " >&6
10286 else
10287   case $MAGIC_CMD in
10288 [\\/*] |  ?:[\\/]*)
10289   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10290   ;;
10291 *)
10292   lt_save_MAGIC_CMD="$MAGIC_CMD"
10293   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10294   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10295   for ac_dir in $ac_dummy; do
10296     IFS="$lt_save_ifs"
10297     test -z "$ac_dir" && ac_dir=.
10298     if test -f $ac_dir/file; then
10299       lt_cv_path_MAGIC_CMD="$ac_dir/file"
10300       if test -n "$file_magic_test_file"; then
10301         case $deplibs_check_method in
10302         "file_magic "*)
10303           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10304           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10305           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10306             $EGREP "$file_magic_regex" > /dev/null; then
10307             :
10308           else
10309             cat <<_LT_EOF 1>&2
10310
10311 *** Warning: the command libtool uses to detect shared libraries,
10312 *** $file_magic_cmd, produces output that libtool cannot recognize.
10313 *** The result is that libtool may fail to recognize shared libraries
10314 *** as such.  This will affect the creation of libtool libraries that
10315 *** depend on shared libraries, but programs linked with such libtool
10316 *** libraries will work regardless of this problem.  Nevertheless, you
10317 *** may want to report the problem to your system manager and/or to
10318 *** bug-libtool@gnu.org
10319
10320 _LT_EOF
10321           fi ;;
10322         esac
10323       fi
10324       break
10325     fi
10326   done
10327   IFS="$lt_save_ifs"
10328   MAGIC_CMD="$lt_save_MAGIC_CMD"
10329   ;;
10330 esac
10331 fi
10332
10333 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10334 if test -n "$MAGIC_CMD"; then
10335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10336 $as_echo "$MAGIC_CMD" >&6; }
10337 else
10338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10339 $as_echo "no" >&6; }
10340 fi
10341
10342
10343   else
10344     MAGIC_CMD=:
10345   fi
10346 fi
10347
10348   fi
10349   ;;
10350 esac
10351
10352 # Use C for the default configuration in the libtool script
10353
10354 lt_save_CC="$CC"
10355 ac_ext=c
10356 ac_cpp='$CPP $CPPFLAGS'
10357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10360
10361
10362 # Source file extension for C test sources.
10363 ac_ext=c
10364
10365 # Object file extension for compiled C test sources.
10366 objext=o
10367 objext=$objext
10368
10369 # Code to be used in simple compile tests
10370 lt_simple_compile_test_code="int some_variable = 0;"
10371
10372 # Code to be used in simple link tests
10373 lt_simple_link_test_code='int main(){return(0);}'
10374
10375
10376
10377
10378
10379
10380
10381 # If no C compiler was specified, use CC.
10382 LTCC=${LTCC-"$CC"}
10383
10384 # If no C compiler flags were specified, use CFLAGS.
10385 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10386
10387 # Allow CC to be a program name with arguments.
10388 compiler=$CC
10389
10390 # Save the default compiler, since it gets overwritten when the other
10391 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10392 compiler_DEFAULT=$CC
10393
10394 # save warnings/boilerplate of simple test code
10395 ac_outfile=conftest.$ac_objext
10396 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10397 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10398 _lt_compiler_boilerplate=`cat conftest.err`
10399 $RM conftest*
10400
10401 ac_outfile=conftest.$ac_objext
10402 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10403 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10404 _lt_linker_boilerplate=`cat conftest.err`
10405 $RM -r conftest*
10406
10407
10408 ## CAVEAT EMPTOR:
10409 ## There is no encapsulation within the following macros, do not change
10410 ## the running order or otherwise move them around unless you know exactly
10411 ## what you are doing...
10412 if test -n "$compiler"; then
10413
10414 lt_prog_compiler_no_builtin_flag=
10415
10416 if test "$GCC" = yes; then
10417   case $cc_basename in
10418   nvcc*)
10419     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10420   *)
10421     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10422   esac
10423
10424   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10425 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10426 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10427   $as_echo_n "(cached) " >&6
10428 else
10429   lt_cv_prog_compiler_rtti_exceptions=no
10430    ac_outfile=conftest.$ac_objext
10431    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10432    lt_compiler_flag="-fno-rtti -fno-exceptions"
10433    # Insert the option either (1) after the last *FLAGS variable, or
10434    # (2) before a word containing "conftest.", or (3) at the end.
10435    # Note that $ac_compile itself does not contain backslashes and begins
10436    # with a dollar sign (not a hyphen), so the echo should work correctly.
10437    # The option is referenced via a variable to avoid confusing sed.
10438    lt_compile=`echo "$ac_compile" | $SED \
10439    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10440    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10441    -e 's:$: $lt_compiler_flag:'`
10442    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10443    (eval "$lt_compile" 2>conftest.err)
10444    ac_status=$?
10445    cat conftest.err >&5
10446    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10447    if (exit $ac_status) && test -s "$ac_outfile"; then
10448      # The compiler can only warn and ignore the option if not recognized
10449      # So say no if there are warnings other than the usual output.
10450      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10451      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10452      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10453        lt_cv_prog_compiler_rtti_exceptions=yes
10454      fi
10455    fi
10456    $RM conftest*
10457
10458 fi
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10460 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10461
10462 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10463     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10464 else
10465     :
10466 fi
10467
10468 fi
10469
10470
10471
10472
10473
10474
10475   lt_prog_compiler_wl=
10476 lt_prog_compiler_pic=
10477 lt_prog_compiler_static=
10478
10479
10480   if test "$GCC" = yes; then
10481     lt_prog_compiler_wl='-Wl,'
10482     lt_prog_compiler_static='-static'
10483
10484     case $host_os in
10485       aix*)
10486       # All AIX code is PIC.
10487       if test "$host_cpu" = ia64; then
10488         # AIX 5 now supports IA64 processor
10489         lt_prog_compiler_static='-Bstatic'
10490       fi
10491       ;;
10492
10493     amigaos*)
10494       case $host_cpu in
10495       powerpc)
10496             # see comment about AmigaOS4 .so support
10497             lt_prog_compiler_pic='-fPIC'
10498         ;;
10499       m68k)
10500             # FIXME: we need at least 68020 code to build shared libraries, but
10501             # adding the `-m68020' flag to GCC prevents building anything better,
10502             # like `-m68040'.
10503             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10504         ;;
10505       esac
10506       ;;
10507
10508     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10509       # PIC is the default for these OSes.
10510       ;;
10511
10512     mingw* | cygwin* | pw32* | os2* | cegcc*)
10513       # This hack is so that the source file can tell whether it is being
10514       # built for inclusion in a dll (and should export symbols for example).
10515       # Although the cygwin gcc ignores -fPIC, still need this for old-style
10516       # (--disable-auto-import) libraries
10517       lt_prog_compiler_pic='-DDLL_EXPORT'
10518       ;;
10519
10520     darwin* | rhapsody*)
10521       # PIC is the default on this platform
10522       # Common symbols not allowed in MH_DYLIB files
10523       lt_prog_compiler_pic='-fno-common'
10524       ;;
10525
10526     haiku*)
10527       # PIC is the default for Haiku.
10528       # The "-static" flag exists, but is broken.
10529       lt_prog_compiler_static=
10530       ;;
10531
10532     hpux*)
10533       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10534       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10535       # sets the default TLS model and affects inlining.
10536       case $host_cpu in
10537       hppa*64*)
10538         # +Z the default
10539         ;;
10540       *)
10541         lt_prog_compiler_pic='-fPIC'
10542         ;;
10543       esac
10544       ;;
10545
10546     interix[3-9]*)
10547       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10548       # Instead, we relocate shared libraries at runtime.
10549       ;;
10550
10551     msdosdjgpp*)
10552       # Just because we use GCC doesn't mean we suddenly get shared libraries
10553       # on systems that don't support them.
10554       lt_prog_compiler_can_build_shared=no
10555       enable_shared=no
10556       ;;
10557
10558     *nto* | *qnx*)
10559       # QNX uses GNU C++, but need to define -shared option too, otherwise
10560       # it will coredump.
10561       lt_prog_compiler_pic='-fPIC -shared'
10562       ;;
10563
10564     sysv4*MP*)
10565       if test -d /usr/nec; then
10566         lt_prog_compiler_pic=-Kconform_pic
10567       fi
10568       ;;
10569
10570     *)
10571       lt_prog_compiler_pic='-fPIC'
10572       ;;
10573     esac
10574
10575     case $cc_basename in
10576     nvcc*) # Cuda Compiler Driver 2.2
10577       lt_prog_compiler_wl='-Xlinker '
10578       if test -n "$lt_prog_compiler_pic"; then
10579         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10580       fi
10581       ;;
10582     esac
10583   else
10584     # PORTME Check for flag to pass linker flags through the system compiler.
10585     case $host_os in
10586     aix*)
10587       lt_prog_compiler_wl='-Wl,'
10588       if test "$host_cpu" = ia64; then
10589         # AIX 5 now supports IA64 processor
10590         lt_prog_compiler_static='-Bstatic'
10591       else
10592         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10593       fi
10594       ;;
10595
10596     mingw* | cygwin* | pw32* | os2* | cegcc*)
10597       # This hack is so that the source file can tell whether it is being
10598       # built for inclusion in a dll (and should export symbols for example).
10599       lt_prog_compiler_pic='-DDLL_EXPORT'
10600       ;;
10601
10602     hpux9* | hpux10* | hpux11*)
10603       lt_prog_compiler_wl='-Wl,'
10604       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10605       # not for PA HP-UX.
10606       case $host_cpu in
10607       hppa*64*|ia64*)
10608         # +Z the default
10609         ;;
10610       *)
10611         lt_prog_compiler_pic='+Z'
10612         ;;
10613       esac
10614       # Is there a better lt_prog_compiler_static that works with the bundled CC?
10615       lt_prog_compiler_static='${wl}-a ${wl}archive'
10616       ;;
10617
10618     irix5* | irix6* | nonstopux*)
10619       lt_prog_compiler_wl='-Wl,'
10620       # PIC (with -KPIC) is the default.
10621       lt_prog_compiler_static='-non_shared'
10622       ;;
10623
10624     linux* | k*bsd*-gnu | kopensolaris*-gnu)
10625       case $cc_basename in
10626       # old Intel for x86_64 which still supported -KPIC.
10627       ecc*)
10628         lt_prog_compiler_wl='-Wl,'
10629         lt_prog_compiler_pic='-KPIC'
10630         lt_prog_compiler_static='-static'
10631         ;;
10632       # icc used to be incompatible with GCC.
10633       # ICC 10 doesn't accept -KPIC any more.
10634       icc* | ifort*)
10635         lt_prog_compiler_wl='-Wl,'
10636         lt_prog_compiler_pic='-fPIC'
10637         lt_prog_compiler_static='-static'
10638         ;;
10639       # Lahey Fortran 8.1.
10640       lf95*)
10641         lt_prog_compiler_wl='-Wl,'
10642         lt_prog_compiler_pic='--shared'
10643         lt_prog_compiler_static='--static'
10644         ;;
10645       nagfor*)
10646         # NAG Fortran compiler
10647         lt_prog_compiler_wl='-Wl,-Wl,,'
10648         lt_prog_compiler_pic='-PIC'
10649         lt_prog_compiler_static='-Bstatic'
10650         ;;
10651       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10652         # Portland Group compilers (*not* the Pentium gcc compiler,
10653         # which looks to be a dead project)
10654         lt_prog_compiler_wl='-Wl,'
10655         lt_prog_compiler_pic='-fpic'
10656         lt_prog_compiler_static='-Bstatic'
10657         ;;
10658       ccc*)
10659         lt_prog_compiler_wl='-Wl,'
10660         # All Alpha code is PIC.
10661         lt_prog_compiler_static='-non_shared'
10662         ;;
10663       xl* | bgxl* | bgf* | mpixl*)
10664         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10665         lt_prog_compiler_wl='-Wl,'
10666         lt_prog_compiler_pic='-qpic'
10667         lt_prog_compiler_static='-qstaticlink'
10668         ;;
10669       *)
10670         case `$CC -V 2>&1 | sed 5q` in
10671         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10672           # Sun Fortran 8.3 passes all unrecognized flags to the linker
10673           lt_prog_compiler_pic='-KPIC'
10674           lt_prog_compiler_static='-Bstatic'
10675           lt_prog_compiler_wl=''
10676           ;;
10677         *Sun\ F* | *Sun*Fortran*)
10678           lt_prog_compiler_pic='-KPIC'
10679           lt_prog_compiler_static='-Bstatic'
10680           lt_prog_compiler_wl='-Qoption ld '
10681           ;;
10682         *Sun\ C*)
10683           # Sun C 5.9
10684           lt_prog_compiler_pic='-KPIC'
10685           lt_prog_compiler_static='-Bstatic'
10686           lt_prog_compiler_wl='-Wl,'
10687           ;;
10688         *Intel*\ [CF]*Compiler*)
10689           lt_prog_compiler_wl='-Wl,'
10690           lt_prog_compiler_pic='-fPIC'
10691           lt_prog_compiler_static='-static'
10692           ;;
10693         *Portland\ Group*)
10694           lt_prog_compiler_wl='-Wl,'
10695           lt_prog_compiler_pic='-fpic'
10696           lt_prog_compiler_static='-Bstatic'
10697           ;;
10698         esac
10699         ;;
10700       esac
10701       ;;
10702
10703     newsos6)
10704       lt_prog_compiler_pic='-KPIC'
10705       lt_prog_compiler_static='-Bstatic'
10706       ;;
10707
10708     *nto* | *qnx*)
10709       # QNX uses GNU C++, but need to define -shared option too, otherwise
10710       # it will coredump.
10711       lt_prog_compiler_pic='-fPIC -shared'
10712       ;;
10713
10714     osf3* | osf4* | osf5*)
10715       lt_prog_compiler_wl='-Wl,'
10716       # All OSF/1 code is PIC.
10717       lt_prog_compiler_static='-non_shared'
10718       ;;
10719
10720     rdos*)
10721       lt_prog_compiler_static='-non_shared'
10722       ;;
10723
10724     solaris*)
10725       lt_prog_compiler_pic='-KPIC'
10726       lt_prog_compiler_static='-Bstatic'
10727       case $cc_basename in
10728       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10729         lt_prog_compiler_wl='-Qoption ld ';;
10730       *)
10731         lt_prog_compiler_wl='-Wl,';;
10732       esac
10733       ;;
10734
10735     sunos4*)
10736       lt_prog_compiler_wl='-Qoption ld '
10737       lt_prog_compiler_pic='-PIC'
10738       lt_prog_compiler_static='-Bstatic'
10739       ;;
10740
10741     sysv4 | sysv4.2uw2* | sysv4.3*)
10742       lt_prog_compiler_wl='-Wl,'
10743       lt_prog_compiler_pic='-KPIC'
10744       lt_prog_compiler_static='-Bstatic'
10745       ;;
10746
10747     sysv4*MP*)
10748       if test -d /usr/nec ;then
10749         lt_prog_compiler_pic='-Kconform_pic'
10750         lt_prog_compiler_static='-Bstatic'
10751       fi
10752       ;;
10753
10754     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10755       lt_prog_compiler_wl='-Wl,'
10756       lt_prog_compiler_pic='-KPIC'
10757       lt_prog_compiler_static='-Bstatic'
10758       ;;
10759
10760     unicos*)
10761       lt_prog_compiler_wl='-Wl,'
10762       lt_prog_compiler_can_build_shared=no
10763       ;;
10764
10765     uts4*)
10766       lt_prog_compiler_pic='-pic'
10767       lt_prog_compiler_static='-Bstatic'
10768       ;;
10769
10770     *)
10771       lt_prog_compiler_can_build_shared=no
10772       ;;
10773     esac
10774   fi
10775
10776 case $host_os in
10777   # For platforms which do not support PIC, -DPIC is meaningless:
10778   *djgpp*)
10779     lt_prog_compiler_pic=
10780     ;;
10781   *)
10782     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10783     ;;
10784 esac
10785
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10787 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10788 if ${lt_cv_prog_compiler_pic+:} false; then :
10789   $as_echo_n "(cached) " >&6
10790 else
10791   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10792 fi
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10794 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10795 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10796
10797 #
10798 # Check to make sure the PIC flag actually works.
10799 #
10800 if test -n "$lt_prog_compiler_pic"; then
10801   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10802 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10803 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10804   $as_echo_n "(cached) " >&6
10805 else
10806   lt_cv_prog_compiler_pic_works=no
10807    ac_outfile=conftest.$ac_objext
10808    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10809    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10810    # Insert the option either (1) after the last *FLAGS variable, or
10811    # (2) before a word containing "conftest.", or (3) at the end.
10812    # Note that $ac_compile itself does not contain backslashes and begins
10813    # with a dollar sign (not a hyphen), so the echo should work correctly.
10814    # The option is referenced via a variable to avoid confusing sed.
10815    lt_compile=`echo "$ac_compile" | $SED \
10816    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10817    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10818    -e 's:$: $lt_compiler_flag:'`
10819    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10820    (eval "$lt_compile" 2>conftest.err)
10821    ac_status=$?
10822    cat conftest.err >&5
10823    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824    if (exit $ac_status) && test -s "$ac_outfile"; then
10825      # The compiler can only warn and ignore the option if not recognized
10826      # So say no if there are warnings other than the usual output.
10827      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10828      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10829      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10830        lt_cv_prog_compiler_pic_works=yes
10831      fi
10832    fi
10833    $RM conftest*
10834
10835 fi
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10837 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10838
10839 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10840     case $lt_prog_compiler_pic in
10841      "" | " "*) ;;
10842      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10843      esac
10844 else
10845     lt_prog_compiler_pic=
10846      lt_prog_compiler_can_build_shared=no
10847 fi
10848
10849 fi
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861 #
10862 # Check to make sure the static flag actually works.
10863 #
10864 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10866 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10867 if ${lt_cv_prog_compiler_static_works+:} false; then :
10868   $as_echo_n "(cached) " >&6
10869 else
10870   lt_cv_prog_compiler_static_works=no
10871    save_LDFLAGS="$LDFLAGS"
10872    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10873    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10874    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10875      # The linker can only warn and ignore the option if not recognized
10876      # So say no if there are warnings
10877      if test -s conftest.err; then
10878        # Append any errors to the config.log.
10879        cat conftest.err 1>&5
10880        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10881        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10882        if diff conftest.exp conftest.er2 >/dev/null; then
10883          lt_cv_prog_compiler_static_works=yes
10884        fi
10885      else
10886        lt_cv_prog_compiler_static_works=yes
10887      fi
10888    fi
10889    $RM -r conftest*
10890    LDFLAGS="$save_LDFLAGS"
10891
10892 fi
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10894 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10895
10896 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10897     :
10898 else
10899     lt_prog_compiler_static=
10900 fi
10901
10902
10903
10904
10905
10906
10907
10908   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10909 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10910 if ${lt_cv_prog_compiler_c_o+:} false; then :
10911   $as_echo_n "(cached) " >&6
10912 else
10913   lt_cv_prog_compiler_c_o=no
10914    $RM -r conftest 2>/dev/null
10915    mkdir conftest
10916    cd conftest
10917    mkdir out
10918    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10919
10920    lt_compiler_flag="-o out/conftest2.$ac_objext"
10921    # Insert the option either (1) after the last *FLAGS variable, or
10922    # (2) before a word containing "conftest.", or (3) at the end.
10923    # Note that $ac_compile itself does not contain backslashes and begins
10924    # with a dollar sign (not a hyphen), so the echo should work correctly.
10925    lt_compile=`echo "$ac_compile" | $SED \
10926    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10927    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10928    -e 's:$: $lt_compiler_flag:'`
10929    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10930    (eval "$lt_compile" 2>out/conftest.err)
10931    ac_status=$?
10932    cat out/conftest.err >&5
10933    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10935    then
10936      # The compiler can only warn and ignore the option if not recognized
10937      # So say no if there are warnings
10938      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10939      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10940      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10941        lt_cv_prog_compiler_c_o=yes
10942      fi
10943    fi
10944    chmod u+w . 2>&5
10945    $RM conftest*
10946    # SGI C++ compiler will create directory out/ii_files/ for
10947    # template instantiation
10948    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10949    $RM out/* && rmdir out
10950    cd ..
10951    $RM -r conftest
10952    $RM conftest*
10953
10954 fi
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10956 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10957
10958
10959
10960
10961
10962
10963   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10964 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10965 if ${lt_cv_prog_compiler_c_o+:} false; then :
10966   $as_echo_n "(cached) " >&6
10967 else
10968   lt_cv_prog_compiler_c_o=no
10969    $RM -r conftest 2>/dev/null
10970    mkdir conftest
10971    cd conftest
10972    mkdir out
10973    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10974
10975    lt_compiler_flag="-o out/conftest2.$ac_objext"
10976    # Insert the option either (1) after the last *FLAGS variable, or
10977    # (2) before a word containing "conftest.", or (3) at the end.
10978    # Note that $ac_compile itself does not contain backslashes and begins
10979    # with a dollar sign (not a hyphen), so the echo should work correctly.
10980    lt_compile=`echo "$ac_compile" | $SED \
10981    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10982    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10983    -e 's:$: $lt_compiler_flag:'`
10984    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10985    (eval "$lt_compile" 2>out/conftest.err)
10986    ac_status=$?
10987    cat out/conftest.err >&5
10988    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10989    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10990    then
10991      # The compiler can only warn and ignore the option if not recognized
10992      # So say no if there are warnings
10993      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10994      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10995      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10996        lt_cv_prog_compiler_c_o=yes
10997      fi
10998    fi
10999    chmod u+w . 2>&5
11000    $RM conftest*
11001    # SGI C++ compiler will create directory out/ii_files/ for
11002    # template instantiation
11003    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11004    $RM out/* && rmdir out
11005    cd ..
11006    $RM -r conftest
11007    $RM conftest*
11008
11009 fi
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11011 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11012
11013
11014
11015
11016 hard_links="nottested"
11017 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
11018   # do not overwrite the value of need_locks provided by the user
11019   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11020 $as_echo_n "checking if we can lock with hard links... " >&6; }
11021   hard_links=yes
11022   $RM conftest*
11023   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11024   touch conftest.a
11025   ln conftest.a conftest.b 2>&5 || hard_links=no
11026   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11028 $as_echo "$hard_links" >&6; }
11029   if test "$hard_links" = no; then
11030     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11031 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11032     need_locks=warn
11033   fi
11034 else
11035   need_locks=no
11036 fi
11037
11038
11039
11040
11041
11042
11043   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11044 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11045
11046   runpath_var=
11047   allow_undefined_flag=
11048   always_export_symbols=no
11049   archive_cmds=
11050   archive_expsym_cmds=
11051   compiler_needs_object=no
11052   enable_shared_with_static_runtimes=no
11053   export_dynamic_flag_spec=
11054   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11055   hardcode_automatic=no
11056   hardcode_direct=no
11057   hardcode_direct_absolute=no
11058   hardcode_libdir_flag_spec=
11059   hardcode_libdir_separator=
11060   hardcode_minus_L=no
11061   hardcode_shlibpath_var=unsupported
11062   inherit_rpath=no
11063   link_all_deplibs=unknown
11064   module_cmds=
11065   module_expsym_cmds=
11066   old_archive_from_new_cmds=
11067   old_archive_from_expsyms_cmds=
11068   thread_safe_flag_spec=
11069   whole_archive_flag_spec=
11070   # include_expsyms should be a list of space-separated symbols to be *always*
11071   # included in the symbol list
11072   include_expsyms=
11073   # exclude_expsyms can be an extended regexp of symbols to exclude
11074   # it will be wrapped by ` (' and `)$', so one must not match beginning or
11075   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11076   # as well as any symbol that contains `d'.
11077   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11078   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11079   # platforms (ab)use it in PIC code, but their linkers get confused if
11080   # the symbol is explicitly referenced.  Since portable code cannot
11081   # rely on this symbol name, it's probably fine to never include it in
11082   # preloaded symbol tables.
11083   # Exclude shared library initialization/finalization symbols.
11084   extract_expsyms_cmds=
11085
11086   case $host_os in
11087   cygwin* | mingw* | pw32* | cegcc*)
11088     # FIXME: the MSVC++ port hasn't been tested in a loooong time
11089     # When not using gcc, we currently assume that we are using
11090     # Microsoft Visual C++.
11091     if test "$GCC" != yes; then
11092       with_gnu_ld=no
11093     fi
11094     ;;
11095   interix*)
11096     # we just hope/assume this is gcc and not c89 (= MSVC++)
11097     with_gnu_ld=yes
11098     ;;
11099   openbsd*)
11100     with_gnu_ld=no
11101     ;;
11102   linux* | k*bsd*-gnu | gnu*)
11103     link_all_deplibs=no
11104     ;;
11105   esac
11106
11107   ld_shlibs=yes
11108
11109   # On some targets, GNU ld is compatible enough with the native linker
11110   # that we're better off using the native interface for both.
11111   lt_use_gnu_ld_interface=no
11112   if test "$with_gnu_ld" = yes; then
11113     case $host_os in
11114       aix*)
11115         # The AIX port of GNU ld has always aspired to compatibility
11116         # with the native linker.  However, as the warning in the GNU ld
11117         # block says, versions before 2.19.5* couldn't really create working
11118         # shared libraries, regardless of the interface used.
11119         case `$LD -v 2>&1` in
11120           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11121           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11122           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11123           *)
11124             lt_use_gnu_ld_interface=yes
11125             ;;
11126         esac
11127         ;;
11128       *)
11129         lt_use_gnu_ld_interface=yes
11130         ;;
11131     esac
11132   fi
11133
11134   if test "$lt_use_gnu_ld_interface" = yes; then
11135     # If archive_cmds runs LD, not CC, wlarc should be empty
11136     wlarc='${wl}'
11137
11138     # Set some defaults for GNU ld with shared library support. These
11139     # are reset later if shared libraries are not supported. Putting them
11140     # here allows them to be overridden if necessary.
11141     runpath_var=LD_RUN_PATH
11142     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11143     export_dynamic_flag_spec='${wl}--export-dynamic'
11144     # ancient GNU ld didn't support --whole-archive et. al.
11145     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11146       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11147     else
11148       whole_archive_flag_spec=
11149     fi
11150     supports_anon_versioning=no
11151     case `$LD -v 2>&1` in
11152       *GNU\ gold*) supports_anon_versioning=yes ;;
11153       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11154       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11155       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11156       *\ 2.11.*) ;; # other 2.11 versions
11157       *) supports_anon_versioning=yes ;;
11158     esac
11159
11160     # See if GNU ld supports shared libraries.
11161     case $host_os in
11162     aix[3-9]*)
11163       # On AIX/PPC, the GNU linker is very broken
11164       if test "$host_cpu" != ia64; then
11165         ld_shlibs=no
11166         cat <<_LT_EOF 1>&2
11167
11168 *** Warning: the GNU linker, at least up to release 2.19, is reported
11169 *** to be unable to reliably create shared libraries on AIX.
11170 *** Therefore, libtool is disabling shared libraries support.  If you
11171 *** really care for shared libraries, you may want to install binutils
11172 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11173 *** You will then need to restart the configuration process.
11174
11175 _LT_EOF
11176       fi
11177       ;;
11178
11179     amigaos*)
11180       case $host_cpu in
11181       powerpc)
11182             # see comment about AmigaOS4 .so support
11183             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11184             archive_expsym_cmds=''
11185         ;;
11186       m68k)
11187             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)'
11188             hardcode_libdir_flag_spec='-L$libdir'
11189             hardcode_minus_L=yes
11190         ;;
11191       esac
11192       ;;
11193
11194     beos*)
11195       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11196         allow_undefined_flag=unsupported
11197         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11198         # support --undefined.  This deserves some investigation.  FIXME
11199         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11200       else
11201         ld_shlibs=no
11202       fi
11203       ;;
11204
11205     cygwin* | mingw* | pw32* | cegcc*)
11206       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11207       # as there is no search path for DLLs.
11208       hardcode_libdir_flag_spec='-L$libdir'
11209       export_dynamic_flag_spec='${wl}--export-all-symbols'
11210       allow_undefined_flag=unsupported
11211       always_export_symbols=no
11212       enable_shared_with_static_runtimes=yes
11213       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'
11214       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11215
11216       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11217         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11218         # If the export-symbols file already is a .def file (1st line
11219         # is EXPORTS), use it as is; otherwise, prepend...
11220         archive_expsym_cmds='if test "x`$SED \"$sed_uncomment_deffile\" $export_symbols | $SED 1q`" = xEXPORTS; then
11221           cp $export_symbols $output_objdir/$soname.def;
11222         else
11223           echo EXPORTS > $output_objdir/$soname.def;
11224           cat $export_symbols >> $output_objdir/$soname.def;
11225         fi~
11226         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11227       else
11228         ld_shlibs=no
11229       fi
11230       ;;
11231
11232     haiku*)
11233       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11234       link_all_deplibs=yes
11235       ;;
11236
11237     interix[3-9]*)
11238       hardcode_direct=no
11239       hardcode_shlibpath_var=no
11240       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11241       export_dynamic_flag_spec='${wl}-E'
11242       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11243       # Instead, shared libraries are loaded at an image base (0x10000000 by
11244       # default) and relocated if they conflict, which is a slow very memory
11245       # consuming and fragmenting process.  To avoid this, we pick a random,
11246       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11247       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11248       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11249       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'
11250       ;;
11251
11252     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11253       tmp_diet=no
11254       if test "$host_os" = linux-dietlibc; then
11255         case $cc_basename in
11256           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
11257         esac
11258       fi
11259       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11260          && test "$tmp_diet" = no
11261       then
11262         tmp_addflag=' $pic_flag'
11263         tmp_sharedflag='-shared'
11264         case $cc_basename,$host_cpu in
11265         pgcc*)                          # Portland Group C compiler
11266           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'
11267           tmp_addflag=' $pic_flag'
11268           ;;
11269         pgf77* | pgf90* | pgf95* | pgfortran*)
11270                                         # Portland Group f77 and f90 compilers
11271           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'
11272           tmp_addflag=' $pic_flag -Mnomain' ;;
11273         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
11274           tmp_addflag=' -i_dynamic' ;;
11275         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
11276           tmp_addflag=' -i_dynamic -nofor_main' ;;
11277         ifc* | ifort*)                  # Intel Fortran compiler
11278           tmp_addflag=' -nofor_main' ;;
11279         lf95*)                          # Lahey Fortran 8.1
11280           whole_archive_flag_spec=
11281           tmp_sharedflag='--shared' ;;
11282         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11283           tmp_sharedflag='-qmkshrobj'
11284           tmp_addflag= ;;
11285         nvcc*)  # Cuda Compiler Driver 2.2
11286           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'
11287           compiler_needs_object=yes
11288           ;;
11289         esac
11290         case `$CC -V 2>&1 | sed 5q` in
11291         *Sun\ C*)                       # Sun C 5.9
11292           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'
11293           compiler_needs_object=yes
11294           tmp_sharedflag='-G' ;;
11295         *Sun\ F*)                       # Sun Fortran 8.3
11296           tmp_sharedflag='-G' ;;
11297         esac
11298         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11299
11300         if test "x$supports_anon_versioning" = xyes; then
11301           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11302             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11303             echo "local: *; };" >> $output_objdir/$libname.ver~
11304             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11305         fi
11306
11307         case $cc_basename in
11308         xlf* | bgf* | bgxlf* | mpixlf*)
11309           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11310           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11311           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11312           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11313           if test "x$supports_anon_versioning" = xyes; then
11314             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11315               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11316               echo "local: *; };" >> $output_objdir/$libname.ver~
11317               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11318           fi
11319           ;;
11320         esac
11321       else
11322         ld_shlibs=no
11323       fi
11324       ;;
11325
11326     netbsd* | netbsdelf*-gnu)
11327       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11328         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11329         wlarc=
11330       else
11331         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11332         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11333       fi
11334       ;;
11335
11336     solaris*)
11337       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11338         ld_shlibs=no
11339         cat <<_LT_EOF 1>&2
11340
11341 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11342 *** create shared libraries on Solaris systems.  Therefore, libtool
11343 *** is disabling shared libraries support.  We urge you to upgrade GNU
11344 *** binutils to release 2.9.1 or newer.  Another option is to modify
11345 *** your PATH or compiler configuration so that the native linker is
11346 *** used, and then restart.
11347
11348 _LT_EOF
11349       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11350         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11351         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11352       else
11353         ld_shlibs=no
11354       fi
11355       ;;
11356
11357     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11358       case `$LD -v 2>&1` in
11359         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11360         ld_shlibs=no
11361         cat <<_LT_EOF 1>&2
11362
11363 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11364 *** reliably create shared libraries on SCO systems.  Therefore, libtool
11365 *** is disabling shared libraries support.  We urge you to upgrade GNU
11366 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11367 *** your PATH or compiler configuration so that the native linker is
11368 *** used, and then restart.
11369
11370 _LT_EOF
11371         ;;
11372         *)
11373           # For security reasons, it is highly recommended that you always
11374           # use absolute paths for naming shared libraries, and exclude the
11375           # DT_RUNPATH tag from executables and libraries.  But doing so
11376           # requires that you compile everything twice, which is a pain.
11377           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11378             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11379             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11380             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11381           else
11382             ld_shlibs=no
11383           fi
11384         ;;
11385       esac
11386       ;;
11387
11388     sunos4*)
11389       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11390       wlarc=
11391       hardcode_direct=yes
11392       hardcode_shlibpath_var=no
11393       ;;
11394
11395     *)
11396       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11397         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11398         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11399       else
11400         ld_shlibs=no
11401       fi
11402       ;;
11403     esac
11404
11405     if test "$ld_shlibs" = no; then
11406       runpath_var=
11407       hardcode_libdir_flag_spec=
11408       export_dynamic_flag_spec=
11409       whole_archive_flag_spec=
11410     fi
11411   else
11412     # PORTME fill in a description of your system's linker (not GNU ld)
11413     case $host_os in
11414     aix3*)
11415       allow_undefined_flag=unsupported
11416       always_export_symbols=yes
11417       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'
11418       # Note: this linker hardcodes the directories in LIBPATH if there
11419       # are no directories specified by -L.
11420       hardcode_minus_L=yes
11421       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11422         # Neither direct hardcoding nor static linking is supported with a
11423         # broken collect2.
11424         hardcode_direct=unsupported
11425       fi
11426       ;;
11427
11428     aix[4-9]*)
11429       if test "$host_cpu" = ia64; then
11430         # On IA64, the linker does run time linking by default, so we don't
11431         # have to do anything special.
11432         aix_use_runtimelinking=no
11433         exp_sym_flag='-Bexport'
11434         no_entry_flag=""
11435       else
11436         # If we're using GNU nm, then we don't want the "-C" option.
11437         # -C means demangle to AIX nm, but means don't demangle with GNU nm
11438         # Also, AIX nm treats weak defined symbols like other global
11439         # defined symbols, whereas GNU nm marks them as "W".
11440         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11441           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'
11442         else
11443           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'
11444         fi
11445         aix_use_runtimelinking=no
11446
11447         # Test if we are trying to use run time linking or normal
11448         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11449         # need to do runtime linking.
11450         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11451           for ld_flag in $LDFLAGS; do
11452           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11453             aix_use_runtimelinking=yes
11454             break
11455           fi
11456           done
11457           ;;
11458         esac
11459
11460         exp_sym_flag='-bexport'
11461         no_entry_flag='-bnoentry'
11462       fi
11463
11464       # When large executables or shared objects are built, AIX ld can
11465       # have problems creating the table of contents.  If linking a library
11466       # or program results in "error TOC overflow" add -mminimal-toc to
11467       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11468       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11469
11470       archive_cmds=''
11471       hardcode_direct=yes
11472       hardcode_direct_absolute=yes
11473       hardcode_libdir_separator=':'
11474       link_all_deplibs=yes
11475       file_list_spec='${wl}-f,'
11476
11477       if test "$GCC" = yes; then
11478         case $host_os in aix4.[012]|aix4.[012].*)
11479         # We only want to do this on AIX 4.2 and lower, the check
11480         # below for broken collect2 doesn't work under 4.3+
11481           collect2name=`${CC} -print-prog-name=collect2`
11482           if test -f "$collect2name" &&
11483            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11484           then
11485           # We have reworked collect2
11486           :
11487           else
11488           # We have old collect2
11489           hardcode_direct=unsupported
11490           # It fails to find uninstalled libraries when the uninstalled
11491           # path is not listed in the libpath.  Setting hardcode_minus_L
11492           # to unsupported forces relinking
11493           hardcode_minus_L=yes
11494           hardcode_libdir_flag_spec='-L$libdir'
11495           hardcode_libdir_separator=
11496           fi
11497           ;;
11498         esac
11499         shared_flag='-shared'
11500         if test "$aix_use_runtimelinking" = yes; then
11501           shared_flag="$shared_flag "'${wl}-G'
11502         fi
11503         link_all_deplibs=no
11504       else
11505         # not using gcc
11506         if test "$host_cpu" = ia64; then
11507         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11508         # chokes on -Wl,-G. The following line is correct:
11509           shared_flag='-G'
11510         else
11511           if test "$aix_use_runtimelinking" = yes; then
11512             shared_flag='${wl}-G'
11513           else
11514             shared_flag='${wl}-bM:SRE'
11515           fi
11516         fi
11517       fi
11518
11519       export_dynamic_flag_spec='${wl}-bexpall'
11520       # It seems that -bexpall does not export symbols beginning with
11521       # underscore (_), so it is better to generate a list of symbols to export.
11522       always_export_symbols=yes
11523       if test "$aix_use_runtimelinking" = yes; then
11524         # Warning - without using the other runtime loading flags (-brtl),
11525         # -berok will link without error, but may produce a broken library.
11526         allow_undefined_flag='-berok'
11527         # Determine the default libpath from the value encoded in an
11528         # empty executable.
11529         if test "${lt_cv_aix_libpath+set}" = set; then
11530   aix_libpath=$lt_cv_aix_libpath
11531 else
11532   if ${lt_cv_aix_libpath_+:} false; then :
11533   $as_echo_n "(cached) " >&6
11534 else
11535   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11536 /* end confdefs.h.  */
11537
11538 int
11539 main ()
11540 {
11541
11542   ;
11543   return 0;
11544 }
11545 _ACEOF
11546 if ac_fn_c_try_link "$LINENO"; then :
11547
11548   lt_aix_libpath_sed='
11549       /Import File Strings/,/^$/ {
11550           /^0/ {
11551               s/^0  *\([^ ]*\) *$/\1/
11552               p
11553           }
11554       }'
11555   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11556   # Check for a 64-bit object if we didn't find anything.
11557   if test -z "$lt_cv_aix_libpath_"; then
11558     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11559   fi
11560 fi
11561 rm -f core conftest.err conftest.$ac_objext \
11562     conftest$ac_exeext conftest.$ac_ext
11563   if test -z "$lt_cv_aix_libpath_"; then
11564     lt_cv_aix_libpath_="/usr/lib:/lib"
11565   fi
11566
11567 fi
11568
11569   aix_libpath=$lt_cv_aix_libpath_
11570 fi
11571
11572         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11573         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"
11574       else
11575         if test "$host_cpu" = ia64; then
11576           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11577           allow_undefined_flag="-z nodefs"
11578           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"
11579         else
11580          # Determine the default libpath from the value encoded in an
11581          # empty executable.
11582          if test "${lt_cv_aix_libpath+set}" = set; then
11583   aix_libpath=$lt_cv_aix_libpath
11584 else
11585   if ${lt_cv_aix_libpath_+:} false; then :
11586   $as_echo_n "(cached) " >&6
11587 else
11588   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11589 /* end confdefs.h.  */
11590
11591 int
11592 main ()
11593 {
11594
11595   ;
11596   return 0;
11597 }
11598 _ACEOF
11599 if ac_fn_c_try_link "$LINENO"; then :
11600
11601   lt_aix_libpath_sed='
11602       /Import File Strings/,/^$/ {
11603           /^0/ {
11604               s/^0  *\([^ ]*\) *$/\1/
11605               p
11606           }
11607       }'
11608   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11609   # Check for a 64-bit object if we didn't find anything.
11610   if test -z "$lt_cv_aix_libpath_"; then
11611     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11612   fi
11613 fi
11614 rm -f core conftest.err conftest.$ac_objext \
11615     conftest$ac_exeext conftest.$ac_ext
11616   if test -z "$lt_cv_aix_libpath_"; then
11617     lt_cv_aix_libpath_="/usr/lib:/lib"
11618   fi
11619
11620 fi
11621
11622   aix_libpath=$lt_cv_aix_libpath_
11623 fi
11624
11625          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11626           # Warning - without using the other run time loading flags,
11627           # -berok will link without error, but may produce a broken library.
11628           no_undefined_flag=' ${wl}-bernotok'
11629           allow_undefined_flag=' ${wl}-berok'
11630           if test "$with_gnu_ld" = yes; then
11631             # We only use this code for GNU lds that support --whole-archive.
11632             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11633           else
11634             # Exported symbols can be pulled into shared objects from archives
11635             whole_archive_flag_spec='$convenience'
11636           fi
11637           archive_cmds_need_lc=yes
11638           # This is similar to how AIX traditionally builds its shared libraries.
11639           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'
11640         fi
11641       fi
11642       ;;
11643
11644     amigaos*)
11645       case $host_cpu in
11646       powerpc)
11647             # see comment about AmigaOS4 .so support
11648             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11649             archive_expsym_cmds=''
11650         ;;
11651       m68k)
11652             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)'
11653             hardcode_libdir_flag_spec='-L$libdir'
11654             hardcode_minus_L=yes
11655         ;;
11656       esac
11657       ;;
11658
11659     bsdi[45]*)
11660       export_dynamic_flag_spec=-rdynamic
11661       ;;
11662
11663     cygwin* | mingw* | pw32* | cegcc*)
11664       # When not using gcc, we currently assume that we are using
11665       # Microsoft Visual C++.
11666       # hardcode_libdir_flag_spec is actually meaningless, as there is
11667       # no search path for DLLs.
11668       case $cc_basename in
11669       cl*)
11670         # Native MSVC
11671         hardcode_libdir_flag_spec=' '
11672         allow_undefined_flag=unsupported
11673         always_export_symbols=yes
11674         file_list_spec='@'
11675         # Tell ltmain to make .lib files, not .a files.
11676         libext=lib
11677         # Tell ltmain to make .dll files, not .so files.
11678         shrext_cmds=".dll"
11679         # FIXME: Setting linknames here is a bad hack.
11680         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11681         archive_expsym_cmds='if test "x`$SED \"$sed_uncomment_deffile\" $export_symbols | $SED 1q`" = xEXPORTS; then
11682             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11683           else
11684             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11685           fi~
11686           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11687           linknames='
11688         # The linker will not automatically build a static lib if we build a DLL.
11689         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11690         enable_shared_with_static_runtimes=yes
11691         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11692         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11693         # Don't use ranlib
11694         old_postinstall_cmds='chmod 644 $oldlib'
11695         postlink_cmds='lt_outputfile="@OUTPUT@"~
11696           lt_tool_outputfile="@TOOL_OUTPUT@"~
11697           case $lt_outputfile in
11698             *.exe|*.EXE) ;;
11699             *)
11700               lt_outputfile="$lt_outputfile.exe"
11701               lt_tool_outputfile="$lt_tool_outputfile.exe"
11702               ;;
11703           esac~
11704           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11705             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11706             $RM "$lt_outputfile.manifest";
11707           fi'
11708         ;;
11709       *)
11710         # Assume MSVC wrapper
11711         hardcode_libdir_flag_spec=' '
11712         allow_undefined_flag=unsupported
11713         # Tell ltmain to make .lib files, not .a files.
11714         libext=lib
11715         # Tell ltmain to make .dll files, not .so files.
11716         shrext_cmds=".dll"
11717         # FIXME: Setting linknames here is a bad hack.
11718         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11719         # The linker will automatically build a .lib file if we build a DLL.
11720         old_archive_from_new_cmds='true'
11721         # FIXME: Should let the user specify the lib program.
11722         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11723         enable_shared_with_static_runtimes=yes
11724         ;;
11725       esac
11726       ;;
11727
11728     darwin* | rhapsody*)
11729
11730
11731   archive_cmds_need_lc=no
11732   hardcode_direct=no
11733   hardcode_automatic=yes
11734   hardcode_shlibpath_var=unsupported
11735   if test "$lt_cv_ld_force_load" = "yes"; then
11736     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\"`'
11737
11738   else
11739     whole_archive_flag_spec=''
11740   fi
11741   link_all_deplibs=yes
11742   allow_undefined_flag="$_lt_dar_allow_undefined"
11743   case $cc_basename in
11744      ifort*) _lt_dar_can_shared=yes ;;
11745      *) _lt_dar_can_shared=$GCC ;;
11746   esac
11747   if test "$_lt_dar_can_shared" = "yes"; then
11748     output_verbose_link_cmd=func_echo_all
11749     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11750     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11751     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}"
11752     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}"
11753
11754   else
11755   ld_shlibs=no
11756   fi
11757
11758       ;;
11759
11760     dgux*)
11761       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11762       hardcode_libdir_flag_spec='-L$libdir'
11763       hardcode_shlibpath_var=no
11764       ;;
11765
11766     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11767     # support.  Future versions do this automatically, but an explicit c++rt0.o
11768     # does not break anything, and helps significantly (at the cost of a little
11769     # extra space).
11770     freebsd2.2*)
11771       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11772       hardcode_libdir_flag_spec='-R$libdir'
11773       hardcode_direct=yes
11774       hardcode_shlibpath_var=no
11775       ;;
11776
11777     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11778     freebsd2.*)
11779       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11780       hardcode_direct=yes
11781       hardcode_minus_L=yes
11782       hardcode_shlibpath_var=no
11783       ;;
11784
11785     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11786     freebsd* | dragonfly*)
11787       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11788       hardcode_libdir_flag_spec='-R$libdir'
11789       hardcode_direct=yes
11790       hardcode_shlibpath_var=no
11791       ;;
11792
11793     hpux9*)
11794       if test "$GCC" = yes; then
11795         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'
11796       else
11797         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'
11798       fi
11799       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11800       hardcode_libdir_separator=:
11801       hardcode_direct=yes
11802
11803       # hardcode_minus_L: Not really in the search PATH,
11804       # but as the default location of the library.
11805       hardcode_minus_L=yes
11806       export_dynamic_flag_spec='${wl}-E'
11807       ;;
11808
11809     hpux10*)
11810       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11811         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11812       else
11813         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11814       fi
11815       if test "$with_gnu_ld" = no; then
11816         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11817         hardcode_libdir_separator=:
11818         hardcode_direct=yes
11819         hardcode_direct_absolute=yes
11820         export_dynamic_flag_spec='${wl}-E'
11821         # hardcode_minus_L: Not really in the search PATH,
11822         # but as the default location of the library.
11823         hardcode_minus_L=yes
11824       fi
11825       ;;
11826
11827     hpux11*)
11828       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11829         case $host_cpu in
11830         hppa*64*)
11831           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11832           ;;
11833         ia64*)
11834           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11835           ;;
11836         *)
11837           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11838           ;;
11839         esac
11840       else
11841         case $host_cpu in
11842         hppa*64*)
11843           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11844           ;;
11845         ia64*)
11846           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11847           ;;
11848         *)
11849
11850           # Older versions of the 11.00 compiler do not understand -b yet
11851           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11852           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11853 $as_echo_n "checking if $CC understands -b... " >&6; }
11854 if ${lt_cv_prog_compiler__b+:} false; then :
11855   $as_echo_n "(cached) " >&6
11856 else
11857   lt_cv_prog_compiler__b=no
11858    save_LDFLAGS="$LDFLAGS"
11859    LDFLAGS="$LDFLAGS -b"
11860    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11861    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11862      # The linker can only warn and ignore the option if not recognized
11863      # So say no if there are warnings
11864      if test -s conftest.err; then
11865        # Append any errors to the config.log.
11866        cat conftest.err 1>&5
11867        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11868        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11869        if diff conftest.exp conftest.er2 >/dev/null; then
11870          lt_cv_prog_compiler__b=yes
11871        fi
11872      else
11873        lt_cv_prog_compiler__b=yes
11874      fi
11875    fi
11876    $RM -r conftest*
11877    LDFLAGS="$save_LDFLAGS"
11878
11879 fi
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11881 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11882
11883 if test x"$lt_cv_prog_compiler__b" = xyes; then
11884     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11885 else
11886     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11887 fi
11888
11889           ;;
11890         esac
11891       fi
11892       if test "$with_gnu_ld" = no; then
11893         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11894         hardcode_libdir_separator=:
11895
11896         case $host_cpu in
11897         hppa*64*|ia64*)
11898           hardcode_direct=no
11899           hardcode_shlibpath_var=no
11900           ;;
11901         *)
11902           hardcode_direct=yes
11903           hardcode_direct_absolute=yes
11904           export_dynamic_flag_spec='${wl}-E'
11905
11906           # hardcode_minus_L: Not really in the search PATH,
11907           # but as the default location of the library.
11908           hardcode_minus_L=yes
11909           ;;
11910         esac
11911       fi
11912       ;;
11913
11914     irix5* | irix6* | nonstopux*)
11915       if test "$GCC" = yes; then
11916         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'
11917         # Try to use the -exported_symbol ld option, if it does not
11918         # work, assume that -exports_file does not work either and
11919         # implicitly export all symbols.
11920         # This should be the same for all languages, so no per-tag cache variable.
11921         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11922 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11923 if ${lt_cv_irix_exported_symbol+:} false; then :
11924   $as_echo_n "(cached) " >&6
11925 else
11926   save_LDFLAGS="$LDFLAGS"
11927            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11928            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11929 /* end confdefs.h.  */
11930 int foo (void) { return 0; }
11931 _ACEOF
11932 if ac_fn_c_try_link "$LINENO"; then :
11933   lt_cv_irix_exported_symbol=yes
11934 else
11935   lt_cv_irix_exported_symbol=no
11936 fi
11937 rm -f core conftest.err conftest.$ac_objext \
11938     conftest$ac_exeext conftest.$ac_ext
11939            LDFLAGS="$save_LDFLAGS"
11940 fi
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11942 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11943         if test "$lt_cv_irix_exported_symbol" = yes; then
11944           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'
11945         fi
11946       else
11947         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'
11948         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'
11949       fi
11950       archive_cmds_need_lc='no'
11951       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11952       hardcode_libdir_separator=:
11953       inherit_rpath=yes
11954       link_all_deplibs=yes
11955       ;;
11956
11957     netbsd* | netbsdelf*-gnu)
11958       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11959         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11960       else
11961         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11962       fi
11963       hardcode_libdir_flag_spec='-R$libdir'
11964       hardcode_direct=yes
11965       hardcode_shlibpath_var=no
11966       ;;
11967
11968     newsos6)
11969       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11970       hardcode_direct=yes
11971       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11972       hardcode_libdir_separator=:
11973       hardcode_shlibpath_var=no
11974       ;;
11975
11976     *nto* | *qnx*)
11977       ;;
11978
11979     openbsd*)
11980       if test -f /usr/libexec/ld.so; then
11981         hardcode_direct=yes
11982         hardcode_shlibpath_var=no
11983         hardcode_direct_absolute=yes
11984         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11985           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11986           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11987           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11988           export_dynamic_flag_spec='${wl}-E'
11989         else
11990           case $host_os in
11991            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11992              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11993              hardcode_libdir_flag_spec='-R$libdir'
11994              ;;
11995            *)
11996              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11997              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11998              ;;
11999           esac
12000         fi
12001       else
12002         ld_shlibs=no
12003       fi
12004       ;;
12005
12006     os2*)
12007       hardcode_libdir_flag_spec='-L$libdir'
12008       hardcode_minus_L=yes
12009       allow_undefined_flag=unsupported
12010       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'
12011       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12012       ;;
12013
12014     osf3*)
12015       if test "$GCC" = yes; then
12016         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12017         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'
12018       else
12019         allow_undefined_flag=' -expect_unresolved \*'
12020         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'
12021       fi
12022       archive_cmds_need_lc='no'
12023       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12024       hardcode_libdir_separator=:
12025       ;;
12026
12027     osf4* | osf5*)      # as osf3* with the addition of -msym flag
12028       if test "$GCC" = yes; then
12029         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12030         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'
12031         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12032       else
12033         allow_undefined_flag=' -expect_unresolved \*'
12034         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'
12035         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~
12036         $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'
12037
12038         # Both c and cxx compiler support -rpath directly
12039         hardcode_libdir_flag_spec='-rpath $libdir'
12040       fi
12041       archive_cmds_need_lc='no'
12042       hardcode_libdir_separator=:
12043       ;;
12044
12045     solaris*)
12046       no_undefined_flag=' -z defs'
12047       if test "$GCC" = yes; then
12048         wlarc='${wl}'
12049         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12050         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12051           $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'
12052       else
12053         case `$CC -V 2>&1` in
12054         *"Compilers 5.0"*)
12055           wlarc=''
12056           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12057           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12058           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12059           ;;
12060         *)
12061           wlarc='${wl}'
12062           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12063           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12064           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12065           ;;
12066         esac
12067       fi
12068       hardcode_libdir_flag_spec='-R$libdir'
12069       hardcode_shlibpath_var=no
12070       case $host_os in
12071       solaris2.[0-5] | solaris2.[0-5].*) ;;
12072       *)
12073         # The compiler driver will combine and reorder linker options,
12074         # but understands `-z linker_flag'.  GCC discards it without `$wl',
12075         # but is careful enough not to reorder.
12076         # Supported since Solaris 2.6 (maybe 2.5.1?)
12077         if test "$GCC" = yes; then
12078           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12079         else
12080           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12081         fi
12082         ;;
12083       esac
12084       link_all_deplibs=yes
12085       ;;
12086
12087     sunos4*)
12088       if test "x$host_vendor" = xsequent; then
12089         # Use $CC to link under sequent, because it throws in some extra .o
12090         # files that make .init and .fini sections work.
12091         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12092       else
12093         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12094       fi
12095       hardcode_libdir_flag_spec='-L$libdir'
12096       hardcode_direct=yes
12097       hardcode_minus_L=yes
12098       hardcode_shlibpath_var=no
12099       ;;
12100
12101     sysv4)
12102       case $host_vendor in
12103         sni)
12104           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12105           hardcode_direct=yes # is this really true???
12106         ;;
12107         siemens)
12108           ## LD is ld it makes a PLAMLIB
12109           ## CC just makes a GrossModule.
12110           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12111           reload_cmds='$CC -r -o $output$reload_objs'
12112           hardcode_direct=no
12113         ;;
12114         motorola)
12115           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12116           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12117         ;;
12118       esac
12119       runpath_var='LD_RUN_PATH'
12120       hardcode_shlibpath_var=no
12121       ;;
12122
12123     sysv4.3*)
12124       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12125       hardcode_shlibpath_var=no
12126       export_dynamic_flag_spec='-Bexport'
12127       ;;
12128
12129     sysv4*MP*)
12130       if test -d /usr/nec; then
12131         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12132         hardcode_shlibpath_var=no
12133         runpath_var=LD_RUN_PATH
12134         hardcode_runpath_var=yes
12135         ld_shlibs=yes
12136       fi
12137       ;;
12138
12139     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12140       no_undefined_flag='${wl}-z,text'
12141       archive_cmds_need_lc=no
12142       hardcode_shlibpath_var=no
12143       runpath_var='LD_RUN_PATH'
12144
12145       if test "$GCC" = yes; then
12146         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12147         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12148       else
12149         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12150         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12151       fi
12152       ;;
12153
12154     sysv5* | sco3.2v5* | sco5v6*)
12155       # Note: We can NOT use -z defs as we might desire, because we do not
12156       # link with -lc, and that would cause any symbols used from libc to
12157       # always be unresolved, which means just about no library would
12158       # ever link correctly.  If we're not using GNU ld we use -z text
12159       # though, which does catch some bad symbols but isn't as heavy-handed
12160       # as -z defs.
12161       no_undefined_flag='${wl}-z,text'
12162       allow_undefined_flag='${wl}-z,nodefs'
12163       archive_cmds_need_lc=no
12164       hardcode_shlibpath_var=no
12165       hardcode_libdir_flag_spec='${wl}-R,$libdir'
12166       hardcode_libdir_separator=':'
12167       link_all_deplibs=yes
12168       export_dynamic_flag_spec='${wl}-Bexport'
12169       runpath_var='LD_RUN_PATH'
12170
12171       if test "$GCC" = yes; then
12172         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12173         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12174       else
12175         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12176         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12177       fi
12178       ;;
12179
12180     uts4*)
12181       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12182       hardcode_libdir_flag_spec='-L$libdir'
12183       hardcode_shlibpath_var=no
12184       ;;
12185
12186     *)
12187       ld_shlibs=no
12188       ;;
12189     esac
12190
12191     if test x$host_vendor = xsni; then
12192       case $host in
12193       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12194         export_dynamic_flag_spec='${wl}-Blargedynsym'
12195         ;;
12196       esac
12197     fi
12198   fi
12199
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12201 $as_echo "$ld_shlibs" >&6; }
12202 test "$ld_shlibs" = no && can_build_shared=no
12203
12204 with_gnu_ld=$with_gnu_ld
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220 #
12221 # Do we need to explicitly link libc?
12222 #
12223 case "x$archive_cmds_need_lc" in
12224 x|xyes)
12225   # Assume -lc should be added
12226   archive_cmds_need_lc=yes
12227
12228   if test "$enable_shared" = yes && test "$GCC" = yes; then
12229     case $archive_cmds in
12230     *'~'*)
12231       # FIXME: we may have to deal with multi-command sequences.
12232       ;;
12233     '$CC '*)
12234       # Test whether the compiler implicitly links with -lc since on some
12235       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12236       # to ld, don't add -lc before -lgcc.
12237       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12238 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12239 if ${lt_cv_archive_cmds_need_lc+:} false; then :
12240   $as_echo_n "(cached) " >&6
12241 else
12242   $RM conftest*
12243         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12244
12245         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12246   (eval $ac_compile) 2>&5
12247   ac_status=$?
12248   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12249   test $ac_status = 0; } 2>conftest.err; then
12250           soname=conftest
12251           lib=conftest
12252           libobjs=conftest.$ac_objext
12253           deplibs=
12254           wl=$lt_prog_compiler_wl
12255           pic_flag=$lt_prog_compiler_pic
12256           compiler_flags=-v
12257           linker_flags=-v
12258           verstring=
12259           output_objdir=.
12260           libname=conftest
12261           lt_save_allow_undefined_flag=$allow_undefined_flag
12262           allow_undefined_flag=
12263           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12264   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12265   ac_status=$?
12266   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12267   test $ac_status = 0; }
12268           then
12269             lt_cv_archive_cmds_need_lc=no
12270           else
12271             lt_cv_archive_cmds_need_lc=yes
12272           fi
12273           allow_undefined_flag=$lt_save_allow_undefined_flag
12274         else
12275           cat conftest.err 1>&5
12276         fi
12277         $RM conftest*
12278
12279 fi
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12281 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12282       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12283       ;;
12284     esac
12285   fi
12286   ;;
12287 esac
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12441 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12442
12443 if test "$GCC" = yes; then
12444   case $host_os in
12445     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12446     *) lt_awk_arg="/^libraries:/" ;;
12447   esac
12448   case $host_os in
12449     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12450     *) lt_sed_strip_eq="s,=/,/,g" ;;
12451   esac
12452   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12453   case $lt_search_path_spec in
12454   *\;*)
12455     # if the path contains ";" then we assume it to be the separator
12456     # otherwise default to the standard path separator (i.e. ":") - it is
12457     # assumed that no part of a normal pathname contains ";" but that should
12458     # okay in the real world where ";" in dirpaths is itself problematic.
12459     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12460     ;;
12461   *)
12462     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12463     ;;
12464   esac
12465   # Ok, now we have the path, separated by spaces, we can step through it
12466   # and add multilib dir if necessary.
12467   lt_tmp_lt_search_path_spec=
12468   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12469   for lt_sys_path in $lt_search_path_spec; do
12470     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12471       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12472     else
12473       test -d "$lt_sys_path" && \
12474         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12475     fi
12476   done
12477   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12478 BEGIN {RS=" "; FS="/|\n";} {
12479   lt_foo="";
12480   lt_count=0;
12481   for (lt_i = NF; lt_i > 0; lt_i--) {
12482     if ($lt_i != "" && $lt_i != ".") {
12483       if ($lt_i == "..") {
12484         lt_count++;
12485       } else {
12486         if (lt_count == 0) {
12487           lt_foo="/" $lt_i lt_foo;
12488         } else {
12489           lt_count--;
12490         }
12491       }
12492     }
12493   }
12494   if (lt_foo != "") { lt_freq[lt_foo]++; }
12495   if (lt_freq[lt_foo] == 1) { print lt_foo; }
12496 }'`
12497   # AWK program above erroneously prepends '/' to C:/dos/paths
12498   # for these hosts.
12499   case $host_os in
12500     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12501       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12502   esac
12503   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12504 else
12505   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12506 fi
12507 library_names_spec=
12508 libname_spec='lib$name'
12509 soname_spec=
12510 shrext_cmds=".so"
12511 postinstall_cmds=
12512 postuninstall_cmds=
12513 finish_cmds=
12514 finish_eval=
12515 shlibpath_var=
12516 shlibpath_overrides_runpath=unknown
12517 version_type=none
12518 dynamic_linker="$host_os ld.so"
12519 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12520 need_lib_prefix=unknown
12521 hardcode_into_libs=no
12522
12523 # when you set need_version to no, make sure it does not cause -set_version
12524 # flags to be left without arguments
12525 need_version=unknown
12526
12527 case $host_os in
12528 aix3*)
12529   version_type=linux # correct to gnu/linux during the next big refactor
12530   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12531   shlibpath_var=LIBPATH
12532
12533   # AIX 3 has no versioning support, so we append a major version to the name.
12534   soname_spec='${libname}${release}${shared_ext}$major'
12535   ;;
12536
12537 aix[4-9]*)
12538   version_type=linux # correct to gnu/linux during the next big refactor
12539   need_lib_prefix=no
12540   need_version=no
12541   hardcode_into_libs=yes
12542   if test "$host_cpu" = ia64; then
12543     # AIX 5 supports IA64
12544     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12545     shlibpath_var=LD_LIBRARY_PATH
12546   else
12547     # With GCC up to 2.95.x, collect2 would create an import file
12548     # for dependence libraries.  The import file would start with
12549     # the line `#! .'.  This would cause the generated library to
12550     # depend on `.', always an invalid library.  This was fixed in
12551     # development snapshots of GCC prior to 3.0.
12552     case $host_os in
12553       aix4 | aix4.[01] | aix4.[01].*)
12554       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12555            echo ' yes '
12556            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12557         :
12558       else
12559         can_build_shared=no
12560       fi
12561       ;;
12562     esac
12563     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12564     # soname into executable. Probably we can add versioning support to
12565     # collect2, so additional links can be useful in future.
12566     if test "$aix_use_runtimelinking" = yes; then
12567       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12568       # instead of lib<name>.a to let people know that these are not
12569       # typical AIX shared libraries.
12570       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12571     else
12572       # We preserve .a as extension for shared libraries through AIX4.2
12573       # and later when we are not doing run time linking.
12574       library_names_spec='${libname}${release}.a $libname.a'
12575       soname_spec='${libname}${release}${shared_ext}$major'
12576     fi
12577     shlibpath_var=LIBPATH
12578   fi
12579   ;;
12580
12581 amigaos*)
12582   case $host_cpu in
12583   powerpc)
12584     # Since July 2007 AmigaOS4 officially supports .so libraries.
12585     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12586     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12587     ;;
12588   m68k)
12589     library_names_spec='$libname.ixlibrary $libname.a'
12590     # Create ${libname}_ixlibrary.a entries in /sys/libs.
12591     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'
12592     ;;
12593   esac
12594   ;;
12595
12596 beos*)
12597   library_names_spec='${libname}${shared_ext}'
12598   dynamic_linker="$host_os ld.so"
12599   shlibpath_var=LIBRARY_PATH
12600   ;;
12601
12602 bsdi[45]*)
12603   version_type=linux # correct to gnu/linux during the next big refactor
12604   need_version=no
12605   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12606   soname_spec='${libname}${release}${shared_ext}$major'
12607   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12608   shlibpath_var=LD_LIBRARY_PATH
12609   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12610   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12611   # the default ld.so.conf also contains /usr/contrib/lib and
12612   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12613   # libtool to hard-code these into programs
12614   ;;
12615
12616 cygwin* | mingw* | pw32* | cegcc*)
12617   version_type=windows
12618   shrext_cmds=".dll"
12619   need_version=no
12620   need_lib_prefix=no
12621
12622   case $GCC,$cc_basename in
12623   yes,*)
12624     # gcc
12625     library_names_spec='$libname.dll.a'
12626     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12627     postinstall_cmds='base_file=`basename \${file}`~
12628       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12629       dldir=$destdir/`dirname \$dlpath`~
12630       test -d \$dldir || mkdir -p \$dldir~
12631       $install_prog $dir/$dlname \$dldir/$dlname~
12632       chmod a+x \$dldir/$dlname~
12633       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12634         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12635       fi'
12636     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12637       dlpath=$dir/\$dldll~
12638        $RM \$dlpath'
12639     shlibpath_overrides_runpath=yes
12640
12641     case $host_os in
12642     cygwin*)
12643       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12644       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12645
12646       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12647       ;;
12648     mingw* | cegcc*)
12649       # MinGW DLLs use traditional 'lib' prefix
12650       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12651       ;;
12652     pw32*)
12653       # pw32 DLLs use 'pw' prefix rather than 'lib'
12654       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12655       ;;
12656     esac
12657     dynamic_linker='Win32 ld.exe'
12658     ;;
12659
12660   *,cl*)
12661     # Native MSVC
12662     libname_spec='$name'
12663     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12664     library_names_spec='${libname}.dll.lib'
12665
12666     case $build_os in
12667     mingw*)
12668       sys_lib_search_path_spec=
12669       lt_save_ifs=$IFS
12670       IFS=';'
12671       for lt_path in $LIB
12672       do
12673         IFS=$lt_save_ifs
12674         # Let DOS variable expansion print the short 8.3 style file name.
12675         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12676         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12677       done
12678       IFS=$lt_save_ifs
12679       # Convert to MSYS style.
12680       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12681       ;;
12682     cygwin*)
12683       # Convert to unix form, then to dos form, then back to unix form
12684       # but this time dos style (no spaces!) so that the unix form looks
12685       # like /cygdrive/c/PROGRA~1:/cygdr...
12686       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12687       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12688       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12689       ;;
12690     *)
12691       sys_lib_search_path_spec="$LIB"
12692       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12693         # It is most probably a Windows format PATH.
12694         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12695       else
12696         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12697       fi
12698       # FIXME: find the short name or the path components, as spaces are
12699       # common. (e.g. "Program Files" -> "PROGRA~1")
12700       ;;
12701     esac
12702
12703     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12704     postinstall_cmds='base_file=`basename \${file}`~
12705       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12706       dldir=$destdir/`dirname \$dlpath`~
12707       test -d \$dldir || mkdir -p \$dldir~
12708       $install_prog $dir/$dlname \$dldir/$dlname'
12709     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12710       dlpath=$dir/\$dldll~
12711        $RM \$dlpath'
12712     shlibpath_overrides_runpath=yes
12713     dynamic_linker='Win32 link.exe'
12714     ;;
12715
12716   *)
12717     # Assume MSVC wrapper
12718     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12719     dynamic_linker='Win32 ld.exe'
12720     ;;
12721   esac
12722   # FIXME: first we should search . and the directory the executable is in
12723   shlibpath_var=PATH
12724   ;;
12725
12726 darwin* | rhapsody*)
12727   dynamic_linker="$host_os dyld"
12728   version_type=darwin
12729   need_lib_prefix=no
12730   need_version=no
12731   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12732   soname_spec='${libname}${release}${major}$shared_ext'
12733   shlibpath_overrides_runpath=yes
12734   shlibpath_var=DYLD_LIBRARY_PATH
12735   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12736
12737   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12738   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12739   ;;
12740
12741 dgux*)
12742   version_type=linux # correct to gnu/linux during the next big refactor
12743   need_lib_prefix=no
12744   need_version=no
12745   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12746   soname_spec='${libname}${release}${shared_ext}$major'
12747   shlibpath_var=LD_LIBRARY_PATH
12748   ;;
12749
12750 freebsd* | dragonfly*)
12751   # DragonFly does not have aout.  When/if they implement a new
12752   # versioning mechanism, adjust this.
12753   if test -x /usr/bin/objformat; then
12754     objformat=`/usr/bin/objformat`
12755   else
12756     case $host_os in
12757     freebsd[23].*) objformat=aout ;;
12758     *) objformat=elf ;;
12759     esac
12760   fi
12761   version_type=freebsd-$objformat
12762   case $version_type in
12763     freebsd-elf*)
12764       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12765       need_version=no
12766       need_lib_prefix=no
12767       ;;
12768     freebsd-*)
12769       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12770       need_version=yes
12771       ;;
12772   esac
12773   shlibpath_var=LD_LIBRARY_PATH
12774   case $host_os in
12775   freebsd2.*)
12776     shlibpath_overrides_runpath=yes
12777     ;;
12778   freebsd3.[01]* | freebsdelf3.[01]*)
12779     shlibpath_overrides_runpath=yes
12780     hardcode_into_libs=yes
12781     ;;
12782   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12783   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12784     shlibpath_overrides_runpath=no
12785     hardcode_into_libs=yes
12786     ;;
12787   *) # from 4.6 on, and DragonFly
12788     shlibpath_overrides_runpath=yes
12789     hardcode_into_libs=yes
12790     ;;
12791   esac
12792   ;;
12793
12794 gnu*)
12795   version_type=linux # correct to gnu/linux during the next big refactor
12796   need_lib_prefix=no
12797   need_version=no
12798   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12799   soname_spec='${libname}${release}${shared_ext}$major'
12800   shlibpath_var=LD_LIBRARY_PATH
12801   shlibpath_overrides_runpath=no
12802   hardcode_into_libs=yes
12803   ;;
12804
12805 haiku*)
12806   version_type=linux # correct to gnu/linux during the next big refactor
12807   need_lib_prefix=no
12808   need_version=no
12809   dynamic_linker="$host_os runtime_loader"
12810   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12811   soname_spec='${libname}${release}${shared_ext}$major'
12812   shlibpath_var=LIBRARY_PATH
12813   shlibpath_overrides_runpath=yes
12814   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12815   hardcode_into_libs=yes
12816   ;;
12817
12818 hpux9* | hpux10* | hpux11*)
12819   # Give a soname corresponding to the major version so that dld.sl refuses to
12820   # link against other versions.
12821   version_type=sunos
12822   need_lib_prefix=no
12823   need_version=no
12824   case $host_cpu in
12825   ia64*)
12826     shrext_cmds='.so'
12827     hardcode_into_libs=yes
12828     dynamic_linker="$host_os dld.so"
12829     shlibpath_var=LD_LIBRARY_PATH
12830     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12831     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12832     soname_spec='${libname}${release}${shared_ext}$major'
12833     if test "X$HPUX_IA64_MODE" = X32; then
12834       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12835     else
12836       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12837     fi
12838     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12839     ;;
12840   hppa*64*)
12841     shrext_cmds='.sl'
12842     hardcode_into_libs=yes
12843     dynamic_linker="$host_os dld.sl"
12844     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12845     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12846     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12847     soname_spec='${libname}${release}${shared_ext}$major'
12848     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12849     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12850     ;;
12851   *)
12852     shrext_cmds='.sl'
12853     dynamic_linker="$host_os dld.sl"
12854     shlibpath_var=SHLIB_PATH
12855     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12856     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12857     soname_spec='${libname}${release}${shared_ext}$major'
12858     ;;
12859   esac
12860   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12861   postinstall_cmds='chmod 555 $lib'
12862   # or fails outright, so override atomically:
12863   install_override_mode=555
12864   ;;
12865
12866 interix[3-9]*)
12867   version_type=linux # correct to gnu/linux during the next big refactor
12868   need_lib_prefix=no
12869   need_version=no
12870   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12871   soname_spec='${libname}${release}${shared_ext}$major'
12872   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12873   shlibpath_var=LD_LIBRARY_PATH
12874   shlibpath_overrides_runpath=no
12875   hardcode_into_libs=yes
12876   ;;
12877
12878 irix5* | irix6* | nonstopux*)
12879   case $host_os in
12880     nonstopux*) version_type=nonstopux ;;
12881     *)
12882         if test "$lt_cv_prog_gnu_ld" = yes; then
12883                 version_type=linux # correct to gnu/linux during the next big refactor
12884         else
12885                 version_type=irix
12886         fi ;;
12887   esac
12888   need_lib_prefix=no
12889   need_version=no
12890   soname_spec='${libname}${release}${shared_ext}$major'
12891   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12892   case $host_os in
12893   irix5* | nonstopux*)
12894     libsuff= shlibsuff=
12895     ;;
12896   *)
12897     case $LD in # libtool.m4 will add one of these switches to LD
12898     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12899       libsuff= shlibsuff= libmagic=32-bit;;
12900     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12901       libsuff=32 shlibsuff=N32 libmagic=N32;;
12902     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12903       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12904     *) libsuff= shlibsuff= libmagic=never-match;;
12905     esac
12906     ;;
12907   esac
12908   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12909   shlibpath_overrides_runpath=no
12910   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12911   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12912   hardcode_into_libs=yes
12913   ;;
12914
12915 # No shared lib support for Linux oldld, aout, or coff.
12916 linux*oldld* | linux*aout* | linux*coff*)
12917   dynamic_linker=no
12918   ;;
12919
12920 linux*android*)
12921   version_type=none # Android doesn't support versioned libraries.
12922   need_lib_prefix=no
12923   need_version=no
12924   library_names_spec='$libname$release$shared_ext'
12925   soname_spec='$libname$release$shared_ext'
12926   finish_cmds=
12927   shlibpath_var=LD_LIBRARY_PATH
12928   shlibpath_overrides_runpath=yes
12929
12930   # This implies no fast_install, which is unacceptable.
12931   # Some rework will be needed to allow for fast_install
12932   # before this can be enabled.
12933   hardcode_into_libs=yes
12934
12935   dynamic_linker='Android linker'
12936   # Don't embed -rpath directories since the linker doesn't support them.
12937   hardcode_libdir_flag_spec='-L$libdir'
12938   ;;
12939
12940 # This must be glibc/ELF.
12941 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12942   version_type=linux # correct to gnu/linux during the next big refactor
12943   need_lib_prefix=no
12944   need_version=no
12945   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12946   soname_spec='${libname}${release}${shared_ext}$major'
12947   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12948   shlibpath_var=LD_LIBRARY_PATH
12949   shlibpath_overrides_runpath=no
12950
12951   # Some binutils ld are patched to set DT_RUNPATH
12952   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12953   $as_echo_n "(cached) " >&6
12954 else
12955   lt_cv_shlibpath_overrides_runpath=no
12956     save_LDFLAGS=$LDFLAGS
12957     save_libdir=$libdir
12958     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12959          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12960     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12961 /* end confdefs.h.  */
12962
12963 int
12964 main ()
12965 {
12966
12967   ;
12968   return 0;
12969 }
12970 _ACEOF
12971 if ac_fn_c_try_link "$LINENO"; then :
12972   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12973   lt_cv_shlibpath_overrides_runpath=yes
12974 fi
12975 fi
12976 rm -f core conftest.err conftest.$ac_objext \
12977     conftest$ac_exeext conftest.$ac_ext
12978     LDFLAGS=$save_LDFLAGS
12979     libdir=$save_libdir
12980
12981 fi
12982
12983   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12984
12985   # This implies no fast_install, which is unacceptable.
12986   # Some rework will be needed to allow for fast_install
12987   # before this can be enabled.
12988   hardcode_into_libs=yes
12989
12990   # Append ld.so.conf contents to the search path
12991   if test -f /etc/ld.so.conf; then
12992     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' ' '`
12993     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12994   fi
12995
12996   # We used to test for /lib/ld.so.1 and disable shared libraries on
12997   # powerpc, because MkLinux only supported shared libraries with the
12998   # GNU dynamic linker.  Since this was broken with cross compilers,
12999   # most powerpc-linux boxes support dynamic linking these days and
13000   # people can always --disable-shared, the test was removed, and we
13001   # assume the GNU/Linux dynamic linker is in use.
13002   dynamic_linker='GNU/Linux ld.so'
13003   ;;
13004
13005 netbsdelf*-gnu)
13006   version_type=linux
13007   need_lib_prefix=no
13008   need_version=no
13009   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13010   soname_spec='${libname}${release}${shared_ext}$major'
13011   shlibpath_var=LD_LIBRARY_PATH
13012   shlibpath_overrides_runpath=no
13013   hardcode_into_libs=yes
13014   dynamic_linker='NetBSD ld.elf_so'
13015   ;;
13016
13017 netbsd*)
13018   version_type=sunos
13019   need_lib_prefix=no
13020   need_version=no
13021   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13022     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13023     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13024     dynamic_linker='NetBSD (a.out) ld.so'
13025   else
13026     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13027     soname_spec='${libname}${release}${shared_ext}$major'
13028     dynamic_linker='NetBSD ld.elf_so'
13029   fi
13030   shlibpath_var=LD_LIBRARY_PATH
13031   shlibpath_overrides_runpath=yes
13032   hardcode_into_libs=yes
13033   ;;
13034
13035 newsos6)
13036   version_type=linux # correct to gnu/linux during the next big refactor
13037   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13038   shlibpath_var=LD_LIBRARY_PATH
13039   shlibpath_overrides_runpath=yes
13040   ;;
13041
13042 *nto* | *qnx*)
13043   version_type=qnx
13044   need_lib_prefix=no
13045   need_version=no
13046   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13047   soname_spec='${libname}${release}${shared_ext}$major'
13048   shlibpath_var=LD_LIBRARY_PATH
13049   shlibpath_overrides_runpath=no
13050   hardcode_into_libs=yes
13051   dynamic_linker='ldqnx.so'
13052   ;;
13053
13054 openbsd*)
13055   version_type=sunos
13056   sys_lib_dlsearch_path_spec="/usr/lib"
13057   need_lib_prefix=no
13058   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13059   case $host_os in
13060     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
13061     *)                          need_version=no  ;;
13062   esac
13063   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13064   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13065   shlibpath_var=LD_LIBRARY_PATH
13066   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13067     case $host_os in
13068       openbsd2.[89] | openbsd2.[89].*)
13069         shlibpath_overrides_runpath=no
13070         ;;
13071       *)
13072         shlibpath_overrides_runpath=yes
13073         ;;
13074       esac
13075   else
13076     shlibpath_overrides_runpath=yes
13077   fi
13078   ;;
13079
13080 os2*)
13081   libname_spec='$name'
13082   shrext_cmds=".dll"
13083   need_lib_prefix=no
13084   library_names_spec='$libname${shared_ext} $libname.a'
13085   dynamic_linker='OS/2 ld.exe'
13086   shlibpath_var=LIBPATH
13087   ;;
13088
13089 osf3* | osf4* | osf5*)
13090   version_type=osf
13091   need_lib_prefix=no
13092   need_version=no
13093   soname_spec='${libname}${release}${shared_ext}$major'
13094   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13095   shlibpath_var=LD_LIBRARY_PATH
13096   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13097   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13098   ;;
13099
13100 rdos*)
13101   dynamic_linker=no
13102   ;;
13103
13104 solaris*)
13105   version_type=linux # correct to gnu/linux during the next big refactor
13106   need_lib_prefix=no
13107   need_version=no
13108   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13109   soname_spec='${libname}${release}${shared_ext}$major'
13110   shlibpath_var=LD_LIBRARY_PATH
13111   shlibpath_overrides_runpath=yes
13112   hardcode_into_libs=yes
13113   # ldd complains unless libraries are executable
13114   postinstall_cmds='chmod +x $lib'
13115   ;;
13116
13117 sunos4*)
13118   version_type=sunos
13119   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13120   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13121   shlibpath_var=LD_LIBRARY_PATH
13122   shlibpath_overrides_runpath=yes
13123   if test "$with_gnu_ld" = yes; then
13124     need_lib_prefix=no
13125   fi
13126   need_version=yes
13127   ;;
13128
13129 sysv4 | sysv4.3*)
13130   version_type=linux # correct to gnu/linux during the next big refactor
13131   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13132   soname_spec='${libname}${release}${shared_ext}$major'
13133   shlibpath_var=LD_LIBRARY_PATH
13134   case $host_vendor in
13135     sni)
13136       shlibpath_overrides_runpath=no
13137       need_lib_prefix=no
13138       runpath_var=LD_RUN_PATH
13139       ;;
13140     siemens)
13141       need_lib_prefix=no
13142       ;;
13143     motorola)
13144       need_lib_prefix=no
13145       need_version=no
13146       shlibpath_overrides_runpath=no
13147       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13148       ;;
13149   esac
13150   ;;
13151
13152 sysv4*MP*)
13153   if test -d /usr/nec ;then
13154     version_type=linux # correct to gnu/linux during the next big refactor
13155     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13156     soname_spec='$libname${shared_ext}.$major'
13157     shlibpath_var=LD_LIBRARY_PATH
13158   fi
13159   ;;
13160
13161 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13162   version_type=freebsd-elf
13163   need_lib_prefix=no
13164   need_version=no
13165   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13166   soname_spec='${libname}${release}${shared_ext}$major'
13167   shlibpath_var=LD_LIBRARY_PATH
13168   shlibpath_overrides_runpath=yes
13169   hardcode_into_libs=yes
13170   if test "$with_gnu_ld" = yes; then
13171     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13172   else
13173     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13174     case $host_os in
13175       sco3.2v5*)
13176         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13177         ;;
13178     esac
13179   fi
13180   sys_lib_dlsearch_path_spec='/usr/lib'
13181   ;;
13182
13183 tpf*)
13184   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
13185   version_type=linux # correct to gnu/linux during the next big refactor
13186   need_lib_prefix=no
13187   need_version=no
13188   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13189   shlibpath_var=LD_LIBRARY_PATH
13190   shlibpath_overrides_runpath=no
13191   hardcode_into_libs=yes
13192   ;;
13193
13194 uts4*)
13195   version_type=linux # correct to gnu/linux during the next big refactor
13196   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13197   soname_spec='${libname}${release}${shared_ext}$major'
13198   shlibpath_var=LD_LIBRARY_PATH
13199   ;;
13200
13201 *)
13202   dynamic_linker=no
13203   ;;
13204 esac
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13206 $as_echo "$dynamic_linker" >&6; }
13207 test "$dynamic_linker" = no && can_build_shared=no
13208
13209 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13210 if test "$GCC" = yes; then
13211   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13212 fi
13213
13214 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13215   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13216 fi
13217 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13218   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13219 fi
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269
13270
13271
13272
13273
13274
13275
13276
13277
13278
13279
13280
13281
13282
13283
13284
13285
13286
13287
13288
13289
13290
13291
13292
13293
13294
13295
13296
13297
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13313 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13314 hardcode_action=
13315 if test -n "$hardcode_libdir_flag_spec" ||
13316    test -n "$runpath_var" ||
13317    test "X$hardcode_automatic" = "Xyes" ; then
13318
13319   # We can hardcode non-existent directories.
13320   if test "$hardcode_direct" != no &&
13321      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13322      # have to relink, otherwise we might link with an installed library
13323      # when we should be linking with a yet-to-be-installed one
13324      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13325      test "$hardcode_minus_L" != no; then
13326     # Linking always hardcodes the temporary library directory.
13327     hardcode_action=relink
13328   else
13329     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13330     hardcode_action=immediate
13331   fi
13332 else
13333   # We cannot hardcode anything, or else we can only hardcode existing
13334   # directories.
13335   hardcode_action=unsupported
13336 fi
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13338 $as_echo "$hardcode_action" >&6; }
13339
13340 if test "$hardcode_action" = relink ||
13341    test "$inherit_rpath" = yes; then
13342   # Fast installation is not supported
13343   enable_fast_install=no
13344 elif test "$shlibpath_overrides_runpath" = yes ||
13345      test "$enable_shared" = no; then
13346   # Fast installation is not necessary
13347   enable_fast_install=needless
13348 fi
13349
13350
13351
13352
13353
13354
13355   if test "x$enable_dlopen" != xyes; then
13356   enable_dlopen=unknown
13357   enable_dlopen_self=unknown
13358   enable_dlopen_self_static=unknown
13359 else
13360   lt_cv_dlopen=no
13361   lt_cv_dlopen_libs=
13362
13363   case $host_os in
13364   beos*)
13365     lt_cv_dlopen="load_add_on"
13366     lt_cv_dlopen_libs=
13367     lt_cv_dlopen_self=yes
13368     ;;
13369
13370   mingw* | pw32* | cegcc*)
13371     lt_cv_dlopen="LoadLibrary"
13372     lt_cv_dlopen_libs=
13373     ;;
13374
13375   cygwin*)
13376     lt_cv_dlopen="dlopen"
13377     lt_cv_dlopen_libs=
13378     ;;
13379
13380   darwin*)
13381   # if libdl is installed we need to link against it
13382     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13383 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13384 if ${ac_cv_lib_dl_dlopen+:} false; then :
13385   $as_echo_n "(cached) " >&6
13386 else
13387   ac_check_lib_save_LIBS=$LIBS
13388 LIBS="-ldl  $LIBS"
13389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13390 /* end confdefs.h.  */
13391
13392 /* Override any GCC internal prototype to avoid an error.
13393    Use char because int might match the return type of a GCC
13394    builtin and then its argument prototype would still apply.  */
13395 #ifdef __cplusplus
13396 extern "C"
13397 #endif
13398 char dlopen ();
13399 int
13400 main ()
13401 {
13402 return dlopen ();
13403   ;
13404   return 0;
13405 }
13406 _ACEOF
13407 if ac_fn_c_try_link "$LINENO"; then :
13408   ac_cv_lib_dl_dlopen=yes
13409 else
13410   ac_cv_lib_dl_dlopen=no
13411 fi
13412 rm -f core conftest.err conftest.$ac_objext \
13413     conftest$ac_exeext conftest.$ac_ext
13414 LIBS=$ac_check_lib_save_LIBS
13415 fi
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13417 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13418 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13419   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13420 else
13421
13422     lt_cv_dlopen="dyld"
13423     lt_cv_dlopen_libs=
13424     lt_cv_dlopen_self=yes
13425
13426 fi
13427
13428     ;;
13429
13430   *)
13431     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13432 if test "x$ac_cv_func_shl_load" = xyes; then :
13433   lt_cv_dlopen="shl_load"
13434 else
13435   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13436 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13437 if ${ac_cv_lib_dld_shl_load+:} false; then :
13438   $as_echo_n "(cached) " >&6
13439 else
13440   ac_check_lib_save_LIBS=$LIBS
13441 LIBS="-ldld  $LIBS"
13442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13443 /* end confdefs.h.  */
13444
13445 /* Override any GCC internal prototype to avoid an error.
13446    Use char because int might match the return type of a GCC
13447    builtin and then its argument prototype would still apply.  */
13448 #ifdef __cplusplus
13449 extern "C"
13450 #endif
13451 char shl_load ();
13452 int
13453 main ()
13454 {
13455 return shl_load ();
13456   ;
13457   return 0;
13458 }
13459 _ACEOF
13460 if ac_fn_c_try_link "$LINENO"; then :
13461   ac_cv_lib_dld_shl_load=yes
13462 else
13463   ac_cv_lib_dld_shl_load=no
13464 fi
13465 rm -f core conftest.err conftest.$ac_objext \
13466     conftest$ac_exeext conftest.$ac_ext
13467 LIBS=$ac_check_lib_save_LIBS
13468 fi
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13470 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13471 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13472   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13473 else
13474   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13475 if test "x$ac_cv_func_dlopen" = xyes; then :
13476   lt_cv_dlopen="dlopen"
13477 else
13478   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13479 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13480 if ${ac_cv_lib_dl_dlopen+:} false; then :
13481   $as_echo_n "(cached) " >&6
13482 else
13483   ac_check_lib_save_LIBS=$LIBS
13484 LIBS="-ldl  $LIBS"
13485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13486 /* end confdefs.h.  */
13487
13488 /* Override any GCC internal prototype to avoid an error.
13489    Use char because int might match the return type of a GCC
13490    builtin and then its argument prototype would still apply.  */
13491 #ifdef __cplusplus
13492 extern "C"
13493 #endif
13494 char dlopen ();
13495 int
13496 main ()
13497 {
13498 return dlopen ();
13499   ;
13500   return 0;
13501 }
13502 _ACEOF
13503 if ac_fn_c_try_link "$LINENO"; then :
13504   ac_cv_lib_dl_dlopen=yes
13505 else
13506   ac_cv_lib_dl_dlopen=no
13507 fi
13508 rm -f core conftest.err conftest.$ac_objext \
13509     conftest$ac_exeext conftest.$ac_ext
13510 LIBS=$ac_check_lib_save_LIBS
13511 fi
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13513 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13514 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13515   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13516 else
13517   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13518 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13519 if ${ac_cv_lib_svld_dlopen+:} false; then :
13520   $as_echo_n "(cached) " >&6
13521 else
13522   ac_check_lib_save_LIBS=$LIBS
13523 LIBS="-lsvld  $LIBS"
13524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13525 /* end confdefs.h.  */
13526
13527 /* Override any GCC internal prototype to avoid an error.
13528    Use char because int might match the return type of a GCC
13529    builtin and then its argument prototype would still apply.  */
13530 #ifdef __cplusplus
13531 extern "C"
13532 #endif
13533 char dlopen ();
13534 int
13535 main ()
13536 {
13537 return dlopen ();
13538   ;
13539   return 0;
13540 }
13541 _ACEOF
13542 if ac_fn_c_try_link "$LINENO"; then :
13543   ac_cv_lib_svld_dlopen=yes
13544 else
13545   ac_cv_lib_svld_dlopen=no
13546 fi
13547 rm -f core conftest.err conftest.$ac_objext \
13548     conftest$ac_exeext conftest.$ac_ext
13549 LIBS=$ac_check_lib_save_LIBS
13550 fi
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13552 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13553 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13554   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13555 else
13556   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13557 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13558 if ${ac_cv_lib_dld_dld_link+:} false; then :
13559   $as_echo_n "(cached) " >&6
13560 else
13561   ac_check_lib_save_LIBS=$LIBS
13562 LIBS="-ldld  $LIBS"
13563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13564 /* end confdefs.h.  */
13565
13566 /* Override any GCC internal prototype to avoid an error.
13567    Use char because int might match the return type of a GCC
13568    builtin and then its argument prototype would still apply.  */
13569 #ifdef __cplusplus
13570 extern "C"
13571 #endif
13572 char dld_link ();
13573 int
13574 main ()
13575 {
13576 return dld_link ();
13577   ;
13578   return 0;
13579 }
13580 _ACEOF
13581 if ac_fn_c_try_link "$LINENO"; then :
13582   ac_cv_lib_dld_dld_link=yes
13583 else
13584   ac_cv_lib_dld_dld_link=no
13585 fi
13586 rm -f core conftest.err conftest.$ac_objext \
13587     conftest$ac_exeext conftest.$ac_ext
13588 LIBS=$ac_check_lib_save_LIBS
13589 fi
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13591 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13592 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13593   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13594 fi
13595
13596
13597 fi
13598
13599
13600 fi
13601
13602
13603 fi
13604
13605
13606 fi
13607
13608
13609 fi
13610
13611     ;;
13612   esac
13613
13614   if test "x$lt_cv_dlopen" != xno; then
13615     enable_dlopen=yes
13616   else
13617     enable_dlopen=no
13618   fi
13619
13620   case $lt_cv_dlopen in
13621   dlopen)
13622     save_CPPFLAGS="$CPPFLAGS"
13623     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13624
13625     save_LDFLAGS="$LDFLAGS"
13626     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13627
13628     save_LIBS="$LIBS"
13629     LIBS="$lt_cv_dlopen_libs $LIBS"
13630
13631     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13632 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13633 if ${lt_cv_dlopen_self+:} false; then :
13634   $as_echo_n "(cached) " >&6
13635 else
13636           if test "$cross_compiling" = yes; then :
13637   lt_cv_dlopen_self=cross
13638 else
13639   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13640   lt_status=$lt_dlunknown
13641   cat > conftest.$ac_ext <<_LT_EOF
13642 #line $LINENO "configure"
13643 #include "confdefs.h"
13644
13645 #if HAVE_DLFCN_H
13646 #include <dlfcn.h>
13647 #endif
13648
13649 #include <stdio.h>
13650
13651 #ifdef RTLD_GLOBAL
13652 #  define LT_DLGLOBAL           RTLD_GLOBAL
13653 #else
13654 #  ifdef DL_GLOBAL
13655 #    define LT_DLGLOBAL         DL_GLOBAL
13656 #  else
13657 #    define LT_DLGLOBAL         0
13658 #  endif
13659 #endif
13660
13661 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13662    find out it does not work in some platform. */
13663 #ifndef LT_DLLAZY_OR_NOW
13664 #  ifdef RTLD_LAZY
13665 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13666 #  else
13667 #    ifdef DL_LAZY
13668 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13669 #    else
13670 #      ifdef RTLD_NOW
13671 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13672 #      else
13673 #        ifdef DL_NOW
13674 #          define LT_DLLAZY_OR_NOW      DL_NOW
13675 #        else
13676 #          define LT_DLLAZY_OR_NOW      0
13677 #        endif
13678 #      endif
13679 #    endif
13680 #  endif
13681 #endif
13682
13683 /* When -fvisbility=hidden is used, assume the code has been annotated
13684    correspondingly for the symbols needed.  */
13685 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13686 int fnord () __attribute__((visibility("default")));
13687 #endif
13688
13689 int fnord () { return 42; }
13690 int main ()
13691 {
13692   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13693   int status = $lt_dlunknown;
13694
13695   if (self)
13696     {
13697       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13698       else
13699         {
13700           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13701           else puts (dlerror ());
13702         }
13703       /* dlclose (self); */
13704     }
13705   else
13706     puts (dlerror ());
13707
13708   return status;
13709 }
13710 _LT_EOF
13711   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13712   (eval $ac_link) 2>&5
13713   ac_status=$?
13714   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13715   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13716     (./conftest; exit; ) >&5 2>/dev/null
13717     lt_status=$?
13718     case x$lt_status in
13719       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13720       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13721       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13722     esac
13723   else :
13724     # compilation failed
13725     lt_cv_dlopen_self=no
13726   fi
13727 fi
13728 rm -fr conftest*
13729
13730
13731 fi
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13733 $as_echo "$lt_cv_dlopen_self" >&6; }
13734
13735     if test "x$lt_cv_dlopen_self" = xyes; then
13736       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13737       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13738 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13739 if ${lt_cv_dlopen_self_static+:} false; then :
13740   $as_echo_n "(cached) " >&6
13741 else
13742           if test "$cross_compiling" = yes; then :
13743   lt_cv_dlopen_self_static=cross
13744 else
13745   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13746   lt_status=$lt_dlunknown
13747   cat > conftest.$ac_ext <<_LT_EOF
13748 #line $LINENO "configure"
13749 #include "confdefs.h"
13750
13751 #if HAVE_DLFCN_H
13752 #include <dlfcn.h>
13753 #endif
13754
13755 #include <stdio.h>
13756
13757 #ifdef RTLD_GLOBAL
13758 #  define LT_DLGLOBAL           RTLD_GLOBAL
13759 #else
13760 #  ifdef DL_GLOBAL
13761 #    define LT_DLGLOBAL         DL_GLOBAL
13762 #  else
13763 #    define LT_DLGLOBAL         0
13764 #  endif
13765 #endif
13766
13767 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13768    find out it does not work in some platform. */
13769 #ifndef LT_DLLAZY_OR_NOW
13770 #  ifdef RTLD_LAZY
13771 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13772 #  else
13773 #    ifdef DL_LAZY
13774 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13775 #    else
13776 #      ifdef RTLD_NOW
13777 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13778 #      else
13779 #        ifdef DL_NOW
13780 #          define LT_DLLAZY_OR_NOW      DL_NOW
13781 #        else
13782 #          define LT_DLLAZY_OR_NOW      0
13783 #        endif
13784 #      endif
13785 #    endif
13786 #  endif
13787 #endif
13788
13789 /* When -fvisbility=hidden is used, assume the code has been annotated
13790    correspondingly for the symbols needed.  */
13791 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13792 int fnord () __attribute__((visibility("default")));
13793 #endif
13794
13795 int fnord () { return 42; }
13796 int main ()
13797 {
13798   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13799   int status = $lt_dlunknown;
13800
13801   if (self)
13802     {
13803       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13804       else
13805         {
13806           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13807           else puts (dlerror ());
13808         }
13809       /* dlclose (self); */
13810     }
13811   else
13812     puts (dlerror ());
13813
13814   return status;
13815 }
13816 _LT_EOF
13817   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13818   (eval $ac_link) 2>&5
13819   ac_status=$?
13820   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13821   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13822     (./conftest; exit; ) >&5 2>/dev/null
13823     lt_status=$?
13824     case x$lt_status in
13825       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13826       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13827       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13828     esac
13829   else :
13830     # compilation failed
13831     lt_cv_dlopen_self_static=no
13832   fi
13833 fi
13834 rm -fr conftest*
13835
13836
13837 fi
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13839 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13840     fi
13841
13842     CPPFLAGS="$save_CPPFLAGS"
13843     LDFLAGS="$save_LDFLAGS"
13844     LIBS="$save_LIBS"
13845     ;;
13846   esac
13847
13848   case $lt_cv_dlopen_self in
13849   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13850   *) enable_dlopen_self=unknown ;;
13851   esac
13852
13853   case $lt_cv_dlopen_self_static in
13854   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13855   *) enable_dlopen_self_static=unknown ;;
13856   esac
13857 fi
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875 striplib=
13876 old_striplib=
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13878 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13879 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13880   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13881   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13883 $as_echo "yes" >&6; }
13884 else
13885 # FIXME - insert some real tests, host_os isn't really good enough
13886   case $host_os in
13887   darwin*)
13888     if test -n "$STRIP" ; then
13889       striplib="$STRIP -x"
13890       old_striplib="$STRIP -S"
13891       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13892 $as_echo "yes" >&6; }
13893     else
13894       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13895 $as_echo "no" >&6; }
13896     fi
13897     ;;
13898   *)
13899     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13900 $as_echo "no" >&6; }
13901     ;;
13902   esac
13903 fi
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916   # Report which library types will actually be built
13917   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13918 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13920 $as_echo "$can_build_shared" >&6; }
13921
13922   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13923 $as_echo_n "checking whether to build shared libraries... " >&6; }
13924   test "$can_build_shared" = "no" && enable_shared=no
13925
13926   # On AIX, shared libraries and static libraries use the same namespace, and
13927   # are all built from PIC.
13928   case $host_os in
13929   aix3*)
13930     test "$enable_shared" = yes && enable_static=no
13931     if test -n "$RANLIB"; then
13932       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13933       postinstall_cmds='$RANLIB $lib'
13934     fi
13935     ;;
13936
13937   aix[4-9]*)
13938     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13939       test "$enable_shared" = yes && enable_static=no
13940     fi
13941     ;;
13942   esac
13943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13944 $as_echo "$enable_shared" >&6; }
13945
13946   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13947 $as_echo_n "checking whether to build static libraries... " >&6; }
13948   # Make sure either enable_shared or enable_static is yes.
13949   test "$enable_shared" = yes || enable_static=yes
13950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13951 $as_echo "$enable_static" >&6; }
13952
13953
13954
13955
13956 fi
13957 ac_ext=c
13958 ac_cpp='$CPP $CPPFLAGS'
13959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13962
13963 CC="$lt_save_CC"
13964
13965       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13966     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13967     (test "X$CXX" != "Xg++"))) ; then
13968   ac_ext=cpp
13969 ac_cpp='$CXXCPP $CPPFLAGS'
13970 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13971 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13972 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13974 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13975 if test -z "$CXXCPP"; then
13976   if ${ac_cv_prog_CXXCPP+:} false; then :
13977   $as_echo_n "(cached) " >&6
13978 else
13979       # Double quotes because CXXCPP needs to be expanded
13980     for CXXCPP in "$CXX -E" "/lib/cpp"
13981     do
13982       ac_preproc_ok=false
13983 for ac_cxx_preproc_warn_flag in '' yes
13984 do
13985   # Use a header file that comes with gcc, so configuring glibc
13986   # with a fresh cross-compiler works.
13987   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13988   # <limits.h> exists even on freestanding compilers.
13989   # On the NeXT, cc -E runs the code through the compiler's parser,
13990   # not just through cpp. "Syntax error" is here to catch this case.
13991   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13992 /* end confdefs.h.  */
13993 #ifdef __STDC__
13994 # include <limits.h>
13995 #else
13996 # include <assert.h>
13997 #endif
13998                      Syntax error
13999 _ACEOF
14000 if ac_fn_cxx_try_cpp "$LINENO"; then :
14001
14002 else
14003   # Broken: fails on valid input.
14004 continue
14005 fi
14006 rm -f conftest.err conftest.i conftest.$ac_ext
14007
14008   # OK, works on sane cases.  Now check whether nonexistent headers
14009   # can be detected and how.
14010   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14011 /* end confdefs.h.  */
14012 #include <ac_nonexistent.h>
14013 _ACEOF
14014 if ac_fn_cxx_try_cpp "$LINENO"; then :
14015   # Broken: success on invalid input.
14016 continue
14017 else
14018   # Passes both tests.
14019 ac_preproc_ok=:
14020 break
14021 fi
14022 rm -f conftest.err conftest.i conftest.$ac_ext
14023
14024 done
14025 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14026 rm -f conftest.i conftest.err conftest.$ac_ext
14027 if $ac_preproc_ok; then :
14028   break
14029 fi
14030
14031     done
14032     ac_cv_prog_CXXCPP=$CXXCPP
14033
14034 fi
14035   CXXCPP=$ac_cv_prog_CXXCPP
14036 else
14037   ac_cv_prog_CXXCPP=$CXXCPP
14038 fi
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14040 $as_echo "$CXXCPP" >&6; }
14041 ac_preproc_ok=false
14042 for ac_cxx_preproc_warn_flag in '' yes
14043 do
14044   # Use a header file that comes with gcc, so configuring glibc
14045   # with a fresh cross-compiler works.
14046   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14047   # <limits.h> exists even on freestanding compilers.
14048   # On the NeXT, cc -E runs the code through the compiler's parser,
14049   # not just through cpp. "Syntax error" is here to catch this case.
14050   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14051 /* end confdefs.h.  */
14052 #ifdef __STDC__
14053 # include <limits.h>
14054 #else
14055 # include <assert.h>
14056 #endif
14057                      Syntax error
14058 _ACEOF
14059 if ac_fn_cxx_try_cpp "$LINENO"; then :
14060
14061 else
14062   # Broken: fails on valid input.
14063 continue
14064 fi
14065 rm -f conftest.err conftest.i conftest.$ac_ext
14066
14067   # OK, works on sane cases.  Now check whether nonexistent headers
14068   # can be detected and how.
14069   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14070 /* end confdefs.h.  */
14071 #include <ac_nonexistent.h>
14072 _ACEOF
14073 if ac_fn_cxx_try_cpp "$LINENO"; then :
14074   # Broken: success on invalid input.
14075 continue
14076 else
14077   # Passes both tests.
14078 ac_preproc_ok=:
14079 break
14080 fi
14081 rm -f conftest.err conftest.i conftest.$ac_ext
14082
14083 done
14084 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14085 rm -f conftest.i conftest.err conftest.$ac_ext
14086 if $ac_preproc_ok; then :
14087
14088 else
14089   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14090 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14091 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14092 See \`config.log' for more details" "$LINENO" 5; }
14093 fi
14094
14095 ac_ext=c
14096 ac_cpp='$CPP $CPPFLAGS'
14097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14100
14101 else
14102   _lt_caught_CXX_error=yes
14103 fi
14104
14105 ac_ext=cpp
14106 ac_cpp='$CXXCPP $CPPFLAGS'
14107 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14108 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14109 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14110
14111 archive_cmds_need_lc_CXX=no
14112 allow_undefined_flag_CXX=
14113 always_export_symbols_CXX=no
14114 archive_expsym_cmds_CXX=
14115 compiler_needs_object_CXX=no
14116 export_dynamic_flag_spec_CXX=
14117 hardcode_direct_CXX=no
14118 hardcode_direct_absolute_CXX=no
14119 hardcode_libdir_flag_spec_CXX=
14120 hardcode_libdir_separator_CXX=
14121 hardcode_minus_L_CXX=no
14122 hardcode_shlibpath_var_CXX=unsupported
14123 hardcode_automatic_CXX=no
14124 inherit_rpath_CXX=no
14125 module_cmds_CXX=
14126 module_expsym_cmds_CXX=
14127 link_all_deplibs_CXX=unknown
14128 old_archive_cmds_CXX=$old_archive_cmds
14129 reload_flag_CXX=$reload_flag
14130 reload_cmds_CXX=$reload_cmds
14131 no_undefined_flag_CXX=
14132 whole_archive_flag_spec_CXX=
14133 enable_shared_with_static_runtimes_CXX=no
14134
14135 # Source file extension for C++ test sources.
14136 ac_ext=cpp
14137
14138 # Object file extension for compiled C++ test sources.
14139 objext=o
14140 objext_CXX=$objext
14141
14142 # No sense in running all these tests if we already determined that
14143 # the CXX compiler isn't working.  Some variables (like enable_shared)
14144 # are currently assumed to apply to all compilers on this platform,
14145 # and will be corrupted by setting them based on a non-working compiler.
14146 if test "$_lt_caught_CXX_error" != yes; then
14147   # Code to be used in simple compile tests
14148   lt_simple_compile_test_code="int some_variable = 0;"
14149
14150   # Code to be used in simple link tests
14151   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14152
14153   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14154
14155
14156
14157
14158
14159
14160 # If no C compiler was specified, use CC.
14161 LTCC=${LTCC-"$CC"}
14162
14163 # If no C compiler flags were specified, use CFLAGS.
14164 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14165
14166 # Allow CC to be a program name with arguments.
14167 compiler=$CC
14168
14169
14170   # save warnings/boilerplate of simple test code
14171   ac_outfile=conftest.$ac_objext
14172 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14173 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14174 _lt_compiler_boilerplate=`cat conftest.err`
14175 $RM conftest*
14176
14177   ac_outfile=conftest.$ac_objext
14178 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14179 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14180 _lt_linker_boilerplate=`cat conftest.err`
14181 $RM -r conftest*
14182
14183
14184   # Allow CC to be a program name with arguments.
14185   lt_save_CC=$CC
14186   lt_save_CFLAGS=$CFLAGS
14187   lt_save_LD=$LD
14188   lt_save_GCC=$GCC
14189   GCC=$GXX
14190   lt_save_with_gnu_ld=$with_gnu_ld
14191   lt_save_path_LD=$lt_cv_path_LD
14192   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14193     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14194   else
14195     $as_unset lt_cv_prog_gnu_ld
14196   fi
14197   if test -n "${lt_cv_path_LDCXX+set}"; then
14198     lt_cv_path_LD=$lt_cv_path_LDCXX
14199   else
14200     $as_unset lt_cv_path_LD
14201   fi
14202   test -z "${LDCXX+set}" || LD=$LDCXX
14203   CC=${CXX-"c++"}
14204   CFLAGS=$CXXFLAGS
14205   compiler=$CC
14206   compiler_CXX=$CC
14207   for cc_temp in $compiler""; do
14208   case $cc_temp in
14209     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14210     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14211     \-*) ;;
14212     *) break;;
14213   esac
14214 done
14215 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14216
14217
14218   if test -n "$compiler"; then
14219     # We don't want -fno-exception when compiling C++ code, so set the
14220     # no_builtin_flag separately
14221     if test "$GXX" = yes; then
14222       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14223     else
14224       lt_prog_compiler_no_builtin_flag_CXX=
14225     fi
14226
14227     if test "$GXX" = yes; then
14228       # Set up default GNU C++ configuration
14229
14230
14231
14232 # Check whether --with-gnu-ld was given.
14233 if test "${with_gnu_ld+set}" = set; then :
14234   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14235 else
14236   with_gnu_ld=no
14237 fi
14238
14239 ac_prog=ld
14240 if test "$GCC" = yes; then
14241   # Check if gcc -print-prog-name=ld gives a path.
14242   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14243 $as_echo_n "checking for ld used by $CC... " >&6; }
14244   case $host in
14245   *-*-mingw*)
14246     # gcc leaves a trailing carriage return which upsets mingw
14247     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14248   *)
14249     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14250   esac
14251   case $ac_prog in
14252     # Accept absolute paths.
14253     [\\/]* | ?:[\\/]*)
14254       re_direlt='/[^/][^/]*/\.\./'
14255       # Canonicalize the pathname of ld
14256       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14257       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14258         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14259       done
14260       test -z "$LD" && LD="$ac_prog"
14261       ;;
14262   "")
14263     # If it fails, then pretend we aren't using GCC.
14264     ac_prog=ld
14265     ;;
14266   *)
14267     # If it is relative, then search for the first ld in PATH.
14268     with_gnu_ld=unknown
14269     ;;
14270   esac
14271 elif test "$with_gnu_ld" = yes; then
14272   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14273 $as_echo_n "checking for GNU ld... " >&6; }
14274 else
14275   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14276 $as_echo_n "checking for non-GNU ld... " >&6; }
14277 fi
14278 if ${lt_cv_path_LD+:} false; then :
14279   $as_echo_n "(cached) " >&6
14280 else
14281   if test -z "$LD"; then
14282   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14283   for ac_dir in $PATH; do
14284     IFS="$lt_save_ifs"
14285     test -z "$ac_dir" && ac_dir=.
14286     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14287       lt_cv_path_LD="$ac_dir/$ac_prog"
14288       # Check to see if the program is GNU ld.  I'd rather use --version,
14289       # but apparently some variants of GNU ld only accept -v.
14290       # Break only if it was the GNU/non-GNU ld that we prefer.
14291       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14292       *GNU* | *'with BFD'*)
14293         test "$with_gnu_ld" != no && break
14294         ;;
14295       *)
14296         test "$with_gnu_ld" != yes && break
14297         ;;
14298       esac
14299     fi
14300   done
14301   IFS="$lt_save_ifs"
14302 else
14303   lt_cv_path_LD="$LD" # Let the user override the test with a path.
14304 fi
14305 fi
14306
14307 LD="$lt_cv_path_LD"
14308 if test -n "$LD"; then
14309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14310 $as_echo "$LD" >&6; }
14311 else
14312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14313 $as_echo "no" >&6; }
14314 fi
14315 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14317 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14318 if ${lt_cv_prog_gnu_ld+:} false; then :
14319   $as_echo_n "(cached) " >&6
14320 else
14321   # I'd rather use --version here, but apparently some GNU lds only accept -v.
14322 case `$LD -v 2>&1 </dev/null` in
14323 *GNU* | *'with BFD'*)
14324   lt_cv_prog_gnu_ld=yes
14325   ;;
14326 *)
14327   lt_cv_prog_gnu_ld=no
14328   ;;
14329 esac
14330 fi
14331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14332 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14333 with_gnu_ld=$lt_cv_prog_gnu_ld
14334
14335
14336
14337
14338
14339
14340
14341       # Check if GNU C++ uses GNU ld as the underlying linker, since the
14342       # archiving commands below assume that GNU ld is being used.
14343       if test "$with_gnu_ld" = yes; then
14344         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14345         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'
14346
14347         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14348         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14349
14350         # If archive_cmds runs LD, not CC, wlarc should be empty
14351         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14352         #     investigate it a little bit more. (MM)
14353         wlarc='${wl}'
14354
14355         # ancient GNU ld didn't support --whole-archive et. al.
14356         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14357           $GREP 'no-whole-archive' > /dev/null; then
14358           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14359         else
14360           whole_archive_flag_spec_CXX=
14361         fi
14362       else
14363         with_gnu_ld=no
14364         wlarc=
14365
14366         # A generic and very simple default shared library creation
14367         # command for GNU C++ for the case where it uses the native
14368         # linker, instead of GNU ld.  If possible, this setting should
14369         # overridden to take advantage of the native linker features on
14370         # the platform it is being used on.
14371         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14372       fi
14373
14374       # Commands to make compiler produce verbose output that lists
14375       # what "hidden" libraries, object files and flags are used when
14376       # linking a shared library.
14377       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14378
14379     else
14380       GXX=no
14381       with_gnu_ld=no
14382       wlarc=
14383     fi
14384
14385     # PORTME: fill in a description of your system's C++ link characteristics
14386     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14387 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14388     ld_shlibs_CXX=yes
14389     case $host_os in
14390       aix3*)
14391         # FIXME: insert proper C++ library support
14392         ld_shlibs_CXX=no
14393         ;;
14394       aix[4-9]*)
14395         if test "$host_cpu" = ia64; then
14396           # On IA64, the linker does run time linking by default, so we don't
14397           # have to do anything special.
14398           aix_use_runtimelinking=no
14399           exp_sym_flag='-Bexport'
14400           no_entry_flag=""
14401         else
14402           aix_use_runtimelinking=no
14403
14404           # Test if we are trying to use run time linking or normal
14405           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14406           # need to do runtime linking.
14407           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14408             for ld_flag in $LDFLAGS; do
14409               case $ld_flag in
14410               *-brtl*)
14411                 aix_use_runtimelinking=yes
14412                 break
14413                 ;;
14414               esac
14415             done
14416             ;;
14417           esac
14418
14419           exp_sym_flag='-bexport'
14420           no_entry_flag='-bnoentry'
14421         fi
14422
14423         # When large executables or shared objects are built, AIX ld can
14424         # have problems creating the table of contents.  If linking a library
14425         # or program results in "error TOC overflow" add -mminimal-toc to
14426         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14427         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14428
14429         archive_cmds_CXX=''
14430         hardcode_direct_CXX=yes
14431         hardcode_direct_absolute_CXX=yes
14432         hardcode_libdir_separator_CXX=':'
14433         link_all_deplibs_CXX=yes
14434         file_list_spec_CXX='${wl}-f,'
14435
14436         if test "$GXX" = yes; then
14437           case $host_os in aix4.[012]|aix4.[012].*)
14438           # We only want to do this on AIX 4.2 and lower, the check
14439           # below for broken collect2 doesn't work under 4.3+
14440           collect2name=`${CC} -print-prog-name=collect2`
14441           if test -f "$collect2name" &&
14442              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14443           then
14444             # We have reworked collect2
14445             :
14446           else
14447             # We have old collect2
14448             hardcode_direct_CXX=unsupported
14449             # It fails to find uninstalled libraries when the uninstalled
14450             # path is not listed in the libpath.  Setting hardcode_minus_L
14451             # to unsupported forces relinking
14452             hardcode_minus_L_CXX=yes
14453             hardcode_libdir_flag_spec_CXX='-L$libdir'
14454             hardcode_libdir_separator_CXX=
14455           fi
14456           esac
14457           shared_flag='-shared'
14458           if test "$aix_use_runtimelinking" = yes; then
14459             shared_flag="$shared_flag "'${wl}-G'
14460           fi
14461         else
14462           # not using gcc
14463           if test "$host_cpu" = ia64; then
14464           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14465           # chokes on -Wl,-G. The following line is correct:
14466           shared_flag='-G'
14467           else
14468             if test "$aix_use_runtimelinking" = yes; then
14469               shared_flag='${wl}-G'
14470             else
14471               shared_flag='${wl}-bM:SRE'
14472             fi
14473           fi
14474         fi
14475
14476         export_dynamic_flag_spec_CXX='${wl}-bexpall'
14477         # It seems that -bexpall does not export symbols beginning with
14478         # underscore (_), so it is better to generate a list of symbols to
14479         # export.
14480         always_export_symbols_CXX=yes
14481         if test "$aix_use_runtimelinking" = yes; then
14482           # Warning - without using the other runtime loading flags (-brtl),
14483           # -berok will link without error, but may produce a broken library.
14484           allow_undefined_flag_CXX='-berok'
14485           # Determine the default libpath from the value encoded in an empty
14486           # executable.
14487           if test "${lt_cv_aix_libpath+set}" = set; then
14488   aix_libpath=$lt_cv_aix_libpath
14489 else
14490   if ${lt_cv_aix_libpath__CXX+:} false; then :
14491   $as_echo_n "(cached) " >&6
14492 else
14493   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14494 /* end confdefs.h.  */
14495
14496 int
14497 main ()
14498 {
14499
14500   ;
14501   return 0;
14502 }
14503 _ACEOF
14504 if ac_fn_cxx_try_link "$LINENO"; then :
14505
14506   lt_aix_libpath_sed='
14507       /Import File Strings/,/^$/ {
14508           /^0/ {
14509               s/^0  *\([^ ]*\) *$/\1/
14510               p
14511           }
14512       }'
14513   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14514   # Check for a 64-bit object if we didn't find anything.
14515   if test -z "$lt_cv_aix_libpath__CXX"; then
14516     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14517   fi
14518 fi
14519 rm -f core conftest.err conftest.$ac_objext \
14520     conftest$ac_exeext conftest.$ac_ext
14521   if test -z "$lt_cv_aix_libpath__CXX"; then
14522     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14523   fi
14524
14525 fi
14526
14527   aix_libpath=$lt_cv_aix_libpath__CXX
14528 fi
14529
14530           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14531
14532           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"
14533         else
14534           if test "$host_cpu" = ia64; then
14535             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14536             allow_undefined_flag_CXX="-z nodefs"
14537             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"
14538           else
14539             # Determine the default libpath from the value encoded in an
14540             # empty executable.
14541             if test "${lt_cv_aix_libpath+set}" = set; then
14542   aix_libpath=$lt_cv_aix_libpath
14543 else
14544   if ${lt_cv_aix_libpath__CXX+:} false; then :
14545   $as_echo_n "(cached) " >&6
14546 else
14547   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14548 /* end confdefs.h.  */
14549
14550 int
14551 main ()
14552 {
14553
14554   ;
14555   return 0;
14556 }
14557 _ACEOF
14558 if ac_fn_cxx_try_link "$LINENO"; then :
14559
14560   lt_aix_libpath_sed='
14561       /Import File Strings/,/^$/ {
14562           /^0/ {
14563               s/^0  *\([^ ]*\) *$/\1/
14564               p
14565           }
14566       }'
14567   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14568   # Check for a 64-bit object if we didn't find anything.
14569   if test -z "$lt_cv_aix_libpath__CXX"; then
14570     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14571   fi
14572 fi
14573 rm -f core conftest.err conftest.$ac_objext \
14574     conftest$ac_exeext conftest.$ac_ext
14575   if test -z "$lt_cv_aix_libpath__CXX"; then
14576     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14577   fi
14578
14579 fi
14580
14581   aix_libpath=$lt_cv_aix_libpath__CXX
14582 fi
14583
14584             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14585             # Warning - without using the other run time loading flags,
14586             # -berok will link without error, but may produce a broken library.
14587             no_undefined_flag_CXX=' ${wl}-bernotok'
14588             allow_undefined_flag_CXX=' ${wl}-berok'
14589             if test "$with_gnu_ld" = yes; then
14590               # We only use this code for GNU lds that support --whole-archive.
14591               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14592             else
14593               # Exported symbols can be pulled into shared objects from archives
14594               whole_archive_flag_spec_CXX='$convenience'
14595             fi
14596             archive_cmds_need_lc_CXX=yes
14597             # This is similar to how AIX traditionally builds its shared
14598             # libraries.
14599             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'
14600           fi
14601         fi
14602         ;;
14603
14604       beos*)
14605         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14606           allow_undefined_flag_CXX=unsupported
14607           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14608           # support --undefined.  This deserves some investigation.  FIXME
14609           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14610         else
14611           ld_shlibs_CXX=no
14612         fi
14613         ;;
14614
14615       chorus*)
14616         case $cc_basename in
14617           *)
14618           # FIXME: insert proper C++ library support
14619           ld_shlibs_CXX=no
14620           ;;
14621         esac
14622         ;;
14623
14624       cygwin* | mingw* | pw32* | cegcc*)
14625         case $GXX,$cc_basename in
14626         ,cl* | no,cl*)
14627           # Native MSVC
14628           # hardcode_libdir_flag_spec is actually meaningless, as there is
14629           # no search path for DLLs.
14630           hardcode_libdir_flag_spec_CXX=' '
14631           allow_undefined_flag_CXX=unsupported
14632           always_export_symbols_CXX=yes
14633           file_list_spec_CXX='@'
14634           # Tell ltmain to make .lib files, not .a files.
14635           libext=lib
14636           # Tell ltmain to make .dll files, not .so files.
14637           shrext_cmds=".dll"
14638           # FIXME: Setting linknames here is a bad hack.
14639           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14640           archive_expsym_cmds_CXX='if test "x`$SED \"$sed_uncomment_deffile\" $export_symbols | $SED 1q`" = xEXPORTS; then
14641               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14642             else
14643               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14644             fi~
14645             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14646             linknames='
14647           # The linker will not automatically build a static lib if we build a DLL.
14648           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14649           enable_shared_with_static_runtimes_CXX=yes
14650           # Don't use ranlib
14651           old_postinstall_cmds_CXX='chmod 644 $oldlib'
14652           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14653             lt_tool_outputfile="@TOOL_OUTPUT@"~
14654             case $lt_outputfile in
14655               *.exe|*.EXE) ;;
14656               *)
14657                 lt_outputfile="$lt_outputfile.exe"
14658                 lt_tool_outputfile="$lt_tool_outputfile.exe"
14659                 ;;
14660             esac~
14661             func_to_tool_file "$lt_outputfile"~
14662             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14663               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14664               $RM "$lt_outputfile.manifest";
14665             fi'
14666           ;;
14667         *)
14668           # g++
14669           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14670           # as there is no search path for DLLs.
14671           hardcode_libdir_flag_spec_CXX='-L$libdir'
14672           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
14673           allow_undefined_flag_CXX=unsupported
14674           always_export_symbols_CXX=no
14675           enable_shared_with_static_runtimes_CXX=yes
14676
14677           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14678             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'
14679             # If the export-symbols file already is a .def file (1st line
14680             # is EXPORTS), use it as is; otherwise, prepend...
14681             archive_expsym_cmds_CXX='if test "x`$SED \"$sed_uncomment_deffile\" $export_symbols | $SED 1q`" = xEXPORTS; then
14682               cp $export_symbols $output_objdir/$soname.def;
14683             else
14684               echo EXPORTS > $output_objdir/$soname.def;
14685               cat $export_symbols >> $output_objdir/$soname.def;
14686             fi~
14687             $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'
14688           else
14689             ld_shlibs_CXX=no
14690           fi
14691           ;;
14692         esac
14693         ;;
14694       darwin* | rhapsody*)
14695
14696
14697   archive_cmds_need_lc_CXX=no
14698   hardcode_direct_CXX=no
14699   hardcode_automatic_CXX=yes
14700   hardcode_shlibpath_var_CXX=unsupported
14701   if test "$lt_cv_ld_force_load" = "yes"; then
14702     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\"`'
14703
14704   else
14705     whole_archive_flag_spec_CXX=''
14706   fi
14707   link_all_deplibs_CXX=yes
14708   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14709   case $cc_basename in
14710      ifort*) _lt_dar_can_shared=yes ;;
14711      *) _lt_dar_can_shared=$GCC ;;
14712   esac
14713   if test "$_lt_dar_can_shared" = "yes"; then
14714     output_verbose_link_cmd=func_echo_all
14715     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}"
14716     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14717     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}"
14718     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}"
14719        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14720       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}"
14721       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}"
14722     fi
14723
14724   else
14725   ld_shlibs_CXX=no
14726   fi
14727
14728         ;;
14729
14730       dgux*)
14731         case $cc_basename in
14732           ec++*)
14733             # FIXME: insert proper C++ library support
14734             ld_shlibs_CXX=no
14735             ;;
14736           ghcx*)
14737             # Green Hills C++ Compiler
14738             # FIXME: insert proper C++ library support
14739             ld_shlibs_CXX=no
14740             ;;
14741           *)
14742             # FIXME: insert proper C++ library support
14743             ld_shlibs_CXX=no
14744             ;;
14745         esac
14746         ;;
14747
14748       freebsd2.*)
14749         # C++ shared libraries reported to be fairly broken before
14750         # switch to ELF
14751         ld_shlibs_CXX=no
14752         ;;
14753
14754       freebsd-elf*)
14755         archive_cmds_need_lc_CXX=no
14756         ;;
14757
14758       freebsd* | dragonfly*)
14759         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14760         # conventions
14761         ld_shlibs_CXX=yes
14762         ;;
14763
14764       gnu*)
14765         ;;
14766
14767       haiku*)
14768         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14769         link_all_deplibs_CXX=yes
14770         ;;
14771
14772       hpux9*)
14773         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14774         hardcode_libdir_separator_CXX=:
14775         export_dynamic_flag_spec_CXX='${wl}-E'
14776         hardcode_direct_CXX=yes
14777         hardcode_minus_L_CXX=yes # Not in the search PATH,
14778                                              # but as the default
14779                                              # location of the library.
14780
14781         case $cc_basename in
14782           CC*)
14783             # FIXME: insert proper C++ library support
14784             ld_shlibs_CXX=no
14785             ;;
14786           aCC*)
14787             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'
14788             # Commands to make compiler produce verbose output that lists
14789             # what "hidden" libraries, object files and flags are used when
14790             # linking a shared library.
14791             #
14792             # There doesn't appear to be a way to prevent this compiler from
14793             # explicitly linking system object files so we need to strip them
14794             # from the output so that they don't get included in the library
14795             # dependencies.
14796             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"'
14797             ;;
14798           *)
14799             if test "$GXX" = yes; then
14800               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'
14801             else
14802               # FIXME: insert proper C++ library support
14803               ld_shlibs_CXX=no
14804             fi
14805             ;;
14806         esac
14807         ;;
14808
14809       hpux10*|hpux11*)
14810         if test $with_gnu_ld = no; then
14811           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14812           hardcode_libdir_separator_CXX=:
14813
14814           case $host_cpu in
14815             hppa*64*|ia64*)
14816               ;;
14817             *)
14818               export_dynamic_flag_spec_CXX='${wl}-E'
14819               ;;
14820           esac
14821         fi
14822         case $host_cpu in
14823           hppa*64*|ia64*)
14824             hardcode_direct_CXX=no
14825             hardcode_shlibpath_var_CXX=no
14826             ;;
14827           *)
14828             hardcode_direct_CXX=yes
14829             hardcode_direct_absolute_CXX=yes
14830             hardcode_minus_L_CXX=yes # Not in the search PATH,
14831                                                  # but as the default
14832                                                  # location of the library.
14833             ;;
14834         esac
14835
14836         case $cc_basename in
14837           CC*)
14838             # FIXME: insert proper C++ library support
14839             ld_shlibs_CXX=no
14840             ;;
14841           aCC*)
14842             case $host_cpu in
14843               hppa*64*)
14844                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14845                 ;;
14846               ia64*)
14847                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14848                 ;;
14849               *)
14850                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14851                 ;;
14852             esac
14853             # Commands to make compiler produce verbose output that lists
14854             # what "hidden" libraries, object files and flags are used when
14855             # linking a shared library.
14856             #
14857             # There doesn't appear to be a way to prevent this compiler from
14858             # explicitly linking system object files so we need to strip them
14859             # from the output so that they don't get included in the library
14860             # dependencies.
14861             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"'
14862             ;;
14863           *)
14864             if test "$GXX" = yes; then
14865               if test $with_gnu_ld = no; then
14866                 case $host_cpu in
14867                   hppa*64*)
14868                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14869                     ;;
14870                   ia64*)
14871                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14872                     ;;
14873                   *)
14874                     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'
14875                     ;;
14876                 esac
14877               fi
14878             else
14879               # FIXME: insert proper C++ library support
14880               ld_shlibs_CXX=no
14881             fi
14882             ;;
14883         esac
14884         ;;
14885
14886       interix[3-9]*)
14887         hardcode_direct_CXX=no
14888         hardcode_shlibpath_var_CXX=no
14889         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14890         export_dynamic_flag_spec_CXX='${wl}-E'
14891         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14892         # Instead, shared libraries are loaded at an image base (0x10000000 by
14893         # default) and relocated if they conflict, which is a slow very memory
14894         # consuming and fragmenting process.  To avoid this, we pick a random,
14895         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14896         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14897         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'
14898         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'
14899         ;;
14900       irix5* | irix6*)
14901         case $cc_basename in
14902           CC*)
14903             # SGI C++
14904             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'
14905
14906             # Archives containing C++ object files must be created using
14907             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14908             # necessary to make sure instantiated templates are included
14909             # in the archive.
14910             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14911             ;;
14912           *)
14913             if test "$GXX" = yes; then
14914               if test "$with_gnu_ld" = no; then
14915                 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'
14916               else
14917                 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'
14918               fi
14919             fi
14920             link_all_deplibs_CXX=yes
14921             ;;
14922         esac
14923         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14924         hardcode_libdir_separator_CXX=:
14925         inherit_rpath_CXX=yes
14926         ;;
14927
14928       linux* | k*bsd*-gnu | kopensolaris*-gnu)
14929         case $cc_basename in
14930           KCC*)
14931             # Kuck and Associates, Inc. (KAI) C++ Compiler
14932
14933             # KCC will only create a shared library if the output file
14934             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14935             # to its proper name (with version) after linking.
14936             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'
14937             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'
14938             # Commands to make compiler produce verbose output that lists
14939             # what "hidden" libraries, object files and flags are used when
14940             # linking a shared library.
14941             #
14942             # There doesn't appear to be a way to prevent this compiler from
14943             # explicitly linking system object files so we need to strip them
14944             # from the output so that they don't get included in the library
14945             # dependencies.
14946             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"'
14947
14948             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14949             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14950
14951             # Archives containing C++ object files must be created using
14952             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14953             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14954             ;;
14955           icpc* | ecpc* )
14956             # Intel C++
14957             with_gnu_ld=yes
14958             # version 8.0 and above of icpc choke on multiply defined symbols
14959             # if we add $predep_objects and $postdep_objects, however 7.1 and
14960             # earlier do not add the objects themselves.
14961             case `$CC -V 2>&1` in
14962               *"Version 7."*)
14963                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14964                 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'
14965                 ;;
14966               *)  # Version 8.0 or newer
14967                 tmp_idyn=
14968                 case $host_cpu in
14969                   ia64*) tmp_idyn=' -i_dynamic';;
14970                 esac
14971                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14972                 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'
14973                 ;;
14974             esac
14975             archive_cmds_need_lc_CXX=no
14976             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14977             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14978             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14979             ;;
14980           pgCC* | pgcpp*)
14981             # Portland Group C++ compiler
14982             case `$CC -V` in
14983             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14984               prelink_cmds_CXX='tpldir=Template.dir~
14985                 rm -rf $tpldir~
14986                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14987                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14988               old_archive_cmds_CXX='tpldir=Template.dir~
14989                 rm -rf $tpldir~
14990                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14991                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14992                 $RANLIB $oldlib'
14993               archive_cmds_CXX='tpldir=Template.dir~
14994                 rm -rf $tpldir~
14995                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14996                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14997               archive_expsym_cmds_CXX='tpldir=Template.dir~
14998                 rm -rf $tpldir~
14999                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15000                 $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'
15001               ;;
15002             *) # Version 6 and above use weak symbols
15003               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15004               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'
15005               ;;
15006             esac
15007
15008             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15009             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15010             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'
15011             ;;
15012           cxx*)
15013             # Compaq C++
15014             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15015             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'
15016
15017             runpath_var=LD_RUN_PATH
15018             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15019             hardcode_libdir_separator_CXX=:
15020
15021             # Commands to make compiler produce verbose output that lists
15022             # what "hidden" libraries, object files and flags are used when
15023             # linking a shared library.
15024             #
15025             # There doesn't appear to be a way to prevent this compiler from
15026             # explicitly linking system object files so we need to strip them
15027             # from the output so that they don't get included in the library
15028             # dependencies.
15029             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'
15030             ;;
15031           xl* | mpixl* | bgxl*)
15032             # IBM XL 8.0 on PPC, with GNU ld
15033             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15034             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15035             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15036             if test "x$supports_anon_versioning" = xyes; then
15037               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15038                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15039                 echo "local: *; };" >> $output_objdir/$libname.ver~
15040                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15041             fi
15042             ;;
15043           *)
15044             case `$CC -V 2>&1 | sed 5q` in
15045             *Sun\ C*)
15046               # Sun C++ 5.9
15047               no_undefined_flag_CXX=' -zdefs'
15048               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15049               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'
15050               hardcode_libdir_flag_spec_CXX='-R$libdir'
15051               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'
15052               compiler_needs_object_CXX=yes
15053
15054               # Not sure whether something based on
15055               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15056               # would be better.
15057               output_verbose_link_cmd='func_echo_all'
15058
15059               # Archives containing C++ object files must be created using
15060               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15061               # necessary to make sure instantiated templates are included
15062               # in the archive.
15063               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15064               ;;
15065             esac
15066             ;;
15067         esac
15068         ;;
15069
15070       lynxos*)
15071         # FIXME: insert proper C++ library support
15072         ld_shlibs_CXX=no
15073         ;;
15074
15075       m88k*)
15076         # FIXME: insert proper C++ library support
15077         ld_shlibs_CXX=no
15078         ;;
15079
15080       mvs*)
15081         case $cc_basename in
15082           cxx*)
15083             # FIXME: insert proper C++ library support
15084             ld_shlibs_CXX=no
15085             ;;
15086           *)
15087             # FIXME: insert proper C++ library support
15088             ld_shlibs_CXX=no
15089             ;;
15090         esac
15091         ;;
15092
15093       netbsd*)
15094         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15095           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15096           wlarc=
15097           hardcode_libdir_flag_spec_CXX='-R$libdir'
15098           hardcode_direct_CXX=yes
15099           hardcode_shlibpath_var_CXX=no
15100         fi
15101         # Workaround some broken pre-1.5 toolchains
15102         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15103         ;;
15104
15105       *nto* | *qnx*)
15106         ld_shlibs_CXX=yes
15107         ;;
15108
15109       openbsd2*)
15110         # C++ shared libraries are fairly broken
15111         ld_shlibs_CXX=no
15112         ;;
15113
15114       openbsd*)
15115         if test -f /usr/libexec/ld.so; then
15116           hardcode_direct_CXX=yes
15117           hardcode_shlibpath_var_CXX=no
15118           hardcode_direct_absolute_CXX=yes
15119           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15120           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15121           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15122             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15123             export_dynamic_flag_spec_CXX='${wl}-E'
15124             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15125           fi
15126           output_verbose_link_cmd=func_echo_all
15127         else
15128           ld_shlibs_CXX=no
15129         fi
15130         ;;
15131
15132       osf3* | osf4* | osf5*)
15133         case $cc_basename in
15134           KCC*)
15135             # Kuck and Associates, Inc. (KAI) C++ Compiler
15136
15137             # KCC will only create a shared library if the output file
15138             # ends with ".so" (or ".sl" for HP-UX), so rename the library
15139             # to its proper name (with version) after linking.
15140             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'
15141
15142             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15143             hardcode_libdir_separator_CXX=:
15144
15145             # Archives containing C++ object files must be created using
15146             # the KAI C++ compiler.
15147             case $host in
15148               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15149               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15150             esac
15151             ;;
15152           RCC*)
15153             # Rational C++ 2.4.1
15154             # FIXME: insert proper C++ library support
15155             ld_shlibs_CXX=no
15156             ;;
15157           cxx*)
15158             case $host in
15159               osf3*)
15160                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15161                 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'
15162                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15163                 ;;
15164               *)
15165                 allow_undefined_flag_CXX=' -expect_unresolved \*'
15166                 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'
15167                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15168                   echo "-hidden">> $lib.exp~
15169                   $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~
15170                   $RM $lib.exp'
15171                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15172                 ;;
15173             esac
15174
15175             hardcode_libdir_separator_CXX=:
15176
15177             # Commands to make compiler produce verbose output that lists
15178             # what "hidden" libraries, object files and flags are used when
15179             # linking a shared library.
15180             #
15181             # There doesn't appear to be a way to prevent this compiler from
15182             # explicitly linking system object files so we need to strip them
15183             # from the output so that they don't get included in the library
15184             # dependencies.
15185             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"'
15186             ;;
15187           *)
15188             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15189               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15190               case $host in
15191                 osf3*)
15192                   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'
15193                   ;;
15194                 *)
15195                   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'
15196                   ;;
15197               esac
15198
15199               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15200               hardcode_libdir_separator_CXX=:
15201
15202               # Commands to make compiler produce verbose output that lists
15203               # what "hidden" libraries, object files and flags are used when
15204               # linking a shared library.
15205               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15206
15207             else
15208               # FIXME: insert proper C++ library support
15209               ld_shlibs_CXX=no
15210             fi
15211             ;;
15212         esac
15213         ;;
15214
15215       psos*)
15216         # FIXME: insert proper C++ library support
15217         ld_shlibs_CXX=no
15218         ;;
15219
15220       sunos4*)
15221         case $cc_basename in
15222           CC*)
15223             # Sun C++ 4.x
15224             # FIXME: insert proper C++ library support
15225             ld_shlibs_CXX=no
15226             ;;
15227           lcc*)
15228             # Lucid
15229             # FIXME: insert proper C++ library support
15230             ld_shlibs_CXX=no
15231             ;;
15232           *)
15233             # FIXME: insert proper C++ library support
15234             ld_shlibs_CXX=no
15235             ;;
15236         esac
15237         ;;
15238
15239       solaris*)
15240         case $cc_basename in
15241           CC* | sunCC*)
15242             # Sun C++ 4.2, 5.x and Centerline C++
15243             archive_cmds_need_lc_CXX=yes
15244             no_undefined_flag_CXX=' -zdefs'
15245             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15246             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15247               $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'
15248
15249             hardcode_libdir_flag_spec_CXX='-R$libdir'
15250             hardcode_shlibpath_var_CXX=no
15251             case $host_os in
15252               solaris2.[0-5] | solaris2.[0-5].*) ;;
15253               *)
15254                 # The compiler driver will combine and reorder linker options,
15255                 # but understands `-z linker_flag'.
15256                 # Supported since Solaris 2.6 (maybe 2.5.1?)
15257                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15258                 ;;
15259             esac
15260             link_all_deplibs_CXX=yes
15261
15262             output_verbose_link_cmd='func_echo_all'
15263
15264             # Archives containing C++ object files must be created using
15265             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15266             # necessary to make sure instantiated templates are included
15267             # in the archive.
15268             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15269             ;;
15270           gcx*)
15271             # Green Hills C++ Compiler
15272             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15273
15274             # The C++ compiler must be used to create the archive.
15275             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15276             ;;
15277           *)
15278             # GNU C++ compiler with Solaris linker
15279             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15280               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15281               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15282                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15283                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15284                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15285
15286                 # Commands to make compiler produce verbose output that lists
15287                 # what "hidden" libraries, object files and flags are used when
15288                 # linking a shared library.
15289                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15290               else
15291                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
15292                 # platform.
15293                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15294                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15295                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15296
15297                 # Commands to make compiler produce verbose output that lists
15298                 # what "hidden" libraries, object files and flags are used when
15299                 # linking a shared library.
15300                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15301               fi
15302
15303               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15304               case $host_os in
15305                 solaris2.[0-5] | solaris2.[0-5].*) ;;
15306                 *)
15307                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15308                   ;;
15309               esac
15310             fi
15311             ;;
15312         esac
15313         ;;
15314
15315     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15316       no_undefined_flag_CXX='${wl}-z,text'
15317       archive_cmds_need_lc_CXX=no
15318       hardcode_shlibpath_var_CXX=no
15319       runpath_var='LD_RUN_PATH'
15320
15321       case $cc_basename in
15322         CC*)
15323           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15324           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15325           ;;
15326         *)
15327           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15328           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15329           ;;
15330       esac
15331       ;;
15332
15333       sysv5* | sco3.2v5* | sco5v6*)
15334         # Note: We can NOT use -z defs as we might desire, because we do not
15335         # link with -lc, and that would cause any symbols used from libc to
15336         # always be unresolved, which means just about no library would
15337         # ever link correctly.  If we're not using GNU ld we use -z text
15338         # though, which does catch some bad symbols but isn't as heavy-handed
15339         # as -z defs.
15340         no_undefined_flag_CXX='${wl}-z,text'
15341         allow_undefined_flag_CXX='${wl}-z,nodefs'
15342         archive_cmds_need_lc_CXX=no
15343         hardcode_shlibpath_var_CXX=no
15344         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
15345         hardcode_libdir_separator_CXX=':'
15346         link_all_deplibs_CXX=yes
15347         export_dynamic_flag_spec_CXX='${wl}-Bexport'
15348         runpath_var='LD_RUN_PATH'
15349
15350         case $cc_basename in
15351           CC*)
15352             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15353             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15354             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15355               '"$old_archive_cmds_CXX"
15356             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15357               '"$reload_cmds_CXX"
15358             ;;
15359           *)
15360             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15361             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15362             ;;
15363         esac
15364       ;;
15365
15366       tandem*)
15367         case $cc_basename in
15368           NCC*)
15369             # NonStop-UX NCC 3.20
15370             # FIXME: insert proper C++ library support
15371             ld_shlibs_CXX=no
15372             ;;
15373           *)
15374             # FIXME: insert proper C++ library support
15375             ld_shlibs_CXX=no
15376             ;;
15377         esac
15378         ;;
15379
15380       vxworks*)
15381         # FIXME: insert proper C++ library support
15382         ld_shlibs_CXX=no
15383         ;;
15384
15385       *)
15386         # FIXME: insert proper C++ library support
15387         ld_shlibs_CXX=no
15388         ;;
15389     esac
15390
15391     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15392 $as_echo "$ld_shlibs_CXX" >&6; }
15393     test "$ld_shlibs_CXX" = no && can_build_shared=no
15394
15395     GCC_CXX="$GXX"
15396     LD_CXX="$LD"
15397
15398     ## CAVEAT EMPTOR:
15399     ## There is no encapsulation within the following macros, do not change
15400     ## the running order or otherwise move them around unless you know exactly
15401     ## what you are doing...
15402     # Dependencies to place before and after the object being linked:
15403 predep_objects_CXX=
15404 postdep_objects_CXX=
15405 predeps_CXX=
15406 postdeps_CXX=
15407 compiler_lib_search_path_CXX=
15408
15409 cat > conftest.$ac_ext <<_LT_EOF
15410 class Foo
15411 {
15412 public:
15413   Foo (void) { a = 0; }
15414 private:
15415   int a;
15416 };
15417 _LT_EOF
15418
15419
15420 _lt_libdeps_save_CFLAGS=$CFLAGS
15421 case "$CC $CFLAGS " in #(
15422 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15423 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15424 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15425 esac
15426
15427 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15428   (eval $ac_compile) 2>&5
15429   ac_status=$?
15430   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15431   test $ac_status = 0; }; then
15432   # Parse the compiler output and extract the necessary
15433   # objects, libraries and library flags.
15434
15435   # Sentinel used to keep track of whether or not we are before
15436   # the conftest object file.
15437   pre_test_object_deps_done=no
15438
15439   for p in `eval "$output_verbose_link_cmd"`; do
15440     case ${prev}${p} in
15441
15442     -L* | -R* | -l*)
15443        # Some compilers place space between "-{L,R}" and the path.
15444        # Remove the space.
15445        if test $p = "-L" ||
15446           test $p = "-R"; then
15447          prev=$p
15448          continue
15449        fi
15450
15451        # Expand the sysroot to ease extracting the directories later.
15452        if test -z "$prev"; then
15453          case $p in
15454          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15455          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15456          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15457          esac
15458        fi
15459        case $p in
15460        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15461        esac
15462        if test "$pre_test_object_deps_done" = no; then
15463          case ${prev} in
15464          -L | -R)
15465            # Internal compiler library paths should come after those
15466            # provided the user.  The postdeps already come after the
15467            # user supplied libs so there is no need to process them.
15468            if test -z "$compiler_lib_search_path_CXX"; then
15469              compiler_lib_search_path_CXX="${prev}${p}"
15470            else
15471              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15472            fi
15473            ;;
15474          # The "-l" case would never come before the object being
15475          # linked, so don't bother handling this case.
15476          esac
15477        else
15478          if test -z "$postdeps_CXX"; then
15479            postdeps_CXX="${prev}${p}"
15480          else
15481            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15482          fi
15483        fi
15484        prev=
15485        ;;
15486
15487     *.lto.$objext) ;; # Ignore GCC LTO objects
15488     *.$objext)
15489        # This assumes that the test object file only shows up
15490        # once in the compiler output.
15491        if test "$p" = "conftest.$objext"; then
15492          pre_test_object_deps_done=yes
15493          continue
15494        fi
15495
15496        if test "$pre_test_object_deps_done" = no; then
15497          if test -z "$predep_objects_CXX"; then
15498            predep_objects_CXX="$p"
15499          else
15500            predep_objects_CXX="$predep_objects_CXX $p"
15501          fi
15502        else
15503          if test -z "$postdep_objects_CXX"; then
15504            postdep_objects_CXX="$p"
15505          else
15506            postdep_objects_CXX="$postdep_objects_CXX $p"
15507          fi
15508        fi
15509        ;;
15510
15511     *) ;; # Ignore the rest.
15512
15513     esac
15514   done
15515
15516   # Clean up.
15517   rm -f a.out a.exe
15518 else
15519   echo "libtool.m4: error: problem compiling CXX test program"
15520 fi
15521
15522 $RM -f confest.$objext
15523 CFLAGS=$_lt_libdeps_save_CFLAGS
15524
15525 # PORTME: override above test on systems where it is broken
15526 case $host_os in
15527 interix[3-9]*)
15528   # Interix 3.5 installs completely hosed .la files for C++, so rather than
15529   # hack all around it, let's just trust "g++" to DTRT.
15530   predep_objects_CXX=
15531   postdep_objects_CXX=
15532   postdeps_CXX=
15533   ;;
15534
15535 linux*)
15536   case `$CC -V 2>&1 | sed 5q` in
15537   *Sun\ C*)
15538     # Sun C++ 5.9
15539
15540     # The more standards-conforming stlport4 library is
15541     # incompatible with the Cstd library. Avoid specifying
15542     # it if it's in CXXFLAGS. Ignore libCrun as
15543     # -library=stlport4 depends on it.
15544     case " $CXX $CXXFLAGS " in
15545     *" -library=stlport4 "*)
15546       solaris_use_stlport4=yes
15547       ;;
15548     esac
15549
15550     if test "$solaris_use_stlport4" != yes; then
15551       postdeps_CXX='-library=Cstd -library=Crun'
15552     fi
15553     ;;
15554   esac
15555   ;;
15556
15557 solaris*)
15558   case $cc_basename in
15559   CC* | sunCC*)
15560     # The more standards-conforming stlport4 library is
15561     # incompatible with the Cstd library. Avoid specifying
15562     # it if it's in CXXFLAGS. Ignore libCrun as
15563     # -library=stlport4 depends on it.
15564     case " $CXX $CXXFLAGS " in
15565     *" -library=stlport4 "*)
15566       solaris_use_stlport4=yes
15567       ;;
15568     esac
15569
15570     # Adding this requires a known-good setup of shared libraries for
15571     # Sun compiler versions before 5.6, else PIC objects from an old
15572     # archive will be linked into the output, leading to subtle bugs.
15573     if test "$solaris_use_stlport4" != yes; then
15574       postdeps_CXX='-library=Cstd -library=Crun'
15575     fi
15576     ;;
15577   esac
15578   ;;
15579 esac
15580
15581
15582 case " $postdeps_CXX " in
15583 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15584 esac
15585  compiler_lib_search_dirs_CXX=
15586 if test -n "${compiler_lib_search_path_CXX}"; then
15587  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15588 fi
15589
15590
15591
15592
15593
15594
15595
15596
15597
15598
15599
15600
15601
15602
15603
15604
15605
15606
15607
15608
15609
15610
15611
15612
15613
15614
15615
15616
15617
15618
15619
15620     lt_prog_compiler_wl_CXX=
15621 lt_prog_compiler_pic_CXX=
15622 lt_prog_compiler_static_CXX=
15623
15624
15625   # C++ specific cases for pic, static, wl, etc.
15626   if test "$GXX" = yes; then
15627     lt_prog_compiler_wl_CXX='-Wl,'
15628     lt_prog_compiler_static_CXX='-static'
15629
15630     case $host_os in
15631     aix*)
15632       # All AIX code is PIC.
15633       if test "$host_cpu" = ia64; then
15634         # AIX 5 now supports IA64 processor
15635         lt_prog_compiler_static_CXX='-Bstatic'
15636       fi
15637       ;;
15638
15639     amigaos*)
15640       case $host_cpu in
15641       powerpc)
15642             # see comment about AmigaOS4 .so support
15643             lt_prog_compiler_pic_CXX='-fPIC'
15644         ;;
15645       m68k)
15646             # FIXME: we need at least 68020 code to build shared libraries, but
15647             # adding the `-m68020' flag to GCC prevents building anything better,
15648             # like `-m68040'.
15649             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15650         ;;
15651       esac
15652       ;;
15653
15654     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15655       # PIC is the default for these OSes.
15656       ;;
15657     mingw* | cygwin* | os2* | pw32* | cegcc*)
15658       # This hack is so that the source file can tell whether it is being
15659       # built for inclusion in a dll (and should export symbols for example).
15660       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15661       # (--disable-auto-import) libraries
15662       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15663       ;;
15664     darwin* | rhapsody*)
15665       # PIC is the default on this platform
15666       # Common symbols not allowed in MH_DYLIB files
15667       lt_prog_compiler_pic_CXX='-fno-common'
15668       ;;
15669     *djgpp*)
15670       # DJGPP does not support shared libraries at all
15671       lt_prog_compiler_pic_CXX=
15672       ;;
15673     haiku*)
15674       # PIC is the default for Haiku.
15675       # The "-static" flag exists, but is broken.
15676       lt_prog_compiler_static_CXX=
15677       ;;
15678     interix[3-9]*)
15679       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15680       # Instead, we relocate shared libraries at runtime.
15681       ;;
15682     sysv4*MP*)
15683       if test -d /usr/nec; then
15684         lt_prog_compiler_pic_CXX=-Kconform_pic
15685       fi
15686       ;;
15687     hpux*)
15688       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15689       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15690       # sets the default TLS model and affects inlining.
15691       case $host_cpu in
15692       hppa*64*)
15693         ;;
15694       *)
15695         lt_prog_compiler_pic_CXX='-fPIC'
15696         ;;
15697       esac
15698       ;;
15699     *qnx* | *nto*)
15700       # QNX uses GNU C++, but need to define -shared option too, otherwise
15701       # it will coredump.
15702       lt_prog_compiler_pic_CXX='-fPIC -shared'
15703       ;;
15704     *)
15705       lt_prog_compiler_pic_CXX='-fPIC'
15706       ;;
15707     esac
15708   else
15709     case $host_os in
15710       aix[4-9]*)
15711         # All AIX code is PIC.
15712         if test "$host_cpu" = ia64; then
15713           # AIX 5 now supports IA64 processor
15714           lt_prog_compiler_static_CXX='-Bstatic'
15715         else
15716           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15717         fi
15718         ;;
15719       chorus*)
15720         case $cc_basename in
15721         cxch68*)
15722           # Green Hills C++ Compiler
15723           # _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"
15724           ;;
15725         esac
15726         ;;
15727       mingw* | cygwin* | os2* | pw32* | cegcc*)
15728         # This hack is so that the source file can tell whether it is being
15729         # built for inclusion in a dll (and should export symbols for example).
15730         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15731         ;;
15732       dgux*)
15733         case $cc_basename in
15734           ec++*)
15735             lt_prog_compiler_pic_CXX='-KPIC'
15736             ;;
15737           ghcx*)
15738             # Green Hills C++ Compiler
15739             lt_prog_compiler_pic_CXX='-pic'
15740             ;;
15741           *)
15742             ;;
15743         esac
15744         ;;
15745       freebsd* | dragonfly*)
15746         # FreeBSD uses GNU C++
15747         ;;
15748       hpux9* | hpux10* | hpux11*)
15749         case $cc_basename in
15750           CC*)
15751             lt_prog_compiler_wl_CXX='-Wl,'
15752             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15753             if test "$host_cpu" != ia64; then
15754               lt_prog_compiler_pic_CXX='+Z'
15755             fi
15756             ;;
15757           aCC*)
15758             lt_prog_compiler_wl_CXX='-Wl,'
15759             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15760             case $host_cpu in
15761             hppa*64*|ia64*)
15762               # +Z the default
15763               ;;
15764             *)
15765               lt_prog_compiler_pic_CXX='+Z'
15766               ;;
15767             esac
15768             ;;
15769           *)
15770             ;;
15771         esac
15772         ;;
15773       interix*)
15774         # This is c89, which is MS Visual C++ (no shared libs)
15775         # Anyone wants to do a port?
15776         ;;
15777       irix5* | irix6* | nonstopux*)
15778         case $cc_basename in
15779           CC*)
15780             lt_prog_compiler_wl_CXX='-Wl,'
15781             lt_prog_compiler_static_CXX='-non_shared'
15782             # CC pic flag -KPIC is the default.
15783             ;;
15784           *)
15785             ;;
15786         esac
15787         ;;
15788       linux* | k*bsd*-gnu | kopensolaris*-gnu)
15789         case $cc_basename in
15790           KCC*)
15791             # KAI C++ Compiler
15792             lt_prog_compiler_wl_CXX='--backend -Wl,'
15793             lt_prog_compiler_pic_CXX='-fPIC'
15794             ;;
15795           ecpc* )
15796             # old Intel C++ for x86_64 which still supported -KPIC.
15797             lt_prog_compiler_wl_CXX='-Wl,'
15798             lt_prog_compiler_pic_CXX='-KPIC'
15799             lt_prog_compiler_static_CXX='-static'
15800             ;;
15801           icpc* )
15802             # Intel C++, used to be incompatible with GCC.
15803             # ICC 10 doesn't accept -KPIC any more.
15804             lt_prog_compiler_wl_CXX='-Wl,'
15805             lt_prog_compiler_pic_CXX='-fPIC'
15806             lt_prog_compiler_static_CXX='-static'
15807             ;;
15808           pgCC* | pgcpp*)
15809             # Portland Group C++ compiler
15810             lt_prog_compiler_wl_CXX='-Wl,'
15811             lt_prog_compiler_pic_CXX='-fpic'
15812             lt_prog_compiler_static_CXX='-Bstatic'
15813             ;;
15814           cxx*)
15815             # Compaq C++
15816             # Make sure the PIC flag is empty.  It appears that all Alpha
15817             # Linux and Compaq Tru64 Unix objects are PIC.
15818             lt_prog_compiler_pic_CXX=
15819             lt_prog_compiler_static_CXX='-non_shared'
15820             ;;
15821           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15822             # IBM XL 8.0, 9.0 on PPC and BlueGene
15823             lt_prog_compiler_wl_CXX='-Wl,'
15824             lt_prog_compiler_pic_CXX='-qpic'
15825             lt_prog_compiler_static_CXX='-qstaticlink'
15826             ;;
15827           *)
15828             case `$CC -V 2>&1 | sed 5q` in
15829             *Sun\ C*)
15830               # Sun C++ 5.9
15831               lt_prog_compiler_pic_CXX='-KPIC'
15832               lt_prog_compiler_static_CXX='-Bstatic'
15833               lt_prog_compiler_wl_CXX='-Qoption ld '
15834               ;;
15835             esac
15836             ;;
15837         esac
15838         ;;
15839       lynxos*)
15840         ;;
15841       m88k*)
15842         ;;
15843       mvs*)
15844         case $cc_basename in
15845           cxx*)
15846             lt_prog_compiler_pic_CXX='-W c,exportall'
15847             ;;
15848           *)
15849             ;;
15850         esac
15851         ;;
15852       netbsd* | netbsdelf*-gnu)
15853         ;;
15854       *qnx* | *nto*)
15855         # QNX uses GNU C++, but need to define -shared option too, otherwise
15856         # it will coredump.
15857         lt_prog_compiler_pic_CXX='-fPIC -shared'
15858         ;;
15859       osf3* | osf4* | osf5*)
15860         case $cc_basename in
15861           KCC*)
15862             lt_prog_compiler_wl_CXX='--backend -Wl,'
15863             ;;
15864           RCC*)
15865             # Rational C++ 2.4.1
15866             lt_prog_compiler_pic_CXX='-pic'
15867             ;;
15868           cxx*)
15869             # Digital/Compaq C++
15870             lt_prog_compiler_wl_CXX='-Wl,'
15871             # Make sure the PIC flag is empty.  It appears that all Alpha
15872             # Linux and Compaq Tru64 Unix objects are PIC.
15873             lt_prog_compiler_pic_CXX=
15874             lt_prog_compiler_static_CXX='-non_shared'
15875             ;;
15876           *)
15877             ;;
15878         esac
15879         ;;
15880       psos*)
15881         ;;
15882       solaris*)
15883         case $cc_basename in
15884           CC* | sunCC*)
15885             # Sun C++ 4.2, 5.x and Centerline C++
15886             lt_prog_compiler_pic_CXX='-KPIC'
15887             lt_prog_compiler_static_CXX='-Bstatic'
15888             lt_prog_compiler_wl_CXX='-Qoption ld '
15889             ;;
15890           gcx*)
15891             # Green Hills C++ Compiler
15892             lt_prog_compiler_pic_CXX='-PIC'
15893             ;;
15894           *)
15895             ;;
15896         esac
15897         ;;
15898       sunos4*)
15899         case $cc_basename in
15900           CC*)
15901             # Sun C++ 4.x
15902             lt_prog_compiler_pic_CXX='-pic'
15903             lt_prog_compiler_static_CXX='-Bstatic'
15904             ;;
15905           lcc*)
15906             # Lucid
15907             lt_prog_compiler_pic_CXX='-pic'
15908             ;;
15909           *)
15910             ;;
15911         esac
15912         ;;
15913       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15914         case $cc_basename in
15915           CC*)
15916             lt_prog_compiler_wl_CXX='-Wl,'
15917             lt_prog_compiler_pic_CXX='-KPIC'
15918             lt_prog_compiler_static_CXX='-Bstatic'
15919             ;;
15920         esac
15921         ;;
15922       tandem*)
15923         case $cc_basename in
15924           NCC*)
15925             # NonStop-UX NCC 3.20
15926             lt_prog_compiler_pic_CXX='-KPIC'
15927             ;;
15928           *)
15929             ;;
15930         esac
15931         ;;
15932       vxworks*)
15933         ;;
15934       *)
15935         lt_prog_compiler_can_build_shared_CXX=no
15936         ;;
15937     esac
15938   fi
15939
15940 case $host_os in
15941   # For platforms which do not support PIC, -DPIC is meaningless:
15942   *djgpp*)
15943     lt_prog_compiler_pic_CXX=
15944     ;;
15945   *)
15946     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15947     ;;
15948 esac
15949
15950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15951 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15952 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15953   $as_echo_n "(cached) " >&6
15954 else
15955   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15956 fi
15957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15958 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15959 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15960
15961 #
15962 # Check to make sure the PIC flag actually works.
15963 #
15964 if test -n "$lt_prog_compiler_pic_CXX"; then
15965   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15966 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15967 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15968   $as_echo_n "(cached) " >&6
15969 else
15970   lt_cv_prog_compiler_pic_works_CXX=no
15971    ac_outfile=conftest.$ac_objext
15972    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15973    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15974    # Insert the option either (1) after the last *FLAGS variable, or
15975    # (2) before a word containing "conftest.", or (3) at the end.
15976    # Note that $ac_compile itself does not contain backslashes and begins
15977    # with a dollar sign (not a hyphen), so the echo should work correctly.
15978    # The option is referenced via a variable to avoid confusing sed.
15979    lt_compile=`echo "$ac_compile" | $SED \
15980    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15981    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15982    -e 's:$: $lt_compiler_flag:'`
15983    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15984    (eval "$lt_compile" 2>conftest.err)
15985    ac_status=$?
15986    cat conftest.err >&5
15987    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15988    if (exit $ac_status) && test -s "$ac_outfile"; then
15989      # The compiler can only warn and ignore the option if not recognized
15990      # So say no if there are warnings other than the usual output.
15991      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15992      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15993      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15994        lt_cv_prog_compiler_pic_works_CXX=yes
15995      fi
15996    fi
15997    $RM conftest*
15998
15999 fi
16000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16001 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16002
16003 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
16004     case $lt_prog_compiler_pic_CXX in
16005      "" | " "*) ;;
16006      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16007      esac
16008 else
16009     lt_prog_compiler_pic_CXX=
16010      lt_prog_compiler_can_build_shared_CXX=no
16011 fi
16012
16013 fi
16014
16015
16016
16017
16018
16019 #
16020 # Check to make sure the static flag actually works.
16021 #
16022 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16024 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16025 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
16026   $as_echo_n "(cached) " >&6
16027 else
16028   lt_cv_prog_compiler_static_works_CXX=no
16029    save_LDFLAGS="$LDFLAGS"
16030    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16031    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16032    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16033      # The linker can only warn and ignore the option if not recognized
16034      # So say no if there are warnings
16035      if test -s conftest.err; then
16036        # Append any errors to the config.log.
16037        cat conftest.err 1>&5
16038        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16039        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16040        if diff conftest.exp conftest.er2 >/dev/null; then
16041          lt_cv_prog_compiler_static_works_CXX=yes
16042        fi
16043      else
16044        lt_cv_prog_compiler_static_works_CXX=yes
16045      fi
16046    fi
16047    $RM -r conftest*
16048    LDFLAGS="$save_LDFLAGS"
16049
16050 fi
16051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16052 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16053
16054 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
16055     :
16056 else
16057     lt_prog_compiler_static_CXX=
16058 fi
16059
16060
16061
16062
16063     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16064 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16065 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16066   $as_echo_n "(cached) " >&6
16067 else
16068   lt_cv_prog_compiler_c_o_CXX=no
16069    $RM -r conftest 2>/dev/null
16070    mkdir conftest
16071    cd conftest
16072    mkdir out
16073    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16074
16075    lt_compiler_flag="-o out/conftest2.$ac_objext"
16076    # Insert the option either (1) after the last *FLAGS variable, or
16077    # (2) before a word containing "conftest.", or (3) at the end.
16078    # Note that $ac_compile itself does not contain backslashes and begins
16079    # with a dollar sign (not a hyphen), so the echo should work correctly.
16080    lt_compile=`echo "$ac_compile" | $SED \
16081    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16082    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16083    -e 's:$: $lt_compiler_flag:'`
16084    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16085    (eval "$lt_compile" 2>out/conftest.err)
16086    ac_status=$?
16087    cat out/conftest.err >&5
16088    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16089    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16090    then
16091      # The compiler can only warn and ignore the option if not recognized
16092      # So say no if there are warnings
16093      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16094      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16095      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16096        lt_cv_prog_compiler_c_o_CXX=yes
16097      fi
16098    fi
16099    chmod u+w . 2>&5
16100    $RM conftest*
16101    # SGI C++ compiler will create directory out/ii_files/ for
16102    # template instantiation
16103    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16104    $RM out/* && rmdir out
16105    cd ..
16106    $RM -r conftest
16107    $RM conftest*
16108
16109 fi
16110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16111 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16112
16113
16114
16115     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16116 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16117 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16118   $as_echo_n "(cached) " >&6
16119 else
16120   lt_cv_prog_compiler_c_o_CXX=no
16121    $RM -r conftest 2>/dev/null
16122    mkdir conftest
16123    cd conftest
16124    mkdir out
16125    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16126
16127    lt_compiler_flag="-o out/conftest2.$ac_objext"
16128    # Insert the option either (1) after the last *FLAGS variable, or
16129    # (2) before a word containing "conftest.", or (3) at the end.
16130    # Note that $ac_compile itself does not contain backslashes and begins
16131    # with a dollar sign (not a hyphen), so the echo should work correctly.
16132    lt_compile=`echo "$ac_compile" | $SED \
16133    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16134    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16135    -e 's:$: $lt_compiler_flag:'`
16136    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16137    (eval "$lt_compile" 2>out/conftest.err)
16138    ac_status=$?
16139    cat out/conftest.err >&5
16140    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16141    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16142    then
16143      # The compiler can only warn and ignore the option if not recognized
16144      # So say no if there are warnings
16145      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16146      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16147      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16148        lt_cv_prog_compiler_c_o_CXX=yes
16149      fi
16150    fi
16151    chmod u+w . 2>&5
16152    $RM conftest*
16153    # SGI C++ compiler will create directory out/ii_files/ for
16154    # template instantiation
16155    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16156    $RM out/* && rmdir out
16157    cd ..
16158    $RM -r conftest
16159    $RM conftest*
16160
16161 fi
16162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16163 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16164
16165
16166
16167
16168 hard_links="nottested"
16169 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16170   # do not overwrite the value of need_locks provided by the user
16171   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16172 $as_echo_n "checking if we can lock with hard links... " >&6; }
16173   hard_links=yes
16174   $RM conftest*
16175   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16176   touch conftest.a
16177   ln conftest.a conftest.b 2>&5 || hard_links=no
16178   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16180 $as_echo "$hard_links" >&6; }
16181   if test "$hard_links" = no; then
16182     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16183 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16184     need_locks=warn
16185   fi
16186 else
16187   need_locks=no
16188 fi
16189
16190
16191
16192     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16193 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16194
16195   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16196   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16197   case $host_os in
16198   aix[4-9]*)
16199     # If we're using GNU nm, then we don't want the "-C" option.
16200     # -C means demangle to AIX nm, but means don't demangle with GNU nm
16201     # Also, AIX nm treats weak defined symbols like other global defined
16202     # symbols, whereas GNU nm marks them as "W".
16203     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16204       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'
16205     else
16206       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'
16207     fi
16208     ;;
16209   pw32*)
16210     export_symbols_cmds_CXX="$ltdll_cmds"
16211     ;;
16212   cygwin* | mingw* | cegcc*)
16213     case $cc_basename in
16214     cl*)
16215       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16216       ;;
16217     *)
16218       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'
16219       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16220       ;;
16221     esac
16222     ;;
16223   linux* | k*bsd*-gnu | gnu*)
16224     link_all_deplibs_CXX=no
16225     ;;
16226   *)
16227     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16228     ;;
16229   esac
16230
16231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16232 $as_echo "$ld_shlibs_CXX" >&6; }
16233 test "$ld_shlibs_CXX" = no && can_build_shared=no
16234
16235 with_gnu_ld_CXX=$with_gnu_ld
16236
16237
16238
16239
16240
16241
16242 #
16243 # Do we need to explicitly link libc?
16244 #
16245 case "x$archive_cmds_need_lc_CXX" in
16246 x|xyes)
16247   # Assume -lc should be added
16248   archive_cmds_need_lc_CXX=yes
16249
16250   if test "$enable_shared" = yes && test "$GCC" = yes; then
16251     case $archive_cmds_CXX in
16252     *'~'*)
16253       # FIXME: we may have to deal with multi-command sequences.
16254       ;;
16255     '$CC '*)
16256       # Test whether the compiler implicitly links with -lc since on some
16257       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16258       # to ld, don't add -lc before -lgcc.
16259       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16260 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16261 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
16262   $as_echo_n "(cached) " >&6
16263 else
16264   $RM conftest*
16265         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16266
16267         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16268   (eval $ac_compile) 2>&5
16269   ac_status=$?
16270   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16271   test $ac_status = 0; } 2>conftest.err; then
16272           soname=conftest
16273           lib=conftest
16274           libobjs=conftest.$ac_objext
16275           deplibs=
16276           wl=$lt_prog_compiler_wl_CXX
16277           pic_flag=$lt_prog_compiler_pic_CXX
16278           compiler_flags=-v
16279           linker_flags=-v
16280           verstring=
16281           output_objdir=.
16282           libname=conftest
16283           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16284           allow_undefined_flag_CXX=
16285           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16286   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16287   ac_status=$?
16288   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16289   test $ac_status = 0; }
16290           then
16291             lt_cv_archive_cmds_need_lc_CXX=no
16292           else
16293             lt_cv_archive_cmds_need_lc_CXX=yes
16294           fi
16295           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16296         else
16297           cat conftest.err 1>&5
16298         fi
16299         $RM conftest*
16300
16301 fi
16302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16303 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
16304       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
16305       ;;
16306     esac
16307   fi
16308   ;;
16309 esac
16310
16311
16312
16313
16314
16315
16316
16317
16318
16319
16320
16321
16322
16323
16324
16325
16326
16327
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362
16363
16364
16365
16366
16367
16368
16369
16370
16371
16372     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16373 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16374
16375 library_names_spec=
16376 libname_spec='lib$name'
16377 soname_spec=
16378 shrext_cmds=".so"
16379 postinstall_cmds=
16380 postuninstall_cmds=
16381 finish_cmds=
16382 finish_eval=
16383 shlibpath_var=
16384 shlibpath_overrides_runpath=unknown
16385 version_type=none
16386 dynamic_linker="$host_os ld.so"
16387 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16388 need_lib_prefix=unknown
16389 hardcode_into_libs=no
16390
16391 # when you set need_version to no, make sure it does not cause -set_version
16392 # flags to be left without arguments
16393 need_version=unknown
16394
16395 case $host_os in
16396 aix3*)
16397   version_type=linux # correct to gnu/linux during the next big refactor
16398   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16399   shlibpath_var=LIBPATH
16400
16401   # AIX 3 has no versioning support, so we append a major version to the name.
16402   soname_spec='${libname}${release}${shared_ext}$major'
16403   ;;
16404
16405 aix[4-9]*)
16406   version_type=linux # correct to gnu/linux during the next big refactor
16407   need_lib_prefix=no
16408   need_version=no
16409   hardcode_into_libs=yes
16410   if test "$host_cpu" = ia64; then
16411     # AIX 5 supports IA64
16412     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16413     shlibpath_var=LD_LIBRARY_PATH
16414   else
16415     # With GCC up to 2.95.x, collect2 would create an import file
16416     # for dependence libraries.  The import file would start with
16417     # the line `#! .'.  This would cause the generated library to
16418     # depend on `.', always an invalid library.  This was fixed in
16419     # development snapshots of GCC prior to 3.0.
16420     case $host_os in
16421       aix4 | aix4.[01] | aix4.[01].*)
16422       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16423            echo ' yes '
16424            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16425         :
16426       else
16427         can_build_shared=no
16428       fi
16429       ;;
16430     esac
16431     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16432     # soname into executable. Probably we can add versioning support to
16433     # collect2, so additional links can be useful in future.
16434     if test "$aix_use_runtimelinking" = yes; then
16435       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16436       # instead of lib<name>.a to let people know that these are not
16437       # typical AIX shared libraries.
16438       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16439     else
16440       # We preserve .a as extension for shared libraries through AIX4.2
16441       # and later when we are not doing run time linking.
16442       library_names_spec='${libname}${release}.a $libname.a'
16443       soname_spec='${libname}${release}${shared_ext}$major'
16444     fi
16445     shlibpath_var=LIBPATH
16446   fi
16447   ;;
16448
16449 amigaos*)
16450   case $host_cpu in
16451   powerpc)
16452     # Since July 2007 AmigaOS4 officially supports .so libraries.
16453     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16454     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16455     ;;
16456   m68k)
16457     library_names_spec='$libname.ixlibrary $libname.a'
16458     # Create ${libname}_ixlibrary.a entries in /sys/libs.
16459     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'
16460     ;;
16461   esac
16462   ;;
16463
16464 beos*)
16465   library_names_spec='${libname}${shared_ext}'
16466   dynamic_linker="$host_os ld.so"
16467   shlibpath_var=LIBRARY_PATH
16468   ;;
16469
16470 bsdi[45]*)
16471   version_type=linux # correct to gnu/linux during the next big refactor
16472   need_version=no
16473   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16474   soname_spec='${libname}${release}${shared_ext}$major'
16475   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16476   shlibpath_var=LD_LIBRARY_PATH
16477   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16478   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16479   # the default ld.so.conf also contains /usr/contrib/lib and
16480   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16481   # libtool to hard-code these into programs
16482   ;;
16483
16484 cygwin* | mingw* | pw32* | cegcc*)
16485   version_type=windows
16486   shrext_cmds=".dll"
16487   need_version=no
16488   need_lib_prefix=no
16489
16490   case $GCC,$cc_basename in
16491   yes,*)
16492     # gcc
16493     library_names_spec='$libname.dll.a'
16494     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16495     postinstall_cmds='base_file=`basename \${file}`~
16496       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16497       dldir=$destdir/`dirname \$dlpath`~
16498       test -d \$dldir || mkdir -p \$dldir~
16499       $install_prog $dir/$dlname \$dldir/$dlname~
16500       chmod a+x \$dldir/$dlname~
16501       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16502         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16503       fi'
16504     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16505       dlpath=$dir/\$dldll~
16506        $RM \$dlpath'
16507     shlibpath_overrides_runpath=yes
16508
16509     case $host_os in
16510     cygwin*)
16511       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16512       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16513
16514       ;;
16515     mingw* | cegcc*)
16516       # MinGW DLLs use traditional 'lib' prefix
16517       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16518       ;;
16519     pw32*)
16520       # pw32 DLLs use 'pw' prefix rather than 'lib'
16521       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16522       ;;
16523     esac
16524     dynamic_linker='Win32 ld.exe'
16525     ;;
16526
16527   *,cl*)
16528     # Native MSVC
16529     libname_spec='$name'
16530     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16531     library_names_spec='${libname}.dll.lib'
16532
16533     case $build_os in
16534     mingw*)
16535       sys_lib_search_path_spec=
16536       lt_save_ifs=$IFS
16537       IFS=';'
16538       for lt_path in $LIB
16539       do
16540         IFS=$lt_save_ifs
16541         # Let DOS variable expansion print the short 8.3 style file name.
16542         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16543         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16544       done
16545       IFS=$lt_save_ifs
16546       # Convert to MSYS style.
16547       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16548       ;;
16549     cygwin*)
16550       # Convert to unix form, then to dos form, then back to unix form
16551       # but this time dos style (no spaces!) so that the unix form looks
16552       # like /cygdrive/c/PROGRA~1:/cygdr...
16553       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16554       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16555       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16556       ;;
16557     *)
16558       sys_lib_search_path_spec="$LIB"
16559       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16560         # It is most probably a Windows format PATH.
16561         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16562       else
16563         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16564       fi
16565       # FIXME: find the short name or the path components, as spaces are
16566       # common. (e.g. "Program Files" -> "PROGRA~1")
16567       ;;
16568     esac
16569
16570     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16571     postinstall_cmds='base_file=`basename \${file}`~
16572       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16573       dldir=$destdir/`dirname \$dlpath`~
16574       test -d \$dldir || mkdir -p \$dldir~
16575       $install_prog $dir/$dlname \$dldir/$dlname'
16576     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16577       dlpath=$dir/\$dldll~
16578        $RM \$dlpath'
16579     shlibpath_overrides_runpath=yes
16580     dynamic_linker='Win32 link.exe'
16581     ;;
16582
16583   *)
16584     # Assume MSVC wrapper
16585     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16586     dynamic_linker='Win32 ld.exe'
16587     ;;
16588   esac
16589   # FIXME: first we should search . and the directory the executable is in
16590   shlibpath_var=PATH
16591   ;;
16592
16593 darwin* | rhapsody*)
16594   dynamic_linker="$host_os dyld"
16595   version_type=darwin
16596   need_lib_prefix=no
16597   need_version=no
16598   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16599   soname_spec='${libname}${release}${major}$shared_ext'
16600   shlibpath_overrides_runpath=yes
16601   shlibpath_var=DYLD_LIBRARY_PATH
16602   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16603
16604   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16605   ;;
16606
16607 dgux*)
16608   version_type=linux # correct to gnu/linux during the next big refactor
16609   need_lib_prefix=no
16610   need_version=no
16611   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16612   soname_spec='${libname}${release}${shared_ext}$major'
16613   shlibpath_var=LD_LIBRARY_PATH
16614   ;;
16615
16616 freebsd* | dragonfly*)
16617   # DragonFly does not have aout.  When/if they implement a new
16618   # versioning mechanism, adjust this.
16619   if test -x /usr/bin/objformat; then
16620     objformat=`/usr/bin/objformat`
16621   else
16622     case $host_os in
16623     freebsd[23].*) objformat=aout ;;
16624     *) objformat=elf ;;
16625     esac
16626   fi
16627   version_type=freebsd-$objformat
16628   case $version_type in
16629     freebsd-elf*)
16630       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16631       need_version=no
16632       need_lib_prefix=no
16633       ;;
16634     freebsd-*)
16635       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16636       need_version=yes
16637       ;;
16638   esac
16639   shlibpath_var=LD_LIBRARY_PATH
16640   case $host_os in
16641   freebsd2.*)
16642     shlibpath_overrides_runpath=yes
16643     ;;
16644   freebsd3.[01]* | freebsdelf3.[01]*)
16645     shlibpath_overrides_runpath=yes
16646     hardcode_into_libs=yes
16647     ;;
16648   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16649   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16650     shlibpath_overrides_runpath=no
16651     hardcode_into_libs=yes
16652     ;;
16653   *) # from 4.6 on, and DragonFly
16654     shlibpath_overrides_runpath=yes
16655     hardcode_into_libs=yes
16656     ;;
16657   esac
16658   ;;
16659
16660 gnu*)
16661   version_type=linux # correct to gnu/linux during the next big refactor
16662   need_lib_prefix=no
16663   need_version=no
16664   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16665   soname_spec='${libname}${release}${shared_ext}$major'
16666   shlibpath_var=LD_LIBRARY_PATH
16667   shlibpath_overrides_runpath=no
16668   hardcode_into_libs=yes
16669   ;;
16670
16671 haiku*)
16672   version_type=linux # correct to gnu/linux during the next big refactor
16673   need_lib_prefix=no
16674   need_version=no
16675   dynamic_linker="$host_os runtime_loader"
16676   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16677   soname_spec='${libname}${release}${shared_ext}$major'
16678   shlibpath_var=LIBRARY_PATH
16679   shlibpath_overrides_runpath=yes
16680   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16681   hardcode_into_libs=yes
16682   ;;
16683
16684 hpux9* | hpux10* | hpux11*)
16685   # Give a soname corresponding to the major version so that dld.sl refuses to
16686   # link against other versions.
16687   version_type=sunos
16688   need_lib_prefix=no
16689   need_version=no
16690   case $host_cpu in
16691   ia64*)
16692     shrext_cmds='.so'
16693     hardcode_into_libs=yes
16694     dynamic_linker="$host_os dld.so"
16695     shlibpath_var=LD_LIBRARY_PATH
16696     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16697     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16698     soname_spec='${libname}${release}${shared_ext}$major'
16699     if test "X$HPUX_IA64_MODE" = X32; then
16700       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16701     else
16702       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16703     fi
16704     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16705     ;;
16706   hppa*64*)
16707     shrext_cmds='.sl'
16708     hardcode_into_libs=yes
16709     dynamic_linker="$host_os dld.sl"
16710     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16711     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16712     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16713     soname_spec='${libname}${release}${shared_ext}$major'
16714     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16715     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16716     ;;
16717   *)
16718     shrext_cmds='.sl'
16719     dynamic_linker="$host_os dld.sl"
16720     shlibpath_var=SHLIB_PATH
16721     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16722     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16723     soname_spec='${libname}${release}${shared_ext}$major'
16724     ;;
16725   esac
16726   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16727   postinstall_cmds='chmod 555 $lib'
16728   # or fails outright, so override atomically:
16729   install_override_mode=555
16730   ;;
16731
16732 interix[3-9]*)
16733   version_type=linux # correct to gnu/linux during the next big refactor
16734   need_lib_prefix=no
16735   need_version=no
16736   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16737   soname_spec='${libname}${release}${shared_ext}$major'
16738   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16739   shlibpath_var=LD_LIBRARY_PATH
16740   shlibpath_overrides_runpath=no
16741   hardcode_into_libs=yes
16742   ;;
16743
16744 irix5* | irix6* | nonstopux*)
16745   case $host_os in
16746     nonstopux*) version_type=nonstopux ;;
16747     *)
16748         if test "$lt_cv_prog_gnu_ld" = yes; then
16749                 version_type=linux # correct to gnu/linux during the next big refactor
16750         else
16751                 version_type=irix
16752         fi ;;
16753   esac
16754   need_lib_prefix=no
16755   need_version=no
16756   soname_spec='${libname}${release}${shared_ext}$major'
16757   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16758   case $host_os in
16759   irix5* | nonstopux*)
16760     libsuff= shlibsuff=
16761     ;;
16762   *)
16763     case $LD in # libtool.m4 will add one of these switches to LD
16764     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16765       libsuff= shlibsuff= libmagic=32-bit;;
16766     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16767       libsuff=32 shlibsuff=N32 libmagic=N32;;
16768     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16769       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16770     *) libsuff= shlibsuff= libmagic=never-match;;
16771     esac
16772     ;;
16773   esac
16774   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16775   shlibpath_overrides_runpath=no
16776   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16777   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16778   hardcode_into_libs=yes
16779   ;;
16780
16781 # No shared lib support for Linux oldld, aout, or coff.
16782 linux*oldld* | linux*aout* | linux*coff*)
16783   dynamic_linker=no
16784   ;;
16785
16786 linux*android*)
16787   version_type=none # Android doesn't support versioned libraries.
16788   need_lib_prefix=no
16789   need_version=no
16790   library_names_spec='$libname$release$shared_ext'
16791   soname_spec='$libname$release$shared_ext'
16792   finish_cmds=
16793   shlibpath_var=LD_LIBRARY_PATH
16794   shlibpath_overrides_runpath=yes
16795
16796   # This implies no fast_install, which is unacceptable.
16797   # Some rework will be needed to allow for fast_install
16798   # before this can be enabled.
16799   hardcode_into_libs=yes
16800
16801   dynamic_linker='Android linker'
16802   # Don't embed -rpath directories since the linker doesn't support them.
16803   hardcode_libdir_flag_spec_CXX='-L$libdir'
16804   ;;
16805
16806 # This must be glibc/ELF.
16807 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16808   version_type=linux # correct to gnu/linux during the next big refactor
16809   need_lib_prefix=no
16810   need_version=no
16811   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16812   soname_spec='${libname}${release}${shared_ext}$major'
16813   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16814   shlibpath_var=LD_LIBRARY_PATH
16815   shlibpath_overrides_runpath=no
16816
16817   # Some binutils ld are patched to set DT_RUNPATH
16818   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16819   $as_echo_n "(cached) " >&6
16820 else
16821   lt_cv_shlibpath_overrides_runpath=no
16822     save_LDFLAGS=$LDFLAGS
16823     save_libdir=$libdir
16824     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16825          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16826     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16827 /* end confdefs.h.  */
16828
16829 int
16830 main ()
16831 {
16832
16833   ;
16834   return 0;
16835 }
16836 _ACEOF
16837 if ac_fn_cxx_try_link "$LINENO"; then :
16838   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16839   lt_cv_shlibpath_overrides_runpath=yes
16840 fi
16841 fi
16842 rm -f core conftest.err conftest.$ac_objext \
16843     conftest$ac_exeext conftest.$ac_ext
16844     LDFLAGS=$save_LDFLAGS
16845     libdir=$save_libdir
16846
16847 fi
16848
16849   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16850
16851   # This implies no fast_install, which is unacceptable.
16852   # Some rework will be needed to allow for fast_install
16853   # before this can be enabled.
16854   hardcode_into_libs=yes
16855
16856   # Append ld.so.conf contents to the search path
16857   if test -f /etc/ld.so.conf; then
16858     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' ' '`
16859     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16860   fi
16861
16862   # We used to test for /lib/ld.so.1 and disable shared libraries on
16863   # powerpc, because MkLinux only supported shared libraries with the
16864   # GNU dynamic linker.  Since this was broken with cross compilers,
16865   # most powerpc-linux boxes support dynamic linking these days and
16866   # people can always --disable-shared, the test was removed, and we
16867   # assume the GNU/Linux dynamic linker is in use.
16868   dynamic_linker='GNU/Linux ld.so'
16869   ;;
16870
16871 netbsdelf*-gnu)
16872   version_type=linux
16873   need_lib_prefix=no
16874   need_version=no
16875   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16876   soname_spec='${libname}${release}${shared_ext}$major'
16877   shlibpath_var=LD_LIBRARY_PATH
16878   shlibpath_overrides_runpath=no
16879   hardcode_into_libs=yes
16880   dynamic_linker='NetBSD ld.elf_so'
16881   ;;
16882
16883 netbsd*)
16884   version_type=sunos
16885   need_lib_prefix=no
16886   need_version=no
16887   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16888     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16889     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16890     dynamic_linker='NetBSD (a.out) ld.so'
16891   else
16892     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16893     soname_spec='${libname}${release}${shared_ext}$major'
16894     dynamic_linker='NetBSD ld.elf_so'
16895   fi
16896   shlibpath_var=LD_LIBRARY_PATH
16897   shlibpath_overrides_runpath=yes
16898   hardcode_into_libs=yes
16899   ;;
16900
16901 newsos6)
16902   version_type=linux # correct to gnu/linux during the next big refactor
16903   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16904   shlibpath_var=LD_LIBRARY_PATH
16905   shlibpath_overrides_runpath=yes
16906   ;;
16907
16908 *nto* | *qnx*)
16909   version_type=qnx
16910   need_lib_prefix=no
16911   need_version=no
16912   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16913   soname_spec='${libname}${release}${shared_ext}$major'
16914   shlibpath_var=LD_LIBRARY_PATH
16915   shlibpath_overrides_runpath=no
16916   hardcode_into_libs=yes
16917   dynamic_linker='ldqnx.so'
16918   ;;
16919
16920 openbsd*)
16921   version_type=sunos
16922   sys_lib_dlsearch_path_spec="/usr/lib"
16923   need_lib_prefix=no
16924   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16925   case $host_os in
16926     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16927     *)                          need_version=no  ;;
16928   esac
16929   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16930   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16931   shlibpath_var=LD_LIBRARY_PATH
16932   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16933     case $host_os in
16934       openbsd2.[89] | openbsd2.[89].*)
16935         shlibpath_overrides_runpath=no
16936         ;;
16937       *)
16938         shlibpath_overrides_runpath=yes
16939         ;;
16940       esac
16941   else
16942     shlibpath_overrides_runpath=yes
16943   fi
16944   ;;
16945
16946 os2*)
16947   libname_spec='$name'
16948   shrext_cmds=".dll"
16949   need_lib_prefix=no
16950   library_names_spec='$libname${shared_ext} $libname.a'
16951   dynamic_linker='OS/2 ld.exe'
16952   shlibpath_var=LIBPATH
16953   ;;
16954
16955 osf3* | osf4* | osf5*)
16956   version_type=osf
16957   need_lib_prefix=no
16958   need_version=no
16959   soname_spec='${libname}${release}${shared_ext}$major'
16960   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16961   shlibpath_var=LD_LIBRARY_PATH
16962   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16963   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16964   ;;
16965
16966 rdos*)
16967   dynamic_linker=no
16968   ;;
16969
16970 solaris*)
16971   version_type=linux # correct to gnu/linux during the next big refactor
16972   need_lib_prefix=no
16973   need_version=no
16974   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16975   soname_spec='${libname}${release}${shared_ext}$major'
16976   shlibpath_var=LD_LIBRARY_PATH
16977   shlibpath_overrides_runpath=yes
16978   hardcode_into_libs=yes
16979   # ldd complains unless libraries are executable
16980   postinstall_cmds='chmod +x $lib'
16981   ;;
16982
16983 sunos4*)
16984   version_type=sunos
16985   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16986   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16987   shlibpath_var=LD_LIBRARY_PATH
16988   shlibpath_overrides_runpath=yes
16989   if test "$with_gnu_ld" = yes; then
16990     need_lib_prefix=no
16991   fi
16992   need_version=yes
16993   ;;
16994
16995 sysv4 | sysv4.3*)
16996   version_type=linux # correct to gnu/linux during the next big refactor
16997   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16998   soname_spec='${libname}${release}${shared_ext}$major'
16999   shlibpath_var=LD_LIBRARY_PATH
17000   case $host_vendor in
17001     sni)
17002       shlibpath_overrides_runpath=no
17003       need_lib_prefix=no
17004       runpath_var=LD_RUN_PATH
17005       ;;
17006     siemens)
17007       need_lib_prefix=no
17008       ;;
17009     motorola)
17010       need_lib_prefix=no
17011       need_version=no
17012       shlibpath_overrides_runpath=no
17013       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17014       ;;
17015   esac
17016   ;;
17017
17018 sysv4*MP*)
17019   if test -d /usr/nec ;then
17020     version_type=linux # correct to gnu/linux during the next big refactor
17021     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17022     soname_spec='$libname${shared_ext}.$major'
17023     shlibpath_var=LD_LIBRARY_PATH
17024   fi
17025   ;;
17026
17027 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17028   version_type=freebsd-elf
17029   need_lib_prefix=no
17030   need_version=no
17031   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17032   soname_spec='${libname}${release}${shared_ext}$major'
17033   shlibpath_var=LD_LIBRARY_PATH
17034   shlibpath_overrides_runpath=yes
17035   hardcode_into_libs=yes
17036   if test "$with_gnu_ld" = yes; then
17037     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17038   else
17039     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17040     case $host_os in
17041       sco3.2v5*)
17042         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17043         ;;
17044     esac
17045   fi
17046   sys_lib_dlsearch_path_spec='/usr/lib'
17047   ;;
17048
17049 tpf*)
17050   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17051   version_type=linux # correct to gnu/linux during the next big refactor
17052   need_lib_prefix=no
17053   need_version=no
17054   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17055   shlibpath_var=LD_LIBRARY_PATH
17056   shlibpath_overrides_runpath=no
17057   hardcode_into_libs=yes
17058   ;;
17059
17060 uts4*)
17061   version_type=linux # correct to gnu/linux during the next big refactor
17062   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17063   soname_spec='${libname}${release}${shared_ext}$major'
17064   shlibpath_var=LD_LIBRARY_PATH
17065   ;;
17066
17067 *)
17068   dynamic_linker=no
17069   ;;
17070 esac
17071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17072 $as_echo "$dynamic_linker" >&6; }
17073 test "$dynamic_linker" = no && can_build_shared=no
17074
17075 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17076 if test "$GCC" = yes; then
17077   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17078 fi
17079
17080 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17081   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17082 fi
17083 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17084   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17085 fi
17086
17087
17088
17089
17090
17091
17092
17093
17094
17095
17096
17097
17098
17099
17100
17101
17102
17103
17104
17105
17106
17107
17108
17109
17110
17111
17112
17113
17114
17115
17116
17117
17118
17119
17120
17121
17122
17123
17124     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17125 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17126 hardcode_action_CXX=
17127 if test -n "$hardcode_libdir_flag_spec_CXX" ||
17128    test -n "$runpath_var_CXX" ||
17129    test "X$hardcode_automatic_CXX" = "Xyes" ; then
17130
17131   # We can hardcode non-existent directories.
17132   if test "$hardcode_direct_CXX" != no &&
17133      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17134      # have to relink, otherwise we might link with an installed library
17135      # when we should be linking with a yet-to-be-installed one
17136      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17137      test "$hardcode_minus_L_CXX" != no; then
17138     # Linking always hardcodes the temporary library directory.
17139     hardcode_action_CXX=relink
17140   else
17141     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17142     hardcode_action_CXX=immediate
17143   fi
17144 else
17145   # We cannot hardcode anything, or else we can only hardcode existing
17146   # directories.
17147   hardcode_action_CXX=unsupported
17148 fi
17149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17150 $as_echo "$hardcode_action_CXX" >&6; }
17151
17152 if test "$hardcode_action_CXX" = relink ||
17153    test "$inherit_rpath_CXX" = yes; then
17154   # Fast installation is not supported
17155   enable_fast_install=no
17156 elif test "$shlibpath_overrides_runpath" = yes ||
17157      test "$enable_shared" = no; then
17158   # Fast installation is not necessary
17159   enable_fast_install=needless
17160 fi
17161
17162
17163
17164
17165
17166
17167
17168   fi # test -n "$compiler"
17169
17170   CC=$lt_save_CC
17171   CFLAGS=$lt_save_CFLAGS
17172   LDCXX=$LD
17173   LD=$lt_save_LD
17174   GCC=$lt_save_GCC
17175   with_gnu_ld=$lt_save_with_gnu_ld
17176   lt_cv_path_LDCXX=$lt_cv_path_LD
17177   lt_cv_path_LD=$lt_save_path_LD
17178   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17179   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17180 fi # test "$_lt_caught_CXX_error" != yes
17181
17182 ac_ext=c
17183 ac_cpp='$CPP $CPPFLAGS'
17184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17187
17188
17189
17190
17191
17192
17193
17194
17195
17196
17197
17198
17199
17200
17201
17202         ac_config_commands="$ac_config_commands libtool"
17203
17204
17205
17206
17207 # Only expand once:
17208
17209
17210 if test -n "$ac_tool_prefix"; then
17211   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
17212 set dummy ${ac_tool_prefix}windres; ac_word=$2
17213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17214 $as_echo_n "checking for $ac_word... " >&6; }
17215 if ${ac_cv_prog_RC+:} false; then :
17216   $as_echo_n "(cached) " >&6
17217 else
17218   if test -n "$RC"; then
17219   ac_cv_prog_RC="$RC" # Let the user override the test.
17220 else
17221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17222 for as_dir in $PATH
17223 do
17224   IFS=$as_save_IFS
17225   test -z "$as_dir" && as_dir=.
17226     for ac_exec_ext in '' $ac_executable_extensions; do
17227   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17228     ac_cv_prog_RC="${ac_tool_prefix}windres"
17229     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17230     break 2
17231   fi
17232 done
17233   done
17234 IFS=$as_save_IFS
17235
17236 fi
17237 fi
17238 RC=$ac_cv_prog_RC
17239 if test -n "$RC"; then
17240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
17241 $as_echo "$RC" >&6; }
17242 else
17243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17244 $as_echo "no" >&6; }
17245 fi
17246
17247
17248 fi
17249 if test -z "$ac_cv_prog_RC"; then
17250   ac_ct_RC=$RC
17251   # Extract the first word of "windres", so it can be a program name with args.
17252 set dummy windres; ac_word=$2
17253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17254 $as_echo_n "checking for $ac_word... " >&6; }
17255 if ${ac_cv_prog_ac_ct_RC+:} false; then :
17256   $as_echo_n "(cached) " >&6
17257 else
17258   if test -n "$ac_ct_RC"; then
17259   ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
17260 else
17261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17262 for as_dir in $PATH
17263 do
17264   IFS=$as_save_IFS
17265   test -z "$as_dir" && as_dir=.
17266     for ac_exec_ext in '' $ac_executable_extensions; do
17267   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17268     ac_cv_prog_ac_ct_RC="windres"
17269     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17270     break 2
17271   fi
17272 done
17273   done
17274 IFS=$as_save_IFS
17275
17276 fi
17277 fi
17278 ac_ct_RC=$ac_cv_prog_ac_ct_RC
17279 if test -n "$ac_ct_RC"; then
17280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
17281 $as_echo "$ac_ct_RC" >&6; }
17282 else
17283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17284 $as_echo "no" >&6; }
17285 fi
17286
17287   if test "x$ac_ct_RC" = x; then
17288     RC=""
17289   else
17290     case $cross_compiling:$ac_tool_warned in
17291 yes:)
17292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17293 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17294 ac_tool_warned=yes ;;
17295 esac
17296     RC=$ac_ct_RC
17297   fi
17298 else
17299   RC="$ac_cv_prog_RC"
17300 fi
17301
17302
17303
17304
17305 # Source file extension for RC test sources.
17306 ac_ext=rc
17307
17308 # Object file extension for compiled RC test sources.
17309 objext=o
17310 objext_RC=$objext
17311
17312 # Code to be used in simple compile tests
17313 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
17314
17315 # Code to be used in simple link tests
17316 lt_simple_link_test_code="$lt_simple_compile_test_code"
17317
17318 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17319
17320
17321
17322
17323
17324
17325 # If no C compiler was specified, use CC.
17326 LTCC=${LTCC-"$CC"}
17327
17328 # If no C compiler flags were specified, use CFLAGS.
17329 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17330
17331 # Allow CC to be a program name with arguments.
17332 compiler=$CC
17333
17334
17335 # save warnings/boilerplate of simple test code
17336 ac_outfile=conftest.$ac_objext
17337 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17338 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17339 _lt_compiler_boilerplate=`cat conftest.err`
17340 $RM conftest*
17341
17342 ac_outfile=conftest.$ac_objext
17343 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17344 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17345 _lt_linker_boilerplate=`cat conftest.err`
17346 $RM -r conftest*
17347
17348
17349 # Allow CC to be a program name with arguments.
17350 lt_save_CC="$CC"
17351 lt_save_CFLAGS=$CFLAGS
17352 lt_save_GCC=$GCC
17353 GCC=
17354 CC=${RC-"windres"}
17355 CFLAGS=
17356 compiler=$CC
17357 compiler_RC=$CC
17358 for cc_temp in $compiler""; do
17359   case $cc_temp in
17360     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17361     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17362     \-*) ;;
17363     *) break;;
17364   esac
17365 done
17366 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17367
17368 lt_cv_prog_compiler_c_o_RC=yes
17369
17370 if test -n "$compiler"; then
17371   :
17372
17373
17374
17375 fi
17376
17377 GCC=$lt_save_GCC
17378 ac_ext=c
17379 ac_cpp='$CPP $CPPFLAGS'
17380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17383
17384 CC=$lt_save_CC
17385 CFLAGS=$lt_save_CFLAGS
17386
17387
17388 # For now we hardcode the use of version scripts.  It would be better
17389 # to write a test for this or even implement this within libtool.
17390 have_ld_version_script=no
17391 case "${host}" in
17392     *-*-linux*)
17393         have_ld_version_script=yes
17394         ;;
17395     *-*-gnu*)
17396         have_ld_version_script=yes
17397         ;;
17398     *-apple-darwin*)
17399
17400 $as_echo "#define _DARWIN_C_SOURCE 900000L" >>confdefs.h
17401
17402
17403 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
17404
17405         ;;
17406 esac
17407
17408  if test "$have_ld_version_script" = "yes"; then
17409   HAVE_LD_VERSION_SCRIPT_TRUE=
17410   HAVE_LD_VERSION_SCRIPT_FALSE='#'
17411 else
17412   HAVE_LD_VERSION_SCRIPT_TRUE='#'
17413   HAVE_LD_VERSION_SCRIPT_FALSE=
17414 fi
17415
17416
17417 GPG_DEFAULT=no
17418 GPGSM_DEFAULT=no
17419 GPGCONF_DEFAULT=no
17420 G13_DEFAULT=no
17421 component_system=None
17422 have_dosish_system=no
17423 have_android_system=no
17424 have_w32_system=no
17425 have_w64_system=no
17426 have_macos_system=no
17427 build_w32_glib=no
17428 build_w32_qt=no
17429 available_languages="cl cpp python qt"
17430 default_languages="cl cpp python qt"
17431 case "${host}" in
17432     x86_64-*mingw32*)
17433         have_w64_system=yes
17434         ;;
17435     *-linux-androideabi)
17436         have_android_system=yes
17437         ;;
17438     *-apple-darwin*)
17439         have_macos_system=yes
17440         ;;
17441 esac
17442 case "${host}" in
17443     *-mingw32*)
17444         have_dosish_system=yes
17445         have_w32_system=yes
17446         GPG_DEFAULT='c:\\gnupg\\gpg.exe'
17447         GPGSM_DEFAULT='c:\\gnupg\\gpgsm.exe'
17448         GPGCONF_DEFAULT='c:\\gnupg\\gpgconf.exe'
17449         G13_DEFAULT='c:\\gnupg\\g13.exe'
17450         #component_system='COM+'
17451
17452         # Check whether --enable-glibtest was given.
17453 if test "${enable_glibtest+set}" = set; then :
17454   enableval=$enable_glibtest;
17455 else
17456   enable_glibtest=yes
17457 fi
17458
17459
17460   pkg_config_args=glib-2.0
17461   for module in .
17462   do
17463       case "$module" in
17464          gmodule)
17465              pkg_config_args="$pkg_config_args gmodule-2.0"
17466          ;;
17467          gmodule-no-export)
17468              pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
17469          ;;
17470          gobject)
17471              pkg_config_args="$pkg_config_args gobject-2.0"
17472          ;;
17473          gthread)
17474              pkg_config_args="$pkg_config_args gthread-2.0"
17475          ;;
17476       esac
17477   done
17478
17479   # Extract the first word of "pkg-config", so it can be a program name with args.
17480 set dummy pkg-config; ac_word=$2
17481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17482 $as_echo_n "checking for $ac_word... " >&6; }
17483 if ${ac_cv_path_PKG_CONFIG+:} false; then :
17484   $as_echo_n "(cached) " >&6
17485 else
17486   case $PKG_CONFIG in
17487   [\\/]* | ?:[\\/]*)
17488   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17489   ;;
17490   *)
17491   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17492 for as_dir in $PATH
17493 do
17494   IFS=$as_save_IFS
17495   test -z "$as_dir" && as_dir=.
17496     for ac_exec_ext in '' $ac_executable_extensions; do
17497   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17498     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17499     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17500     break 2
17501   fi
17502 done
17503   done
17504 IFS=$as_save_IFS
17505
17506   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
17507   ;;
17508 esac
17509 fi
17510 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17511 if test -n "$PKG_CONFIG"; then
17512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17513 $as_echo "$PKG_CONFIG" >&6; }
17514 else
17515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17516 $as_echo "no" >&6; }
17517 fi
17518
17519
17520
17521   no_glib=""
17522
17523   if test x$PKG_CONFIG != xno ; then
17524     if $PKG_CONFIG --atleast-pkgconfig-version 0.7 ; then
17525       :
17526     else
17527       echo *** pkg-config too old; version 0.7 or better required.
17528       no_glib=yes
17529       PKG_CONFIG=no
17530     fi
17531   else
17532     no_glib=yes
17533   fi
17534
17535   min_glib_version=2.0.0
17536   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5
17537 $as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
17538
17539   if test x$PKG_CONFIG != xno ; then
17540     ## don't try to run the test against uninstalled libtool libs
17541     if $PKG_CONFIG --uninstalled $pkg_config_args; then
17542           echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
17543           enable_glibtest=no
17544     fi
17545
17546     if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
17547           :
17548     else
17549           no_glib=yes
17550     fi
17551   fi
17552
17553   if test x"$no_glib" = x ; then
17554     GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
17555     GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
17556     GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
17557
17558     GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
17559     GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
17560     glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
17561            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
17562     glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
17563            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
17564     glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
17565            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
17566     if test "x$enable_glibtest" = "xyes" ; then
17567       ac_save_CFLAGS="$CFLAGS"
17568       ac_save_LIBS="$LIBS"
17569       CFLAGS="$CFLAGS $GLIB_CFLAGS"
17570       LIBS="$GLIB_LIBS $LIBS"
17571       rm -f conf.glibtest
17572       if test "$cross_compiling" = yes; then :
17573   echo $ac_n "cross compiling; assumed OK... $ac_c"
17574 else
17575   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17576 /* end confdefs.h.  */
17577
17578 #include <glib.h>
17579 #include <stdio.h>
17580 #include <stdlib.h>
17581
17582 int
17583 main ()
17584 {
17585   int major, minor, micro;
17586   char *tmp_version;
17587
17588   system ("touch conf.glibtest");
17589
17590   /* HP/UX 9 (%@#!) writes to sscanf strings */
17591   tmp_version = g_strdup("$min_glib_version");
17592   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
17593      printf("%s, bad version string\n", "$min_glib_version");
17594      exit(1);
17595    }
17596
17597   if ((glib_major_version != $glib_config_major_version) ||
17598       (glib_minor_version != $glib_config_minor_version) ||
17599       (glib_micro_version != $glib_config_micro_version))
17600     {
17601       printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
17602              $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
17603              glib_major_version, glib_minor_version, glib_micro_version);
17604       printf ("*** was found! If pkg-config was correct, then it is best\n");
17605       printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
17606       printf("*** by modifying your LD_LIBRARY_PATH environment variable, or by editing\n");
17607       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
17608       printf("*** required on your system.\n");
17609       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
17610       printf("*** to point to the correct configuration files\n");
17611     }
17612   else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
17613            (glib_minor_version != GLIB_MINOR_VERSION) ||
17614            (glib_micro_version != GLIB_MICRO_VERSION))
17615     {
17616       printf("*** GLIB header files (version %d.%d.%d) do not match\n",
17617              GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
17618       printf("*** library (version %d.%d.%d)\n",
17619              glib_major_version, glib_minor_version, glib_micro_version);
17620     }
17621   else
17622     {
17623       if ((glib_major_version > major) ||
17624         ((glib_major_version == major) && (glib_minor_version > minor)) ||
17625         ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
17626       {
17627         return 0;
17628        }
17629      else
17630       {
17631         printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
17632                glib_major_version, glib_minor_version, glib_micro_version);
17633         printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
17634                major, minor, micro);
17635         printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
17636         printf("***\n");
17637         printf("*** If you have already installed a sufficiently new version, this error\n");
17638         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
17639         printf("*** being found. The easiest way to fix this is to remove the old version\n");
17640         printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
17641         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
17642         printf("*** modify your LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf\n");
17643         printf("*** so that the correct libraries are found at run-time))\n");
17644       }
17645     }
17646   return 1;
17647 }
17648
17649 _ACEOF
17650 if ac_fn_c_try_run "$LINENO"; then :
17651
17652 else
17653   no_glib=yes
17654 fi
17655 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17656   conftest.$ac_objext conftest.beam conftest.$ac_ext
17657 fi
17658
17659        CFLAGS="$ac_save_CFLAGS"
17660        LIBS="$ac_save_LIBS"
17661      fi
17662   fi
17663   if test "x$no_glib" = x ; then
17664      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
17665 $as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
17666      :
17667   else
17668      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17669 $as_echo "no" >&6; }
17670      if test "$PKG_CONFIG" = "no" ; then
17671        echo "*** A new enough version of pkg-config was not found."
17672        echo "*** See https://www.freedesktop.org/software/pkgconfig/"
17673      else
17674        if test -f conf.glibtest ; then
17675         :
17676        else
17677           echo "*** Could not run GLIB test program, checking why..."
17678           ac_save_CFLAGS="$CFLAGS"
17679           ac_save_LIBS="$LIBS"
17680           CFLAGS="$CFLAGS $GLIB_CFLAGS"
17681           LIBS="$LIBS $GLIB_LIBS"
17682           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17683 /* end confdefs.h.  */
17684
17685 #include <glib.h>
17686 #include <stdio.h>
17687
17688 int
17689 main ()
17690 {
17691  return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
17692   ;
17693   return 0;
17694 }
17695 _ACEOF
17696 if ac_fn_c_try_link "$LINENO"; then :
17697    echo "*** The test program compiled, but did not run. This usually means"
17698           echo "*** that the run-time linker is not finding GLIB or finding the wrong"
17699           echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
17700           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
17701           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
17702           echo "*** is required on your system"
17703           echo "***"
17704           echo "*** If you have an old version installed, it is best to remove it, although"
17705           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
17706 else
17707    echo "*** The test program failed to compile or link. See the file config.log for the"
17708           echo "*** exact error that occurred. This usually means GLIB is incorrectly installed."
17709 fi
17710 rm -f core conftest.err conftest.$ac_objext \
17711     conftest$ac_exeext conftest.$ac_ext
17712           CFLAGS="$ac_save_CFLAGS"
17713           LIBS="$ac_save_LIBS"
17714        fi
17715      fi
17716      GLIB_CFLAGS=""
17717      GLIB_LIBS=""
17718      GLIB_GENMARSHAL=""
17719      GOBJECT_QUERY=""
17720      GLIB_MKENUMS=""
17721      :
17722   fi
17723
17724
17725
17726
17727
17728   rm -f conf.glibtest
17729
17730         # Check whether --enable-w32-glib was given.
17731 if test "${enable_w32_glib+set}" = set; then :
17732   enableval=$enable_w32_glib; build_w32_glib=$enableval
17733 fi
17734
17735        ;;
17736     *)
17737
17738         # XXX: Probably use exec-prefix here?
17739 #       GPG_DEFAULT='/usr/bin/gpg'
17740 #       GPGSM_DEFAULT='/usr/bin/gpgsm'
17741 #       GPGCONF_DEFAULT='/usr/bin/gpgconf'
17742 #       G13_DEFAULT='/usr/bin/g13'
17743         ;;
17744 esac
17745
17746 if test "$have_dosish_system" = yes; then
17747
17748 $as_echo "#define HAVE_DOSISH_SYSTEM 1" >>confdefs.h
17749
17750 fi
17751  if test "$have_dosish_system" = yes; then
17752   HAVE_DOSISH_SYSTEM_TRUE=
17753   HAVE_DOSISH_SYSTEM_FALSE='#'
17754 else
17755   HAVE_DOSISH_SYSTEM_TRUE='#'
17756   HAVE_DOSISH_SYSTEM_FALSE=
17757 fi
17758
17759
17760 if test "$have_w32_system" = yes; then
17761
17762 $as_echo "#define HAVE_W32_SYSTEM 1" >>confdefs.h
17763
17764 fi
17765  if test "$have_w32_system" = yes; then
17766   HAVE_W32_SYSTEM_TRUE=
17767   HAVE_W32_SYSTEM_FALSE='#'
17768 else
17769   HAVE_W32_SYSTEM_TRUE='#'
17770   HAVE_W32_SYSTEM_FALSE=
17771 fi
17772
17773
17774 if test "$have_w64_system" = yes; then
17775
17776 $as_echo "#define HAVE_W64_SYSTEM 1" >>confdefs.h
17777
17778 fi
17779  if test "$have_w64_system" = yes; then
17780   HAVE_W64_SYSTEM_TRUE=
17781   HAVE_W64_SYSTEM_FALSE='#'
17782 else
17783   HAVE_W64_SYSTEM_TRUE='#'
17784   HAVE_W64_SYSTEM_FALSE=
17785 fi
17786
17787
17788 if test "$have_android_system" = yes; then
17789
17790 $as_echo "#define HAVE_ANDROID_SYSTEM 1" >>confdefs.h
17791
17792 fi
17793  if test "$have_android_system" = yes; then
17794   HAVE_ANDROID_SYSTEM_TRUE=
17795   HAVE_ANDROID_SYSTEM_FALSE='#'
17796 else
17797   HAVE_ANDROID_SYSTEM_TRUE='#'
17798   HAVE_ANDROID_SYSTEM_FALSE=
17799 fi
17800
17801
17802 if test "$have_macos_system" = yes; then
17803
17804 $as_echo "#define HAVE_MACOS_SYSTEM 1" >>confdefs.h
17805
17806 fi
17807  if test "$have_macos_system" = yes; then
17808   HAVE_MACOS_SYSTEM_TRUE=
17809   HAVE_MACOS_SYSTEM_FALSE='#'
17810 else
17811   HAVE_MACOS_SYSTEM_TRUE='#'
17812   HAVE_MACOS_SYSTEM_FALSE=
17813 fi
17814
17815
17816  if test "$build_w32_glib" = yes; then
17817   BUILD_W32_GLIB_TRUE=
17818   BUILD_W32_GLIB_FALSE='#'
17819 else
17820   BUILD_W32_GLIB_TRUE='#'
17821   BUILD_W32_GLIB_FALSE=
17822 fi
17823
17824
17825
17826 # Check whether --enable-fixed-path was given.
17827 if test "${enable_fixed_path+set}" = set; then :
17828   enableval=$enable_fixed_path; fixed_search_path="$enableval"
17829 else
17830   fixed_search_path=""
17831 fi
17832
17833 if test x$fixed_search_path != x ; then
17834
17835 cat >>confdefs.h <<_ACEOF
17836 #define FIXED_SEARCH_PATH "$fixed_search_path"
17837 _ACEOF
17838
17839 fi
17840
17841
17842 # Note: You need to declare all possible languages also in
17843 #       lang/Makefile.am's DIST_SUBDIRS.
17844 # Check whether --enable-languages was given.
17845 if test "${enable_languages+set}" = set; then :
17846   enableval=$enable_languages; enabled_languages=`echo $enableval | \
17847                              tr ',:' '  ' | tr 'A-Z' 'a-z' | \
17848                              sed 's/c++/cpp/'`
17849 else
17850   enabled_languages="maybe"
17851 fi
17852
17853 if test "x$enabled_languages" = "x" \
17854    -o "$enabled_languages" = "no"; then
17855    enabled_languages=
17856 fi
17857
17858 # If languages are explicitly set missing requirements
17859 # for the languages are treated as errors otherwise
17860 # there will be a warning.
17861 explicit_languages=1
17862 if test "x$enabled_languages" = "xmaybe"; then
17863     explicit_languages=0
17864     enabled_languages="$default_languages"
17865 fi
17866
17867 for language in $enabled_languages; do
17868
17869 name=$language
17870 list=$available_languages
17871 found=0
17872
17873 for n in $list; do
17874   if test "x$name" = "x$n"; then
17875     found=1
17876   fi
17877 done
17878
17879     if test "$found" = "0"; then
17880        as_fn_error $? "unsupported language binding specified" "$LINENO" 5
17881     fi
17882 done
17883
17884
17885
17886 # Enable C++ 11 if cpp language is requested
17887
17888 name="cpp"
17889 list=$enabled_languages
17890 found=0
17891
17892 for n in $list; do
17893   if test "x$name" = "x$n"; then
17894     found=1
17895   fi
17896 done
17897
17898 if test "$found" = "1"; then
17899           ax_cxx_compile_cxx11_required=false
17900   ac_ext=cpp
17901 ac_cpp='$CXXCPP $CPPFLAGS'
17902 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17903 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17904 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17905   ac_success=no
17906   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
17907 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
17908 if ${ax_cv_cxx_compile_cxx11+:} false; then :
17909   $as_echo_n "(cached) " >&6
17910 else
17911   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17912 /* end confdefs.h.  */
17913
17914
17915 // If the compiler admits that it is not ready for C++11, why torture it?
17916 // Hopefully, this will speed up the test.
17917
17918 #ifndef __cplusplus
17919
17920 #error "This is not a C++ compiler"
17921
17922 #elif __cplusplus < 201103L
17923
17924 #error "This is not a C++11 compiler"
17925
17926 #else
17927
17928 namespace cxx11
17929 {
17930
17931   namespace test_static_assert
17932   {
17933
17934     template <typename T>
17935     struct check
17936     {
17937       static_assert(sizeof(int) <= sizeof(T), "not big enough");
17938     };
17939
17940   }
17941
17942   namespace test_final_override
17943   {
17944
17945     struct Base
17946     {
17947       virtual void f() {}
17948     };
17949
17950     struct Derived : public Base
17951     {
17952       virtual void f() override {}
17953     };
17954
17955   }
17956
17957   namespace test_double_right_angle_brackets
17958   {
17959
17960     template < typename T >
17961     struct check {};
17962
17963     typedef check<void> single_type;
17964     typedef check<check<void>> double_type;
17965     typedef check<check<check<void>>> triple_type;
17966     typedef check<check<check<check<void>>>> quadruple_type;
17967
17968   }
17969
17970   namespace test_decltype
17971   {
17972
17973     int
17974     f()
17975     {
17976       int a = 1;
17977       decltype(a) b = 2;
17978       return a + b;
17979     }
17980
17981   }
17982
17983   namespace test_type_deduction
17984   {
17985
17986     template < typename T1, typename T2 >
17987     struct is_same
17988     {
17989       static const bool value = false;
17990     };
17991
17992     template < typename T >
17993     struct is_same<T, T>
17994     {
17995       static const bool value = true;
17996     };
17997
17998     template < typename T1, typename T2 >
17999     auto
18000     add(T1 a1, T2 a2) -> decltype(a1 + a2)
18001     {
18002       return a1 + a2;
18003     }
18004
18005     int
18006     test(const int c, volatile int v)
18007     {
18008       static_assert(is_same<int, decltype(0)>::value == true, "");
18009       static_assert(is_same<int, decltype(c)>::value == false, "");
18010       static_assert(is_same<int, decltype(v)>::value == false, "");
18011       auto ac = c;
18012       auto av = v;
18013       auto sumi = ac + av + 'x';
18014       auto sumf = ac + av + 1.0;
18015       static_assert(is_same<int, decltype(ac)>::value == true, "");
18016       static_assert(is_same<int, decltype(av)>::value == true, "");
18017       static_assert(is_same<int, decltype(sumi)>::value == true, "");
18018       static_assert(is_same<int, decltype(sumf)>::value == false, "");
18019       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
18020       return (sumf > 0.0) ? sumi : add(c, v);
18021     }
18022
18023   }
18024
18025   namespace test_noexcept
18026   {
18027
18028     int f() { return 0; }
18029     int g() noexcept { return 0; }
18030
18031     static_assert(noexcept(f()) == false, "");
18032     static_assert(noexcept(g()) == true, "");
18033
18034   }
18035
18036   namespace test_constexpr
18037   {
18038
18039     template < typename CharT >
18040     unsigned long constexpr
18041     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
18042     {
18043       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
18044     }
18045
18046     template < typename CharT >
18047     unsigned long constexpr
18048     strlen_c(const CharT *const s) noexcept
18049     {
18050       return strlen_c_r(s, 0UL);
18051     }
18052
18053     static_assert(strlen_c("") == 0UL, "");
18054     static_assert(strlen_c("1") == 1UL, "");
18055     static_assert(strlen_c("example") == 7UL, "");
18056     static_assert(strlen_c("another\0example") == 7UL, "");
18057
18058   }
18059
18060   namespace test_rvalue_references
18061   {
18062
18063     template < int N >
18064     struct answer
18065     {
18066       static constexpr int value = N;
18067     };
18068
18069     answer<1> f(int&)       { return answer<1>(); }
18070     answer<2> f(const int&) { return answer<2>(); }
18071     answer<3> f(int&&)      { return answer<3>(); }
18072
18073     void
18074     test()
18075     {
18076       int i = 0;
18077       const int c = 0;
18078       static_assert(decltype(f(i))::value == 1, "");
18079       static_assert(decltype(f(c))::value == 2, "");
18080       static_assert(decltype(f(0))::value == 3, "");
18081     }
18082
18083   }
18084
18085   namespace test_uniform_initialization
18086   {
18087
18088     struct test
18089     {
18090       static const int zero {};
18091       static const int one {1};
18092     };
18093
18094     static_assert(test::zero == 0, "");
18095     static_assert(test::one == 1, "");
18096
18097   }
18098
18099   namespace test_lambdas
18100   {
18101
18102     void
18103     test1()
18104     {
18105       auto lambda1 = [](){};
18106       auto lambda2 = lambda1;
18107       lambda1();
18108       lambda2();
18109     }
18110
18111     int
18112     test2()
18113     {
18114       auto a = [](int i, int j){ return i + j; }(1, 2);
18115       auto b = []() -> int { return '0'; }();
18116       auto c = [=](){ return a + b; }();
18117       auto d = [&](){ return c; }();
18118       auto e = [a, &b](int x) mutable {
18119         const auto identity = [](int y){ return y; };
18120         for (auto i = 0; i < a; ++i)
18121           a += b--;
18122         return x + identity(a + b);
18123       }(0);
18124       return a + b + c + d + e;
18125     }
18126
18127     int
18128     test3()
18129     {
18130       const auto nullary = [](){ return 0; };
18131       const auto unary = [](int x){ return x; };
18132       using nullary_t = decltype(nullary);
18133       using unary_t = decltype(unary);
18134       const auto higher1st = [](nullary_t f){ return f(); };
18135       const auto higher2nd = [unary](nullary_t f1){
18136         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
18137       };
18138       return higher1st(nullary) + higher2nd(nullary)(unary);
18139     }
18140
18141   }
18142
18143   namespace test_variadic_templates
18144   {
18145
18146     template <int...>
18147     struct sum;
18148
18149     template <int N0, int... N1toN>
18150     struct sum<N0, N1toN...>
18151     {
18152       static constexpr auto value = N0 + sum<N1toN...>::value;
18153     };
18154
18155     template <>
18156     struct sum<>
18157     {
18158       static constexpr auto value = 0;
18159     };
18160
18161     static_assert(sum<>::value == 0, "");
18162     static_assert(sum<1>::value == 1, "");
18163     static_assert(sum<23>::value == 23, "");
18164     static_assert(sum<1, 2>::value == 3, "");
18165     static_assert(sum<5, 5, 11>::value == 21, "");
18166     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
18167
18168   }
18169
18170   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
18171   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
18172   // because of this.
18173   namespace test_template_alias_sfinae
18174   {
18175
18176     struct foo {};
18177
18178     template<typename T>
18179     using member = typename T::member_type;
18180
18181     template<typename T>
18182     void func(...) {}
18183
18184     template<typename T>
18185     void func(member<T>*) {}
18186
18187     void test();
18188
18189     void test() { func<foo>(0); }
18190
18191   }
18192
18193 }  // namespace cxx11
18194
18195 #endif  // __cplusplus >= 201103L
18196
18197
18198
18199 _ACEOF
18200 if ac_fn_cxx_try_compile "$LINENO"; then :
18201   ax_cv_cxx_compile_cxx11=yes
18202 else
18203   ax_cv_cxx_compile_cxx11=no
18204 fi
18205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18206 fi
18207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
18208 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
18209   if test x$ax_cv_cxx_compile_cxx11 = xyes; then
18210     ac_success=yes
18211   fi
18212
18213
18214
18215     if test x$ac_success = xno; then
18216                 for switch in -std=c++11 -std=c++0x +std=c++11 "-h std=c++11"; do
18217       cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
18218       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
18219 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
18220 if eval \${$cachevar+:} false; then :
18221   $as_echo_n "(cached) " >&6
18222 else
18223   ac_save_CXX="$CXX"
18224          CXX="$CXX $switch"
18225          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18226 /* end confdefs.h.  */
18227
18228
18229 // If the compiler admits that it is not ready for C++11, why torture it?
18230 // Hopefully, this will speed up the test.
18231
18232 #ifndef __cplusplus
18233
18234 #error "This is not a C++ compiler"
18235
18236 #elif __cplusplus < 201103L
18237
18238 #error "This is not a C++11 compiler"
18239
18240 #else
18241
18242 namespace cxx11
18243 {
18244
18245   namespace test_static_assert
18246   {
18247
18248     template <typename T>
18249     struct check
18250     {
18251       static_assert(sizeof(int) <= sizeof(T), "not big enough");
18252     };
18253
18254   }
18255
18256   namespace test_final_override
18257   {
18258
18259     struct Base
18260     {
18261       virtual void f() {}
18262     };
18263
18264     struct Derived : public Base
18265     {
18266       virtual void f() override {}
18267     };
18268
18269   }
18270
18271   namespace test_double_right_angle_brackets
18272   {
18273
18274     template < typename T >
18275     struct check {};
18276
18277     typedef check<void> single_type;
18278     typedef check<check<void>> double_type;
18279     typedef check<check<check<void>>> triple_type;
18280     typedef check<check<check<check<void>>>> quadruple_type;
18281
18282   }
18283
18284   namespace test_decltype
18285   {
18286
18287     int
18288     f()
18289     {
18290       int a = 1;
18291       decltype(a) b = 2;
18292       return a + b;
18293     }
18294
18295   }
18296
18297   namespace test_type_deduction
18298   {
18299
18300     template < typename T1, typename T2 >
18301     struct is_same
18302     {
18303       static const bool value = false;
18304     };
18305
18306     template < typename T >
18307     struct is_same<T, T>
18308     {
18309       static const bool value = true;
18310     };
18311
18312     template < typename T1, typename T2 >
18313     auto
18314     add(T1 a1, T2 a2) -> decltype(a1 + a2)
18315     {
18316       return a1 + a2;
18317     }
18318
18319     int
18320     test(const int c, volatile int v)
18321     {
18322       static_assert(is_same<int, decltype(0)>::value == true, "");
18323       static_assert(is_same<int, decltype(c)>::value == false, "");
18324       static_assert(is_same<int, decltype(v)>::value == false, "");
18325       auto ac = c;
18326       auto av = v;
18327       auto sumi = ac + av + 'x';
18328       auto sumf = ac + av + 1.0;
18329       static_assert(is_same<int, decltype(ac)>::value == true, "");
18330       static_assert(is_same<int, decltype(av)>::value == true, "");
18331       static_assert(is_same<int, decltype(sumi)>::value == true, "");
18332       static_assert(is_same<int, decltype(sumf)>::value == false, "");
18333       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
18334       return (sumf > 0.0) ? sumi : add(c, v);
18335     }
18336
18337   }
18338
18339   namespace test_noexcept
18340   {
18341
18342     int f() { return 0; }
18343     int g() noexcept { return 0; }
18344
18345     static_assert(noexcept(f()) == false, "");
18346     static_assert(noexcept(g()) == true, "");
18347
18348   }
18349
18350   namespace test_constexpr
18351   {
18352
18353     template < typename CharT >
18354     unsigned long constexpr
18355     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
18356     {
18357       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
18358     }
18359
18360     template < typename CharT >
18361     unsigned long constexpr
18362     strlen_c(const CharT *const s) noexcept
18363     {
18364       return strlen_c_r(s, 0UL);
18365     }
18366
18367     static_assert(strlen_c("") == 0UL, "");
18368     static_assert(strlen_c("1") == 1UL, "");
18369     static_assert(strlen_c("example") == 7UL, "");
18370     static_assert(strlen_c("another\0example") == 7UL, "");
18371
18372   }
18373
18374   namespace test_rvalue_references
18375   {
18376
18377     template < int N >
18378     struct answer
18379     {
18380       static constexpr int value = N;
18381     };
18382
18383     answer<1> f(int&)       { return answer<1>(); }
18384     answer<2> f(const int&) { return answer<2>(); }
18385     answer<3> f(int&&)      { return answer<3>(); }
18386
18387     void
18388     test()
18389     {
18390       int i = 0;
18391       const int c = 0;
18392       static_assert(decltype(f(i))::value == 1, "");
18393       static_assert(decltype(f(c))::value == 2, "");
18394       static_assert(decltype(f(0))::value == 3, "");
18395     }
18396
18397   }
18398
18399   namespace test_uniform_initialization
18400   {
18401
18402     struct test
18403     {
18404       static const int zero {};
18405       static const int one {1};
18406     };
18407
18408     static_assert(test::zero == 0, "");
18409     static_assert(test::one == 1, "");
18410
18411   }
18412
18413   namespace test_lambdas
18414   {
18415
18416     void
18417     test1()
18418     {
18419       auto lambda1 = [](){};
18420       auto lambda2 = lambda1;
18421       lambda1();
18422       lambda2();
18423     }
18424
18425     int
18426     test2()
18427     {
18428       auto a = [](int i, int j){ return i + j; }(1, 2);
18429       auto b = []() -> int { return '0'; }();
18430       auto c = [=](){ return a + b; }();
18431       auto d = [&](){ return c; }();
18432       auto e = [a, &b](int x) mutable {
18433         const auto identity = [](int y){ return y; };
18434         for (auto i = 0; i < a; ++i)
18435           a += b--;
18436         return x + identity(a + b);
18437       }(0);
18438       return a + b + c + d + e;
18439     }
18440
18441     int
18442     test3()
18443     {
18444       const auto nullary = [](){ return 0; };
18445       const auto unary = [](int x){ return x; };
18446       using nullary_t = decltype(nullary);
18447       using unary_t = decltype(unary);
18448       const auto higher1st = [](nullary_t f){ return f(); };
18449       const auto higher2nd = [unary](nullary_t f1){
18450         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
18451       };
18452       return higher1st(nullary) + higher2nd(nullary)(unary);
18453     }
18454
18455   }
18456
18457   namespace test_variadic_templates
18458   {
18459
18460     template <int...>
18461     struct sum;
18462
18463     template <int N0, int... N1toN>
18464     struct sum<N0, N1toN...>
18465     {
18466       static constexpr auto value = N0 + sum<N1toN...>::value;
18467     };
18468
18469     template <>
18470     struct sum<>
18471     {
18472       static constexpr auto value = 0;
18473     };
18474
18475     static_assert(sum<>::value == 0, "");
18476     static_assert(sum<1>::value == 1, "");
18477     static_assert(sum<23>::value == 23, "");
18478     static_assert(sum<1, 2>::value == 3, "");
18479     static_assert(sum<5, 5, 11>::value == 21, "");
18480     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
18481
18482   }
18483
18484   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
18485   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
18486   // because of this.
18487   namespace test_template_alias_sfinae
18488   {
18489
18490     struct foo {};
18491
18492     template<typename T>
18493     using member = typename T::member_type;
18494
18495     template<typename T>
18496     void func(...) {}
18497
18498     template<typename T>
18499     void func(member<T>*) {}
18500
18501     void test();
18502
18503     void test() { func<foo>(0); }
18504
18505   }
18506
18507 }  // namespace cxx11
18508
18509 #endif  // __cplusplus >= 201103L
18510
18511
18512
18513 _ACEOF
18514 if ac_fn_cxx_try_compile "$LINENO"; then :
18515   eval $cachevar=yes
18516 else
18517   eval $cachevar=no
18518 fi
18519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18520          CXX="$ac_save_CXX"
18521 fi
18522 eval ac_res=\$$cachevar
18523                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18524 $as_echo "$ac_res" >&6; }
18525       if eval test x\$$cachevar = xyes; then
18526         CXX="$CXX $switch"
18527         CXXCPP="$CXXCPP $switch"
18528         ac_success=yes
18529         break
18530       fi
18531     done
18532   fi
18533   ac_ext=c
18534 ac_cpp='$CPP $CPPFLAGS'
18535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18538
18539   if test x$ax_cxx_compile_cxx11_required = xtrue; then
18540     if test x$ac_success = xno; then
18541       as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
18542     fi
18543   fi
18544   if test x$ac_success = xno; then
18545     HAVE_CXX11=0
18546     { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
18547 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
18548   else
18549     HAVE_CXX11=1
18550
18551 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
18552
18553   fi
18554
18555
18556     if test "$HAVE_CXX11" != "1"; then
18557         if test "$explicit_languages" = "1"; then
18558             as_fn_error $? "
18559 ***
18560 *** A compiler with c++11 support is required for the c++ binding.
18561 ***" "$LINENO" 5
18562         else
18563             enabled_languages=$(echo $enabled_languages | sed 's/cpp//')
18564             enabled_languages=$(echo $enabled_languages | sed 's/qt//')
18565             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18566 ***
18567 *** No c++11 support detected. C++ and Qt bindings will be disabled.
18568 ***" >&5
18569 $as_echo "$as_me: WARNING:
18570 ***
18571 *** No c++11 support detected. C++ and Qt bindings will be disabled.
18572 ***" >&2;}
18573         fi
18574     fi
18575 fi
18576
18577 # Check that if qt is enabled cpp also is enabled
18578
18579 name="qt"
18580 list=$enabled_languages
18581 found=0
18582
18583 for n in $list; do
18584   if test "x$name" = "x$n"; then
18585     found=1
18586   fi
18587 done
18588
18589 if test "$found" = "1"; then
18590     # We need to ensure that in the language order qt comes after cpp
18591     # so we remove qt first and explicitly add it as last list member.
18592     enabled_languages=$(echo $enabled_languages | sed 's/qt//')
18593
18594 name="cpp"
18595 list=$enabled_languages
18596 found=0
18597
18598 for n in $list; do
18599   if test "x$name" = "x$n"; then
18600     found=1
18601   fi
18602 done
18603
18604     if test "$found" = "0"; then
18605         as_fn_error $? "
18606 ***
18607 *** Qt language binding depends on cpp binding.
18608 ***" "$LINENO" 5
18609     fi
18610
18611
18612 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18613         if test -n "$ac_tool_prefix"; then
18614   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18615 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18617 $as_echo_n "checking for $ac_word... " >&6; }
18618 if ${ac_cv_path_PKG_CONFIG+:} false; then :
18619   $as_echo_n "(cached) " >&6
18620 else
18621   case $PKG_CONFIG in
18622   [\\/]* | ?:[\\/]*)
18623   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18624   ;;
18625   *)
18626   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18627 for as_dir in $PATH
18628 do
18629   IFS=$as_save_IFS
18630   test -z "$as_dir" && as_dir=.
18631     for ac_exec_ext in '' $ac_executable_extensions; do
18632   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18633     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18634     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18635     break 2
18636   fi
18637 done
18638   done
18639 IFS=$as_save_IFS
18640
18641   ;;
18642 esac
18643 fi
18644 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18645 if test -n "$PKG_CONFIG"; then
18646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18647 $as_echo "$PKG_CONFIG" >&6; }
18648 else
18649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18650 $as_echo "no" >&6; }
18651 fi
18652
18653
18654 fi
18655 if test -z "$ac_cv_path_PKG_CONFIG"; then
18656   ac_pt_PKG_CONFIG=$PKG_CONFIG
18657   # Extract the first word of "pkg-config", so it can be a program name with args.
18658 set dummy pkg-config; ac_word=$2
18659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18660 $as_echo_n "checking for $ac_word... " >&6; }
18661 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
18662   $as_echo_n "(cached) " >&6
18663 else
18664   case $ac_pt_PKG_CONFIG in
18665   [\\/]* | ?:[\\/]*)
18666   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
18667   ;;
18668   *)
18669   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18670 for as_dir in $PATH
18671 do
18672   IFS=$as_save_IFS
18673   test -z "$as_dir" && as_dir=.
18674     for ac_exec_ext in '' $ac_executable_extensions; do
18675   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18676     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18677     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18678     break 2
18679   fi
18680 done
18681   done
18682 IFS=$as_save_IFS
18683
18684   ;;
18685 esac
18686 fi
18687 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18688 if test -n "$ac_pt_PKG_CONFIG"; then
18689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
18690 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
18691 else
18692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18693 $as_echo "no" >&6; }
18694 fi
18695
18696   if test "x$ac_pt_PKG_CONFIG" = x; then
18697     PKG_CONFIG=""
18698   else
18699     case $cross_compiling:$ac_tool_warned in
18700 yes:)
18701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18702 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18703 ac_tool_warned=yes ;;
18704 esac
18705     PKG_CONFIG=$ac_pt_PKG_CONFIG
18706   fi
18707 else
18708   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18709 fi
18710
18711 fi
18712 if test -n "$PKG_CONFIG"; then
18713         _pkg_min_version=0.9.0
18714         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
18715 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
18716         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
18717                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18718 $as_echo "yes" >&6; }
18719         else
18720                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18721 $as_echo "no" >&6; }
18722                 PKG_CONFIG=""
18723         fi
18724
18725 fi
18726
18727   have_qt5_libs="no";
18728
18729
18730 pkg_failed=no
18731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPGME_QT" >&5
18732 $as_echo_n "checking for GPGME_QT... " >&6; }
18733
18734 if test -n "$PKG_CONFIG"; then
18735     if test -n "$GPGME_QT_CFLAGS"; then
18736         pkg_cv_GPGME_QT_CFLAGS="$GPGME_QT_CFLAGS"
18737     else
18738         if test -n "$PKG_CONFIG" && \
18739     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Core >= 5.0.0\""; } >&5
18740   ($PKG_CONFIG --exists --print-errors "Qt5Core >= 5.0.0") 2>&5
18741   ac_status=$?
18742   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18743   test $ac_status = 0; }; then
18744   pkg_cv_GPGME_QT_CFLAGS=`$PKG_CONFIG --cflags "Qt5Core >= 5.0.0" 2>/dev/null`
18745 else
18746   pkg_failed=yes
18747 fi
18748     fi
18749 else
18750         pkg_failed=untried
18751 fi
18752 if test -n "$PKG_CONFIG"; then
18753     if test -n "$GPGME_QT_LIBS"; then
18754         pkg_cv_GPGME_QT_LIBS="$GPGME_QT_LIBS"
18755     else
18756         if test -n "$PKG_CONFIG" && \
18757     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Core >= 5.0.0\""; } >&5
18758   ($PKG_CONFIG --exists --print-errors "Qt5Core >= 5.0.0") 2>&5
18759   ac_status=$?
18760   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18761   test $ac_status = 0; }; then
18762   pkg_cv_GPGME_QT_LIBS=`$PKG_CONFIG --libs "Qt5Core >= 5.0.0" 2>/dev/null`
18763 else
18764   pkg_failed=yes
18765 fi
18766     fi
18767 else
18768         pkg_failed=untried
18769 fi
18770
18771
18772
18773 if test $pkg_failed = yes; then
18774
18775 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18776         _pkg_short_errors_supported=yes
18777 else
18778         _pkg_short_errors_supported=no
18779 fi
18780         if test $_pkg_short_errors_supported = yes; then
18781                 GPGME_QT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "Qt5Core >= 5.0.0"`
18782         else
18783                 GPGME_QT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "Qt5Core >= 5.0.0"`
18784         fi
18785         # Put the nasty error message in config.log where it belongs
18786         echo "$GPGME_QT_PKG_ERRORS" >&5
18787
18788         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18789 $as_echo "no" >&6; }
18790                 have_qt5_libs="no"
18791 elif test $pkg_failed = untried; then
18792         have_qt5_libs="no"
18793 else
18794         GPGME_QT_CFLAGS=$pkg_cv_GPGME_QT_CFLAGS
18795         GPGME_QT_LIBS=$pkg_cv_GPGME_QT_LIBS
18796         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18797 $as_echo "yes" >&6; }
18798         have_qt5_libs="yes"
18799 fi
18800
18801
18802 pkg_failed=no
18803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPGME_QTTEST" >&5
18804 $as_echo_n "checking for GPGME_QTTEST... " >&6; }
18805
18806 if test -n "$PKG_CONFIG"; then
18807     if test -n "$GPGME_QTTEST_CFLAGS"; then
18808         pkg_cv_GPGME_QTTEST_CFLAGS="$GPGME_QTTEST_CFLAGS"
18809     else
18810         if test -n "$PKG_CONFIG" && \
18811     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Test >= 5.0.0\""; } >&5
18812   ($PKG_CONFIG --exists --print-errors "Qt5Test >= 5.0.0") 2>&5
18813   ac_status=$?
18814   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18815   test $ac_status = 0; }; then
18816   pkg_cv_GPGME_QTTEST_CFLAGS=`$PKG_CONFIG --cflags "Qt5Test >= 5.0.0" 2>/dev/null`
18817 else
18818   pkg_failed=yes
18819 fi
18820     fi
18821 else
18822         pkg_failed=untried
18823 fi
18824 if test -n "$PKG_CONFIG"; then
18825     if test -n "$GPGME_QTTEST_LIBS"; then
18826         pkg_cv_GPGME_QTTEST_LIBS="$GPGME_QTTEST_LIBS"
18827     else
18828         if test -n "$PKG_CONFIG" && \
18829     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Test >= 5.0.0\""; } >&5
18830   ($PKG_CONFIG --exists --print-errors "Qt5Test >= 5.0.0") 2>&5
18831   ac_status=$?
18832   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18833   test $ac_status = 0; }; then
18834   pkg_cv_GPGME_QTTEST_LIBS=`$PKG_CONFIG --libs "Qt5Test >= 5.0.0" 2>/dev/null`
18835 else
18836   pkg_failed=yes
18837 fi
18838     fi
18839 else
18840         pkg_failed=untried
18841 fi
18842
18843
18844
18845 if test $pkg_failed = yes; then
18846
18847 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18848         _pkg_short_errors_supported=yes
18849 else
18850         _pkg_short_errors_supported=no
18851 fi
18852         if test $_pkg_short_errors_supported = yes; then
18853                 GPGME_QTTEST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "Qt5Test >= 5.0.0"`
18854         else
18855                 GPGME_QTTEST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "Qt5Test >= 5.0.0"`
18856         fi
18857         # Put the nasty error message in config.log where it belongs
18858         echo "$GPGME_QTTEST_PKG_ERRORS" >&5
18859
18860         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18861 $as_echo "no" >&6; }
18862                 have_qt5test_libs="no"
18863 elif test $pkg_failed = untried; then
18864         have_qt5test_libs="no"
18865 else
18866         GPGME_QTTEST_CFLAGS=$pkg_cv_GPGME_QTTEST_CFLAGS
18867         GPGME_QTTEST_LIBS=$pkg_cv_GPGME_QTTEST_LIBS
18868         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18869 $as_echo "yes" >&6; }
18870         have_qt5test_libs="yes"
18871 fi
18872
18873   if ! test "$have_w32_system" = yes; then
18874     if "$PKG_CONFIG" --variable qt_config Qt5Core | grep -q "reduce_relocations"; then
18875       GPGME_QT_CFLAGS="$GPGME_QT_CFLAGS -fpic"
18876     fi
18877   fi
18878   if test "$have_qt5_libs" = "yes"; then
18879     if test -n "$ac_tool_prefix"; then
18880   # Extract the first word of "${ac_tool_prefix}moc", so it can be a program name with args.
18881 set dummy ${ac_tool_prefix}moc; ac_word=$2
18882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18883 $as_echo_n "checking for $ac_word... " >&6; }
18884 if ${ac_cv_prog_MOC+:} false; then :
18885   $as_echo_n "(cached) " >&6
18886 else
18887   if test -n "$MOC"; then
18888   ac_cv_prog_MOC="$MOC" # Let the user override the test.
18889 else
18890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18891 for as_dir in $PATH
18892 do
18893   IFS=$as_save_IFS
18894   test -z "$as_dir" && as_dir=.
18895     for ac_exec_ext in '' $ac_executable_extensions; do
18896   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18897     ac_cv_prog_MOC="${ac_tool_prefix}moc"
18898     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18899     break 2
18900   fi
18901 done
18902   done
18903 IFS=$as_save_IFS
18904
18905 fi
18906 fi
18907 MOC=$ac_cv_prog_MOC
18908 if test -n "$MOC"; then
18909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5
18910 $as_echo "$MOC" >&6; }
18911 else
18912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18913 $as_echo "no" >&6; }
18914 fi
18915
18916
18917 fi
18918 if test -z "$ac_cv_prog_MOC"; then
18919   ac_ct_MOC=$MOC
18920   # Extract the first word of "moc", so it can be a program name with args.
18921 set dummy moc; ac_word=$2
18922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18923 $as_echo_n "checking for $ac_word... " >&6; }
18924 if ${ac_cv_prog_ac_ct_MOC+:} false; then :
18925   $as_echo_n "(cached) " >&6
18926 else
18927   if test -n "$ac_ct_MOC"; then
18928   ac_cv_prog_ac_ct_MOC="$ac_ct_MOC" # Let the user override the test.
18929 else
18930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18931 for as_dir in $PATH
18932 do
18933   IFS=$as_save_IFS
18934   test -z "$as_dir" && as_dir=.
18935     for ac_exec_ext in '' $ac_executable_extensions; do
18936   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18937     ac_cv_prog_ac_ct_MOC="moc"
18938     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18939     break 2
18940   fi
18941 done
18942   done
18943 IFS=$as_save_IFS
18944
18945 fi
18946 fi
18947 ac_ct_MOC=$ac_cv_prog_ac_ct_MOC
18948 if test -n "$ac_ct_MOC"; then
18949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MOC" >&5
18950 $as_echo "$ac_ct_MOC" >&6; }
18951 else
18952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18953 $as_echo "no" >&6; }
18954 fi
18955
18956   if test "x$ac_ct_MOC" = x; then
18957     MOC=""
18958   else
18959     case $cross_compiling:$ac_tool_warned in
18960 yes:)
18961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18962 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18963 ac_tool_warned=yes ;;
18964 esac
18965     MOC=$ac_ct_MOC
18966   fi
18967 else
18968   MOC="$ac_cv_prog_MOC"
18969 fi
18970
18971     { $as_echo "$as_me:${as_lineno-$LINENO}: checking moc version" >&5
18972 $as_echo_n "checking moc version... " >&6; }
18973     mocversion=`$MOC -v 2>&1`
18974     mocversiongrep=`echo $mocversion | grep -E "Qt 5|moc 5"`
18975     if test x"$mocversiongrep" != x"$mocversion"; then
18976       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18977 $as_echo "no" >&6; }
18978       # moc was not the qt5 one, try with moc-qt5
18979       if test -n "$ac_tool_prefix"; then
18980   # Extract the first word of "${ac_tool_prefix}moc-qt5", so it can be a program name with args.
18981 set dummy ${ac_tool_prefix}moc-qt5; ac_word=$2
18982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18983 $as_echo_n "checking for $ac_word... " >&6; }
18984 if ${ac_cv_prog_MOC2+:} false; then :
18985   $as_echo_n "(cached) " >&6
18986 else
18987   if test -n "$MOC2"; then
18988   ac_cv_prog_MOC2="$MOC2" # Let the user override the test.
18989 else
18990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18991 for as_dir in $PATH
18992 do
18993   IFS=$as_save_IFS
18994   test -z "$as_dir" && as_dir=.
18995     for ac_exec_ext in '' $ac_executable_extensions; do
18996   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18997     ac_cv_prog_MOC2="${ac_tool_prefix}moc-qt5"
18998     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18999     break 2
19000   fi
19001 done
19002   done
19003 IFS=$as_save_IFS
19004
19005 fi
19006 fi
19007 MOC2=$ac_cv_prog_MOC2
19008 if test -n "$MOC2"; then
19009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC2" >&5
19010 $as_echo "$MOC2" >&6; }
19011 else
19012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19013 $as_echo "no" >&6; }
19014 fi
19015
19016
19017 fi
19018 if test -z "$ac_cv_prog_MOC2"; then
19019   ac_ct_MOC2=$MOC2
19020   # Extract the first word of "moc-qt5", so it can be a program name with args.
19021 set dummy moc-qt5; ac_word=$2
19022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19023 $as_echo_n "checking for $ac_word... " >&6; }
19024 if ${ac_cv_prog_ac_ct_MOC2+:} false; then :
19025   $as_echo_n "(cached) " >&6
19026 else
19027   if test -n "$ac_ct_MOC2"; then
19028   ac_cv_prog_ac_ct_MOC2="$ac_ct_MOC2" # Let the user override the test.
19029 else
19030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19031 for as_dir in $PATH
19032 do
19033   IFS=$as_save_IFS
19034   test -z "$as_dir" && as_dir=.
19035     for ac_exec_ext in '' $ac_executable_extensions; do
19036   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19037     ac_cv_prog_ac_ct_MOC2="moc-qt5"
19038     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19039     break 2
19040   fi
19041 done
19042   done
19043 IFS=$as_save_IFS
19044
19045 fi
19046 fi
19047 ac_ct_MOC2=$ac_cv_prog_ac_ct_MOC2
19048 if test -n "$ac_ct_MOC2"; then
19049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MOC2" >&5
19050 $as_echo "$ac_ct_MOC2" >&6; }
19051 else
19052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19053 $as_echo "no" >&6; }
19054 fi
19055
19056   if test "x$ac_ct_MOC2" = x; then
19057     MOC2=""
19058   else
19059     case $cross_compiling:$ac_tool_warned in
19060 yes:)
19061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19062 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19063 ac_tool_warned=yes ;;
19064 esac
19065     MOC2=$ac_ct_MOC2
19066   fi
19067 else
19068   MOC2="$ac_cv_prog_MOC2"
19069 fi
19070
19071       mocversion=`$MOC2 -v 2>&1`
19072       mocversiongrep=`echo $mocversion | grep -E "Qt 5|moc-qt5 5|moc 5"`
19073       if test x"$mocversiongrep" != x"$mocversion"; then
19074         if test -n "$ac_tool_prefix"; then
19075   # Extract the first word of "${ac_tool_prefix}qtchooser", so it can be a program name with args.
19076 set dummy ${ac_tool_prefix}qtchooser; ac_word=$2
19077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19078 $as_echo_n "checking for $ac_word... " >&6; }
19079 if ${ac_cv_prog_QTCHOOSER+:} false; then :
19080   $as_echo_n "(cached) " >&6
19081 else
19082   if test -n "$QTCHOOSER"; then
19083   ac_cv_prog_QTCHOOSER="$QTCHOOSER" # Let the user override the test.
19084 else
19085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19086 for as_dir in $PATH
19087 do
19088   IFS=$as_save_IFS
19089   test -z "$as_dir" && as_dir=.
19090     for ac_exec_ext in '' $ac_executable_extensions; do
19091   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19092     ac_cv_prog_QTCHOOSER="${ac_tool_prefix}qtchooser"
19093     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19094     break 2
19095   fi
19096 done
19097   done
19098 IFS=$as_save_IFS
19099
19100 fi
19101 fi
19102 QTCHOOSER=$ac_cv_prog_QTCHOOSER
19103 if test -n "$QTCHOOSER"; then
19104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QTCHOOSER" >&5
19105 $as_echo "$QTCHOOSER" >&6; }
19106 else
19107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19108 $as_echo "no" >&6; }
19109 fi
19110
19111
19112 fi
19113 if test -z "$ac_cv_prog_QTCHOOSER"; then
19114   ac_ct_QTCHOOSER=$QTCHOOSER
19115   # Extract the first word of "qtchooser", so it can be a program name with args.
19116 set dummy qtchooser; ac_word=$2
19117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19118 $as_echo_n "checking for $ac_word... " >&6; }
19119 if ${ac_cv_prog_ac_ct_QTCHOOSER+:} false; then :
19120   $as_echo_n "(cached) " >&6
19121 else
19122   if test -n "$ac_ct_QTCHOOSER"; then
19123   ac_cv_prog_ac_ct_QTCHOOSER="$ac_ct_QTCHOOSER" # Let the user override the test.
19124 else
19125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19126 for as_dir in $PATH
19127 do
19128   IFS=$as_save_IFS
19129   test -z "$as_dir" && as_dir=.
19130     for ac_exec_ext in '' $ac_executable_extensions; do
19131   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19132     ac_cv_prog_ac_ct_QTCHOOSER="qtchooser"
19133     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19134     break 2
19135   fi
19136 done
19137   done
19138 IFS=$as_save_IFS
19139
19140 fi
19141 fi
19142 ac_ct_QTCHOOSER=$ac_cv_prog_ac_ct_QTCHOOSER
19143 if test -n "$ac_ct_QTCHOOSER"; then
19144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_QTCHOOSER" >&5
19145 $as_echo "$ac_ct_QTCHOOSER" >&6; }
19146 else
19147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19148 $as_echo "no" >&6; }
19149 fi
19150
19151   if test "x$ac_ct_QTCHOOSER" = x; then
19152     QTCHOOSER=""
19153   else
19154     case $cross_compiling:$ac_tool_warned in
19155 yes:)
19156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19157 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19158 ac_tool_warned=yes ;;
19159 esac
19160     QTCHOOSER=$ac_ct_QTCHOOSER
19161   fi
19162 else
19163   QTCHOOSER="$ac_cv_prog_QTCHOOSER"
19164 fi
19165
19166         qt5tooldir=`QT_SELECT=qt5 qtchooser -print-env | grep QTTOOLDIR | cut -d '=' -f 2 | cut -d \" -f 2`
19167         mocversion=`$qt5tooldir/moc -v 2>&1`
19168         mocversiongrep=`echo $mocversion | grep -E "Qt 5|moc 5"`
19169         if test x"$mocversiongrep" != x"$mocversion"; then
19170           # no valid moc found
19171           have_qt5_libs="no";
19172         else
19173           MOC=$qt5tooldir/moc
19174         fi
19175       else
19176         MOC=$MOC2
19177       fi
19178     fi
19179     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mocversion" >&5
19180 $as_echo "$mocversion" >&6; }
19181                         OLDCPPFLAGS=$CPPFLAGS
19182     CPPFLAGS=$GPGME_QT_CFLAGS
19183     OLDLIBS=$LIBS
19184     LIBS=$GPGME_QT_LIBS
19185     ac_ext=cpp
19186 ac_cpp='$CXXCPP $CPPFLAGS'
19187 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19188 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19189 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19190
19191     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a simple qt program can be built" >&5
19192 $as_echo_n "checking whether a simple qt program can be built... " >&6; }
19193     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19194 /* end confdefs.h.  */
19195
19196     #include <QCoreApplication>
19197     int main (int argc, char **argv) {
19198     QCoreApplication app(argc, argv);
19199     app.exec();
19200     }
19201 _ACEOF
19202 if ac_fn_cxx_try_link "$LINENO"; then :
19203   have_qt5_libs='yes'
19204 else
19205   have_qt5_libs='no'
19206 fi
19207 rm -f core conftest.err conftest.$ac_objext \
19208     conftest$ac_exeext conftest.$ac_ext
19209     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_qt5_libs" >&5
19210 $as_echo "$have_qt5_libs" >&6; }
19211     ac_ext=c
19212 ac_cpp='$CPP $CPPFLAGS'
19213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19216
19217     CPPFLAGS=$OLDCPPFLAGS
19218     LIBS=$OLDLIBS
19219   fi
19220
19221     if test "$have_qt5_libs" != "yes"; then
19222         if test "$explicit_languages" = "1"; then
19223         as_fn_error $? "
19224 ***
19225 *** Qt5 (Qt5Core) is required for Qt binding.
19226 ***" "$LINENO" 5
19227         else
19228            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
19229 ***
19230 *** Qt5 (Qt5Core) not found Qt Binding will be disabled.
19231 ***" >&5
19232 $as_echo "$as_me: WARNING:
19233 ***
19234 *** Qt5 (Qt5Core) not found Qt Binding will be disabled.
19235 ***" >&2;}
19236         fi
19237     else
19238         enabled_languages=`echo $enabled_languages qt`
19239
19240         for ac_prog in doxygen
19241 do
19242   # Extract the first word of "$ac_prog", so it can be a program name with args.
19243 set dummy $ac_prog; ac_word=$2
19244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19245 $as_echo_n "checking for $ac_word... " >&6; }
19246 if ${ac_cv_prog_DOXYGEN+:} false; then :
19247   $as_echo_n "(cached) " >&6
19248 else
19249   if test -n "$DOXYGEN"; then
19250   ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
19251 else
19252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19253 for as_dir in $PATH
19254 do
19255   IFS=$as_save_IFS
19256   test -z "$as_dir" && as_dir=.
19257     for ac_exec_ext in '' $ac_executable_extensions; do
19258   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19259     ac_cv_prog_DOXYGEN="$ac_prog"
19260     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19261     break 2
19262   fi
19263 done
19264   done
19265 IFS=$as_save_IFS
19266
19267 fi
19268 fi
19269 DOXYGEN=$ac_cv_prog_DOXYGEN
19270 if test -n "$DOXYGEN"; then
19271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
19272 $as_echo "$DOXYGEN" >&6; }
19273 else
19274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19275 $as_echo "no" >&6; }
19276 fi
19277
19278
19279   test -n "$DOXYGEN" && break
19280 done
19281
19282         if test -z "$DOXYGEN";
19283             # This is not highlighted because it's not really important.
19284             then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Doxygen not found - Qt binding doc will not be built." >&5
19285 $as_echo "$as_me: WARNING: Doxygen not found - Qt binding doc will not be built." >&2;}
19286         fi
19287         for ac_prog in dot
19288 do
19289   # Extract the first word of "$ac_prog", so it can be a program name with args.
19290 set dummy $ac_prog; ac_word=$2
19291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19292 $as_echo_n "checking for $ac_word... " >&6; }
19293 if ${ac_cv_prog_GRAPHVIZ+:} false; then :
19294   $as_echo_n "(cached) " >&6
19295 else
19296   if test -n "$GRAPHVIZ"; then
19297   ac_cv_prog_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test.
19298 else
19299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19300 for as_dir in $PATH
19301 do
19302   IFS=$as_save_IFS
19303   test -z "$as_dir" && as_dir=.
19304     for ac_exec_ext in '' $ac_executable_extensions; do
19305   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19306     ac_cv_prog_GRAPHVIZ="$ac_prog"
19307     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19308     break 2
19309   fi
19310 done
19311   done
19312 IFS=$as_save_IFS
19313
19314 fi
19315 fi
19316 GRAPHVIZ=$ac_cv_prog_GRAPHVIZ
19317 if test -n "$GRAPHVIZ"; then
19318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GRAPHVIZ" >&5
19319 $as_echo "$GRAPHVIZ" >&6; }
19320 else
19321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19322 $as_echo "no" >&6; }
19323 fi
19324
19325
19326   test -n "$GRAPHVIZ" && break
19327 done
19328
19329         if test -z "$GRAPHVIZ";
19330             then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Graphviz not found - Qt binding doc will not have diagrams." >&5
19331 $as_echo "$as_me: WARNING: Graphviz not found - Qt binding doc will not have diagrams." >&2;}
19332         fi
19333     fi
19334 fi
19335  if test -n "$DOXYGEN"; then
19336   HAVE_DOXYGEN_TRUE=
19337   HAVE_DOXYGEN_FALSE='#'
19338 else
19339   HAVE_DOXYGEN_TRUE='#'
19340   HAVE_DOXYGEN_FALSE=
19341 fi
19342
19343 if test -n "$GRAPHVIZ"; then
19344     HAVE_DOT="YES"
19345 else
19346     HAVE_DOT="NO"
19347 fi
19348
19349
19350 # Python bindings.
19351
19352 name="python"
19353 list=$enabled_languages
19354 found=0
19355
19356 for n in $list; do
19357   if test "x$name" = "x$n"; then
19358     found=1
19359   fi
19360 done
19361
19362 found_py=$found
19363 if test "$found_py" = "1"; then
19364
19365         # Ubuntu has swig 2.0 as /usr/bin/swig2.0
19366         for ac_prog in swig swig2.0
19367 do
19368   # Extract the first word of "$ac_prog", so it can be a program name with args.
19369 set dummy $ac_prog; ac_word=$2
19370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19371 $as_echo_n "checking for $ac_word... " >&6; }
19372 if ${ac_cv_path_SWIG+:} false; then :
19373   $as_echo_n "(cached) " >&6
19374 else
19375   case $SWIG in
19376   [\\/]* | ?:[\\/]*)
19377   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
19378   ;;
19379   *)
19380   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19381 for as_dir in $PATH
19382 do
19383   IFS=$as_save_IFS
19384   test -z "$as_dir" && as_dir=.
19385     for ac_exec_ext in '' $ac_executable_extensions; do
19386   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19387     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
19388     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19389     break 2
19390   fi
19391 done
19392   done
19393 IFS=$as_save_IFS
19394
19395   ;;
19396 esac
19397 fi
19398 SWIG=$ac_cv_path_SWIG
19399 if test -n "$SWIG"; then
19400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
19401 $as_echo "$SWIG" >&6; }
19402 else
19403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19404 $as_echo "no" >&6; }
19405 fi
19406
19407
19408   test -n "$SWIG" && break
19409 done
19410
19411         if test -z "$SWIG" ; then
19412                 :
19413         elif test -n "" ; then
19414                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG version" >&5
19415 $as_echo_n "checking SWIG version... " >&6; }
19416                 swig_version=`$SWIG -version 2>&1 | grep 'SWIG Version' | sed 's/.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/g'`
19417                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
19418 $as_echo "$swig_version" >&6; }
19419                 if test -n "$swig_version" ; then
19420                         # Calculate the required version number components
19421                         required=
19422                         required_major=`echo $required | sed 's/[^0-9].*//'`
19423                         if test -z "$required_major" ; then
19424                                 required_major=0
19425                         fi
19426                         required=`echo $required | sed 's/[0-9]*[^0-9]//'`
19427                         required_minor=`echo $required | sed 's/[^0-9].*//'`
19428                         if test -z "$required_minor" ; then
19429                                 required_minor=0
19430                         fi
19431                         required=`echo $required | sed 's/[0-9]*[^0-9]//'`
19432                         required_patch=`echo $required | sed 's/[^0-9].*//'`
19433                         if test -z "$required_patch" ; then
19434                                 required_patch=0
19435                         fi
19436                         # Calculate the available version number components
19437                         available=$swig_version
19438                         available_major=`echo $available | sed 's/[^0-9].*//'`
19439                         if test -z "$available_major" ; then
19440                                 available_major=0
19441                         fi
19442                         available=`echo $available | sed 's/[0-9]*[^0-9]//'`
19443                         available_minor=`echo $available | sed 's/[^0-9].*//'`
19444                         if test -z "$available_minor" ; then
19445                                 available_minor=0
19446                         fi
19447                         available=`echo $available | sed 's/[0-9]*[^0-9]//'`
19448                         available_patch=`echo $available | sed 's/[^0-9].*//'`
19449                         if test -z "$available_patch" ; then
19450                                 available_patch=0
19451                         fi
19452                         # Convert the version tuple into a single number for easier comparison.
19453                         # Using base 100 should be safe since SWIG internally uses BCD values
19454                         # to encode its version number.
19455                         required_swig_vernum=`expr $required_major \* 10000 \
19456                             \+ $required_minor \* 100 \+ $required_patch`
19457                         available_swig_vernum=`expr $available_major \* 10000 \
19458                             \+ $available_minor \* 100 \+ $available_patch`
19459
19460                         if test $available_swig_vernum -lt $required_swig_vernum; then
19461                                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >=  is required.  You have $swig_version." >&5
19462 $as_echo "$as_me: WARNING: SWIG version >=  is required.  You have $swig_version." >&2;}
19463                                 SWIG=''
19464
19465                         else
19466                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG library" >&5
19467 $as_echo_n "checking for SWIG library... " >&6; }
19468                                 SWIG_LIB=`$SWIG -swiglib`
19469                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_LIB" >&5
19470 $as_echo "$SWIG_LIB" >&6; }
19471
19472                         fi
19473                 else
19474                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
19475 $as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
19476                         SWIG=''
19477
19478                 fi
19479         fi
19480
19481
19482     if test -z "$SWIG"; then
19483         if test "$explicit_languages" = "1"; then
19484             as_fn_error $? "
19485 ***
19486 *** You need SWIG to build the Python bindings.
19487 ***" "$LINENO" 5
19488         else
19489             enabled_languages=$(echo $enabled_languages | sed 's/python//')
19490         fi
19491     else
19492         # Reset the version collecting vars.
19493         PYTHONS=
19494         PYTHON_VERSIONS=
19495
19496         if test "$found_py" = "1" -o "$found_py3" = "1"; then
19497           # Reset everything, so that we can look for another Python.
19498           unset PYTHON
19499             unset PYTHON_VERSION
19500             unset PYTHON_CPPFLAGS
19501             unset PYTHON_LDFLAGS
19502             unset PYTHON_SITE_PKG
19503             unset PYTHON_EXTRA_LIBS
19504             unset PYTHON_EXTRA_LDFLAGS
19505             unset ac_cv_path_PYTHON
19506             unset am_cv_pathless_PYTHON
19507             unset am_cv_python_version
19508             unset am_cv_python_platform
19509             unset am_cv_python_pythondir
19510             unset am_cv_python_pyexecdir
19511
19512
19513
19514
19515
19516
19517         if test -n "$PYTHON"; then
19518       # If the user set $PYTHON, use it and don't search something else.
19519       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.7" >&5
19520 $as_echo_n "checking whether $PYTHON version is >= 2.7... " >&6; }
19521       prog="import sys
19522 # split strings by '.' and convert to numeric.  Append some zeros
19523 # because we need at least 4 digits for the hex conversion.
19524 # map returns an iterator in Python 3.0 and a list in 2.x
19525 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
19526 minverhex = 0
19527 # xrange is not present in Python 3.0 and range returns an iterator
19528 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
19529 sys.exit(sys.hexversion < minverhex)"
19530   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
19531    ($PYTHON -c "$prog") >&5 2>&5
19532    ac_status=$?
19533    echo "$as_me:$LINENO: \$? = $ac_status" >&5
19534    (exit $ac_status); }; then :
19535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19536 $as_echo "yes" >&6; }
19537 else
19538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19539 $as_echo "no" >&6; }
19540                                as_fn_error $? "Python interpreter is too old" "$LINENO" 5
19541 fi
19542       am_display_PYTHON=$PYTHON
19543     else
19544       # Otherwise, try each interpreter until we find one that satisfies
19545       # VERSION.
19546       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.7" >&5
19547 $as_echo_n "checking for a Python interpreter with version >= 2.7... " >&6; }
19548 if ${am_cv_pathless_PYTHON+:} false; then :
19549   $as_echo_n "(cached) " >&6
19550 else
19551
19552         for am_cv_pathless_PYTHON           in python2.7 none; do
19553           test "$am_cv_pathless_PYTHON" = none && break
19554           prog="import sys
19555 # split strings by '.' and convert to numeric.  Append some zeros
19556 # because we need at least 4 digits for the hex conversion.
19557 # map returns an iterator in Python 3.0 and a list in 2.x
19558 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
19559 minverhex = 0
19560 # xrange is not present in Python 3.0 and range returns an iterator
19561 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
19562 sys.exit(sys.hexversion < minverhex)"
19563   if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
19564    ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
19565    ac_status=$?
19566    echo "$as_me:$LINENO: \$? = $ac_status" >&5
19567    (exit $ac_status); }; then :
19568   break
19569 fi
19570         done
19571 fi
19572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
19573 $as_echo "$am_cv_pathless_PYTHON" >&6; }
19574       # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
19575       if test "$am_cv_pathless_PYTHON" = none; then
19576         PYTHON=:
19577       else
19578         # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
19579 set dummy $am_cv_pathless_PYTHON; ac_word=$2
19580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19581 $as_echo_n "checking for $ac_word... " >&6; }
19582 if ${ac_cv_path_PYTHON+:} false; then :
19583   $as_echo_n "(cached) " >&6
19584 else
19585   case $PYTHON in
19586   [\\/]* | ?:[\\/]*)
19587   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
19588   ;;
19589   *)
19590   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19591 for as_dir in $PATH
19592 do
19593   IFS=$as_save_IFS
19594   test -z "$as_dir" && as_dir=.
19595     for ac_exec_ext in '' $ac_executable_extensions; do
19596   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19597     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
19598     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19599     break 2
19600   fi
19601 done
19602   done
19603 IFS=$as_save_IFS
19604
19605   ;;
19606 esac
19607 fi
19608 PYTHON=$ac_cv_path_PYTHON
19609 if test -n "$PYTHON"; then
19610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
19611 $as_echo "$PYTHON" >&6; }
19612 else
19613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19614 $as_echo "no" >&6; }
19615 fi
19616
19617
19618       fi
19619       am_display_PYTHON=$am_cv_pathless_PYTHON
19620     fi
19621
19622
19623   if test "$PYTHON" = :; then
19624       :
19625   else
19626
19627
19628   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
19629 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
19630 if ${am_cv_python_version+:} false; then :
19631   $as_echo_n "(cached) " >&6
19632 else
19633   am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
19634 fi
19635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
19636 $as_echo "$am_cv_python_version" >&6; }
19637   PYTHON_VERSION=$am_cv_python_version
19638
19639
19640
19641   PYTHON_PREFIX='${prefix}'
19642
19643   PYTHON_EXEC_PREFIX='${exec_prefix}'
19644
19645
19646
19647   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
19648 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
19649 if ${am_cv_python_platform+:} false; then :
19650   $as_echo_n "(cached) " >&6
19651 else
19652   am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
19653 fi
19654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
19655 $as_echo "$am_cv_python_platform" >&6; }
19656   PYTHON_PLATFORM=$am_cv_python_platform
19657
19658
19659   # Just factor out some code duplication.
19660   am_python_setup_sysconfig="\
19661 import sys
19662 # Prefer sysconfig over distutils.sysconfig, for better compatibility
19663 # with python 3.x.  See automake bug#10227.
19664 try:
19665     import sysconfig
19666 except ImportError:
19667     can_use_sysconfig = 0
19668 else:
19669     can_use_sysconfig = 1
19670 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
19671 # <https://github.com/pypa/virtualenv/issues/118>
19672 try:
19673     from platform import python_implementation
19674     if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
19675         can_use_sysconfig = 0
19676 except ImportError:
19677     pass"
19678
19679
19680             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
19681 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
19682 if ${am_cv_python_pythondir+:} false; then :
19683   $as_echo_n "(cached) " >&6
19684 else
19685   if test "x$prefix" = xNONE
19686      then
19687        am_py_prefix=$ac_default_prefix
19688      else
19689        am_py_prefix=$prefix
19690      fi
19691      am_cv_python_pythondir=`$PYTHON -c "
19692 $am_python_setup_sysconfig
19693 if can_use_sysconfig:
19694     sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
19695 else:
19696     from distutils import sysconfig
19697     sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
19698 sys.stdout.write(sitedir)"`
19699      case $am_cv_python_pythondir in
19700      $am_py_prefix*)
19701        am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
19702        am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
19703        ;;
19704      *)
19705        case $am_py_prefix in
19706          /usr|/System*) ;;
19707          *)
19708           am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
19709           ;;
19710        esac
19711        ;;
19712      esac
19713
19714 fi
19715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
19716 $as_echo "$am_cv_python_pythondir" >&6; }
19717   pythondir=$am_cv_python_pythondir
19718
19719
19720
19721   pkgpythondir=\${pythondir}/$PACKAGE
19722
19723
19724         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
19725 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
19726 if ${am_cv_python_pyexecdir+:} false; then :
19727   $as_echo_n "(cached) " >&6
19728 else
19729   if test "x$exec_prefix" = xNONE
19730      then
19731        am_py_exec_prefix=$am_py_prefix
19732      else
19733        am_py_exec_prefix=$exec_prefix
19734      fi
19735      am_cv_python_pyexecdir=`$PYTHON -c "
19736 $am_python_setup_sysconfig
19737 if can_use_sysconfig:
19738     sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
19739 else:
19740     from distutils import sysconfig
19741     sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
19742 sys.stdout.write(sitedir)"`
19743      case $am_cv_python_pyexecdir in
19744      $am_py_exec_prefix*)
19745        am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
19746        am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
19747        ;;
19748      *)
19749        case $am_py_exec_prefix in
19750          /usr|/System*) ;;
19751          *)
19752            am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
19753            ;;
19754        esac
19755        ;;
19756      esac
19757
19758 fi
19759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
19760 $as_echo "$am_cv_python_pyexecdir" >&6; }
19761   pyexecdir=$am_cv_python_pyexecdir
19762
19763
19764
19765   pkgpyexecdir=\${pyexecdir}/$PACKAGE
19766
19767
19768
19769
19770         #
19771         # Allow the use of a (user set) custom python version
19772         #
19773
19774
19775         # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
19776 set dummy python$PYTHON_VERSION; ac_word=$2
19777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19778 $as_echo_n "checking for $ac_word... " >&6; }
19779 if ${ac_cv_path_PYTHON+:} false; then :
19780   $as_echo_n "(cached) " >&6
19781 else
19782   case $PYTHON in
19783   [\\/]* | ?:[\\/]*)
19784   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
19785   ;;
19786   *)
19787   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19788 for as_dir in $PATH
19789 do
19790   IFS=$as_save_IFS
19791   test -z "$as_dir" && as_dir=.
19792     for ac_exec_ext in '' $ac_executable_extensions; do
19793   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19794     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
19795     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19796     break 2
19797   fi
19798 done
19799   done
19800 IFS=$as_save_IFS
19801
19802   ;;
19803 esac
19804 fi
19805 PYTHON=$ac_cv_path_PYTHON
19806 if test -n "$PYTHON"; then
19807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
19808 $as_echo "$PYTHON" >&6; }
19809 else
19810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19811 $as_echo "no" >&6; }
19812 fi
19813
19814
19815         if test -z "$PYTHON"; then
19816            as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
19817            PYTHON_VERSION=""
19818         fi
19819
19820         #
19821         # Check for a version of Python >= 2.1.0
19822         #
19823         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
19824 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
19825         ac_supports_python_ver=`$PYTHON -c "import sys; \
19826                 ver = sys.version.split ()[0]; \
19827                 print (ver >= '2.1.0')"`
19828         if test "$ac_supports_python_ver" != "True"; then
19829                 if test -z "$PYTHON_NOVERSIONCHECK"; then
19830                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19831 $as_echo "no" >&6; }
19832                         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19833 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19834 as_fn_error $? "
19835 This version of the AC_PYTHON_DEVEL macro
19836 doesn't work properly with versions of Python before
19837 2.1.0. You may need to re-run configure, setting the
19838 variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
19839 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
19840 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
19841 to something else than an empty string.
19842
19843 See \`config.log' for more details" "$LINENO" 5; }
19844                 else
19845                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
19846 $as_echo "skip at user request" >&6; }
19847                 fi
19848         else
19849                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19850 $as_echo "yes" >&6; }
19851         fi
19852
19853         #
19854         # if the macro parameter ``version'' is set, honour it
19855         #
19856         if test -n ""; then
19857                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
19858 $as_echo_n "checking for a version of Python ... " >&6; }
19859                 ac_supports_python_ver=`$PYTHON -c "import sys; \
19860                         ver = sys.version.split ()[0]; \
19861                         print (ver )"`
19862                 if test "$ac_supports_python_ver" = "True"; then
19863                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19864 $as_echo "yes" >&6; }
19865                 else
19866                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19867 $as_echo "no" >&6; }
19868                         as_fn_error $? "this package requires Python .
19869 If you have it installed, but it isn't the default Python
19870 interpreter in your system path, please pass the PYTHON_VERSION
19871 variable to configure. See \`\`configure --help'' for reference.
19872 " "$LINENO" 5
19873                         PYTHON_VERSION=""
19874                 fi
19875         fi
19876
19877         #
19878         # Check if you have distutils, else fail
19879         #
19880         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
19881 $as_echo_n "checking for the distutils Python package... " >&6; }
19882         ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
19883         if test -z "$ac_distutils_result"; then
19884                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19885 $as_echo "yes" >&6; }
19886         else
19887                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19888 $as_echo "no" >&6; }
19889                 as_fn_error $? "cannot import Python module \"distutils\".
19890 Please check your Python installation. The error was:
19891 $ac_distutils_result" "$LINENO" 5
19892                 PYTHON_VERSION=""
19893         fi
19894
19895         #
19896         # Check for Python include path
19897         #
19898         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
19899 $as_echo_n "checking for Python include path... " >&6; }
19900         if test -z "$PYTHON_CPPFLAGS"; then
19901                 python_path=`$PYTHON -c "import distutils.sysconfig; \
19902                         print (distutils.sysconfig.get_python_inc ());"`
19903                 plat_python_path=`$PYTHON -c "import distutils.sysconfig; \
19904                         print (distutils.sysconfig.get_python_inc (plat_specific=1));"`
19905                 if test -n "${python_path}"; then
19906                         if test "${plat_python_path}" != "${python_path}"; then
19907                                 python_path="-I$python_path -I$plat_python_path"
19908                         else
19909                                 python_path="-I$python_path"
19910                         fi
19911                 fi
19912                 PYTHON_CPPFLAGS=$python_path
19913         fi
19914         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
19915 $as_echo "$PYTHON_CPPFLAGS" >&6; }
19916
19917
19918         #
19919         # Check for Python library path
19920         #
19921         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
19922 $as_echo_n "checking for Python library path... " >&6; }
19923         if test -z "$PYTHON_LDFLAGS"; then
19924                 # (makes two attempts to ensure we've got a version number
19925                 # from the interpreter)
19926                 ac_python_version=`cat<<EOD | $PYTHON -
19927
19928 # join all versioning strings, on some systems
19929 # major/minor numbers could be in different list elements
19930 from distutils.sysconfig import *
19931 e = get_config_var('VERSION')
19932 if e is not None:
19933         print(e)
19934 EOD`
19935
19936                 if test -z "$ac_python_version"; then
19937                         if test -n "$PYTHON_VERSION"; then
19938                                 ac_python_version=$PYTHON_VERSION
19939                         else
19940                                 ac_python_version=`$PYTHON -c "import sys; \
19941                                         print (sys.version[:3])"`
19942                         fi
19943                 fi
19944
19945                 # Make the versioning information available to the compiler
19946
19947                 # JW: We don't need it and it interferes with the hack
19948                 # to detect multiple Pyhton versions
19949                 #AC_DEFINE_UNQUOTED([HAVE_PYTHON], ["$ac_python_version"],
19950                 #                  [If available, contains the Python version number currently in use.])
19951
19952                 # First, the library directory:
19953                 ac_python_libdir=`cat<<EOD | $PYTHON -
19954
19955 # There should be only one
19956 import distutils.sysconfig
19957 e = distutils.sysconfig.get_config_var('LIBDIR')
19958 if e is not None:
19959         print (e)
19960 EOD`
19961
19962                 # Now, for the library:
19963                 ac_python_library=`cat<<EOD | $PYTHON -
19964
19965 import distutils.sysconfig
19966 c = distutils.sysconfig.get_config_vars()
19967 if 'LDVERSION' in c:
19968         print ('python'+c['LDVERSION'])
19969 else:
19970         print ('python'+c['VERSION'])
19971 EOD`
19972
19973                 # This small piece shamelessly adapted from PostgreSQL python macro;
19974                 # credits goes to momjian, I think. I'd like to put the right name
19975                 # in the credits, if someone can point me in the right direction... ?
19976                 #
19977                 if test -n "$ac_python_libdir" -a -n "$ac_python_library"
19978                 then
19979                         # use the official shared library
19980                         ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
19981                         PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library"
19982                 else
19983                         # old way: use libpython from python_configdir
19984                         ac_python_libdir=`$PYTHON -c \
19985                           "from distutils.sysconfig import get_python_lib as f; \
19986                           import os; \
19987                           print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
19988                         PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version"
19989                 fi
19990
19991                 if test -z "PYTHON_LDFLAGS"; then
19992                         as_fn_error $? "
19993   Cannot determine location of your Python DSO. Please check it was installed with
19994   dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
19995                         " "$LINENO" 5
19996                 fi
19997         fi
19998         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
19999 $as_echo "$PYTHON_LDFLAGS" >&6; }
20000
20001
20002         #
20003         # Check for site packages
20004         #
20005         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
20006 $as_echo_n "checking for Python site-packages path... " >&6; }
20007         if test -z "$PYTHON_SITE_PKG"; then
20008                 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
20009                         print (distutils.sysconfig.get_python_lib(0,0));"`
20010         fi
20011         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
20012 $as_echo "$PYTHON_SITE_PKG" >&6; }
20013
20014
20015         #
20016         # libraries which must be linked in when embedding
20017         #
20018         { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
20019 $as_echo_n "checking python extra libraries... " >&6; }
20020         if test -z "$PYTHON_EXTRA_LIBS"; then
20021            PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
20022                 conf = distutils.sysconfig.get_config_var; \
20023                 print (conf('LIBS') + ' ' + conf('SYSLIBS'))"`
20024         fi
20025         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
20026 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
20027
20028
20029         #
20030         # linking flags needed when embedding
20031         #
20032         { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
20033 $as_echo_n "checking python extra linking flags... " >&6; }
20034         if test -z "$PYTHON_EXTRA_LDFLAGS"; then
20035                 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
20036                         conf = distutils.sysconfig.get_config_var; \
20037                         print (conf('LINKFORSHARED'))"`
20038         fi
20039         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
20040 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
20041
20042
20043         #
20044         # final check to see if everything compiles alright
20045         #
20046         { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
20047 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
20048         # save current global flags
20049         ac_save_LIBS="$LIBS"
20050         ac_save_CPPFLAGS="$CPPFLAGS"
20051         LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
20052         CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
20053         ac_ext=c
20054 ac_cpp='$CPP $CPPFLAGS'
20055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20058
20059         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20060 /* end confdefs.h.  */
20061
20062                 #include <Python.h>
20063 int
20064 main ()
20065 {
20066 Py_Initialize();
20067   ;
20068   return 0;
20069 }
20070
20071 _ACEOF
20072 if ac_fn_c_try_link "$LINENO"; then :
20073   pythonexists=yes
20074 else
20075   pythonexists=no
20076 fi
20077 rm -f core conftest.err conftest.$ac_objext \
20078     conftest$ac_exeext conftest.$ac_ext
20079         ac_ext=c
20080 ac_cpp='$CPP $CPPFLAGS'
20081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20084
20085         # turn back to default flags
20086         CPPFLAGS="$ac_save_CPPFLAGS"
20087         LIBS="$ac_save_LIBS"
20088
20089         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
20090 $as_echo "$pythonexists" >&6; }
20091
20092         if test ! "x$pythonexists" = "xyes"; then
20093            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
20094   Could not link test program to Python. Maybe the main Python library has been
20095   installed in some non-standard library path. If so, pass it to configure,
20096   via the LDFLAGS environment variable.
20097   Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
20098   ============================================================================
20099    You probably have to install the development version of the Python package
20100    for your distribution.  The exact name of this package varies among them.
20101   ============================================================================
20102            " >&5
20103 $as_echo "$as_me: WARNING:
20104   Could not link test program to Python. Maybe the main Python library has been
20105   installed in some non-standard library path. If so, pass it to configure,
20106   via the LDFLAGS environment variable.
20107   Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
20108   ============================================================================
20109    You probably have to install the development version of the Python package
20110    for your distribution.  The exact name of this package varies among them.
20111   ============================================================================
20112            " >&2;}
20113           PYTHON_VERSION=""
20114         fi
20115
20116         #
20117         # all done!
20118         #
20119
20120                 if test "$PYTHON_VERSION"; then
20121                         PYTHONS="$(echo $PYTHONS $PYTHON)"
20122                         PYTHON_VERSIONS="$(echo $PYTHON_VERSIONS $PYTHON_VERSION)"
20123                 fi
20124
20125   fi
20126
20127
20128            unset PYTHON
20129             unset PYTHON_VERSION
20130             unset PYTHON_CPPFLAGS
20131             unset PYTHON_LDFLAGS
20132             unset PYTHON_SITE_PKG
20133             unset PYTHON_EXTRA_LIBS
20134             unset PYTHON_EXTRA_LDFLAGS
20135             unset ac_cv_path_PYTHON
20136             unset am_cv_pathless_PYTHON
20137             unset am_cv_python_version
20138             unset am_cv_python_platform
20139             unset am_cv_python_pythondir
20140             unset am_cv_python_pyexecdir
20141
20142
20143
20144
20145
20146
20147         if test -n "$PYTHON"; then
20148       # If the user set $PYTHON, use it and don't search something else.
20149       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.4" >&5
20150 $as_echo_n "checking whether $PYTHON version is >= 3.4... " >&6; }
20151       prog="import sys
20152 # split strings by '.' and convert to numeric.  Append some zeros
20153 # because we need at least 4 digits for the hex conversion.
20154 # map returns an iterator in Python 3.0 and a list in 2.x
20155 minver = list(map(int, '3.4'.split('.'))) + [0, 0, 0]
20156 minverhex = 0
20157 # xrange is not present in Python 3.0 and range returns an iterator
20158 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
20159 sys.exit(sys.hexversion < minverhex)"
20160   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
20161    ($PYTHON -c "$prog") >&5 2>&5
20162    ac_status=$?
20163    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20164    (exit $ac_status); }; then :
20165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20166 $as_echo "yes" >&6; }
20167 else
20168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20169 $as_echo "no" >&6; }
20170                                as_fn_error $? "Python interpreter is too old" "$LINENO" 5
20171 fi
20172       am_display_PYTHON=$PYTHON
20173     else
20174       # Otherwise, try each interpreter until we find one that satisfies
20175       # VERSION.
20176       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.4" >&5
20177 $as_echo_n "checking for a Python interpreter with version >= 3.4... " >&6; }
20178 if ${am_cv_pathless_PYTHON+:} false; then :
20179   $as_echo_n "(cached) " >&6
20180 else
20181
20182         for am_cv_pathless_PYTHON           in python3.4 none; do
20183           test "$am_cv_pathless_PYTHON" = none && break
20184           prog="import sys
20185 # split strings by '.' and convert to numeric.  Append some zeros
20186 # because we need at least 4 digits for the hex conversion.
20187 # map returns an iterator in Python 3.0 and a list in 2.x
20188 minver = list(map(int, '3.4'.split('.'))) + [0, 0, 0]
20189 minverhex = 0
20190 # xrange is not present in Python 3.0 and range returns an iterator
20191 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
20192 sys.exit(sys.hexversion < minverhex)"
20193   if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
20194    ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
20195    ac_status=$?
20196    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20197    (exit $ac_status); }; then :
20198   break
20199 fi
20200         done
20201 fi
20202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
20203 $as_echo "$am_cv_pathless_PYTHON" >&6; }
20204       # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
20205       if test "$am_cv_pathless_PYTHON" = none; then
20206         PYTHON=:
20207       else
20208         # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
20209 set dummy $am_cv_pathless_PYTHON; ac_word=$2
20210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20211 $as_echo_n "checking for $ac_word... " >&6; }
20212 if ${ac_cv_path_PYTHON+:} false; then :
20213   $as_echo_n "(cached) " >&6
20214 else
20215   case $PYTHON in
20216   [\\/]* | ?:[\\/]*)
20217   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
20218   ;;
20219   *)
20220   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20221 for as_dir in $PATH
20222 do
20223   IFS=$as_save_IFS
20224   test -z "$as_dir" && as_dir=.
20225     for ac_exec_ext in '' $ac_executable_extensions; do
20226   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20227     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
20228     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20229     break 2
20230   fi
20231 done
20232   done
20233 IFS=$as_save_IFS
20234
20235   ;;
20236 esac
20237 fi
20238 PYTHON=$ac_cv_path_PYTHON
20239 if test -n "$PYTHON"; then
20240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
20241 $as_echo "$PYTHON" >&6; }
20242 else
20243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20244 $as_echo "no" >&6; }
20245 fi
20246
20247
20248       fi
20249       am_display_PYTHON=$am_cv_pathless_PYTHON
20250     fi
20251
20252
20253   if test "$PYTHON" = :; then
20254       :
20255   else
20256
20257
20258   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
20259 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
20260 if ${am_cv_python_version+:} false; then :
20261   $as_echo_n "(cached) " >&6
20262 else
20263   am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
20264 fi
20265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
20266 $as_echo "$am_cv_python_version" >&6; }
20267   PYTHON_VERSION=$am_cv_python_version
20268
20269
20270
20271   PYTHON_PREFIX='${prefix}'
20272
20273   PYTHON_EXEC_PREFIX='${exec_prefix}'
20274
20275
20276
20277   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
20278 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
20279 if ${am_cv_python_platform+:} false; then :
20280   $as_echo_n "(cached) " >&6
20281 else
20282   am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
20283 fi
20284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
20285 $as_echo "$am_cv_python_platform" >&6; }
20286   PYTHON_PLATFORM=$am_cv_python_platform
20287
20288
20289   # Just factor out some code duplication.
20290   am_python_setup_sysconfig="\
20291 import sys
20292 # Prefer sysconfig over distutils.sysconfig, for better compatibility
20293 # with python 3.x.  See automake bug#10227.
20294 try:
20295     import sysconfig
20296 except ImportError:
20297     can_use_sysconfig = 0
20298 else:
20299     can_use_sysconfig = 1
20300 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
20301 # <https://github.com/pypa/virtualenv/issues/118>
20302 try:
20303     from platform import python_implementation
20304     if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
20305         can_use_sysconfig = 0
20306 except ImportError:
20307     pass"
20308
20309
20310             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
20311 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
20312 if ${am_cv_python_pythondir+:} false; then :
20313   $as_echo_n "(cached) " >&6
20314 else
20315   if test "x$prefix" = xNONE
20316      then
20317        am_py_prefix=$ac_default_prefix
20318      else
20319        am_py_prefix=$prefix
20320      fi
20321      am_cv_python_pythondir=`$PYTHON -c "
20322 $am_python_setup_sysconfig
20323 if can_use_sysconfig:
20324     sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
20325 else:
20326     from distutils import sysconfig
20327     sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
20328 sys.stdout.write(sitedir)"`
20329      case $am_cv_python_pythondir in
20330      $am_py_prefix*)
20331        am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
20332        am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
20333        ;;
20334      *)
20335        case $am_py_prefix in
20336          /usr|/System*) ;;
20337          *)
20338           am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
20339           ;;
20340        esac
20341        ;;
20342      esac
20343
20344 fi
20345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
20346 $as_echo "$am_cv_python_pythondir" >&6; }
20347   pythondir=$am_cv_python_pythondir
20348
20349
20350
20351   pkgpythondir=\${pythondir}/$PACKAGE
20352
20353
20354         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
20355 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
20356 if ${am_cv_python_pyexecdir+:} false; then :
20357   $as_echo_n "(cached) " >&6
20358 else
20359   if test "x$exec_prefix" = xNONE
20360      then
20361        am_py_exec_prefix=$am_py_prefix
20362      else
20363        am_py_exec_prefix=$exec_prefix
20364      fi
20365      am_cv_python_pyexecdir=`$PYTHON -c "
20366 $am_python_setup_sysconfig
20367 if can_use_sysconfig:
20368     sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
20369 else:
20370     from distutils import sysconfig
20371     sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
20372 sys.stdout.write(sitedir)"`
20373      case $am_cv_python_pyexecdir in
20374      $am_py_exec_prefix*)
20375        am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
20376        am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
20377        ;;
20378      *)
20379        case $am_py_exec_prefix in
20380          /usr|/System*) ;;
20381          *)
20382            am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
20383            ;;
20384        esac
20385        ;;
20386      esac
20387
20388 fi
20389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
20390 $as_echo "$am_cv_python_pyexecdir" >&6; }
20391   pyexecdir=$am_cv_python_pyexecdir
20392
20393
20394
20395   pkgpyexecdir=\${pyexecdir}/$PACKAGE
20396
20397
20398
20399
20400         #
20401         # Allow the use of a (user set) custom python version
20402         #
20403
20404
20405         # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
20406 set dummy python$PYTHON_VERSION; ac_word=$2
20407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20408 $as_echo_n "checking for $ac_word... " >&6; }
20409 if ${ac_cv_path_PYTHON+:} false; then :
20410   $as_echo_n "(cached) " >&6
20411 else
20412   case $PYTHON in
20413   [\\/]* | ?:[\\/]*)
20414   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
20415   ;;
20416   *)
20417   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20418 for as_dir in $PATH
20419 do
20420   IFS=$as_save_IFS
20421   test -z "$as_dir" && as_dir=.
20422     for ac_exec_ext in '' $ac_executable_extensions; do
20423   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20424     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
20425     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20426     break 2
20427   fi
20428 done
20429   done
20430 IFS=$as_save_IFS
20431
20432   ;;
20433 esac
20434 fi
20435 PYTHON=$ac_cv_path_PYTHON
20436 if test -n "$PYTHON"; then
20437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
20438 $as_echo "$PYTHON" >&6; }
20439 else
20440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20441 $as_echo "no" >&6; }
20442 fi
20443
20444
20445         if test -z "$PYTHON"; then
20446            as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
20447            PYTHON_VERSION=""
20448         fi
20449
20450         #
20451         # Check for a version of Python >= 2.1.0
20452         #
20453         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
20454 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
20455         ac_supports_python_ver=`$PYTHON -c "import sys; \
20456                 ver = sys.version.split ()[0]; \
20457                 print (ver >= '2.1.0')"`
20458         if test "$ac_supports_python_ver" != "True"; then
20459                 if test -z "$PYTHON_NOVERSIONCHECK"; then
20460                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20461 $as_echo "no" >&6; }
20462                         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20463 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20464 as_fn_error $? "
20465 This version of the AC_PYTHON_DEVEL macro
20466 doesn't work properly with versions of Python before
20467 2.1.0. You may need to re-run configure, setting the
20468 variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
20469 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
20470 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
20471 to something else than an empty string.
20472
20473 See \`config.log' for more details" "$LINENO" 5; }
20474                 else
20475                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
20476 $as_echo "skip at user request" >&6; }
20477                 fi
20478         else
20479                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20480 $as_echo "yes" >&6; }
20481         fi
20482
20483         #
20484         # if the macro parameter ``version'' is set, honour it
20485         #
20486         if test -n ""; then
20487                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
20488 $as_echo_n "checking for a version of Python ... " >&6; }
20489                 ac_supports_python_ver=`$PYTHON -c "import sys; \
20490                         ver = sys.version.split ()[0]; \
20491                         print (ver )"`
20492                 if test "$ac_supports_python_ver" = "True"; then
20493                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20494 $as_echo "yes" >&6; }
20495                 else
20496                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20497 $as_echo "no" >&6; }
20498                         as_fn_error $? "this package requires Python .
20499 If you have it installed, but it isn't the default Python
20500 interpreter in your system path, please pass the PYTHON_VERSION
20501 variable to configure. See \`\`configure --help'' for reference.
20502 " "$LINENO" 5
20503                         PYTHON_VERSION=""
20504                 fi
20505         fi
20506
20507         #
20508         # Check if you have distutils, else fail
20509         #
20510         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
20511 $as_echo_n "checking for the distutils Python package... " >&6; }
20512         ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
20513         if test -z "$ac_distutils_result"; then
20514                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20515 $as_echo "yes" >&6; }
20516         else
20517                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20518 $as_echo "no" >&6; }
20519                 as_fn_error $? "cannot import Python module \"distutils\".
20520 Please check your Python installation. The error was:
20521 $ac_distutils_result" "$LINENO" 5
20522                 PYTHON_VERSION=""
20523         fi
20524
20525         #
20526         # Check for Python include path
20527         #
20528         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
20529 $as_echo_n "checking for Python include path... " >&6; }
20530         if test -z "$PYTHON_CPPFLAGS"; then
20531                 python_path=`$PYTHON -c "import distutils.sysconfig; \
20532                         print (distutils.sysconfig.get_python_inc ());"`
20533                 plat_python_path=`$PYTHON -c "import distutils.sysconfig; \
20534                         print (distutils.sysconfig.get_python_inc (plat_specific=1));"`
20535                 if test -n "${python_path}"; then
20536                         if test "${plat_python_path}" != "${python_path}"; then
20537                                 python_path="-I$python_path -I$plat_python_path"
20538                         else
20539                                 python_path="-I$python_path"
20540                         fi
20541                 fi
20542                 PYTHON_CPPFLAGS=$python_path
20543         fi
20544         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
20545 $as_echo "$PYTHON_CPPFLAGS" >&6; }
20546
20547
20548         #
20549         # Check for Python library path
20550         #
20551         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
20552 $as_echo_n "checking for Python library path... " >&6; }
20553         if test -z "$PYTHON_LDFLAGS"; then
20554                 # (makes two attempts to ensure we've got a version number
20555                 # from the interpreter)
20556                 ac_python_version=`cat<<EOD | $PYTHON -
20557
20558 # join all versioning strings, on some systems
20559 # major/minor numbers could be in different list elements
20560 from distutils.sysconfig import *
20561 e = get_config_var('VERSION')
20562 if e is not None:
20563         print(e)
20564 EOD`
20565
20566                 if test -z "$ac_python_version"; then
20567                         if test -n "$PYTHON_VERSION"; then
20568                                 ac_python_version=$PYTHON_VERSION
20569                         else
20570                                 ac_python_version=`$PYTHON -c "import sys; \
20571                                         print (sys.version[:3])"`
20572                         fi
20573                 fi
20574
20575                 # Make the versioning information available to the compiler
20576
20577                 # JW: We don't need it and it interferes with the hack
20578                 # to detect multiple Pyhton versions
20579                 #AC_DEFINE_UNQUOTED([HAVE_PYTHON], ["$ac_python_version"],
20580                 #                  [If available, contains the Python version number currently in use.])
20581
20582                 # First, the library directory:
20583                 ac_python_libdir=`cat<<EOD | $PYTHON -
20584
20585 # There should be only one
20586 import distutils.sysconfig
20587 e = distutils.sysconfig.get_config_var('LIBDIR')
20588 if e is not None:
20589         print (e)
20590 EOD`
20591
20592                 # Now, for the library:
20593                 ac_python_library=`cat<<EOD | $PYTHON -
20594
20595 import distutils.sysconfig
20596 c = distutils.sysconfig.get_config_vars()
20597 if 'LDVERSION' in c:
20598         print ('python'+c['LDVERSION'])
20599 else:
20600         print ('python'+c['VERSION'])
20601 EOD`
20602
20603                 # This small piece shamelessly adapted from PostgreSQL python macro;
20604                 # credits goes to momjian, I think. I'd like to put the right name
20605                 # in the credits, if someone can point me in the right direction... ?
20606                 #
20607                 if test -n "$ac_python_libdir" -a -n "$ac_python_library"
20608                 then
20609                         # use the official shared library
20610                         ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
20611                         PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library"
20612                 else
20613                         # old way: use libpython from python_configdir
20614                         ac_python_libdir=`$PYTHON -c \
20615                           "from distutils.sysconfig import get_python_lib as f; \
20616                           import os; \
20617                           print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
20618                         PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version"
20619                 fi
20620
20621                 if test -z "PYTHON_LDFLAGS"; then
20622                         as_fn_error $? "
20623   Cannot determine location of your Python DSO. Please check it was installed with
20624   dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
20625                         " "$LINENO" 5
20626                 fi
20627         fi
20628         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
20629 $as_echo "$PYTHON_LDFLAGS" >&6; }
20630
20631
20632         #
20633         # Check for site packages
20634         #
20635         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
20636 $as_echo_n "checking for Python site-packages path... " >&6; }
20637         if test -z "$PYTHON_SITE_PKG"; then
20638                 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
20639                         print (distutils.sysconfig.get_python_lib(0,0));"`
20640         fi
20641         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
20642 $as_echo "$PYTHON_SITE_PKG" >&6; }
20643
20644
20645         #
20646         # libraries which must be linked in when embedding
20647         #
20648         { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
20649 $as_echo_n "checking python extra libraries... " >&6; }
20650         if test -z "$PYTHON_EXTRA_LIBS"; then
20651            PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
20652                 conf = distutils.sysconfig.get_config_var; \
20653                 print (conf('LIBS') + ' ' + conf('SYSLIBS'))"`
20654         fi
20655         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
20656 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
20657
20658
20659         #
20660         # linking flags needed when embedding
20661         #
20662         { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
20663 $as_echo_n "checking python extra linking flags... " >&6; }
20664         if test -z "$PYTHON_EXTRA_LDFLAGS"; then
20665                 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
20666                         conf = distutils.sysconfig.get_config_var; \
20667                         print (conf('LINKFORSHARED'))"`
20668         fi
20669         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
20670 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
20671
20672
20673         #
20674         # final check to see if everything compiles alright
20675         #
20676         { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
20677 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
20678         # save current global flags
20679         ac_save_LIBS="$LIBS"
20680         ac_save_CPPFLAGS="$CPPFLAGS"
20681         LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
20682         CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
20683         ac_ext=c
20684 ac_cpp='$CPP $CPPFLAGS'
20685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20688
20689         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20690 /* end confdefs.h.  */
20691
20692                 #include <Python.h>
20693 int
20694 main ()
20695 {
20696 Py_Initialize();
20697   ;
20698   return 0;
20699 }
20700
20701 _ACEOF
20702 if ac_fn_c_try_link "$LINENO"; then :
20703   pythonexists=yes
20704 else
20705   pythonexists=no
20706 fi
20707 rm -f core conftest.err conftest.$ac_objext \
20708     conftest$ac_exeext conftest.$ac_ext
20709         ac_ext=c
20710 ac_cpp='$CPP $CPPFLAGS'
20711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20714
20715         # turn back to default flags
20716         CPPFLAGS="$ac_save_CPPFLAGS"
20717         LIBS="$ac_save_LIBS"
20718
20719         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
20720 $as_echo "$pythonexists" >&6; }
20721
20722         if test ! "x$pythonexists" = "xyes"; then
20723            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
20724   Could not link test program to Python. Maybe the main Python library has been
20725   installed in some non-standard library path. If so, pass it to configure,
20726   via the LDFLAGS environment variable.
20727   Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
20728   ============================================================================
20729    You probably have to install the development version of the Python package
20730    for your distribution.  The exact name of this package varies among them.
20731   ============================================================================
20732            " >&5
20733 $as_echo "$as_me: WARNING:
20734   Could not link test program to Python. Maybe the main Python library has been
20735   installed in some non-standard library path. If so, pass it to configure,
20736   via the LDFLAGS environment variable.
20737   Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
20738   ============================================================================
20739    You probably have to install the development version of the Python package
20740    for your distribution.  The exact name of this package varies among them.
20741   ============================================================================
20742            " >&2;}
20743           PYTHON_VERSION=""
20744         fi
20745
20746         #
20747         # all done!
20748         #
20749
20750                 if test "$PYTHON_VERSION"; then
20751                         PYTHONS="$(echo $PYTHONS $PYTHON)"
20752                         PYTHON_VERSIONS="$(echo $PYTHON_VERSIONS $PYTHON_VERSION)"
20753                 fi
20754
20755   fi
20756
20757
20758            unset PYTHON
20759             unset PYTHON_VERSION
20760             unset PYTHON_CPPFLAGS
20761             unset PYTHON_LDFLAGS
20762             unset PYTHON_SITE_PKG
20763             unset PYTHON_EXTRA_LIBS
20764             unset PYTHON_EXTRA_LDFLAGS
20765             unset ac_cv_path_PYTHON
20766             unset am_cv_pathless_PYTHON
20767             unset am_cv_python_version
20768             unset am_cv_python_platform
20769             unset am_cv_python_pythondir
20770             unset am_cv_python_pyexecdir
20771
20772
20773
20774
20775
20776
20777         if test -n "$PYTHON"; then
20778       # If the user set $PYTHON, use it and don't search something else.
20779       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.5" >&5
20780 $as_echo_n "checking whether $PYTHON version is >= 3.5... " >&6; }
20781       prog="import sys
20782 # split strings by '.' and convert to numeric.  Append some zeros
20783 # because we need at least 4 digits for the hex conversion.
20784 # map returns an iterator in Python 3.0 and a list in 2.x
20785 minver = list(map(int, '3.5'.split('.'))) + [0, 0, 0]
20786 minverhex = 0
20787 # xrange is not present in Python 3.0 and range returns an iterator
20788 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
20789 sys.exit(sys.hexversion < minverhex)"
20790   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
20791    ($PYTHON -c "$prog") >&5 2>&5
20792    ac_status=$?
20793    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20794    (exit $ac_status); }; then :
20795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20796 $as_echo "yes" >&6; }
20797 else
20798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20799 $as_echo "no" >&6; }
20800                                as_fn_error $? "Python interpreter is too old" "$LINENO" 5
20801 fi
20802       am_display_PYTHON=$PYTHON
20803     else
20804       # Otherwise, try each interpreter until we find one that satisfies
20805       # VERSION.
20806       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.5" >&5
20807 $as_echo_n "checking for a Python interpreter with version >= 3.5... " >&6; }
20808 if ${am_cv_pathless_PYTHON+:} false; then :
20809   $as_echo_n "(cached) " >&6
20810 else
20811
20812         for am_cv_pathless_PYTHON           in python3.5 none; do
20813           test "$am_cv_pathless_PYTHON" = none && break
20814           prog="import sys
20815 # split strings by '.' and convert to numeric.  Append some zeros
20816 # because we need at least 4 digits for the hex conversion.
20817 # map returns an iterator in Python 3.0 and a list in 2.x
20818 minver = list(map(int, '3.5'.split('.'))) + [0, 0, 0]
20819 minverhex = 0
20820 # xrange is not present in Python 3.0 and range returns an iterator
20821 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
20822 sys.exit(sys.hexversion < minverhex)"
20823   if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
20824    ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
20825    ac_status=$?
20826    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827    (exit $ac_status); }; then :
20828   break
20829 fi
20830         done
20831 fi
20832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
20833 $as_echo "$am_cv_pathless_PYTHON" >&6; }
20834       # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
20835       if test "$am_cv_pathless_PYTHON" = none; then
20836         PYTHON=:
20837       else
20838         # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
20839 set dummy $am_cv_pathless_PYTHON; ac_word=$2
20840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20841 $as_echo_n "checking for $ac_word... " >&6; }
20842 if ${ac_cv_path_PYTHON+:} false; then :
20843   $as_echo_n "(cached) " >&6
20844 else
20845   case $PYTHON in
20846   [\\/]* | ?:[\\/]*)
20847   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
20848   ;;
20849   *)
20850   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20851 for as_dir in $PATH
20852 do
20853   IFS=$as_save_IFS
20854   test -z "$as_dir" && as_dir=.
20855     for ac_exec_ext in '' $ac_executable_extensions; do
20856   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20857     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
20858     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20859     break 2
20860   fi
20861 done
20862   done
20863 IFS=$as_save_IFS
20864
20865   ;;
20866 esac
20867 fi
20868 PYTHON=$ac_cv_path_PYTHON
20869 if test -n "$PYTHON"; then
20870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
20871 $as_echo "$PYTHON" >&6; }
20872 else
20873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20874 $as_echo "no" >&6; }
20875 fi
20876
20877
20878       fi
20879       am_display_PYTHON=$am_cv_pathless_PYTHON
20880     fi
20881
20882
20883   if test "$PYTHON" = :; then
20884       :
20885   else
20886
20887
20888   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
20889 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
20890 if ${am_cv_python_version+:} false; then :
20891   $as_echo_n "(cached) " >&6
20892 else
20893   am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
20894 fi
20895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
20896 $as_echo "$am_cv_python_version" >&6; }
20897   PYTHON_VERSION=$am_cv_python_version
20898
20899
20900
20901   PYTHON_PREFIX='${prefix}'
20902
20903   PYTHON_EXEC_PREFIX='${exec_prefix}'
20904
20905
20906
20907   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
20908 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
20909 if ${am_cv_python_platform+:} false; then :
20910   $as_echo_n "(cached) " >&6
20911 else
20912   am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
20913 fi
20914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
20915 $as_echo "$am_cv_python_platform" >&6; }
20916   PYTHON_PLATFORM=$am_cv_python_platform
20917
20918
20919   # Just factor out some code duplication.
20920   am_python_setup_sysconfig="\
20921 import sys
20922 # Prefer sysconfig over distutils.sysconfig, for better compatibility
20923 # with python 3.x.  See automake bug#10227.
20924 try:
20925     import sysconfig
20926 except ImportError:
20927     can_use_sysconfig = 0
20928 else:
20929     can_use_sysconfig = 1
20930 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
20931 # <https://github.com/pypa/virtualenv/issues/118>
20932 try:
20933     from platform import python_implementation
20934     if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
20935         can_use_sysconfig = 0
20936 except ImportError:
20937     pass"
20938
20939
20940             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
20941 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
20942 if ${am_cv_python_pythondir+:} false; then :
20943   $as_echo_n "(cached) " >&6
20944 else
20945   if test "x$prefix" = xNONE
20946      then
20947        am_py_prefix=$ac_default_prefix
20948      else
20949        am_py_prefix=$prefix
20950      fi
20951      am_cv_python_pythondir=`$PYTHON -c "
20952 $am_python_setup_sysconfig
20953 if can_use_sysconfig:
20954     sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
20955 else:
20956     from distutils import sysconfig
20957     sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
20958 sys.stdout.write(sitedir)"`
20959      case $am_cv_python_pythondir in
20960      $am_py_prefix*)
20961        am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
20962        am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
20963        ;;
20964      *)
20965        case $am_py_prefix in
20966          /usr|/System*) ;;
20967          *)
20968           am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
20969           ;;
20970        esac
20971        ;;
20972      esac
20973
20974 fi
20975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
20976 $as_echo "$am_cv_python_pythondir" >&6; }
20977   pythondir=$am_cv_python_pythondir
20978
20979
20980
20981   pkgpythondir=\${pythondir}/$PACKAGE
20982
20983
20984         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
20985 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
20986 if ${am_cv_python_pyexecdir+:} false; then :
20987   $as_echo_n "(cached) " >&6
20988 else
20989   if test "x$exec_prefix" = xNONE
20990      then
20991        am_py_exec_prefix=$am_py_prefix
20992      else
20993        am_py_exec_prefix=$exec_prefix
20994      fi
20995      am_cv_python_pyexecdir=`$PYTHON -c "
20996 $am_python_setup_sysconfig
20997 if can_use_sysconfig:
20998     sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
20999 else:
21000     from distutils import sysconfig
21001     sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
21002 sys.stdout.write(sitedir)"`
21003      case $am_cv_python_pyexecdir in
21004      $am_py_exec_prefix*)
21005        am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
21006        am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
21007        ;;
21008      *)
21009        case $am_py_exec_prefix in
21010          /usr|/System*) ;;
21011          *)
21012            am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
21013            ;;
21014        esac
21015        ;;
21016      esac
21017
21018 fi
21019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
21020 $as_echo "$am_cv_python_pyexecdir" >&6; }
21021   pyexecdir=$am_cv_python_pyexecdir
21022
21023
21024
21025   pkgpyexecdir=\${pyexecdir}/$PACKAGE
21026
21027
21028
21029
21030         #
21031         # Allow the use of a (user set) custom python version
21032         #
21033
21034
21035         # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
21036 set dummy python$PYTHON_VERSION; ac_word=$2
21037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21038 $as_echo_n "checking for $ac_word... " >&6; }
21039 if ${ac_cv_path_PYTHON+:} false; then :
21040   $as_echo_n "(cached) " >&6
21041 else
21042   case $PYTHON in
21043   [\\/]* | ?:[\\/]*)
21044   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
21045   ;;
21046   *)
21047   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21048 for as_dir in $PATH
21049 do
21050   IFS=$as_save_IFS
21051   test -z "$as_dir" && as_dir=.
21052     for ac_exec_ext in '' $ac_executable_extensions; do
21053   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21054     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
21055     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21056     break 2
21057   fi
21058 done
21059   done
21060 IFS=$as_save_IFS
21061
21062   ;;
21063 esac
21064 fi
21065 PYTHON=$ac_cv_path_PYTHON
21066 if test -n "$PYTHON"; then
21067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
21068 $as_echo "$PYTHON" >&6; }
21069 else
21070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21071 $as_echo "no" >&6; }
21072 fi
21073
21074
21075         if test -z "$PYTHON"; then
21076            as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
21077            PYTHON_VERSION=""
21078         fi
21079
21080         #
21081         # Check for a version of Python >= 2.1.0
21082         #
21083         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
21084 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
21085         ac_supports_python_ver=`$PYTHON -c "import sys; \
21086                 ver = sys.version.split ()[0]; \
21087                 print (ver >= '2.1.0')"`
21088         if test "$ac_supports_python_ver" != "True"; then
21089                 if test -z "$PYTHON_NOVERSIONCHECK"; then
21090                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21091 $as_echo "no" >&6; }
21092                         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21093 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21094 as_fn_error $? "
21095 This version of the AC_PYTHON_DEVEL macro
21096 doesn't work properly with versions of Python before
21097 2.1.0. You may need to re-run configure, setting the
21098 variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
21099 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
21100 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
21101 to something else than an empty string.
21102
21103 See \`config.log' for more details" "$LINENO" 5; }
21104                 else
21105                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
21106 $as_echo "skip at user request" >&6; }
21107                 fi
21108         else
21109                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21110 $as_echo "yes" >&6; }
21111         fi
21112
21113         #
21114         # if the macro parameter ``version'' is set, honour it
21115         #
21116         if test -n ""; then
21117                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
21118 $as_echo_n "checking for a version of Python ... " >&6; }
21119                 ac_supports_python_ver=`$PYTHON -c "import sys; \
21120                         ver = sys.version.split ()[0]; \
21121                         print (ver )"`
21122                 if test "$ac_supports_python_ver" = "True"; then
21123                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21124 $as_echo "yes" >&6; }
21125                 else
21126                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21127 $as_echo "no" >&6; }
21128                         as_fn_error $? "this package requires Python .
21129 If you have it installed, but it isn't the default Python
21130 interpreter in your system path, please pass the PYTHON_VERSION
21131 variable to configure. See \`\`configure --help'' for reference.
21132 " "$LINENO" 5
21133                         PYTHON_VERSION=""
21134                 fi
21135         fi
21136
21137         #
21138         # Check if you have distutils, else fail
21139         #
21140         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
21141 $as_echo_n "checking for the distutils Python package... " >&6; }
21142         ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
21143         if test -z "$ac_distutils_result"; then
21144                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21145 $as_echo "yes" >&6; }
21146         else
21147                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21148 $as_echo "no" >&6; }
21149                 as_fn_error $? "cannot import Python module \"distutils\".
21150 Please check your Python installation. The error was:
21151 $ac_distutils_result" "$LINENO" 5
21152                 PYTHON_VERSION=""
21153         fi
21154
21155         #
21156         # Check for Python include path
21157         #
21158         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
21159 $as_echo_n "checking for Python include path... " >&6; }
21160         if test -z "$PYTHON_CPPFLAGS"; then
21161                 python_path=`$PYTHON -c "import distutils.sysconfig; \
21162                         print (distutils.sysconfig.get_python_inc ());"`
21163                 plat_python_path=`$PYTHON -c "import distutils.sysconfig; \
21164                         print (distutils.sysconfig.get_python_inc (plat_specific=1));"`
21165                 if test -n "${python_path}"; then
21166                         if test "${plat_python_path}" != "${python_path}"; then
21167                                 python_path="-I$python_path -I$plat_python_path"
21168                         else
21169                                 python_path="-I$python_path"
21170                         fi
21171                 fi
21172                 PYTHON_CPPFLAGS=$python_path
21173         fi
21174         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
21175 $as_echo "$PYTHON_CPPFLAGS" >&6; }
21176
21177
21178         #
21179         # Check for Python library path
21180         #
21181         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
21182 $as_echo_n "checking for Python library path... " >&6; }
21183         if test -z "$PYTHON_LDFLAGS"; then
21184                 # (makes two attempts to ensure we've got a version number
21185                 # from the interpreter)
21186                 ac_python_version=`cat<<EOD | $PYTHON -
21187
21188 # join all versioning strings, on some systems
21189 # major/minor numbers could be in different list elements
21190 from distutils.sysconfig import *
21191 e = get_config_var('VERSION')
21192 if e is not None:
21193         print(e)
21194 EOD`
21195
21196                 if test -z "$ac_python_version"; then
21197                         if test -n "$PYTHON_VERSION"; then
21198                                 ac_python_version=$PYTHON_VERSION
21199                         else
21200                                 ac_python_version=`$PYTHON -c "import sys; \
21201                                         print (sys.version[:3])"`
21202                         fi
21203                 fi
21204
21205                 # Make the versioning information available to the compiler
21206
21207                 # JW: We don't need it and it interferes with the hack
21208                 # to detect multiple Pyhton versions
21209                 #AC_DEFINE_UNQUOTED([HAVE_PYTHON], ["$ac_python_version"],
21210                 #                  [If available, contains the Python version number currently in use.])
21211
21212                 # First, the library directory:
21213                 ac_python_libdir=`cat<<EOD | $PYTHON -
21214
21215 # There should be only one
21216 import distutils.sysconfig
21217 e = distutils.sysconfig.get_config_var('LIBDIR')
21218 if e is not None:
21219         print (e)
21220 EOD`
21221
21222                 # Now, for the library:
21223                 ac_python_library=`cat<<EOD | $PYTHON -
21224
21225 import distutils.sysconfig
21226 c = distutils.sysconfig.get_config_vars()
21227 if 'LDVERSION' in c:
21228         print ('python'+c['LDVERSION'])
21229 else:
21230         print ('python'+c['VERSION'])
21231 EOD`
21232
21233                 # This small piece shamelessly adapted from PostgreSQL python macro;
21234                 # credits goes to momjian, I think. I'd like to put the right name
21235                 # in the credits, if someone can point me in the right direction... ?
21236                 #
21237                 if test -n "$ac_python_libdir" -a -n "$ac_python_library"
21238                 then
21239                         # use the official shared library
21240                         ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
21241                         PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library"
21242                 else
21243                         # old way: use libpython from python_configdir
21244                         ac_python_libdir=`$PYTHON -c \
21245                           "from distutils.sysconfig import get_python_lib as f; \
21246                           import os; \
21247                           print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
21248                         PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version"
21249                 fi
21250
21251                 if test -z "PYTHON_LDFLAGS"; then
21252                         as_fn_error $? "
21253   Cannot determine location of your Python DSO. Please check it was installed with
21254   dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
21255                         " "$LINENO" 5
21256                 fi
21257         fi
21258         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
21259 $as_echo "$PYTHON_LDFLAGS" >&6; }
21260
21261
21262         #
21263         # Check for site packages
21264         #
21265         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
21266 $as_echo_n "checking for Python site-packages path... " >&6; }
21267         if test -z "$PYTHON_SITE_PKG"; then
21268                 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
21269                         print (distutils.sysconfig.get_python_lib(0,0));"`
21270         fi
21271         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
21272 $as_echo "$PYTHON_SITE_PKG" >&6; }
21273
21274
21275         #
21276         # libraries which must be linked in when embedding
21277         #
21278         { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
21279 $as_echo_n "checking python extra libraries... " >&6; }
21280         if test -z "$PYTHON_EXTRA_LIBS"; then
21281            PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
21282                 conf = distutils.sysconfig.get_config_var; \
21283                 print (conf('LIBS') + ' ' + conf('SYSLIBS'))"`
21284         fi
21285         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
21286 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
21287
21288
21289         #
21290         # linking flags needed when embedding
21291         #
21292         { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
21293 $as_echo_n "checking python extra linking flags... " >&6; }
21294         if test -z "$PYTHON_EXTRA_LDFLAGS"; then
21295                 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
21296                         conf = distutils.sysconfig.get_config_var; \
21297                         print (conf('LINKFORSHARED'))"`
21298         fi
21299         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
21300 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
21301
21302
21303         #
21304         # final check to see if everything compiles alright
21305         #
21306         { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
21307 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
21308         # save current global flags
21309         ac_save_LIBS="$LIBS"
21310         ac_save_CPPFLAGS="$CPPFLAGS"
21311         LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
21312         CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
21313         ac_ext=c
21314 ac_cpp='$CPP $CPPFLAGS'
21315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21318
21319         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21320 /* end confdefs.h.  */
21321
21322                 #include <Python.h>
21323 int
21324 main ()
21325 {
21326 Py_Initialize();
21327   ;
21328   return 0;
21329 }
21330
21331 _ACEOF
21332 if ac_fn_c_try_link "$LINENO"; then :
21333   pythonexists=yes
21334 else
21335   pythonexists=no
21336 fi
21337 rm -f core conftest.err conftest.$ac_objext \
21338     conftest$ac_exeext conftest.$ac_ext
21339         ac_ext=c
21340 ac_cpp='$CPP $CPPFLAGS'
21341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21344
21345         # turn back to default flags
21346         CPPFLAGS="$ac_save_CPPFLAGS"
21347         LIBS="$ac_save_LIBS"
21348
21349         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
21350 $as_echo "$pythonexists" >&6; }
21351
21352         if test ! "x$pythonexists" = "xyes"; then
21353            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
21354   Could not link test program to Python. Maybe the main Python library has been
21355   installed in some non-standard library path. If so, pass it to configure,
21356   via the LDFLAGS environment variable.
21357   Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
21358   ============================================================================
21359    You probably have to install the development version of the Python package
21360    for your distribution.  The exact name of this package varies among them.
21361   ============================================================================
21362            " >&5
21363 $as_echo "$as_me: WARNING:
21364   Could not link test program to Python. Maybe the main Python library has been
21365   installed in some non-standard library path. If so, pass it to configure,
21366   via the LDFLAGS environment variable.
21367   Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
21368   ============================================================================
21369    You probably have to install the development version of the Python package
21370    for your distribution.  The exact name of this package varies among them.
21371   ============================================================================
21372            " >&2;}
21373           PYTHON_VERSION=""
21374         fi
21375
21376         #
21377         # all done!
21378         #
21379
21380                 if test "$PYTHON_VERSION"; then
21381                         PYTHONS="$(echo $PYTHONS $PYTHON)"
21382                         PYTHON_VERSIONS="$(echo $PYTHON_VERSIONS $PYTHON_VERSION)"
21383                 fi
21384
21385   fi
21386
21387
21388            unset PYTHON
21389             unset PYTHON_VERSION
21390             unset PYTHON_CPPFLAGS
21391             unset PYTHON_LDFLAGS
21392             unset PYTHON_SITE_PKG
21393             unset PYTHON_EXTRA_LIBS
21394             unset PYTHON_EXTRA_LDFLAGS
21395             unset ac_cv_path_PYTHON
21396             unset am_cv_pathless_PYTHON
21397             unset am_cv_python_version
21398             unset am_cv_python_platform
21399             unset am_cv_python_pythondir
21400             unset am_cv_python_pyexecdir
21401
21402
21403
21404
21405
21406
21407         if test -n "$PYTHON"; then
21408       # If the user set $PYTHON, use it and don't search something else.
21409       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.6" >&5
21410 $as_echo_n "checking whether $PYTHON version is >= 3.6... " >&6; }
21411       prog="import sys
21412 # split strings by '.' and convert to numeric.  Append some zeros
21413 # because we need at least 4 digits for the hex conversion.
21414 # map returns an iterator in Python 3.0 and a list in 2.x
21415 minver = list(map(int, '3.6'.split('.'))) + [0, 0, 0]
21416 minverhex = 0
21417 # xrange is not present in Python 3.0 and range returns an iterator
21418 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
21419 sys.exit(sys.hexversion < minverhex)"
21420   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
21421    ($PYTHON -c "$prog") >&5 2>&5
21422    ac_status=$?
21423    echo "$as_me:$LINENO: \$? = $ac_status" >&5
21424    (exit $ac_status); }; then :
21425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21426 $as_echo "yes" >&6; }
21427 else
21428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21429 $as_echo "no" >&6; }
21430                                as_fn_error $? "Python interpreter is too old" "$LINENO" 5
21431 fi
21432       am_display_PYTHON=$PYTHON
21433     else
21434       # Otherwise, try each interpreter until we find one that satisfies
21435       # VERSION.
21436       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.6" >&5
21437 $as_echo_n "checking for a Python interpreter with version >= 3.6... " >&6; }
21438 if ${am_cv_pathless_PYTHON+:} false; then :
21439   $as_echo_n "(cached) " >&6
21440 else
21441
21442         for am_cv_pathless_PYTHON           in python3.6 none; do
21443           test "$am_cv_pathless_PYTHON" = none && break
21444           prog="import sys
21445 # split strings by '.' and convert to numeric.  Append some zeros
21446 # because we need at least 4 digits for the hex conversion.
21447 # map returns an iterator in Python 3.0 and a list in 2.x
21448 minver = list(map(int, '3.6'.split('.'))) + [0, 0, 0]
21449 minverhex = 0
21450 # xrange is not present in Python 3.0 and range returns an iterator
21451 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
21452 sys.exit(sys.hexversion < minverhex)"
21453   if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
21454    ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
21455    ac_status=$?
21456    echo "$as_me:$LINENO: \$? = $ac_status" >&5
21457    (exit $ac_status); }; then :
21458   break
21459 fi
21460         done
21461 fi
21462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
21463 $as_echo "$am_cv_pathless_PYTHON" >&6; }
21464       # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
21465       if test "$am_cv_pathless_PYTHON" = none; then
21466         PYTHON=:
21467       else
21468         # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
21469 set dummy $am_cv_pathless_PYTHON; ac_word=$2
21470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21471 $as_echo_n "checking for $ac_word... " >&6; }
21472 if ${ac_cv_path_PYTHON+:} false; then :
21473   $as_echo_n "(cached) " >&6
21474 else
21475   case $PYTHON in
21476   [\\/]* | ?:[\\/]*)
21477   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
21478   ;;
21479   *)
21480   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21481 for as_dir in $PATH
21482 do
21483   IFS=$as_save_IFS
21484   test -z "$as_dir" && as_dir=.
21485     for ac_exec_ext in '' $ac_executable_extensions; do
21486   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21487     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
21488     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21489     break 2
21490   fi
21491 done
21492   done
21493 IFS=$as_save_IFS
21494
21495   ;;
21496 esac
21497 fi
21498 PYTHON=$ac_cv_path_PYTHON
21499 if test -n "$PYTHON"; then
21500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
21501 $as_echo "$PYTHON" >&6; }
21502 else
21503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21504 $as_echo "no" >&6; }
21505 fi
21506
21507
21508       fi
21509       am_display_PYTHON=$am_cv_pathless_PYTHON
21510     fi
21511
21512
21513   if test "$PYTHON" = :; then
21514       :
21515   else
21516
21517
21518   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
21519 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
21520 if ${am_cv_python_version+:} false; then :
21521   $as_echo_n "(cached) " >&6
21522 else
21523   am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
21524 fi
21525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
21526 $as_echo "$am_cv_python_version" >&6; }
21527   PYTHON_VERSION=$am_cv_python_version
21528
21529
21530
21531   PYTHON_PREFIX='${prefix}'
21532
21533   PYTHON_EXEC_PREFIX='${exec_prefix}'
21534
21535
21536
21537   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
21538 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
21539 if ${am_cv_python_platform+:} false; then :
21540   $as_echo_n "(cached) " >&6
21541 else
21542   am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
21543 fi
21544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
21545 $as_echo "$am_cv_python_platform" >&6; }
21546   PYTHON_PLATFORM=$am_cv_python_platform
21547
21548
21549   # Just factor out some code duplication.
21550   am_python_setup_sysconfig="\
21551 import sys
21552 # Prefer sysconfig over distutils.sysconfig, for better compatibility
21553 # with python 3.x.  See automake bug#10227.
21554 try:
21555     import sysconfig
21556 except ImportError:
21557     can_use_sysconfig = 0
21558 else:
21559     can_use_sysconfig = 1
21560 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
21561 # <https://github.com/pypa/virtualenv/issues/118>
21562 try:
21563     from platform import python_implementation
21564     if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
21565         can_use_sysconfig = 0
21566 except ImportError:
21567     pass"
21568
21569
21570             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
21571 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
21572 if ${am_cv_python_pythondir+:} false; then :
21573   $as_echo_n "(cached) " >&6
21574 else
21575   if test "x$prefix" = xNONE
21576      then
21577        am_py_prefix=$ac_default_prefix
21578      else
21579        am_py_prefix=$prefix
21580      fi
21581      am_cv_python_pythondir=`$PYTHON -c "
21582 $am_python_setup_sysconfig
21583 if can_use_sysconfig:
21584     sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
21585 else:
21586     from distutils import sysconfig
21587     sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
21588 sys.stdout.write(sitedir)"`
21589      case $am_cv_python_pythondir in
21590      $am_py_prefix*)
21591        am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
21592        am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
21593        ;;
21594      *)
21595        case $am_py_prefix in
21596          /usr|/System*) ;;
21597          *)
21598           am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
21599           ;;
21600        esac
21601        ;;
21602      esac
21603
21604 fi
21605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
21606 $as_echo "$am_cv_python_pythondir" >&6; }
21607   pythondir=$am_cv_python_pythondir
21608
21609
21610
21611   pkgpythondir=\${pythondir}/$PACKAGE
21612
21613
21614         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
21615 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
21616 if ${am_cv_python_pyexecdir+:} false; then :
21617   $as_echo_n "(cached) " >&6
21618 else
21619   if test "x$exec_prefix" = xNONE
21620      then
21621        am_py_exec_prefix=$am_py_prefix
21622      else
21623        am_py_exec_prefix=$exec_prefix
21624      fi
21625      am_cv_python_pyexecdir=`$PYTHON -c "
21626 $am_python_setup_sysconfig
21627 if can_use_sysconfig:
21628     sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
21629 else:
21630     from distutils import sysconfig
21631     sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
21632 sys.stdout.write(sitedir)"`
21633      case $am_cv_python_pyexecdir in
21634      $am_py_exec_prefix*)
21635        am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
21636        am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
21637        ;;
21638      *)
21639        case $am_py_exec_prefix in
21640          /usr|/System*) ;;
21641          *)
21642            am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
21643            ;;
21644        esac
21645        ;;
21646      esac
21647
21648 fi
21649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
21650 $as_echo "$am_cv_python_pyexecdir" >&6; }
21651   pyexecdir=$am_cv_python_pyexecdir
21652
21653
21654
21655   pkgpyexecdir=\${pyexecdir}/$PACKAGE
21656
21657
21658
21659
21660         #
21661         # Allow the use of a (user set) custom python version
21662         #
21663
21664
21665         # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
21666 set dummy python$PYTHON_VERSION; ac_word=$2
21667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21668 $as_echo_n "checking for $ac_word... " >&6; }
21669 if ${ac_cv_path_PYTHON+:} false; then :
21670   $as_echo_n "(cached) " >&6
21671 else
21672   case $PYTHON in
21673   [\\/]* | ?:[\\/]*)
21674   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
21675   ;;
21676   *)
21677   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21678 for as_dir in $PATH
21679 do
21680   IFS=$as_save_IFS
21681   test -z "$as_dir" && as_dir=.
21682     for ac_exec_ext in '' $ac_executable_extensions; do
21683   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21684     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
21685     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21686     break 2
21687   fi
21688 done
21689   done
21690 IFS=$as_save_IFS
21691
21692   ;;
21693 esac
21694 fi
21695 PYTHON=$ac_cv_path_PYTHON
21696 if test -n "$PYTHON"; then
21697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
21698 $as_echo "$PYTHON" >&6; }
21699 else
21700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21701 $as_echo "no" >&6; }
21702 fi
21703
21704
21705         if test -z "$PYTHON"; then
21706            as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
21707            PYTHON_VERSION=""
21708         fi
21709
21710         #
21711         # Check for a version of Python >= 2.1.0
21712         #
21713         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
21714 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
21715         ac_supports_python_ver=`$PYTHON -c "import sys; \
21716                 ver = sys.version.split ()[0]; \
21717                 print (ver >= '2.1.0')"`
21718         if test "$ac_supports_python_ver" != "True"; then
21719                 if test -z "$PYTHON_NOVERSIONCHECK"; then
21720                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21721 $as_echo "no" >&6; }
21722                         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21723 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21724 as_fn_error $? "
21725 This version of the AC_PYTHON_DEVEL macro
21726 doesn't work properly with versions of Python before
21727 2.1.0. You may need to re-run configure, setting the
21728 variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
21729 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
21730 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
21731 to something else than an empty string.
21732
21733 See \`config.log' for more details" "$LINENO" 5; }
21734                 else
21735                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
21736 $as_echo "skip at user request" >&6; }
21737                 fi
21738         else
21739                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21740 $as_echo "yes" >&6; }
21741         fi
21742
21743         #
21744         # if the macro parameter ``version'' is set, honour it
21745         #
21746         if test -n ""; then
21747                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
21748 $as_echo_n "checking for a version of Python ... " >&6; }
21749                 ac_supports_python_ver=`$PYTHON -c "import sys; \
21750                         ver = sys.version.split ()[0]; \
21751                         print (ver )"`
21752                 if test "$ac_supports_python_ver" = "True"; then
21753                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21754 $as_echo "yes" >&6; }
21755                 else
21756                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21757 $as_echo "no" >&6; }
21758                         as_fn_error $? "this package requires Python .
21759 If you have it installed, but it isn't the default Python
21760 interpreter in your system path, please pass the PYTHON_VERSION
21761 variable to configure. See \`\`configure --help'' for reference.
21762 " "$LINENO" 5
21763                         PYTHON_VERSION=""
21764                 fi
21765         fi
21766
21767         #
21768         # Check if you have distutils, else fail
21769         #
21770         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
21771 $as_echo_n "checking for the distutils Python package... " >&6; }
21772         ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
21773         if test -z "$ac_distutils_result"; then
21774                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21775 $as_echo "yes" >&6; }
21776         else
21777                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21778 $as_echo "no" >&6; }
21779                 as_fn_error $? "cannot import Python module \"distutils\".
21780 Please check your Python installation. The error was:
21781 $ac_distutils_result" "$LINENO" 5
21782                 PYTHON_VERSION=""
21783         fi
21784
21785         #
21786         # Check for Python include path
21787         #
21788         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
21789 $as_echo_n "checking for Python include path... " >&6; }
21790         if test -z "$PYTHON_CPPFLAGS"; then
21791                 python_path=`$PYTHON -c "import distutils.sysconfig; \
21792                         print (distutils.sysconfig.get_python_inc ());"`
21793                 plat_python_path=`$PYTHON -c "import distutils.sysconfig; \
21794                         print (distutils.sysconfig.get_python_inc (plat_specific=1));"`
21795                 if test -n "${python_path}"; then
21796                         if test "${plat_python_path}" != "${python_path}"; then
21797                                 python_path="-I$python_path -I$plat_python_path"
21798                         else
21799                                 python_path="-I$python_path"
21800                         fi
21801                 fi
21802                 PYTHON_CPPFLAGS=$python_path
21803         fi
21804         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
21805 $as_echo "$PYTHON_CPPFLAGS" >&6; }
21806
21807
21808         #
21809         # Check for Python library path
21810         #
21811         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
21812 $as_echo_n "checking for Python library path... " >&6; }
21813         if test -z "$PYTHON_LDFLAGS"; then
21814                 # (makes two attempts to ensure we've got a version number
21815                 # from the interpreter)
21816                 ac_python_version=`cat<<EOD | $PYTHON -
21817
21818 # join all versioning strings, on some systems
21819 # major/minor numbers could be in different list elements
21820 from distutils.sysconfig import *
21821 e = get_config_var('VERSION')
21822 if e is not None:
21823         print(e)
21824 EOD`
21825
21826                 if test -z "$ac_python_version"; then
21827                         if test -n "$PYTHON_VERSION"; then
21828                                 ac_python_version=$PYTHON_VERSION
21829                         else
21830                                 ac_python_version=`$PYTHON -c "import sys; \
21831                                         print (sys.version[:3])"`
21832                         fi
21833                 fi
21834
21835                 # Make the versioning information available to the compiler
21836
21837                 # JW: We don't need it and it interferes with the hack
21838                 # to detect multiple Pyhton versions
21839                 #AC_DEFINE_UNQUOTED([HAVE_PYTHON], ["$ac_python_version"],
21840                 #                  [If available, contains the Python version number currently in use.])
21841
21842                 # First, the library directory:
21843                 ac_python_libdir=`cat<<EOD | $PYTHON -
21844
21845 # There should be only one
21846 import distutils.sysconfig
21847 e = distutils.sysconfig.get_config_var('LIBDIR')
21848 if e is not None:
21849         print (e)
21850 EOD`
21851
21852                 # Now, for the library:
21853                 ac_python_library=`cat<<EOD | $PYTHON -
21854
21855 import distutils.sysconfig
21856 c = distutils.sysconfig.get_config_vars()
21857 if 'LDVERSION' in c:
21858         print ('python'+c['LDVERSION'])
21859 else:
21860         print ('python'+c['VERSION'])
21861 EOD`
21862
21863                 # This small piece shamelessly adapted from PostgreSQL python macro;
21864                 # credits goes to momjian, I think. I'd like to put the right name
21865                 # in the credits, if someone can point me in the right direction... ?
21866                 #
21867                 if test -n "$ac_python_libdir" -a -n "$ac_python_library"
21868                 then
21869                         # use the official shared library
21870                         ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
21871                         PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library"
21872                 else
21873                         # old way: use libpython from python_configdir
21874                         ac_python_libdir=`$PYTHON -c \
21875                           "from distutils.sysconfig import get_python_lib as f; \
21876                           import os; \
21877                           print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
21878                         PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version"
21879                 fi
21880
21881                 if test -z "PYTHON_LDFLAGS"; then
21882                         as_fn_error $? "
21883   Cannot determine location of your Python DSO. Please check it was installed with
21884   dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
21885                         " "$LINENO" 5
21886                 fi
21887         fi
21888         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
21889 $as_echo "$PYTHON_LDFLAGS" >&6; }
21890
21891
21892         #
21893         # Check for site packages
21894         #
21895         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
21896 $as_echo_n "checking for Python site-packages path... " >&6; }
21897         if test -z "$PYTHON_SITE_PKG"; then
21898                 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
21899                         print (distutils.sysconfig.get_python_lib(0,0));"`
21900         fi
21901         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
21902 $as_echo "$PYTHON_SITE_PKG" >&6; }
21903
21904
21905         #
21906         # libraries which must be linked in when embedding
21907         #
21908         { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
21909 $as_echo_n "checking python extra libraries... " >&6; }
21910         if test -z "$PYTHON_EXTRA_LIBS"; then
21911            PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
21912                 conf = distutils.sysconfig.get_config_var; \
21913                 print (conf('LIBS') + ' ' + conf('SYSLIBS'))"`
21914         fi
21915         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
21916 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
21917
21918
21919         #
21920         # linking flags needed when embedding
21921         #
21922         { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
21923 $as_echo_n "checking python extra linking flags... " >&6; }
21924         if test -z "$PYTHON_EXTRA_LDFLAGS"; then
21925                 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
21926                         conf = distutils.sysconfig.get_config_var; \
21927                         print (conf('LINKFORSHARED'))"`
21928         fi
21929         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
21930 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
21931
21932
21933         #
21934         # final check to see if everything compiles alright
21935         #
21936         { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
21937 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
21938         # save current global flags
21939         ac_save_LIBS="$LIBS"
21940         ac_save_CPPFLAGS="$CPPFLAGS"
21941         LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
21942         CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
21943         ac_ext=c
21944 ac_cpp='$CPP $CPPFLAGS'
21945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21948
21949         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21950 /* end confdefs.h.  */
21951
21952                 #include <Python.h>
21953 int
21954 main ()
21955 {
21956 Py_Initialize();
21957   ;
21958   return 0;
21959 }
21960
21961 _ACEOF
21962 if ac_fn_c_try_link "$LINENO"; then :
21963   pythonexists=yes
21964 else
21965   pythonexists=no
21966 fi
21967 rm -f core conftest.err conftest.$ac_objext \
21968     conftest$ac_exeext conftest.$ac_ext
21969         ac_ext=c
21970 ac_cpp='$CPP $CPPFLAGS'
21971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21974
21975         # turn back to default flags
21976         CPPFLAGS="$ac_save_CPPFLAGS"
21977         LIBS="$ac_save_LIBS"
21978
21979         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
21980 $as_echo "$pythonexists" >&6; }
21981
21982         if test ! "x$pythonexists" = "xyes"; then
21983            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
21984   Could not link test program to Python. Maybe the main Python library has been
21985   installed in some non-standard library path. If so, pass it to configure,
21986   via the LDFLAGS environment variable.
21987   Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
21988   ============================================================================
21989    You probably have to install the development version of the Python package
21990    for your distribution.  The exact name of this package varies among them.
21991   ============================================================================
21992            " >&5
21993 $as_echo "$as_me: WARNING:
21994   Could not link test program to Python. Maybe the main Python library has been
21995   installed in some non-standard library path. If so, pass it to configure,
21996   via the LDFLAGS environment variable.
21997   Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
21998   ============================================================================
21999    You probably have to install the development version of the Python package
22000    for your distribution.  The exact name of this package varies among them.
22001   ============================================================================
22002            " >&2;}
22003           PYTHON_VERSION=""
22004         fi
22005
22006         #
22007         # all done!
22008         #
22009
22010                 if test "$PYTHON_VERSION"; then
22011                         PYTHONS="$(echo $PYTHONS $PYTHON)"
22012                         PYTHON_VERSIONS="$(echo $PYTHON_VERSIONS $PYTHON_VERSION)"
22013                 fi
22014
22015   fi
22016
22017
22018            unset PYTHON
22019             unset PYTHON_VERSION
22020             unset PYTHON_CPPFLAGS
22021             unset PYTHON_LDFLAGS
22022             unset PYTHON_SITE_PKG
22023             unset PYTHON_EXTRA_LIBS
22024             unset PYTHON_EXTRA_LDFLAGS
22025             unset ac_cv_path_PYTHON
22026             unset am_cv_pathless_PYTHON
22027             unset am_cv_python_version
22028             unset am_cv_python_platform
22029             unset am_cv_python_pythondir
22030             unset am_cv_python_pyexecdir
22031
22032
22033
22034
22035
22036
22037         if test -n "$PYTHON"; then
22038       # If the user set $PYTHON, use it and don't search something else.
22039       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.7" >&5
22040 $as_echo_n "checking whether $PYTHON version is >= 3.7... " >&6; }
22041       prog="import sys
22042 # split strings by '.' and convert to numeric.  Append some zeros
22043 # because we need at least 4 digits for the hex conversion.
22044 # map returns an iterator in Python 3.0 and a list in 2.x
22045 minver = list(map(int, '3.7'.split('.'))) + [0, 0, 0]
22046 minverhex = 0
22047 # xrange is not present in Python 3.0 and range returns an iterator
22048 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
22049 sys.exit(sys.hexversion < minverhex)"
22050   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
22051    ($PYTHON -c "$prog") >&5 2>&5
22052    ac_status=$?
22053    echo "$as_me:$LINENO: \$? = $ac_status" >&5
22054    (exit $ac_status); }; then :
22055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22056 $as_echo "yes" >&6; }
22057 else
22058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22059 $as_echo "no" >&6; }
22060                                as_fn_error $? "Python interpreter is too old" "$LINENO" 5
22061 fi
22062       am_display_PYTHON=$PYTHON
22063     else
22064       # Otherwise, try each interpreter until we find one that satisfies
22065       # VERSION.
22066       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.7" >&5
22067 $as_echo_n "checking for a Python interpreter with version >= 3.7... " >&6; }
22068 if ${am_cv_pathless_PYTHON+:} false; then :
22069   $as_echo_n "(cached) " >&6
22070 else
22071
22072         for am_cv_pathless_PYTHON           in python3.7 none; do
22073           test "$am_cv_pathless_PYTHON" = none && break
22074           prog="import sys
22075 # split strings by '.' and convert to numeric.  Append some zeros
22076 # because we need at least 4 digits for the hex conversion.
22077 # map returns an iterator in Python 3.0 and a list in 2.x
22078 minver = list(map(int, '3.7'.split('.'))) + [0, 0, 0]
22079 minverhex = 0
22080 # xrange is not present in Python 3.0 and range returns an iterator
22081 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
22082 sys.exit(sys.hexversion < minverhex)"
22083   if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
22084    ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
22085    ac_status=$?
22086    echo "$as_me:$LINENO: \$? = $ac_status" >&5
22087    (exit $ac_status); }; then :
22088   break
22089 fi
22090         done
22091 fi
22092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
22093 $as_echo "$am_cv_pathless_PYTHON" >&6; }
22094       # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
22095       if test "$am_cv_pathless_PYTHON" = none; then
22096         PYTHON=:
22097       else
22098         # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
22099 set dummy $am_cv_pathless_PYTHON; ac_word=$2
22100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22101 $as_echo_n "checking for $ac_word... " >&6; }
22102 if ${ac_cv_path_PYTHON+:} false; then :
22103   $as_echo_n "(cached) " >&6
22104 else
22105   case $PYTHON in
22106   [\\/]* | ?:[\\/]*)
22107   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
22108   ;;
22109   *)
22110   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22111 for as_dir in $PATH
22112 do
22113   IFS=$as_save_IFS
22114   test -z "$as_dir" && as_dir=.
22115     for ac_exec_ext in '' $ac_executable_extensions; do
22116   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22117     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
22118     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22119     break 2
22120   fi
22121 done
22122   done
22123 IFS=$as_save_IFS
22124
22125   ;;
22126 esac
22127 fi
22128 PYTHON=$ac_cv_path_PYTHON
22129 if test -n "$PYTHON"; then
22130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
22131 $as_echo "$PYTHON" >&6; }
22132 else
22133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22134 $as_echo "no" >&6; }
22135 fi
22136
22137
22138       fi
22139       am_display_PYTHON=$am_cv_pathless_PYTHON
22140     fi
22141
22142
22143   if test "$PYTHON" = :; then
22144       :
22145   else
22146
22147
22148   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
22149 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
22150 if ${am_cv_python_version+:} false; then :
22151   $as_echo_n "(cached) " >&6
22152 else
22153   am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
22154 fi
22155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
22156 $as_echo "$am_cv_python_version" >&6; }
22157   PYTHON_VERSION=$am_cv_python_version
22158
22159
22160
22161   PYTHON_PREFIX='${prefix}'
22162
22163   PYTHON_EXEC_PREFIX='${exec_prefix}'
22164
22165
22166
22167   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
22168 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
22169 if ${am_cv_python_platform+:} false; then :
22170   $as_echo_n "(cached) " >&6
22171 else
22172   am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
22173 fi
22174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
22175 $as_echo "$am_cv_python_platform" >&6; }
22176   PYTHON_PLATFORM=$am_cv_python_platform
22177
22178
22179   # Just factor out some code duplication.
22180   am_python_setup_sysconfig="\
22181 import sys
22182 # Prefer sysconfig over distutils.sysconfig, for better compatibility
22183 # with python 3.x.  See automake bug#10227.
22184 try:
22185     import sysconfig
22186 except ImportError:
22187     can_use_sysconfig = 0
22188 else:
22189     can_use_sysconfig = 1
22190 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
22191 # <https://github.com/pypa/virtualenv/issues/118>
22192 try:
22193     from platform import python_implementation
22194     if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
22195         can_use_sysconfig = 0
22196 except ImportError:
22197     pass"
22198
22199
22200             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
22201 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
22202 if ${am_cv_python_pythondir+:} false; then :
22203   $as_echo_n "(cached) " >&6
22204 else
22205   if test "x$prefix" = xNONE
22206      then
22207        am_py_prefix=$ac_default_prefix
22208      else
22209        am_py_prefix=$prefix
22210      fi
22211      am_cv_python_pythondir=`$PYTHON -c "
22212 $am_python_setup_sysconfig
22213 if can_use_sysconfig:
22214     sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
22215 else:
22216     from distutils import sysconfig
22217     sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
22218 sys.stdout.write(sitedir)"`
22219      case $am_cv_python_pythondir in
22220      $am_py_prefix*)
22221        am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
22222        am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
22223        ;;
22224      *)
22225        case $am_py_prefix in
22226          /usr|/System*) ;;
22227          *)
22228           am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
22229           ;;
22230        esac
22231        ;;
22232      esac
22233
22234 fi
22235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
22236 $as_echo "$am_cv_python_pythondir" >&6; }
22237   pythondir=$am_cv_python_pythondir
22238
22239
22240
22241   pkgpythondir=\${pythondir}/$PACKAGE
22242
22243
22244         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
22245 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
22246 if ${am_cv_python_pyexecdir+:} false; then :
22247   $as_echo_n "(cached) " >&6
22248 else
22249   if test "x$exec_prefix" = xNONE
22250      then
22251        am_py_exec_prefix=$am_py_prefix
22252      else
22253        am_py_exec_prefix=$exec_prefix
22254      fi
22255      am_cv_python_pyexecdir=`$PYTHON -c "
22256 $am_python_setup_sysconfig
22257 if can_use_sysconfig:
22258     sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
22259 else:
22260     from distutils import sysconfig
22261     sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
22262 sys.stdout.write(sitedir)"`
22263      case $am_cv_python_pyexecdir in
22264      $am_py_exec_prefix*)
22265        am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
22266        am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
22267        ;;
22268      *)
22269        case $am_py_exec_prefix in
22270          /usr|/System*) ;;
22271          *)
22272            am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
22273            ;;
22274        esac
22275        ;;
22276      esac
22277
22278 fi
22279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
22280 $as_echo "$am_cv_python_pyexecdir" >&6; }
22281   pyexecdir=$am_cv_python_pyexecdir
22282
22283
22284
22285   pkgpyexecdir=\${pyexecdir}/$PACKAGE
22286
22287
22288
22289
22290         #
22291         # Allow the use of a (user set) custom python version
22292         #
22293
22294
22295         # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
22296 set dummy python$PYTHON_VERSION; ac_word=$2
22297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22298 $as_echo_n "checking for $ac_word... " >&6; }
22299 if ${ac_cv_path_PYTHON+:} false; then :
22300   $as_echo_n "(cached) " >&6
22301 else
22302   case $PYTHON in
22303   [\\/]* | ?:[\\/]*)
22304   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
22305   ;;
22306   *)
22307   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22308 for as_dir in $PATH
22309 do
22310   IFS=$as_save_IFS
22311   test -z "$as_dir" && as_dir=.
22312     for ac_exec_ext in '' $ac_executable_extensions; do
22313   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22314     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
22315     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22316     break 2
22317   fi
22318 done
22319   done
22320 IFS=$as_save_IFS
22321
22322   ;;
22323 esac
22324 fi
22325 PYTHON=$ac_cv_path_PYTHON
22326 if test -n "$PYTHON"; then
22327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
22328 $as_echo "$PYTHON" >&6; }
22329 else
22330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22331 $as_echo "no" >&6; }
22332 fi
22333
22334
22335         if test -z "$PYTHON"; then
22336            as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
22337            PYTHON_VERSION=""
22338         fi
22339
22340         #
22341         # Check for a version of Python >= 2.1.0
22342         #
22343         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
22344 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
22345         ac_supports_python_ver=`$PYTHON -c "import sys; \
22346                 ver = sys.version.split ()[0]; \
22347                 print (ver >= '2.1.0')"`
22348         if test "$ac_supports_python_ver" != "True"; then
22349                 if test -z "$PYTHON_NOVERSIONCHECK"; then
22350                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22351 $as_echo "no" >&6; }
22352                         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22353 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22354 as_fn_error $? "
22355 This version of the AC_PYTHON_DEVEL macro
22356 doesn't work properly with versions of Python before
22357 2.1.0. You may need to re-run configure, setting the
22358 variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
22359 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
22360 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
22361 to something else than an empty string.
22362
22363 See \`config.log' for more details" "$LINENO" 5; }
22364                 else
22365                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
22366 $as_echo "skip at user request" >&6; }
22367                 fi
22368         else
22369                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22370 $as_echo "yes" >&6; }
22371         fi
22372
22373         #
22374         # if the macro parameter ``version'' is set, honour it
22375         #
22376         if test -n ""; then
22377                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
22378 $as_echo_n "checking for a version of Python ... " >&6; }
22379                 ac_supports_python_ver=`$PYTHON -c "import sys; \
22380                         ver = sys.version.split ()[0]; \
22381                         print (ver )"`
22382                 if test "$ac_supports_python_ver" = "True"; then
22383                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22384 $as_echo "yes" >&6; }
22385                 else
22386                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22387 $as_echo "no" >&6; }
22388                         as_fn_error $? "this package requires Python .
22389 If you have it installed, but it isn't the default Python
22390 interpreter in your system path, please pass the PYTHON_VERSION
22391 variable to configure. See \`\`configure --help'' for reference.
22392 " "$LINENO" 5
22393                         PYTHON_VERSION=""
22394                 fi
22395         fi
22396
22397         #
22398         # Check if you have distutils, else fail
22399         #
22400         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
22401 $as_echo_n "checking for the distutils Python package... " >&6; }
22402         ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
22403         if test -z "$ac_distutils_result"; then
22404                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22405 $as_echo "yes" >&6; }
22406         else
22407                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22408 $as_echo "no" >&6; }
22409                 as_fn_error $? "cannot import Python module \"distutils\".
22410 Please check your Python installation. The error was:
22411 $ac_distutils_result" "$LINENO" 5
22412                 PYTHON_VERSION=""
22413         fi
22414
22415         #
22416         # Check for Python include path
22417         #
22418         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
22419 $as_echo_n "checking for Python include path... " >&6; }
22420         if test -z "$PYTHON_CPPFLAGS"; then
22421                 python_path=`$PYTHON -c "import distutils.sysconfig; \
22422                         print (distutils.sysconfig.get_python_inc ());"`
22423                 plat_python_path=`$PYTHON -c "import distutils.sysconfig; \
22424                         print (distutils.sysconfig.get_python_inc (plat_specific=1));"`
22425                 if test -n "${python_path}"; then
22426                         if test "${plat_python_path}" != "${python_path}"; then
22427                                 python_path="-I$python_path -I$plat_python_path"
22428                         else
22429                                 python_path="-I$python_path"
22430                         fi
22431                 fi
22432                 PYTHON_CPPFLAGS=$python_path
22433         fi
22434         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
22435 $as_echo "$PYTHON_CPPFLAGS" >&6; }
22436
22437
22438         #
22439         # Check for Python library path
22440         #
22441         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
22442 $as_echo_n "checking for Python library path... " >&6; }
22443         if test -z "$PYTHON_LDFLAGS"; then
22444                 # (makes two attempts to ensure we've got a version number
22445                 # from the interpreter)
22446                 ac_python_version=`cat<<EOD | $PYTHON -
22447
22448 # join all versioning strings, on some systems
22449 # major/minor numbers could be in different list elements
22450 from distutils.sysconfig import *
22451 e = get_config_var('VERSION')
22452 if e is not None:
22453         print(e)
22454 EOD`
22455
22456                 if test -z "$ac_python_version"; then
22457                         if test -n "$PYTHON_VERSION"; then
22458                                 ac_python_version=$PYTHON_VERSION
22459                         else
22460                                 ac_python_version=`$PYTHON -c "import sys; \
22461                                         print (sys.version[:3])"`
22462                         fi
22463                 fi
22464
22465                 # Make the versioning information available to the compiler
22466
22467                 # JW: We don't need it and it interferes with the hack
22468                 # to detect multiple Pyhton versions
22469                 #AC_DEFINE_UNQUOTED([HAVE_PYTHON], ["$ac_python_version"],
22470                 #                  [If available, contains the Python version number currently in use.])
22471
22472                 # First, the library directory:
22473                 ac_python_libdir=`cat<<EOD | $PYTHON -
22474
22475 # There should be only one
22476 import distutils.sysconfig
22477 e = distutils.sysconfig.get_config_var('LIBDIR')
22478 if e is not None:
22479         print (e)
22480 EOD`
22481
22482                 # Now, for the library:
22483                 ac_python_library=`cat<<EOD | $PYTHON -
22484
22485 import distutils.sysconfig
22486 c = distutils.sysconfig.get_config_vars()
22487 if 'LDVERSION' in c:
22488         print ('python'+c['LDVERSION'])
22489 else:
22490         print ('python'+c['VERSION'])
22491 EOD`
22492
22493                 # This small piece shamelessly adapted from PostgreSQL python macro;
22494                 # credits goes to momjian, I think. I'd like to put the right name
22495                 # in the credits, if someone can point me in the right direction... ?
22496                 #
22497                 if test -n "$ac_python_libdir" -a -n "$ac_python_library"
22498                 then
22499                         # use the official shared library
22500                         ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
22501                         PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library"
22502                 else
22503                         # old way: use libpython from python_configdir
22504                         ac_python_libdir=`$PYTHON -c \
22505                           "from distutils.sysconfig import get_python_lib as f; \
22506                           import os; \
22507                           print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
22508                         PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version"
22509                 fi
22510
22511                 if test -z "PYTHON_LDFLAGS"; then
22512                         as_fn_error $? "
22513   Cannot determine location of your Python DSO. Please check it was installed with
22514   dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
22515                         " "$LINENO" 5
22516                 fi
22517         fi
22518         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
22519 $as_echo "$PYTHON_LDFLAGS" >&6; }
22520
22521
22522         #
22523         # Check for site packages
22524         #
22525         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
22526 $as_echo_n "checking for Python site-packages path... " >&6; }
22527         if test -z "$PYTHON_SITE_PKG"; then
22528                 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
22529                         print (distutils.sysconfig.get_python_lib(0,0));"`
22530         fi
22531         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
22532 $as_echo "$PYTHON_SITE_PKG" >&6; }
22533
22534
22535         #
22536         # libraries which must be linked in when embedding
22537         #
22538         { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
22539 $as_echo_n "checking python extra libraries... " >&6; }
22540         if test -z "$PYTHON_EXTRA_LIBS"; then
22541            PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
22542                 conf = distutils.sysconfig.get_config_var; \
22543                 print (conf('LIBS') + ' ' + conf('SYSLIBS'))"`
22544         fi
22545         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
22546 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
22547
22548
22549         #
22550         # linking flags needed when embedding
22551         #
22552         { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
22553 $as_echo_n "checking python extra linking flags... " >&6; }
22554         if test -z "$PYTHON_EXTRA_LDFLAGS"; then
22555                 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
22556                         conf = distutils.sysconfig.get_config_var; \
22557                         print (conf('LINKFORSHARED'))"`
22558         fi
22559         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
22560 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
22561
22562
22563         #
22564         # final check to see if everything compiles alright
22565         #
22566         { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
22567 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
22568         # save current global flags
22569         ac_save_LIBS="$LIBS"
22570         ac_save_CPPFLAGS="$CPPFLAGS"
22571         LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
22572         CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
22573         ac_ext=c
22574 ac_cpp='$CPP $CPPFLAGS'
22575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22578
22579         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22580 /* end confdefs.h.  */
22581
22582                 #include <Python.h>
22583 int
22584 main ()
22585 {
22586 Py_Initialize();
22587   ;
22588   return 0;
22589 }
22590
22591 _ACEOF
22592 if ac_fn_c_try_link "$LINENO"; then :
22593   pythonexists=yes
22594 else
22595   pythonexists=no
22596 fi
22597 rm -f core conftest.err conftest.$ac_objext \
22598     conftest$ac_exeext conftest.$ac_ext
22599         ac_ext=c
22600 ac_cpp='$CPP $CPPFLAGS'
22601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22604
22605         # turn back to default flags
22606         CPPFLAGS="$ac_save_CPPFLAGS"
22607         LIBS="$ac_save_LIBS"
22608
22609         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
22610 $as_echo "$pythonexists" >&6; }
22611
22612         if test ! "x$pythonexists" = "xyes"; then
22613            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
22614   Could not link test program to Python. Maybe the main Python library has been
22615   installed in some non-standard library path. If so, pass it to configure,
22616   via the LDFLAGS environment variable.
22617   Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
22618   ============================================================================
22619    You probably have to install the development version of the Python package
22620    for your distribution.  The exact name of this package varies among them.
22621   ============================================================================
22622            " >&5
22623 $as_echo "$as_me: WARNING:
22624   Could not link test program to Python. Maybe the main Python library has been
22625   installed in some non-standard library path. If so, pass it to configure,
22626   via the LDFLAGS environment variable.
22627   Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
22628   ============================================================================
22629    You probably have to install the development version of the Python package
22630    for your distribution.  The exact name of this package varies among them.
22631   ============================================================================
22632            " >&2;}
22633           PYTHON_VERSION=""
22634         fi
22635
22636         #
22637         # all done!
22638         #
22639
22640                 if test "$PYTHON_VERSION"; then
22641                         PYTHONS="$(echo $PYTHONS $PYTHON)"
22642                         PYTHON_VERSIONS="$(echo $PYTHON_VERSIONS $PYTHON_VERSION)"
22643                 fi
22644
22645   fi
22646
22647
22648            unset PYTHON
22649             unset PYTHON_VERSION
22650             unset PYTHON_CPPFLAGS
22651             unset PYTHON_LDFLAGS
22652             unset PYTHON_SITE_PKG
22653             unset PYTHON_EXTRA_LIBS
22654             unset PYTHON_EXTRA_LDFLAGS
22655             unset ac_cv_path_PYTHON
22656             unset am_cv_pathless_PYTHON
22657             unset am_cv_python_version
22658             unset am_cv_python_platform
22659             unset am_cv_python_pythondir
22660             unset am_cv_python_pyexecdir
22661
22662
22663
22664
22665
22666
22667         if test -n "$PYTHON"; then
22668       # If the user set $PYTHON, use it and don't search something else.
22669       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.8" >&5
22670 $as_echo_n "checking whether $PYTHON version is >= 3.8... " >&6; }
22671       prog="import sys
22672 # split strings by '.' and convert to numeric.  Append some zeros
22673 # because we need at least 4 digits for the hex conversion.
22674 # map returns an iterator in Python 3.0 and a list in 2.x
22675 minver = list(map(int, '3.8'.split('.'))) + [0, 0, 0]
22676 minverhex = 0
22677 # xrange is not present in Python 3.0 and range returns an iterator
22678 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
22679 sys.exit(sys.hexversion < minverhex)"
22680   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
22681    ($PYTHON -c "$prog") >&5 2>&5
22682    ac_status=$?
22683    echo "$as_me:$LINENO: \$? = $ac_status" >&5
22684    (exit $ac_status); }; then :
22685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22686 $as_echo "yes" >&6; }
22687 else
22688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22689 $as_echo "no" >&6; }
22690                                as_fn_error $? "Python interpreter is too old" "$LINENO" 5
22691 fi
22692       am_display_PYTHON=$PYTHON
22693     else
22694       # Otherwise, try each interpreter until we find one that satisfies
22695       # VERSION.
22696       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.8" >&5
22697 $as_echo_n "checking for a Python interpreter with version >= 3.8... " >&6; }
22698 if ${am_cv_pathless_PYTHON+:} false; then :
22699   $as_echo_n "(cached) " >&6
22700 else
22701
22702         for am_cv_pathless_PYTHON           in python3.8 none; do
22703           test "$am_cv_pathless_PYTHON" = none && break
22704           prog="import sys
22705 # split strings by '.' and convert to numeric.  Append some zeros
22706 # because we need at least 4 digits for the hex conversion.
22707 # map returns an iterator in Python 3.0 and a list in 2.x
22708 minver = list(map(int, '3.8'.split('.'))) + [0, 0, 0]
22709 minverhex = 0
22710 # xrange is not present in Python 3.0 and range returns an iterator
22711 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
22712 sys.exit(sys.hexversion < minverhex)"
22713   if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
22714    ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
22715    ac_status=$?
22716    echo "$as_me:$LINENO: \$? = $ac_status" >&5
22717    (exit $ac_status); }; then :
22718   break
22719 fi
22720         done
22721 fi
22722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
22723 $as_echo "$am_cv_pathless_PYTHON" >&6; }
22724       # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
22725       if test "$am_cv_pathless_PYTHON" = none; then
22726         PYTHON=:
22727       else
22728         # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
22729 set dummy $am_cv_pathless_PYTHON; ac_word=$2
22730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22731 $as_echo_n "checking for $ac_word... " >&6; }
22732 if ${ac_cv_path_PYTHON+:} false; then :
22733   $as_echo_n "(cached) " >&6
22734 else
22735   case $PYTHON in
22736   [\\/]* | ?:[\\/]*)
22737   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
22738   ;;
22739   *)
22740   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22741 for as_dir in $PATH
22742 do
22743   IFS=$as_save_IFS
22744   test -z "$as_dir" && as_dir=.
22745     for ac_exec_ext in '' $ac_executable_extensions; do
22746   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22747     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
22748     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22749     break 2
22750   fi
22751 done
22752   done
22753 IFS=$as_save_IFS
22754
22755   ;;
22756 esac
22757 fi
22758 PYTHON=$ac_cv_path_PYTHON
22759 if test -n "$PYTHON"; then
22760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
22761 $as_echo "$PYTHON" >&6; }
22762 else
22763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22764 $as_echo "no" >&6; }
22765 fi
22766
22767
22768       fi
22769       am_display_PYTHON=$am_cv_pathless_PYTHON
22770     fi
22771
22772
22773   if test "$PYTHON" = :; then
22774       :
22775   else
22776
22777
22778   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
22779 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
22780 if ${am_cv_python_version+:} false; then :
22781   $as_echo_n "(cached) " >&6
22782 else
22783   am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
22784 fi
22785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
22786 $as_echo "$am_cv_python_version" >&6; }
22787   PYTHON_VERSION=$am_cv_python_version
22788
22789
22790
22791   PYTHON_PREFIX='${prefix}'
22792
22793   PYTHON_EXEC_PREFIX='${exec_prefix}'
22794
22795
22796
22797   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
22798 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
22799 if ${am_cv_python_platform+:} false; then :
22800   $as_echo_n "(cached) " >&6
22801 else
22802   am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
22803 fi
22804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
22805 $as_echo "$am_cv_python_platform" >&6; }
22806   PYTHON_PLATFORM=$am_cv_python_platform
22807
22808
22809   # Just factor out some code duplication.
22810   am_python_setup_sysconfig="\
22811 import sys
22812 # Prefer sysconfig over distutils.sysconfig, for better compatibility
22813 # with python 3.x.  See automake bug#10227.
22814 try:
22815     import sysconfig
22816 except ImportError:
22817     can_use_sysconfig = 0
22818 else:
22819     can_use_sysconfig = 1
22820 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
22821 # <https://github.com/pypa/virtualenv/issues/118>
22822 try:
22823     from platform import python_implementation
22824     if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
22825         can_use_sysconfig = 0
22826 except ImportError:
22827     pass"
22828
22829
22830             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
22831 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
22832 if ${am_cv_python_pythondir+:} false; then :
22833   $as_echo_n "(cached) " >&6
22834 else
22835   if test "x$prefix" = xNONE
22836      then
22837        am_py_prefix=$ac_default_prefix
22838      else
22839        am_py_prefix=$prefix
22840      fi
22841      am_cv_python_pythondir=`$PYTHON -c "
22842 $am_python_setup_sysconfig
22843 if can_use_sysconfig:
22844     sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
22845 else:
22846     from distutils import sysconfig
22847     sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
22848 sys.stdout.write(sitedir)"`
22849      case $am_cv_python_pythondir in
22850      $am_py_prefix*)
22851        am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
22852        am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
22853        ;;
22854      *)
22855        case $am_py_prefix in
22856          /usr|/System*) ;;
22857          *)
22858           am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
22859           ;;
22860        esac
22861        ;;
22862      esac
22863
22864 fi
22865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
22866 $as_echo "$am_cv_python_pythondir" >&6; }
22867   pythondir=$am_cv_python_pythondir
22868
22869
22870
22871   pkgpythondir=\${pythondir}/$PACKAGE
22872
22873
22874         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
22875 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
22876 if ${am_cv_python_pyexecdir+:} false; then :
22877   $as_echo_n "(cached) " >&6
22878 else
22879   if test "x$exec_prefix" = xNONE
22880      then
22881        am_py_exec_prefix=$am_py_prefix
22882      else
22883        am_py_exec_prefix=$exec_prefix
22884      fi
22885      am_cv_python_pyexecdir=`$PYTHON -c "
22886 $am_python_setup_sysconfig
22887 if can_use_sysconfig:
22888     sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
22889 else:
22890     from distutils import sysconfig
22891     sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
22892 sys.stdout.write(sitedir)"`
22893      case $am_cv_python_pyexecdir in
22894      $am_py_exec_prefix*)
22895        am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
22896        am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
22897        ;;
22898      *)
22899        case $am_py_exec_prefix in
22900          /usr|/System*) ;;
22901          *)
22902            am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
22903            ;;
22904        esac
22905        ;;
22906      esac
22907
22908 fi
22909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
22910 $as_echo "$am_cv_python_pyexecdir" >&6; }
22911   pyexecdir=$am_cv_python_pyexecdir
22912
22913
22914
22915   pkgpyexecdir=\${pyexecdir}/$PACKAGE
22916
22917
22918
22919
22920         #
22921         # Allow the use of a (user set) custom python version
22922         #
22923
22924
22925         # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
22926 set dummy python$PYTHON_VERSION; ac_word=$2
22927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22928 $as_echo_n "checking for $ac_word... " >&6; }
22929 if ${ac_cv_path_PYTHON+:} false; then :
22930   $as_echo_n "(cached) " >&6
22931 else
22932   case $PYTHON in
22933   [\\/]* | ?:[\\/]*)
22934   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
22935   ;;
22936   *)
22937   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22938 for as_dir in $PATH
22939 do
22940   IFS=$as_save_IFS
22941   test -z "$as_dir" && as_dir=.
22942     for ac_exec_ext in '' $ac_executable_extensions; do
22943   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22944     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
22945     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22946     break 2
22947   fi
22948 done
22949   done
22950 IFS=$as_save_IFS
22951
22952   ;;
22953 esac
22954 fi
22955 PYTHON=$ac_cv_path_PYTHON
22956 if test -n "$PYTHON"; then
22957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
22958 $as_echo "$PYTHON" >&6; }
22959 else
22960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22961 $as_echo "no" >&6; }
22962 fi
22963
22964
22965         if test -z "$PYTHON"; then
22966            as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
22967            PYTHON_VERSION=""
22968         fi
22969
22970         #
22971         # Check for a version of Python >= 2.1.0
22972         #
22973         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
22974 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
22975         ac_supports_python_ver=`$PYTHON -c "import sys; \
22976                 ver = sys.version.split ()[0]; \
22977                 print (ver >= '2.1.0')"`
22978         if test "$ac_supports_python_ver" != "True"; then
22979                 if test -z "$PYTHON_NOVERSIONCHECK"; then
22980                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22981 $as_echo "no" >&6; }
22982                         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22983 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22984 as_fn_error $? "
22985 This version of the AC_PYTHON_DEVEL macro
22986 doesn't work properly with versions of Python before
22987 2.1.0. You may need to re-run configure, setting the
22988 variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
22989 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
22990 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
22991 to something else than an empty string.
22992
22993 See \`config.log' for more details" "$LINENO" 5; }
22994                 else
22995                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
22996 $as_echo "skip at user request" >&6; }
22997                 fi
22998         else
22999                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23000 $as_echo "yes" >&6; }
23001         fi
23002
23003         #
23004         # if the macro parameter ``version'' is set, honour it
23005         #
23006         if test -n ""; then
23007                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
23008 $as_echo_n "checking for a version of Python ... " >&6; }
23009                 ac_supports_python_ver=`$PYTHON -c "import sys; \
23010                         ver = sys.version.split ()[0]; \
23011                         print (ver )"`
23012                 if test "$ac_supports_python_ver" = "True"; then
23013                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23014 $as_echo "yes" >&6; }
23015                 else
23016                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23017 $as_echo "no" >&6; }
23018                         as_fn_error $? "this package requires Python .
23019 If you have it installed, but it isn't the default Python
23020 interpreter in your system path, please pass the PYTHON_VERSION
23021 variable to configure. See \`\`configure --help'' for reference.
23022 " "$LINENO" 5
23023                         PYTHON_VERSION=""
23024                 fi
23025         fi
23026
23027         #
23028         # Check if you have distutils, else fail
23029         #
23030         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
23031 $as_echo_n "checking for the distutils Python package... " >&6; }
23032         ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
23033         if test -z "$ac_distutils_result"; then
23034                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23035 $as_echo "yes" >&6; }
23036         else
23037                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23038 $as_echo "no" >&6; }
23039                 as_fn_error $? "cannot import Python module \"distutils\".
23040 Please check your Python installation. The error was:
23041 $ac_distutils_result" "$LINENO" 5
23042                 PYTHON_VERSION=""
23043         fi
23044
23045         #
23046         # Check for Python include path
23047         #
23048         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
23049 $as_echo_n "checking for Python include path... " >&6; }
23050         if test -z "$PYTHON_CPPFLAGS"; then
23051                 python_path=`$PYTHON -c "import distutils.sysconfig; \
23052                         print (distutils.sysconfig.get_python_inc ());"`
23053                 plat_python_path=`$PYTHON -c "import distutils.sysconfig; \
23054                         print (distutils.sysconfig.get_python_inc (plat_specific=1));"`
23055                 if test -n "${python_path}"; then
23056                         if test "${plat_python_path}" != "${python_path}"; then
23057                                 python_path="-I$python_path -I$plat_python_path"
23058                         else
23059                                 python_path="-I$python_path"
23060                         fi
23061                 fi
23062                 PYTHON_CPPFLAGS=$python_path
23063         fi
23064         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
23065 $as_echo "$PYTHON_CPPFLAGS" >&6; }
23066
23067
23068         #
23069         # Check for Python library path
23070         #
23071         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
23072 $as_echo_n "checking for Python library path... " >&6; }
23073         if test -z "$PYTHON_LDFLAGS"; then
23074                 # (makes two attempts to ensure we've got a version number
23075                 # from the interpreter)
23076                 ac_python_version=`cat<<EOD | $PYTHON -
23077
23078 # join all versioning strings, on some systems
23079 # major/minor numbers could be in different list elements
23080 from distutils.sysconfig import *
23081 e = get_config_var('VERSION')
23082 if e is not None:
23083         print(e)
23084 EOD`
23085
23086                 if test -z "$ac_python_version"; then
23087                         if test -n "$PYTHON_VERSION"; then
23088                                 ac_python_version=$PYTHON_VERSION
23089                         else
23090                                 ac_python_version=`$PYTHON -c "import sys; \
23091                                         print (sys.version[:3])"`
23092                         fi
23093                 fi
23094
23095                 # Make the versioning information available to the compiler
23096
23097                 # JW: We don't need it and it interferes with the hack
23098                 # to detect multiple Pyhton versions
23099                 #AC_DEFINE_UNQUOTED([HAVE_PYTHON], ["$ac_python_version"],
23100                 #                  [If available, contains the Python version number currently in use.])
23101
23102                 # First, the library directory:
23103                 ac_python_libdir=`cat<<EOD | $PYTHON -
23104
23105 # There should be only one
23106 import distutils.sysconfig
23107 e = distutils.sysconfig.get_config_var('LIBDIR')
23108 if e is not None:
23109         print (e)
23110 EOD`
23111
23112                 # Now, for the library:
23113                 ac_python_library=`cat<<EOD | $PYTHON -
23114
23115 import distutils.sysconfig
23116 c = distutils.sysconfig.get_config_vars()
23117 if 'LDVERSION' in c:
23118         print ('python'+c['LDVERSION'])
23119 else:
23120         print ('python'+c['VERSION'])
23121 EOD`
23122
23123                 # This small piece shamelessly adapted from PostgreSQL python macro;
23124                 # credits goes to momjian, I think. I'd like to put the right name
23125                 # in the credits, if someone can point me in the right direction... ?
23126                 #
23127                 if test -n "$ac_python_libdir" -a -n "$ac_python_library"
23128                 then
23129                         # use the official shared library
23130                         ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
23131                         PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library"
23132                 else
23133                         # old way: use libpython from python_configdir
23134                         ac_python_libdir=`$PYTHON -c \
23135                           "from distutils.sysconfig import get_python_lib as f; \
23136                           import os; \
23137                           print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
23138                         PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version"
23139                 fi
23140
23141                 if test -z "PYTHON_LDFLAGS"; then
23142                         as_fn_error $? "
23143   Cannot determine location of your Python DSO. Please check it was installed with
23144   dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
23145                         " "$LINENO" 5
23146                 fi
23147         fi
23148         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
23149 $as_echo "$PYTHON_LDFLAGS" >&6; }
23150
23151
23152         #
23153         # Check for site packages
23154         #
23155         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
23156 $as_echo_n "checking for Python site-packages path... " >&6; }
23157         if test -z "$PYTHON_SITE_PKG"; then
23158                 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
23159                         print (distutils.sysconfig.get_python_lib(0,0));"`
23160         fi
23161         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
23162 $as_echo "$PYTHON_SITE_PKG" >&6; }
23163
23164
23165         #
23166         # libraries which must be linked in when embedding
23167         #
23168         { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
23169 $as_echo_n "checking python extra libraries... " >&6; }
23170         if test -z "$PYTHON_EXTRA_LIBS"; then
23171            PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
23172                 conf = distutils.sysconfig.get_config_var; \
23173                 print (conf('LIBS') + ' ' + conf('SYSLIBS'))"`
23174         fi
23175         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
23176 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
23177
23178
23179         #
23180         # linking flags needed when embedding
23181         #
23182         { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
23183 $as_echo_n "checking python extra linking flags... " >&6; }
23184         if test -z "$PYTHON_EXTRA_LDFLAGS"; then
23185                 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
23186                         conf = distutils.sysconfig.get_config_var; \
23187                         print (conf('LINKFORSHARED'))"`
23188         fi
23189         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
23190 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
23191
23192
23193         #
23194         # final check to see if everything compiles alright
23195         #
23196         { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
23197 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
23198         # save current global flags
23199         ac_save_LIBS="$LIBS"
23200         ac_save_CPPFLAGS="$CPPFLAGS"
23201         LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
23202         CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
23203         ac_ext=c
23204 ac_cpp='$CPP $CPPFLAGS'
23205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23208
23209         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23210 /* end confdefs.h.  */
23211
23212                 #include <Python.h>
23213 int
23214 main ()
23215 {
23216 Py_Initialize();
23217   ;
23218   return 0;
23219 }
23220
23221 _ACEOF
23222 if ac_fn_c_try_link "$LINENO"; then :
23223   pythonexists=yes
23224 else
23225   pythonexists=no
23226 fi
23227 rm -f core conftest.err conftest.$ac_objext \
23228     conftest$ac_exeext conftest.$ac_ext
23229         ac_ext=c
23230 ac_cpp='$CPP $CPPFLAGS'
23231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23234
23235         # turn back to default flags
23236         CPPFLAGS="$ac_save_CPPFLAGS"
23237         LIBS="$ac_save_LIBS"
23238
23239         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
23240 $as_echo "$pythonexists" >&6; }
23241
23242         if test ! "x$pythonexists" = "xyes"; then
23243            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
23244   Could not link test program to Python. Maybe the main Python library has been
23245   installed in some non-standard library path. If so, pass it to configure,
23246   via the LDFLAGS environment variable.
23247   Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
23248   ============================================================================
23249    You probably have to install the development version of the Python package
23250    for your distribution.  The exact name of this package varies among them.
23251   ============================================================================
23252            " >&5
23253 $as_echo "$as_me: WARNING:
23254   Could not link test program to Python. Maybe the main Python library has been
23255   installed in some non-standard library path. If so, pass it to configure,
23256   via the LDFLAGS environment variable.
23257   Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
23258   ============================================================================
23259    You probably have to install the development version of the Python package
23260    for your distribution.  The exact name of this package varies among them.
23261   ============================================================================
23262            " >&2;}
23263           PYTHON_VERSION=""
23264         fi
23265
23266         #
23267         # all done!
23268         #
23269
23270                 if test "$PYTHON_VERSION"; then
23271                         PYTHONS="$(echo $PYTHONS $PYTHON)"
23272                         PYTHON_VERSIONS="$(echo $PYTHON_VERSIONS $PYTHON_VERSION)"
23273                 fi
23274
23275   fi
23276
23277
23278            unset PYTHON
23279             unset PYTHON_VERSION
23280             unset PYTHON_CPPFLAGS
23281             unset PYTHON_LDFLAGS
23282             unset PYTHON_SITE_PKG
23283             unset PYTHON_EXTRA_LIBS
23284             unset PYTHON_EXTRA_LDFLAGS
23285             unset ac_cv_path_PYTHON
23286             unset am_cv_pathless_PYTHON
23287             unset am_cv_python_version
23288             unset am_cv_python_platform
23289             unset am_cv_python_pythondir
23290             unset am_cv_python_pyexecdir
23291
23292
23293
23294
23295
23296
23297         if test -n "$PYTHON"; then
23298       # If the user set $PYTHON, use it and don't search something else.
23299       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.9" >&5
23300 $as_echo_n "checking whether $PYTHON version is >= 3.9... " >&6; }
23301       prog="import sys
23302 # split strings by '.' and convert to numeric.  Append some zeros
23303 # because we need at least 4 digits for the hex conversion.
23304 # map returns an iterator in Python 3.0 and a list in 2.x
23305 minver = list(map(int, '3.9'.split('.'))) + [0, 0, 0]
23306 minverhex = 0
23307 # xrange is not present in Python 3.0 and range returns an iterator
23308 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
23309 sys.exit(sys.hexversion < minverhex)"
23310   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
23311    ($PYTHON -c "$prog") >&5 2>&5
23312    ac_status=$?
23313    echo "$as_me:$LINENO: \$? = $ac_status" >&5
23314    (exit $ac_status); }; then :
23315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23316 $as_echo "yes" >&6; }
23317 else
23318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23319 $as_echo "no" >&6; }
23320                                as_fn_error $? "Python interpreter is too old" "$LINENO" 5
23321 fi
23322       am_display_PYTHON=$PYTHON
23323     else
23324       # Otherwise, try each interpreter until we find one that satisfies
23325       # VERSION.
23326       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.9" >&5
23327 $as_echo_n "checking for a Python interpreter with version >= 3.9... " >&6; }
23328 if ${am_cv_pathless_PYTHON+:} false; then :
23329   $as_echo_n "(cached) " >&6
23330 else
23331
23332         for am_cv_pathless_PYTHON           in python3.9 none; do
23333           test "$am_cv_pathless_PYTHON" = none && break
23334           prog="import sys
23335 # split strings by '.' and convert to numeric.  Append some zeros
23336 # because we need at least 4 digits for the hex conversion.
23337 # map returns an iterator in Python 3.0 and a list in 2.x
23338 minver = list(map(int, '3.9'.split('.'))) + [0, 0, 0]
23339 minverhex = 0
23340 # xrange is not present in Python 3.0 and range returns an iterator
23341 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
23342 sys.exit(sys.hexversion < minverhex)"
23343   if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
23344    ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
23345    ac_status=$?
23346    echo "$as_me:$LINENO: \$? = $ac_status" >&5
23347    (exit $ac_status); }; then :
23348   break
23349 fi
23350         done
23351 fi
23352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
23353 $as_echo "$am_cv_pathless_PYTHON" >&6; }
23354       # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
23355       if test "$am_cv_pathless_PYTHON" = none; then
23356         PYTHON=:
23357       else
23358         # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
23359 set dummy $am_cv_pathless_PYTHON; ac_word=$2
23360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23361 $as_echo_n "checking for $ac_word... " >&6; }
23362 if ${ac_cv_path_PYTHON+:} false; then :
23363   $as_echo_n "(cached) " >&6
23364 else
23365   case $PYTHON in
23366   [\\/]* | ?:[\\/]*)
23367   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
23368   ;;
23369   *)
23370   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23371 for as_dir in $PATH
23372 do
23373   IFS=$as_save_IFS
23374   test -z "$as_dir" && as_dir=.
23375     for ac_exec_ext in '' $ac_executable_extensions; do
23376   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23377     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
23378     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23379     break 2
23380   fi
23381 done
23382   done
23383 IFS=$as_save_IFS
23384
23385   ;;
23386 esac
23387 fi
23388 PYTHON=$ac_cv_path_PYTHON
23389 if test -n "$PYTHON"; then
23390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
23391 $as_echo "$PYTHON" >&6; }
23392 else
23393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23394 $as_echo "no" >&6; }
23395 fi
23396
23397
23398       fi
23399       am_display_PYTHON=$am_cv_pathless_PYTHON
23400     fi
23401
23402
23403   if test "$PYTHON" = :; then
23404       :
23405   else
23406
23407
23408   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
23409 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
23410 if ${am_cv_python_version+:} false; then :
23411   $as_echo_n "(cached) " >&6
23412 else
23413   am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
23414 fi
23415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
23416 $as_echo "$am_cv_python_version" >&6; }
23417   PYTHON_VERSION=$am_cv_python_version
23418
23419
23420
23421   PYTHON_PREFIX='${prefix}'
23422
23423   PYTHON_EXEC_PREFIX='${exec_prefix}'
23424
23425
23426
23427   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
23428 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
23429 if ${am_cv_python_platform+:} false; then :
23430   $as_echo_n "(cached) " >&6
23431 else
23432   am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
23433 fi
23434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
23435 $as_echo "$am_cv_python_platform" >&6; }
23436   PYTHON_PLATFORM=$am_cv_python_platform
23437
23438
23439   # Just factor out some code duplication.
23440   am_python_setup_sysconfig="\
23441 import sys
23442 # Prefer sysconfig over distutils.sysconfig, for better compatibility
23443 # with python 3.x.  See automake bug#10227.
23444 try:
23445     import sysconfig
23446 except ImportError:
23447     can_use_sysconfig = 0
23448 else:
23449     can_use_sysconfig = 1
23450 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
23451 # <https://github.com/pypa/virtualenv/issues/118>
23452 try:
23453     from platform import python_implementation
23454     if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
23455         can_use_sysconfig = 0
23456 except ImportError:
23457     pass"
23458
23459
23460             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
23461 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
23462 if ${am_cv_python_pythondir+:} false; then :
23463   $as_echo_n "(cached) " >&6
23464 else
23465   if test "x$prefix" = xNONE
23466      then
23467        am_py_prefix=$ac_default_prefix
23468      else
23469        am_py_prefix=$prefix
23470      fi
23471      am_cv_python_pythondir=`$PYTHON -c "
23472 $am_python_setup_sysconfig
23473 if can_use_sysconfig:
23474     sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
23475 else:
23476     from distutils import sysconfig
23477     sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
23478 sys.stdout.write(sitedir)"`
23479      case $am_cv_python_pythondir in
23480      $am_py_prefix*)
23481        am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
23482        am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
23483        ;;
23484      *)
23485        case $am_py_prefix in
23486          /usr|/System*) ;;
23487          *)
23488           am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
23489           ;;
23490        esac
23491        ;;
23492      esac
23493
23494 fi
23495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
23496 $as_echo "$am_cv_python_pythondir" >&6; }
23497   pythondir=$am_cv_python_pythondir
23498
23499
23500
23501   pkgpythondir=\${pythondir}/$PACKAGE
23502
23503
23504         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
23505 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
23506 if ${am_cv_python_pyexecdir+:} false; then :
23507   $as_echo_n "(cached) " >&6
23508 else
23509   if test "x$exec_prefix" = xNONE
23510      then
23511        am_py_exec_prefix=$am_py_prefix
23512      else
23513        am_py_exec_prefix=$exec_prefix
23514      fi
23515      am_cv_python_pyexecdir=`$PYTHON -c "
23516 $am_python_setup_sysconfig
23517 if can_use_sysconfig:
23518     sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
23519 else:
23520     from distutils import sysconfig
23521     sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
23522 sys.stdout.write(sitedir)"`
23523      case $am_cv_python_pyexecdir in
23524      $am_py_exec_prefix*)
23525        am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
23526        am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
23527        ;;
23528      *)
23529        case $am_py_exec_prefix in
23530          /usr|/System*) ;;
23531          *)
23532            am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
23533            ;;
23534        esac
23535        ;;
23536      esac
23537
23538 fi
23539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
23540 $as_echo "$am_cv_python_pyexecdir" >&6; }
23541   pyexecdir=$am_cv_python_pyexecdir
23542
23543
23544
23545   pkgpyexecdir=\${pyexecdir}/$PACKAGE
23546
23547
23548
23549
23550         #
23551         # Allow the use of a (user set) custom python version
23552         #
23553
23554
23555         # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
23556 set dummy python$PYTHON_VERSION; ac_word=$2
23557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23558 $as_echo_n "checking for $ac_word... " >&6; }
23559 if ${ac_cv_path_PYTHON+:} false; then :
23560   $as_echo_n "(cached) " >&6
23561 else
23562   case $PYTHON in
23563   [\\/]* | ?:[\\/]*)
23564   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
23565   ;;
23566   *)
23567   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23568 for as_dir in $PATH
23569 do
23570   IFS=$as_save_IFS
23571   test -z "$as_dir" && as_dir=.
23572     for ac_exec_ext in '' $ac_executable_extensions; do
23573   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23574     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
23575     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23576     break 2
23577   fi
23578 done
23579   done
23580 IFS=$as_save_IFS
23581
23582   ;;
23583 esac
23584 fi
23585 PYTHON=$ac_cv_path_PYTHON
23586 if test -n "$PYTHON"; then
23587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
23588 $as_echo "$PYTHON" >&6; }
23589 else
23590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23591 $as_echo "no" >&6; }
23592 fi
23593
23594
23595         if test -z "$PYTHON"; then
23596            as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
23597            PYTHON_VERSION=""
23598         fi
23599
23600         #
23601         # Check for a version of Python >= 2.1.0
23602         #
23603         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
23604 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
23605         ac_supports_python_ver=`$PYTHON -c "import sys; \
23606                 ver = sys.version.split ()[0]; \
23607                 print (ver >= '2.1.0')"`
23608         if test "$ac_supports_python_ver" != "True"; then
23609                 if test -z "$PYTHON_NOVERSIONCHECK"; then
23610                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23611 $as_echo "no" >&6; }
23612                         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23613 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23614 as_fn_error $? "
23615 This version of the AC_PYTHON_DEVEL macro
23616 doesn't work properly with versions of Python before
23617 2.1.0. You may need to re-run configure, setting the
23618 variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
23619 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
23620 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
23621 to something else than an empty string.
23622
23623 See \`config.log' for more details" "$LINENO" 5; }
23624                 else
23625                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
23626 $as_echo "skip at user request" >&6; }
23627                 fi
23628         else
23629                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23630 $as_echo "yes" >&6; }
23631         fi
23632
23633         #
23634         # if the macro parameter ``version'' is set, honour it
23635         #
23636         if test -n ""; then
23637                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
23638 $as_echo_n "checking for a version of Python ... " >&6; }
23639                 ac_supports_python_ver=`$PYTHON -c "import sys; \
23640                         ver = sys.version.split ()[0]; \
23641                         print (ver )"`
23642                 if test "$ac_supports_python_ver" = "True"; then
23643                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23644 $as_echo "yes" >&6; }
23645                 else
23646                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23647 $as_echo "no" >&6; }
23648                         as_fn_error $? "this package requires Python .
23649 If you have it installed, but it isn't the default Python
23650 interpreter in your system path, please pass the PYTHON_VERSION
23651 variable to configure. See \`\`configure --help'' for reference.
23652 " "$LINENO" 5
23653                         PYTHON_VERSION=""
23654                 fi
23655         fi
23656
23657         #
23658         # Check if you have distutils, else fail
23659         #
23660         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
23661 $as_echo_n "checking for the distutils Python package... " >&6; }
23662         ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
23663         if test -z "$ac_distutils_result"; then
23664                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23665 $as_echo "yes" >&6; }
23666         else
23667                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23668 $as_echo "no" >&6; }
23669                 as_fn_error $? "cannot import Python module \"distutils\".
23670 Please check your Python installation. The error was:
23671 $ac_distutils_result" "$LINENO" 5
23672                 PYTHON_VERSION=""
23673         fi
23674
23675         #
23676         # Check for Python include path
23677         #
23678         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
23679 $as_echo_n "checking for Python include path... " >&6; }
23680         if test -z "$PYTHON_CPPFLAGS"; then
23681                 python_path=`$PYTHON -c "import distutils.sysconfig; \
23682                         print (distutils.sysconfig.get_python_inc ());"`
23683                 plat_python_path=`$PYTHON -c "import distutils.sysconfig; \
23684                         print (distutils.sysconfig.get_python_inc (plat_specific=1));"`
23685                 if test -n "${python_path}"; then
23686                         if test "${plat_python_path}" != "${python_path}"; then
23687                                 python_path="-I$python_path -I$plat_python_path"
23688                         else
23689                                 python_path="-I$python_path"
23690                         fi
23691                 fi
23692                 PYTHON_CPPFLAGS=$python_path
23693         fi
23694         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
23695 $as_echo "$PYTHON_CPPFLAGS" >&6; }
23696
23697
23698         #
23699         # Check for Python library path
23700         #
23701         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
23702 $as_echo_n "checking for Python library path... " >&6; }
23703         if test -z "$PYTHON_LDFLAGS"; then
23704                 # (makes two attempts to ensure we've got a version number
23705                 # from the interpreter)
23706                 ac_python_version=`cat<<EOD | $PYTHON -
23707
23708 # join all versioning strings, on some systems
23709 # major/minor numbers could be in different list elements
23710 from distutils.sysconfig import *
23711 e = get_config_var('VERSION')
23712 if e is not None:
23713         print(e)
23714 EOD`
23715
23716                 if test -z "$ac_python_version"; then
23717                         if test -n "$PYTHON_VERSION"; then
23718                                 ac_python_version=$PYTHON_VERSION
23719                         else
23720                                 ac_python_version=`$PYTHON -c "import sys; \
23721                                         print (sys.version[:3])"`
23722                         fi
23723                 fi
23724
23725                 # Make the versioning information available to the compiler
23726
23727                 # JW: We don't need it and it interferes with the hack
23728                 # to detect multiple Pyhton versions
23729                 #AC_DEFINE_UNQUOTED([HAVE_PYTHON], ["$ac_python_version"],
23730                 #                  [If available, contains the Python version number currently in use.])
23731
23732                 # First, the library directory:
23733                 ac_python_libdir=`cat<<EOD | $PYTHON -
23734
23735 # There should be only one
23736 import distutils.sysconfig
23737 e = distutils.sysconfig.get_config_var('LIBDIR')
23738 if e is not None:
23739         print (e)
23740 EOD`
23741
23742                 # Now, for the library:
23743                 ac_python_library=`cat<<EOD | $PYTHON -
23744
23745 import distutils.sysconfig
23746 c = distutils.sysconfig.get_config_vars()
23747 if 'LDVERSION' in c:
23748         print ('python'+c['LDVERSION'])
23749 else:
23750         print ('python'+c['VERSION'])
23751 EOD`
23752
23753                 # This small piece shamelessly adapted from PostgreSQL python macro;
23754                 # credits goes to momjian, I think. I'd like to put the right name
23755                 # in the credits, if someone can point me in the right direction... ?
23756                 #
23757                 if test -n "$ac_python_libdir" -a -n "$ac_python_library"
23758                 then
23759                         # use the official shared library
23760                         ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
23761                         PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library"
23762                 else
23763                         # old way: use libpython from python_configdir
23764                         ac_python_libdir=`$PYTHON -c \
23765                           "from distutils.sysconfig import get_python_lib as f; \
23766                           import os; \
23767                           print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
23768                         PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version"
23769                 fi
23770
23771                 if test -z "PYTHON_LDFLAGS"; then
23772                         as_fn_error $? "
23773   Cannot determine location of your Python DSO. Please check it was installed with
23774   dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
23775                         " "$LINENO" 5
23776                 fi
23777         fi
23778         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
23779 $as_echo "$PYTHON_LDFLAGS" >&6; }
23780
23781
23782         #
23783         # Check for site packages
23784         #
23785         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
23786 $as_echo_n "checking for Python site-packages path... " >&6; }
23787         if test -z "$PYTHON_SITE_PKG"; then
23788                 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
23789                         print (distutils.sysconfig.get_python_lib(0,0));"`
23790         fi
23791         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
23792 $as_echo "$PYTHON_SITE_PKG" >&6; }
23793
23794
23795         #
23796         # libraries which must be linked in when embedding
23797         #
23798         { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
23799 $as_echo_n "checking python extra libraries... " >&6; }
23800         if test -z "$PYTHON_EXTRA_LIBS"; then
23801            PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
23802                 conf = distutils.sysconfig.get_config_var; \
23803                 print (conf('LIBS') + ' ' + conf('SYSLIBS'))"`
23804         fi
23805         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
23806 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
23807
23808
23809         #
23810         # linking flags needed when embedding
23811         #
23812         { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
23813 $as_echo_n "checking python extra linking flags... " >&6; }
23814         if test -z "$PYTHON_EXTRA_LDFLAGS"; then
23815                 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
23816                         conf = distutils.sysconfig.get_config_var; \
23817                         print (conf('LINKFORSHARED'))"`
23818         fi
23819         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
23820 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
23821
23822
23823         #
23824         # final check to see if everything compiles alright
23825         #
23826         { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
23827 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
23828         # save current global flags
23829         ac_save_LIBS="$LIBS"
23830         ac_save_CPPFLAGS="$CPPFLAGS"
23831         LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
23832         CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
23833         ac_ext=c
23834 ac_cpp='$CPP $CPPFLAGS'
23835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23838
23839         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23840 /* end confdefs.h.  */
23841
23842                 #include <Python.h>
23843 int
23844 main ()
23845 {
23846 Py_Initialize();
23847   ;
23848   return 0;
23849 }
23850
23851 _ACEOF
23852 if ac_fn_c_try_link "$LINENO"; then :
23853   pythonexists=yes
23854 else
23855   pythonexists=no
23856 fi
23857 rm -f core conftest.err conftest.$ac_objext \
23858     conftest$ac_exeext conftest.$ac_ext
23859         ac_ext=c
23860 ac_cpp='$CPP $CPPFLAGS'
23861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23864
23865         # turn back to default flags
23866         CPPFLAGS="$ac_save_CPPFLAGS"
23867         LIBS="$ac_save_LIBS"
23868
23869         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
23870 $as_echo "$pythonexists" >&6; }
23871
23872         if test ! "x$pythonexists" = "xyes"; then
23873            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
23874   Could not link test program to Python. Maybe the main Python library has been
23875   installed in some non-standard library path. If so, pass it to configure,
23876   via the LDFLAGS environment variable.
23877   Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
23878   ============================================================================
23879    You probably have to install the development version of the Python package
23880    for your distribution.  The exact name of this package varies among them.
23881   ============================================================================
23882            " >&5
23883 $as_echo "$as_me: WARNING:
23884   Could not link test program to Python. Maybe the main Python library has been
23885   installed in some non-standard library path. If so, pass it to configure,
23886   via the LDFLAGS environment variable.
23887   Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
23888   ============================================================================
23889    You probably have to install the development version of the Python package
23890    for your distribution.  The exact name of this package varies among them.
23891   ============================================================================
23892            " >&2;}
23893           PYTHON_VERSION=""
23894         fi
23895
23896         #
23897         # all done!
23898         #
23899
23900                 if test "$PYTHON_VERSION"; then
23901                         PYTHONS="$(echo $PYTHONS $PYTHON)"
23902                         PYTHON_VERSIONS="$(echo $PYTHON_VERSIONS $PYTHON_VERSION)"
23903                 fi
23904
23905   fi
23906
23907
23908            unset PYTHON
23909             unset PYTHON_VERSION
23910             unset PYTHON_CPPFLAGS
23911             unset PYTHON_LDFLAGS
23912             unset PYTHON_SITE_PKG
23913             unset PYTHON_EXTRA_LIBS
23914             unset PYTHON_EXTRA_LDFLAGS
23915             unset ac_cv_path_PYTHON
23916             unset am_cv_pathless_PYTHON
23917             unset am_cv_python_version
23918             unset am_cv_python_platform
23919             unset am_cv_python_pythondir
23920             unset am_cv_python_pyexecdir
23921
23922
23923
23924
23925
23926
23927         if test -n "$PYTHON"; then
23928       # If the user set $PYTHON, use it and don't search something else.
23929       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= all" >&5
23930 $as_echo_n "checking whether $PYTHON version is >= all... " >&6; }
23931       prog="import sys
23932 # split strings by '.' and convert to numeric.  Append some zeros
23933 # because we need at least 4 digits for the hex conversion.
23934 # map returns an iterator in Python 3.0 and a list in 2.x
23935 minver = list(map(int, 'all'.split('.'))) + [0, 0, 0]
23936 minverhex = 0
23937 # xrange is not present in Python 3.0 and range returns an iterator
23938 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
23939 sys.exit(sys.hexversion < minverhex)"
23940   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
23941    ($PYTHON -c "$prog") >&5 2>&5
23942    ac_status=$?
23943    echo "$as_me:$LINENO: \$? = $ac_status" >&5
23944    (exit $ac_status); }; then :
23945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23946 $as_echo "yes" >&6; }
23947 else
23948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23949 $as_echo "no" >&6; }
23950                                as_fn_error $? "Python interpreter is too old" "$LINENO" 5
23951 fi
23952       am_display_PYTHON=$PYTHON
23953     else
23954       # Otherwise, try each interpreter until we find one that satisfies
23955       # VERSION.
23956       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= all" >&5
23957 $as_echo_n "checking for a Python interpreter with version >= all... " >&6; }
23958 if ${am_cv_pathless_PYTHON+:} false; then :
23959   $as_echo_n "(cached) " >&6
23960 else
23961
23962         for am_cv_pathless_PYTHON           in pythonall none; do
23963           test "$am_cv_pathless_PYTHON" = none && break
23964           prog="import sys
23965 # split strings by '.' and convert to numeric.  Append some zeros
23966 # because we need at least 4 digits for the hex conversion.
23967 # map returns an iterator in Python 3.0 and a list in 2.x
23968 minver = list(map(int, 'all'.split('.'))) + [0, 0, 0]
23969 minverhex = 0
23970 # xrange is not present in Python 3.0 and range returns an iterator
23971 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
23972 sys.exit(sys.hexversion < minverhex)"
23973   if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
23974    ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
23975    ac_status=$?
23976    echo "$as_me:$LINENO: \$? = $ac_status" >&5
23977    (exit $ac_status); }; then :
23978   break
23979 fi
23980         done
23981 fi
23982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
23983 $as_echo "$am_cv_pathless_PYTHON" >&6; }
23984       # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
23985       if test "$am_cv_pathless_PYTHON" = none; then
23986         PYTHON=:
23987       else
23988         # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
23989 set dummy $am_cv_pathless_PYTHON; ac_word=$2
23990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23991 $as_echo_n "checking for $ac_word... " >&6; }
23992 if ${ac_cv_path_PYTHON+:} false; then :
23993   $as_echo_n "(cached) " >&6
23994 else
23995   case $PYTHON in
23996   [\\/]* | ?:[\\/]*)
23997   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
23998   ;;
23999   *)
24000   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24001 for as_dir in $PATH
24002 do
24003   IFS=$as_save_IFS
24004   test -z "$as_dir" && as_dir=.
24005     for ac_exec_ext in '' $ac_executable_extensions; do
24006   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24007     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
24008     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24009     break 2
24010   fi
24011 done
24012   done
24013 IFS=$as_save_IFS
24014
24015   ;;
24016 esac
24017 fi
24018 PYTHON=$ac_cv_path_PYTHON
24019 if test -n "$PYTHON"; then
24020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
24021 $as_echo "$PYTHON" >&6; }
24022 else
24023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24024 $as_echo "no" >&6; }
24025 fi
24026
24027
24028       fi
24029       am_display_PYTHON=$am_cv_pathless_PYTHON
24030     fi
24031
24032
24033   if test "$PYTHON" = :; then
24034       :
24035   else
24036
24037
24038   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
24039 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
24040 if ${am_cv_python_version+:} false; then :
24041   $as_echo_n "(cached) " >&6
24042 else
24043   am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
24044 fi
24045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
24046 $as_echo "$am_cv_python_version" >&6; }
24047   PYTHON_VERSION=$am_cv_python_version
24048
24049
24050
24051   PYTHON_PREFIX='${prefix}'
24052
24053   PYTHON_EXEC_PREFIX='${exec_prefix}'
24054
24055
24056
24057   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
24058 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
24059 if ${am_cv_python_platform+:} false; then :
24060   $as_echo_n "(cached) " >&6
24061 else
24062   am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
24063 fi
24064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
24065 $as_echo "$am_cv_python_platform" >&6; }
24066   PYTHON_PLATFORM=$am_cv_python_platform
24067
24068
24069   # Just factor out some code duplication.
24070   am_python_setup_sysconfig="\
24071 import sys
24072 # Prefer sysconfig over distutils.sysconfig, for better compatibility
24073 # with python 3.x.  See automake bug#10227.
24074 try:
24075     import sysconfig
24076 except ImportError:
24077     can_use_sysconfig = 0
24078 else:
24079     can_use_sysconfig = 1
24080 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
24081 # <https://github.com/pypa/virtualenv/issues/118>
24082 try:
24083     from platform import python_implementation
24084     if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
24085         can_use_sysconfig = 0
24086 except ImportError:
24087     pass"
24088
24089
24090             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
24091 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
24092 if ${am_cv_python_pythondir+:} false; then :
24093   $as_echo_n "(cached) " >&6
24094 else
24095   if test "x$prefix" = xNONE
24096      then
24097        am_py_prefix=$ac_default_prefix
24098      else
24099        am_py_prefix=$prefix
24100      fi
24101      am_cv_python_pythondir=`$PYTHON -c "
24102 $am_python_setup_sysconfig
24103 if can_use_sysconfig:
24104     sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
24105 else:
24106     from distutils import sysconfig
24107     sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
24108 sys.stdout.write(sitedir)"`
24109      case $am_cv_python_pythondir in
24110      $am_py_prefix*)
24111        am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
24112        am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
24113        ;;
24114      *)
24115        case $am_py_prefix in
24116          /usr|/System*) ;;
24117          *)
24118           am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
24119           ;;
24120        esac
24121        ;;
24122      esac
24123
24124 fi
24125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
24126 $as_echo "$am_cv_python_pythondir" >&6; }
24127   pythondir=$am_cv_python_pythondir
24128
24129
24130
24131   pkgpythondir=\${pythondir}/$PACKAGE
24132
24133
24134         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
24135 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
24136 if ${am_cv_python_pyexecdir+:} false; then :
24137   $as_echo_n "(cached) " >&6
24138 else
24139   if test "x$exec_prefix" = xNONE
24140      then
24141        am_py_exec_prefix=$am_py_prefix
24142      else
24143        am_py_exec_prefix=$exec_prefix
24144      fi
24145      am_cv_python_pyexecdir=`$PYTHON -c "
24146 $am_python_setup_sysconfig
24147 if can_use_sysconfig:
24148     sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
24149 else:
24150     from distutils import sysconfig
24151     sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
24152 sys.stdout.write(sitedir)"`
24153      case $am_cv_python_pyexecdir in
24154      $am_py_exec_prefix*)
24155        am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
24156        am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
24157        ;;
24158      *)
24159        case $am_py_exec_prefix in
24160          /usr|/System*) ;;
24161          *)
24162            am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
24163            ;;
24164        esac
24165        ;;
24166      esac
24167
24168 fi
24169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
24170 $as_echo "$am_cv_python_pyexecdir" >&6; }
24171   pyexecdir=$am_cv_python_pyexecdir
24172
24173
24174
24175   pkgpyexecdir=\${pyexecdir}/$PACKAGE
24176
24177
24178
24179
24180         #
24181         # Allow the use of a (user set) custom python version
24182         #
24183
24184
24185         # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
24186 set dummy python$PYTHON_VERSION; ac_word=$2
24187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24188 $as_echo_n "checking for $ac_word... " >&6; }
24189 if ${ac_cv_path_PYTHON+:} false; then :
24190   $as_echo_n "(cached) " >&6
24191 else
24192   case $PYTHON in
24193   [\\/]* | ?:[\\/]*)
24194   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
24195   ;;
24196   *)
24197   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24198 for as_dir in $PATH
24199 do
24200   IFS=$as_save_IFS
24201   test -z "$as_dir" && as_dir=.
24202     for ac_exec_ext in '' $ac_executable_extensions; do
24203   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24204     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
24205     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24206     break 2
24207   fi
24208 done
24209   done
24210 IFS=$as_save_IFS
24211
24212   ;;
24213 esac
24214 fi
24215 PYTHON=$ac_cv_path_PYTHON
24216 if test -n "$PYTHON"; then
24217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
24218 $as_echo "$PYTHON" >&6; }
24219 else
24220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24221 $as_echo "no" >&6; }
24222 fi
24223
24224
24225         if test -z "$PYTHON"; then
24226            as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
24227            PYTHON_VERSION=""
24228         fi
24229
24230         #
24231         # Check for a version of Python >= 2.1.0
24232         #
24233         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
24234 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
24235         ac_supports_python_ver=`$PYTHON -c "import sys; \
24236                 ver = sys.version.split ()[0]; \
24237                 print (ver >= '2.1.0')"`
24238         if test "$ac_supports_python_ver" != "True"; then
24239                 if test -z "$PYTHON_NOVERSIONCHECK"; then
24240                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24241 $as_echo "no" >&6; }
24242                         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24243 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24244 as_fn_error $? "
24245 This version of the AC_PYTHON_DEVEL macro
24246 doesn't work properly with versions of Python before
24247 2.1.0. You may need to re-run configure, setting the
24248 variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
24249 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
24250 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
24251 to something else than an empty string.
24252
24253 See \`config.log' for more details" "$LINENO" 5; }
24254                 else
24255                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
24256 $as_echo "skip at user request" >&6; }
24257                 fi
24258         else
24259                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24260 $as_echo "yes" >&6; }
24261         fi
24262
24263         #
24264         # if the macro parameter ``version'' is set, honour it
24265         #
24266         if test -n ""; then
24267                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
24268 $as_echo_n "checking for a version of Python ... " >&6; }
24269                 ac_supports_python_ver=`$PYTHON -c "import sys; \
24270                         ver = sys.version.split ()[0]; \
24271                         print (ver )"`
24272                 if test "$ac_supports_python_ver" = "True"; then
24273                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24274 $as_echo "yes" >&6; }
24275                 else
24276                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24277 $as_echo "no" >&6; }
24278                         as_fn_error $? "this package requires Python .
24279 If you have it installed, but it isn't the default Python
24280 interpreter in your system path, please pass the PYTHON_VERSION
24281 variable to configure. See \`\`configure --help'' for reference.
24282 " "$LINENO" 5
24283                         PYTHON_VERSION=""
24284                 fi
24285         fi
24286
24287         #
24288         # Check if you have distutils, else fail
24289         #
24290         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
24291 $as_echo_n "checking for the distutils Python package... " >&6; }
24292         ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
24293         if test -z "$ac_distutils_result"; then
24294                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24295 $as_echo "yes" >&6; }
24296         else
24297                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24298 $as_echo "no" >&6; }
24299                 as_fn_error $? "cannot import Python module \"distutils\".
24300 Please check your Python installation. The error was:
24301 $ac_distutils_result" "$LINENO" 5
24302                 PYTHON_VERSION=""
24303         fi
24304
24305         #
24306         # Check for Python include path
24307         #
24308         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
24309 $as_echo_n "checking for Python include path... " >&6; }
24310         if test -z "$PYTHON_CPPFLAGS"; then
24311                 python_path=`$PYTHON -c "import distutils.sysconfig; \
24312                         print (distutils.sysconfig.get_python_inc ());"`
24313                 plat_python_path=`$PYTHON -c "import distutils.sysconfig; \
24314                         print (distutils.sysconfig.get_python_inc (plat_specific=1));"`
24315                 if test -n "${python_path}"; then
24316                         if test "${plat_python_path}" != "${python_path}"; then
24317                                 python_path="-I$python_path -I$plat_python_path"
24318                         else
24319                                 python_path="-I$python_path"
24320                         fi
24321                 fi
24322                 PYTHON_CPPFLAGS=$python_path
24323         fi
24324         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
24325 $as_echo "$PYTHON_CPPFLAGS" >&6; }
24326
24327
24328         #
24329         # Check for Python library path
24330         #
24331         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
24332 $as_echo_n "checking for Python library path... " >&6; }
24333         if test -z "$PYTHON_LDFLAGS"; then
24334                 # (makes two attempts to ensure we've got a version number
24335                 # from the interpreter)
24336                 ac_python_version=`cat<<EOD | $PYTHON -
24337
24338 # join all versioning strings, on some systems
24339 # major/minor numbers could be in different list elements
24340 from distutils.sysconfig import *
24341 e = get_config_var('VERSION')
24342 if e is not None:
24343         print(e)
24344 EOD`
24345
24346                 if test -z "$ac_python_version"; then
24347                         if test -n "$PYTHON_VERSION"; then
24348                                 ac_python_version=$PYTHON_VERSION
24349                         else
24350                                 ac_python_version=`$PYTHON -c "import sys; \
24351                                         print (sys.version[:3])"`
24352                         fi
24353                 fi
24354
24355                 # Make the versioning information available to the compiler
24356
24357                 # JW: We don't need it and it interferes with the hack
24358                 # to detect multiple Pyhton versions
24359                 #AC_DEFINE_UNQUOTED([HAVE_PYTHON], ["$ac_python_version"],
24360                 #                  [If available, contains the Python version number currently in use.])
24361
24362                 # First, the library directory:
24363                 ac_python_libdir=`cat<<EOD | $PYTHON -
24364
24365 # There should be only one
24366 import distutils.sysconfig
24367 e = distutils.sysconfig.get_config_var('LIBDIR')
24368 if e is not None:
24369         print (e)
24370 EOD`
24371
24372                 # Now, for the library:
24373                 ac_python_library=`cat<<EOD | $PYTHON -
24374
24375 import distutils.sysconfig
24376 c = distutils.sysconfig.get_config_vars()
24377 if 'LDVERSION' in c:
24378         print ('python'+c['LDVERSION'])
24379 else:
24380         print ('python'+c['VERSION'])
24381 EOD`
24382
24383                 # This small piece shamelessly adapted from PostgreSQL python macro;
24384                 # credits goes to momjian, I think. I'd like to put the right name
24385                 # in the credits, if someone can point me in the right direction... ?
24386                 #
24387                 if test -n "$ac_python_libdir" -a -n "$ac_python_library"
24388                 then
24389                         # use the official shared library
24390                         ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
24391                         PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library"
24392                 else
24393                         # old way: use libpython from python_configdir
24394                         ac_python_libdir=`$PYTHON -c \
24395                           "from distutils.sysconfig import get_python_lib as f; \
24396                           import os; \
24397                           print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
24398                         PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version"
24399                 fi
24400
24401                 if test -z "PYTHON_LDFLAGS"; then
24402                         as_fn_error $? "
24403   Cannot determine location of your Python DSO. Please check it was installed with
24404   dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
24405                         " "$LINENO" 5
24406                 fi
24407         fi
24408         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
24409 $as_echo "$PYTHON_LDFLAGS" >&6; }
24410
24411
24412         #
24413         # Check for site packages
24414         #
24415         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
24416 $as_echo_n "checking for Python site-packages path... " >&6; }
24417         if test -z "$PYTHON_SITE_PKG"; then
24418                 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
24419                         print (distutils.sysconfig.get_python_lib(0,0));"`
24420         fi
24421         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
24422 $as_echo "$PYTHON_SITE_PKG" >&6; }
24423
24424
24425         #
24426         # libraries which must be linked in when embedding
24427         #
24428         { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
24429 $as_echo_n "checking python extra libraries... " >&6; }
24430         if test -z "$PYTHON_EXTRA_LIBS"; then
24431            PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
24432                 conf = distutils.sysconfig.get_config_var; \
24433                 print (conf('LIBS') + ' ' + conf('SYSLIBS'))"`
24434         fi
24435         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
24436 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
24437
24438
24439         #
24440         # linking flags needed when embedding
24441         #
24442         { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
24443 $as_echo_n "checking python extra linking flags... " >&6; }
24444         if test -z "$PYTHON_EXTRA_LDFLAGS"; then
24445                 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
24446                         conf = distutils.sysconfig.get_config_var; \
24447                         print (conf('LINKFORSHARED'))"`
24448         fi
24449         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
24450 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
24451
24452
24453         #
24454         # final check to see if everything compiles alright
24455         #
24456         { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
24457 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
24458         # save current global flags
24459         ac_save_LIBS="$LIBS"
24460         ac_save_CPPFLAGS="$CPPFLAGS"
24461         LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
24462         CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
24463         ac_ext=c
24464 ac_cpp='$CPP $CPPFLAGS'
24465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24468
24469         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24470 /* end confdefs.h.  */
24471
24472                 #include <Python.h>
24473 int
24474 main ()
24475 {
24476 Py_Initialize();
24477   ;
24478   return 0;
24479 }
24480
24481 _ACEOF
24482 if ac_fn_c_try_link "$LINENO"; then :
24483   pythonexists=yes
24484 else
24485   pythonexists=no
24486 fi
24487 rm -f core conftest.err conftest.$ac_objext \
24488     conftest$ac_exeext conftest.$ac_ext
24489         ac_ext=c
24490 ac_cpp='$CPP $CPPFLAGS'
24491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24494
24495         # turn back to default flags
24496         CPPFLAGS="$ac_save_CPPFLAGS"
24497         LIBS="$ac_save_LIBS"
24498
24499         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
24500 $as_echo "$pythonexists" >&6; }
24501
24502         if test ! "x$pythonexists" = "xyes"; then
24503            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
24504   Could not link test program to Python. Maybe the main Python library has been
24505   installed in some non-standard library path. If so, pass it to configure,
24506   via the LDFLAGS environment variable.
24507   Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
24508   ============================================================================
24509    You probably have to install the development version of the Python package
24510    for your distribution.  The exact name of this package varies among them.
24511   ============================================================================
24512            " >&5
24513 $as_echo "$as_me: WARNING:
24514   Could not link test program to Python. Maybe the main Python library has been
24515   installed in some non-standard library path. If so, pass it to configure,
24516   via the LDFLAGS environment variable.
24517   Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
24518   ============================================================================
24519    You probably have to install the development version of the Python package
24520    for your distribution.  The exact name of this package varies among them.
24521   ============================================================================
24522            " >&2;}
24523           PYTHON_VERSION=""
24524         fi
24525
24526         #
24527         # all done!
24528         #
24529
24530                 if test "$PYTHON_VERSION"; then
24531                         PYTHONS="$(echo $PYTHONS $PYTHON)"
24532                         PYTHON_VERSIONS="$(echo $PYTHON_VERSIONS $PYTHON_VERSION)"
24533                 fi
24534
24535   fi
24536
24537
24538
24539         fi
24540
24541         # Recover some values lost in the second attempt to find Python.
24542         PYTHON="$(echo $PYTHONS | cut -d ' ' -f 1)"
24543         PYTHON_VERSION="$(echo $PYTHON_VERSIONS | cut -d ' ' -f 1)"
24544
24545         # Remove duplicates.
24546         PYTHONS="$(echo $PYTHONS | tr '[:space:]' '\n' | sort | uniq | tr '\n' ' ' | sed -e 's/ $//')"
24547         PYTHON_VERSIONS="$(echo $PYTHON_VERSIONS | tr '[:space:]' '\n' | sort | uniq | tr '\n' ' ' | sed -e 's/ $//')"
24548
24549         if test "$PYTHON_VERSIONS"; then
24550            enabled_languages_v=$(echo $enabled_languages | sed -Ee "s/python[23]?/python ($PYTHON_VERSIONS)/")
24551            enabled_languages=$(echo $enabled_languages | sed -Ee "s/python[23]?/python/")
24552         else
24553             if test "$explicit_languages" = "1"; then
24554                 as_fn_error $? "
24555 ***
24556 *** Please install the python development packages.
24557 ***" "$LINENO" 5
24558             else
24559                 enabled_languages=$(echo $enabled_languages | sed 's/python//')
24560             fi
24561         fi
24562
24563         PYTHONS=$PYTHONS
24564
24565     fi
24566 fi
24567
24568 ENABLED_LANGUAGES=$enabled_languages
24569
24570
24571 #
24572 # Provide information about the build.
24573 #
24574 BUILD_REVISION="bb988077"
24575
24576
24577 cat >>confdefs.h <<_ACEOF
24578 #define BUILD_REVISION "$BUILD_REVISION"
24579 _ACEOF
24580
24581
24582 BUILD_VERSION=`echo "$PACKAGE_VERSION" | sed 's/\([0-9.]*\).*/\1./'`
24583 BUILD_VERSION="${BUILD_VERSION}48024"
24584 BUILD_FILEVERSION=`echo "${BUILD_VERSION}" | tr . ,`
24585
24586
24587
24588 # Check whether --enable-build-timestamp was given.
24589 if test "${enable_build_timestamp+set}" = set; then :
24590   enableval=$enable_build_timestamp; if test "$enableval" = "yes"; then
24591         BUILD_TIMESTAMP=`date -u +%Y-%m-%dT%H:%M+0000 2>/dev/null || date`
24592       else
24593         BUILD_TIMESTAMP="$enableval"
24594       fi
24595 else
24596   BUILD_TIMESTAMP="<none>"
24597 fi
24598
24599
24600
24601 cat >>confdefs.h <<_ACEOF
24602 #define BUILD_TIMESTAMP "$BUILD_TIMESTAMP"
24603 _ACEOF
24604
24605
24606
24607 #
24608 # Options to disable some regression tests
24609 #
24610 run_gpgconf_test="yes"
24611 # Check whether --enable-gpgconf-test was given.
24612 if test "${enable_gpgconf_test+set}" = set; then :
24613   enableval=$enable_gpgconf_test; run_gpgconf_test=$enableval
24614 fi
24615
24616  if test "$run_gpgconf_test" = "yes"; then
24617   RUN_GPGCONF_TESTS_TRUE=
24618   RUN_GPGCONF_TESTS_FALSE='#'
24619 else
24620   RUN_GPGCONF_TESTS_TRUE='#'
24621   RUN_GPGCONF_TESTS_FALSE=
24622 fi
24623
24624
24625 run_gpg_test="yes"
24626 # Check whether --enable-gpg-test was given.
24627 if test "${enable_gpg_test+set}" = set; then :
24628   enableval=$enable_gpg_test; run_gpg_test=$enableval
24629 fi
24630
24631  if test "$run_gpg_test" = "yes"; then
24632   RUN_GPG_TESTS_TRUE=
24633   RUN_GPG_TESTS_FALSE='#'
24634 else
24635   RUN_GPG_TESTS_TRUE='#'
24636   RUN_GPG_TESTS_FALSE=
24637 fi
24638
24639
24640 run_gpgsm_test="yes"
24641 # Check whether --enable-gpgsm-test was given.
24642 if test "${enable_gpgsm_test+set}" = set; then :
24643   enableval=$enable_gpgsm_test; run_gpgsm_test=$enableval
24644 fi
24645
24646  if test "$run_gpgsm_test" = "yes"; then
24647   RUN_GPGSM_TESTS_TRUE=
24648   RUN_GPGSM_TESTS_FALSE='#'
24649 else
24650   RUN_GPGSM_TESTS_TRUE='#'
24651   RUN_GPGSM_TESTS_FALSE=
24652 fi
24653
24654
24655 run_g13_test="yes"
24656 # Check whether --enable-g13-test was given.
24657 if test "${enable_g13_test+set}" = set; then :
24658   enableval=$enable_g13_test; run_g13_test=$enableval
24659 fi
24660
24661  if test "$run_g13_test" = "yes"; then
24662   RUN_G13_TESTS_TRUE=
24663   RUN_G13_TESTS_FALSE='#'
24664 else
24665   RUN_G13_TESTS_TRUE='#'
24666   RUN_G13_TESTS_FALSE=
24667 fi
24668
24669
24670
24671 # Checks for header files.
24672
24673
24674
24675   for ac_header in $ac_header_list
24676 do :
24677   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24678 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24679 "
24680 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24681   cat >>confdefs.h <<_ACEOF
24682 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24683 _ACEOF
24684
24685 fi
24686
24687 done
24688
24689
24690
24691
24692
24693
24694
24695
24696
24697
24698
24699
24700
24701
24702
24703
24704
24705
24706
24707
24708
24709
24710 # Type checks.
24711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
24712 $as_echo_n "checking for inline... " >&6; }
24713 if ${ac_cv_c_inline+:} false; then :
24714   $as_echo_n "(cached) " >&6
24715 else
24716   ac_cv_c_inline=no
24717 for ac_kw in inline __inline__ __inline; do
24718   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24719 /* end confdefs.h.  */
24720 #ifndef __cplusplus
24721 typedef int foo_t;
24722 static $ac_kw foo_t static_foo () {return 0; }
24723 $ac_kw foo_t foo () {return 0; }
24724 #endif
24725
24726 _ACEOF
24727 if ac_fn_c_try_compile "$LINENO"; then :
24728   ac_cv_c_inline=$ac_kw
24729 fi
24730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24731   test "$ac_cv_c_inline" != no && break
24732 done
24733
24734 fi
24735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
24736 $as_echo "$ac_cv_c_inline" >&6; }
24737
24738 case $ac_cv_c_inline in
24739   inline | yes) ;;
24740   *)
24741     case $ac_cv_c_inline in
24742       no) ac_val=;;
24743       *) ac_val=$ac_cv_c_inline;;
24744     esac
24745     cat >>confdefs.h <<_ACEOF
24746 #ifndef __cplusplus
24747 #define inline $ac_val
24748 #endif
24749 _ACEOF
24750     ;;
24751 esac
24752
24753 # The cast to long int works around a bug in the HP C Compiler
24754 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24755 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24756 # This bug is HP SR number 8606223364.
24757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
24758 $as_echo_n "checking size of unsigned int... " >&6; }
24759 if ${ac_cv_sizeof_unsigned_int+:} false; then :
24760   $as_echo_n "(cached) " >&6
24761 else
24762   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "$ac_includes_default"; then :
24763
24764 else
24765   if test "$ac_cv_type_unsigned_int" = yes; then
24766      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24767 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24768 as_fn_error 77 "cannot compute sizeof (unsigned int)
24769 See \`config.log' for more details" "$LINENO" 5; }
24770    else
24771      ac_cv_sizeof_unsigned_int=0
24772    fi
24773 fi
24774
24775 fi
24776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
24777 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
24778
24779
24780
24781 cat >>confdefs.h <<_ACEOF
24782 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
24783 _ACEOF
24784
24785
24786 # Check whether --enable-largefile was given.
24787 if test "${enable_largefile+set}" = set; then :
24788   enableval=$enable_largefile;
24789 fi
24790
24791 if test "$enable_largefile" != no; then
24792
24793   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
24794 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
24795 if ${ac_cv_sys_largefile_CC+:} false; then :
24796   $as_echo_n "(cached) " >&6
24797 else
24798   ac_cv_sys_largefile_CC=no
24799      if test "$GCC" != yes; then
24800        ac_save_CC=$CC
24801        while :; do
24802          # IRIX 6.2 and later do not support large files by default,
24803          # so use the C compiler's -n32 option if that helps.
24804          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24805 /* end confdefs.h.  */
24806 #include <sys/types.h>
24807  /* Check that off_t can represent 2**63 - 1 correctly.
24808     We can't simply define LARGE_OFF_T to be 9223372036854775807,
24809     since some C++ compilers masquerading as C compilers
24810     incorrectly reject 9223372036854775807.  */
24811 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
24812   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24813                        && LARGE_OFF_T % 2147483647 == 1)
24814                       ? 1 : -1];
24815 int
24816 main ()
24817 {
24818
24819   ;
24820   return 0;
24821 }
24822 _ACEOF
24823          if ac_fn_c_try_compile "$LINENO"; then :
24824   break
24825 fi
24826 rm -f core conftest.err conftest.$ac_objext
24827          CC="$CC -n32"
24828          if ac_fn_c_try_compile "$LINENO"; then :
24829   ac_cv_sys_largefile_CC=' -n32'; break
24830 fi
24831 rm -f core conftest.err conftest.$ac_objext
24832          break
24833        done
24834        CC=$ac_save_CC
24835        rm -f conftest.$ac_ext
24836     fi
24837 fi
24838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
24839 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
24840   if test "$ac_cv_sys_largefile_CC" != no; then
24841     CC=$CC$ac_cv_sys_largefile_CC
24842   fi
24843
24844   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
24845 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
24846 if ${ac_cv_sys_file_offset_bits+:} false; then :
24847   $as_echo_n "(cached) " >&6
24848 else
24849   while :; do
24850   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24851 /* end confdefs.h.  */
24852 #include <sys/types.h>
24853  /* Check that off_t can represent 2**63 - 1 correctly.
24854     We can't simply define LARGE_OFF_T to be 9223372036854775807,
24855     since some C++ compilers masquerading as C compilers
24856     incorrectly reject 9223372036854775807.  */
24857 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
24858   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24859                        && LARGE_OFF_T % 2147483647 == 1)
24860                       ? 1 : -1];
24861 int
24862 main ()
24863 {
24864
24865   ;
24866   return 0;
24867 }
24868 _ACEOF
24869 if ac_fn_c_try_compile "$LINENO"; then :
24870   ac_cv_sys_file_offset_bits=no; break
24871 fi
24872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24873   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24874 /* end confdefs.h.  */
24875 #define _FILE_OFFSET_BITS 64
24876 #include <sys/types.h>
24877  /* Check that off_t can represent 2**63 - 1 correctly.
24878     We can't simply define LARGE_OFF_T to be 9223372036854775807,
24879     since some C++ compilers masquerading as C compilers
24880     incorrectly reject 9223372036854775807.  */
24881 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
24882   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24883                        && LARGE_OFF_T % 2147483647 == 1)
24884                       ? 1 : -1];
24885 int
24886 main ()
24887 {
24888
24889   ;
24890   return 0;
24891 }
24892 _ACEOF
24893 if ac_fn_c_try_compile "$LINENO"; then :
24894   ac_cv_sys_file_offset_bits=64; break
24895 fi
24896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24897   ac_cv_sys_file_offset_bits=unknown
24898   break
24899 done
24900 fi
24901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
24902 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
24903 case $ac_cv_sys_file_offset_bits in #(
24904   no | unknown) ;;
24905   *)
24906 cat >>confdefs.h <<_ACEOF
24907 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24908 _ACEOF
24909 ;;
24910 esac
24911 rm -rf conftest*
24912   if test $ac_cv_sys_file_offset_bits = unknown; then
24913     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
24914 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
24915 if ${ac_cv_sys_large_files+:} false; then :
24916   $as_echo_n "(cached) " >&6
24917 else
24918   while :; do
24919   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24920 /* end confdefs.h.  */
24921 #include <sys/types.h>
24922  /* Check that off_t can represent 2**63 - 1 correctly.
24923     We can't simply define LARGE_OFF_T to be 9223372036854775807,
24924     since some C++ compilers masquerading as C compilers
24925     incorrectly reject 9223372036854775807.  */
24926 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
24927   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24928                        && LARGE_OFF_T % 2147483647 == 1)
24929                       ? 1 : -1];
24930 int
24931 main ()
24932 {
24933
24934   ;
24935   return 0;
24936 }
24937 _ACEOF
24938 if ac_fn_c_try_compile "$LINENO"; then :
24939   ac_cv_sys_large_files=no; break
24940 fi
24941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24942   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24943 /* end confdefs.h.  */
24944 #define _LARGE_FILES 1
24945 #include <sys/types.h>
24946  /* Check that off_t can represent 2**63 - 1 correctly.
24947     We can't simply define LARGE_OFF_T to be 9223372036854775807,
24948     since some C++ compilers masquerading as C compilers
24949     incorrectly reject 9223372036854775807.  */
24950 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
24951   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24952                        && LARGE_OFF_T % 2147483647 == 1)
24953                       ? 1 : -1];
24954 int
24955 main ()
24956 {
24957
24958   ;
24959   return 0;
24960 }
24961 _ACEOF
24962 if ac_fn_c_try_compile "$LINENO"; then :
24963   ac_cv_sys_large_files=1; break
24964 fi
24965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24966   ac_cv_sys_large_files=unknown
24967   break
24968 done
24969 fi
24970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
24971 $as_echo "$ac_cv_sys_large_files" >&6; }
24972 case $ac_cv_sys_large_files in #(
24973   no | unknown) ;;
24974   *)
24975 cat >>confdefs.h <<_ACEOF
24976 #define _LARGE_FILES $ac_cv_sys_large_files
24977 _ACEOF
24978 ;;
24979 esac
24980 rm -rf conftest*
24981   fi
24982
24983
24984 fi
24985
24986 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
24987 if test "x$ac_cv_type_off_t" = xyes; then :
24988
24989 else
24990
24991 cat >>confdefs.h <<_ACEOF
24992 #define off_t long int
24993 _ACEOF
24994
24995 fi
24996
24997
24998   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
24999 if test "x$ac_cv_type_uintptr_t" = xyes; then :
25000
25001 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
25002
25003 else
25004   for ac_type in 'unsigned int' 'unsigned long int' \
25005         'unsigned long long int'; do
25006        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25007 /* end confdefs.h.  */
25008 $ac_includes_default
25009 int
25010 main ()
25011 {
25012 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
25013 test_array [0] = 0;
25014 return test_array [0];
25015
25016   ;
25017   return 0;
25018 }
25019 _ACEOF
25020 if ac_fn_c_try_compile "$LINENO"; then :
25021
25022 cat >>confdefs.h <<_ACEOF
25023 #define uintptr_t $ac_type
25024 _ACEOF
25025
25026           ac_type=
25027 fi
25028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25029        test -z "$ac_type" && break
25030      done
25031 fi
25032
25033
25034
25035 # We require uint64_t
25036 if test "$ac_cv_header_stdint_h" != yes; then
25037    as_fn_error $? "
25038 ***
25039 *** No stdint.h and thus no uint64_t type.  Can't build this library.
25040 ***" "$LINENO" 5
25041 fi
25042
25043
25044 # A simple compile time check in gpgme.h for GNU/Linux systems that
25045 # prevents a file offset bits mismatch between gpgme and the application.
25046 NEED__FILE_OFFSET_BITS=0
25047 if test "$have_w32_system" != yes; then
25048   case "$ac_cv_sys_file_offset_bits" in
25049     "" | no | unknown) ;;
25050     *)
25051     NEED__FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits
25052     ;;
25053   esac
25054 fi
25055
25056
25057 # Figure out platform dependent typedefs for gpgme.h
25058 if test "$have_w32_system" = yes; then
25059     INSERT__TYPEDEFS_FOR_GPGME_H="
25060 #ifdef _WIN64
25061 # include <stdint.h>
25062   typedef int64_t gpgme_off_t;
25063   typedef int64_t gpgme_ssize_t;
25064 #else /* _WIN32 */
25065   typedef long gpgme_off_t;
25066   typedef long gpgme_ssize_t;
25067 #endif /* _WIN32 */"
25068     API__OFF_T="gpgme_off_t"
25069     API__SSIZE_T="gpgme_ssize_t"
25070 else
25071     INSERT__TYPEDEFS_FOR_GPGME_H="
25072 #include <sys/types.h>
25073 typedef off_t   gpgme_off_t;
25074 typedef ssize_t gpgme_ssize_t;"
25075     API__OFF_T="off_t"
25076     API__SSIZE_T="ssize_t"
25077 fi
25078
25079
25080
25081
25082
25083
25084
25085 # Checks for compiler features.
25086 if test "$GCC" = yes; then
25087     CFLAGS="$CFLAGS -Wall -Wcast-align -Wshadow -Wstrict-prototypes"
25088     CFLAGS="$CFLAGS -Wno-format-y2k"
25089
25090     # If -Wno-missing-field-initializers is supported we can expect a
25091     # a larger set of warning options.
25092     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wno-missing-field-initializers" >&5
25093 $as_echo_n "checking if gcc supports -Wno-missing-field-initializers... " >&6; }
25094     _gcc_cflags_save=$CFLAGS
25095     CFLAGS="-Wno-missing-field-initializers"
25096     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25097 /* end confdefs.h.  */
25098
25099 int
25100 main ()
25101 {
25102
25103   ;
25104   return 0;
25105 }
25106 _ACEOF
25107 if ac_fn_c_try_compile "$LINENO"; then :
25108   _gcc_wopt=yes
25109 else
25110   _gcc_wopt=no
25111 fi
25112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25113     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
25114 $as_echo "$_gcc_wopt" >&6; }
25115     CFLAGS=$_gcc_cflags_save;
25116     if test x"$_gcc_wopt" = xyes ; then
25117       CFLAGS="$CFLAGS -Wno-missing-field-initializers"
25118       CFLAGS="$CFLAGS -Wno-sign-compare"
25119       CFLAGS="$CFLAGS -Wno-format-zero-length"
25120       CFLAGS="$CFLAGS -Wno-format-truncation"
25121       CFLAGS="$CFLAGS -Wno-sizeof-pointer-div"
25122     fi
25123     if test "$USE_MAINTAINER_MODE" = "yes"; then
25124         if test x"$_gcc_wopt" = xyes ; then
25125           CFLAGS="$CFLAGS -W -Wextra -Wbad-function-cast"
25126           CFLAGS="$CFLAGS -Wwrite-strings"
25127           CFLAGS="$CFLAGS -Wdeclaration-after-statement"
25128         fi
25129         CFLAGS="$CFLAGS -Wformat -Wformat-security"
25130         CXXFLAGS="$CXXFLAGS -Wall -Wextra -Wno-shadow"
25131
25132         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wpointer-arith" >&5
25133 $as_echo_n "checking if gcc supports -Wpointer-arith... " >&6; }
25134         _gcc_cflags_save=$CFLAGS
25135         CFLAGS="-Wpointer-arith"
25136         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25137 /* end confdefs.h.  */
25138
25139 int
25140 main ()
25141 {
25142
25143   ;
25144   return 0;
25145 }
25146 _ACEOF
25147 if ac_fn_c_try_compile "$LINENO"; then :
25148   _gcc_wopt=yes
25149 else
25150   _gcc_wopt=no
25151 fi
25152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25153         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
25154 $as_echo "$_gcc_wopt" >&6; }
25155         CFLAGS=$_gcc_cflags_save;
25156         if test x"$_gcc_wopt" = xyes ; then
25157           CFLAGS="$CFLAGS -Wpointer-arith"
25158         fi
25159     fi
25160     if test "$have_w32_system" = yes; then
25161        CFLAGS="$CFLAGS -mms-bitfields"
25162     fi
25163 fi
25164
25165 # Only used for debugging, so no serious test needed (for actual
25166 # functionality you have to test libc as well, this only tests the
25167 # compiler).
25168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __thread" >&5
25169 $as_echo_n "checking for __thread... " >&6; }
25170 if ${gpgme_cv_tls_works+:} false; then :
25171   $as_echo_n "(cached) " >&6
25172 else
25173   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25174 /* end confdefs.h.  */
25175 __thread int foo;
25176 int
25177 main ()
25178 {
25179
25180   ;
25181   return 0;
25182 }
25183 _ACEOF
25184 if ac_fn_c_try_compile "$LINENO"; then :
25185   gpgme_cv_tls_works=yes
25186 else
25187   gpgme_cv_tls_works=no
25188 fi
25189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25190 fi
25191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gpgme_cv_tls_works" >&5
25192 $as_echo "$gpgme_cv_tls_works" >&6; }
25193 if test "$gpgme_cv_tls_works" = yes; then
25194
25195 $as_echo "#define HAVE_TLS 1" >>confdefs.h
25196
25197 fi
25198
25199
25200 # Checks for library functions.
25201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraries" >&5
25202 $as_echo "$as_me: checking for libraries" >&6;}
25203
25204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
25205 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
25206 if ${ac_cv_sys_largefile_source+:} false; then :
25207   $as_echo_n "(cached) " >&6
25208 else
25209   while :; do
25210   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25211 /* end confdefs.h.  */
25212 #include <sys/types.h> /* for off_t */
25213      #include <stdio.h>
25214 int
25215 main ()
25216 {
25217 int (*fp) (FILE *, off_t, int) = fseeko;
25218      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
25219   ;
25220   return 0;
25221 }
25222 _ACEOF
25223 if ac_fn_c_try_link "$LINENO"; then :
25224   ac_cv_sys_largefile_source=no; break
25225 fi
25226 rm -f core conftest.err conftest.$ac_objext \
25227     conftest$ac_exeext conftest.$ac_ext
25228   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25229 /* end confdefs.h.  */
25230 #define _LARGEFILE_SOURCE 1
25231 #include <sys/types.h> /* for off_t */
25232      #include <stdio.h>
25233 int
25234 main ()
25235 {
25236 int (*fp) (FILE *, off_t, int) = fseeko;
25237      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
25238   ;
25239   return 0;
25240 }
25241 _ACEOF
25242 if ac_fn_c_try_link "$LINENO"; then :
25243   ac_cv_sys_largefile_source=1; break
25244 fi
25245 rm -f core conftest.err conftest.$ac_objext \
25246     conftest$ac_exeext conftest.$ac_ext
25247   ac_cv_sys_largefile_source=unknown
25248   break
25249 done
25250 fi
25251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
25252 $as_echo "$ac_cv_sys_largefile_source" >&6; }
25253 case $ac_cv_sys_largefile_source in #(
25254   no | unknown) ;;
25255   *)
25256 cat >>confdefs.h <<_ACEOF
25257 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
25258 _ACEOF
25259 ;;
25260 esac
25261 rm -rf conftest*
25262
25263 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
25264 # in glibc 2.1.3, but that breaks too many other things.
25265 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
25266 if test $ac_cv_sys_largefile_source != unknown; then
25267
25268 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
25269
25270 fi
25271
25272
25273 # Try to find a thread-safe version of ttyname().
25274 ac_fn_c_check_decl "$LINENO" "ttyname_r" "ac_cv_have_decl_ttyname_r" "$ac_includes_default"
25275 if test "x$ac_cv_have_decl_ttyname_r" = xyes; then :
25276   ac_have_decl=1
25277 else
25278   ac_have_decl=0
25279 fi
25280
25281 cat >>confdefs.h <<_ACEOF
25282 #define HAVE_DECL_TTYNAME_R $ac_have_decl
25283 _ACEOF
25284
25285
25286   for ac_header in unistd.h
25287 do :
25288   ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
25289 if test "x$ac_cv_header_unistd_h" = xyes; then :
25290   cat >>confdefs.h <<_ACEOF
25291 #define HAVE_UNISTD_H 1
25292 _ACEOF
25293
25294 fi
25295
25296 done
25297
25298
25299
25300   if test $ac_cv_have_decl_ttyname_r = no; then
25301     HAVE_DECL_TTYNAME_R=0
25302   fi
25303
25304   for ac_func in ttyname_r
25305 do :
25306   ac_fn_c_check_func "$LINENO" "ttyname_r" "ac_cv_func_ttyname_r"
25307 if test "x$ac_cv_func_ttyname_r" = xyes; then :
25308   cat >>confdefs.h <<_ACEOF
25309 #define HAVE_TTYNAME_R 1
25310 _ACEOF
25311
25312 fi
25313 done
25314
25315   if test $ac_cv_func_ttyname_r = no; then
25316     HAVE_TTYNAME_R=0
25317     case " $LIBOBJS " in
25318   *" ttyname_r.$ac_objext "* ) ;;
25319   *) LIBOBJS="$LIBOBJS ttyname_r.$ac_objext"
25320  ;;
25321 esac
25322
25323
25324 $as_echo "#define REPLACE_TTYNAME_R 1" >>confdefs.h
25325
25326   else
25327     HAVE_TTYNAME_R=1
25328             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ttyname_r is compatible with its POSIX signature" >&5
25329 $as_echo_n "checking whether ttyname_r is compatible with its POSIX signature... " >&6; }
25330 if ${gnupg_cv_func_ttyname_r_posix+:} false; then :
25331   $as_echo_n "(cached) " >&6
25332 else
25333   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25334 /* end confdefs.h.  */
25335 #include <stddef.h>
25336               #include <unistd.h>
25337 int
25338 main ()
25339 {
25340 *ttyname_r (0, NULL, 0);
25341   ;
25342   return 0;
25343 }
25344
25345 _ACEOF
25346 if ac_fn_c_try_compile "$LINENO"; then :
25347   gnupg_cv_func_ttyname_r_posix=no
25348 else
25349   gnupg_cv_func_ttyname_r_posix=yes
25350 fi
25351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25352
25353 fi
25354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ttyname_r_posix" >&5
25355 $as_echo "$gnupg_cv_func_ttyname_r_posix" >&6; }
25356     if test $gnupg_cv_func_ttyname_r_posix = no; then
25357       case " $LIBOBJS " in
25358   *" ttyname_r.$ac_objext "* ) ;;
25359   *) LIBOBJS="$LIBOBJS ttyname_r.$ac_objext"
25360  ;;
25361 esac
25362
25363       $as_echo "#define REPLACE_TTYNAME_R 1" >>confdefs.h
25364
25365     elif test "$have_android_system" = yes; then
25366       # Android has ttyname and ttyname_r but they are only stubs and
25367       # print an annoying warning message.  Thus we need to replace
25368       # ttyname_r with our own dummy function.
25369       case " $LIBOBJS " in
25370   *" ttyname_r.$ac_objext "* ) ;;
25371   *) LIBOBJS="$LIBOBJS ttyname_r.$ac_objext"
25372  ;;
25373 esac
25374
25375       $as_echo "#define REPLACE_TTYNAME_R 1" >>confdefs.h
25376
25377     else
25378
25379 $as_echo "#define HAVE_POSIXDECL_TTYNAME_R 1" >>confdefs.h
25380
25381
25382       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ttyname_r works with small buffers" >&5
25383 $as_echo_n "checking whether ttyname_r works with small buffers... " >&6; }
25384 if ${gnupg_cv_func_ttyname_r_works+:} false; then :
25385   $as_echo_n "(cached) " >&6
25386 else
25387
25388                               case "$host_os" in
25389                       # Guess no on Solaris.
25390             solaris*) gnupg_cv_func_ttyname_r_works="guessing no" ;;
25391                       # Guess no on OSF/1.
25392             osf*)     gnupg_cv_func_ttyname_r_works="guessing no" ;;
25393                       # Guess yes otherwise.
25394             *)        gnupg_cv_func_ttyname_r_works="guessing yes" ;;
25395           esac
25396           if test "$cross_compiling" = yes; then :
25397   :
25398 else
25399   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25400 /* end confdefs.h.  */
25401
25402 #include <fcntl.h>
25403 #include <unistd.h>
25404 int
25405 main (void)
25406 {
25407   int result = 0;
25408   int fd;
25409   char buf[31]; /* use any size < 128 here */
25410
25411   fd = open ("/dev/tty", O_RDONLY);
25412   if (fd < 0)
25413     result |= 16;
25414   else if (ttyname_r (fd, buf, sizeof (buf)) != 0)
25415     result |= 17;
25416   else if (ttyname_r (fd, buf, 1) == 0)
25417     result |= 18;
25418   return result;
25419 }
25420 _ACEOF
25421 if ac_fn_c_try_run "$LINENO"; then :
25422   gnupg_cv_func_ttyname_r_works=yes
25423 else
25424   case $? in
25425                17 | 18) gnupg_cv_func_ttyname_r_works=no ;;
25426              esac
25427 fi
25428 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25429   conftest.$ac_objext conftest.beam conftest.$ac_ext
25430 fi
25431
25432
25433 fi
25434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ttyname_r_works" >&5
25435 $as_echo "$gnupg_cv_func_ttyname_r_works" >&6; }
25436       case "$gnupg_cv_func_ttyname_r_works" in
25437         *yes) ;;
25438         *) case " $LIBOBJS " in
25439   *" ttyname_r.$ac_objext "* ) ;;
25440   *) LIBOBJS="$LIBOBJS ttyname_r.$ac_objext"
25441  ;;
25442 esac
25443
25444            $as_echo "#define REPLACE_TTYNAME_R 1" >>confdefs.h
25445
25446
25447 $as_echo "#define HAVE_BROKEN_TTYNAME_R 1" >>confdefs.h
25448
25449            ;;
25450       esac
25451     fi
25452   fi
25453
25454 if test "$ac_cv_func_ttyname_r" != yes; then
25455   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
25456 ***
25457 *** ttyname() is not thread-safe and ttyname_r() does not exist
25458 ***" >&5
25459 $as_echo "$as_me: WARNING:
25460 ***
25461 *** ttyname() is not thread-safe and ttyname_r() does not exist
25462 ***" >&2;}
25463 fi
25464
25465 # Try to find a thread-safe version of getenv().
25466 have_thread_safe_getenv=no
25467
25468     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
25469 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
25470 if ${ac_cv_gnu_library_2_1+:} false; then :
25471   $as_echo_n "(cached) " >&6
25472 else
25473   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25474 /* end confdefs.h.  */
25475
25476 #include <features.h>
25477 #ifdef __GNU_LIBRARY__
25478  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
25479   Lucky GNU user
25480  #endif
25481 #endif
25482
25483 _ACEOF
25484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25485   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
25486   ac_cv_gnu_library_2_1=yes
25487 else
25488   ac_cv_gnu_library_2_1=no
25489 fi
25490 rm -f conftest*
25491
25492
25493
25494 fi
25495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
25496 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
25497
25498     GLIBC21="$ac_cv_gnu_library_2_1"
25499
25500
25501 if test $GLIBC21 = yes -o $have_w32_system = yes; then
25502   have_thread_safe_getenv=yes
25503 fi
25504 if test $have_thread_safe_getenv = yes; then
25505
25506 $as_echo "#define HAVE_THREAD_SAFE_GETENV 1" >>confdefs.h
25507
25508 fi
25509 have_getenv_r=no
25510 for ac_func in getenv_r
25511 do :
25512   ac_fn_c_check_func "$LINENO" "getenv_r" "ac_cv_func_getenv_r"
25513 if test "x$ac_cv_func_getenv_r" = xyes; then :
25514   cat >>confdefs.h <<_ACEOF
25515 #define HAVE_GETENV_R 1
25516 _ACEOF
25517  have_getenv_r=yes
25518 fi
25519 done
25520
25521 if test $have_getenv_r = no && test $have_thread_safe_getenv = no; then
25522   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
25523 ***
25524 *** getenv() is not thread-safe and getenv_r() does not exist
25525 ***" >&5
25526 $as_echo "$as_me: WARNING:
25527 ***
25528 *** getenv() is not thread-safe and getenv_r() does not exist
25529 ***" >&2;}
25530 fi
25531
25532 # For converting time strings to seconds since Epoch, we need the timegm
25533 # function.
25534 for ac_func in timegm
25535 do :
25536   ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
25537 if test "x$ac_cv_func_timegm" = xyes; then :
25538   cat >>confdefs.h <<_ACEOF
25539 #define HAVE_TIMEGM 1
25540 _ACEOF
25541
25542 fi
25543 done
25544
25545 if test "$ac_cv_func_timegm" != yes; then
25546   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
25547 ***
25548 *** timegm() not available - a non-thread-safe kludge will be used
25549 *** and the TZ variable might be changed at runtime.
25550 ***" >&5
25551 $as_echo "$as_me: WARNING:
25552 ***
25553 *** timegm() not available - a non-thread-safe kludge will be used
25554 *** and the TZ variable might be changed at runtime.
25555 ***" >&2;}
25556 fi
25557
25558 for ac_func in setlocale
25559 do :
25560   ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
25561 if test "x$ac_cv_func_setlocale" = xyes; then :
25562   cat >>confdefs.h <<_ACEOF
25563 #define HAVE_SETLOCALE 1
25564 _ACEOF
25565
25566 fi
25567 done
25568
25569
25570 # Checking for libgpg-error.
25571 have_gpg_error=no
25572
25573   gpg_error_config_prefix=""
25574
25575 # Check whether --with-libgpg-error-prefix was given.
25576 if test "${with_libgpg_error_prefix+set}" = set; then :
25577   withval=$with_libgpg_error_prefix; gpg_error_config_prefix="$withval"
25578 fi
25579
25580
25581
25582 # Check whether --with-gpg-error-prefix was given.
25583 if test "${with_gpg_error_prefix+set}" = set; then :
25584   withval=$with_gpg_error_prefix; gpg_error_config_prefix="$withval"
25585 fi
25586
25587
25588   if test x"${GPG_ERROR_CONFIG}" = x ; then
25589      if test x"${gpg_error_config_prefix}" != x ; then
25590         GPG_ERROR_CONFIG="${gpg_error_config_prefix}/bin/gpg-error-config"
25591      else
25592        case "${SYSROOT}" in
25593          /*)
25594            if test -x "${SYSROOT}/bin/gpg-error-config" ; then
25595              GPG_ERROR_CONFIG="${SYSROOT}/bin/gpg-error-config"
25596            fi
25597            ;;
25598          '')
25599            ;;
25600           *)
25601            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
25602 $as_echo "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
25603            ;;
25604        esac
25605      fi
25606   fi
25607
25608   # Extract the first word of "gpg-error-config", so it can be a program name with args.
25609 set dummy gpg-error-config; ac_word=$2
25610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25611 $as_echo_n "checking for $ac_word... " >&6; }
25612 if ${ac_cv_path_GPG_ERROR_CONFIG+:} false; then :
25613   $as_echo_n "(cached) " >&6
25614 else
25615   case $GPG_ERROR_CONFIG in
25616   [\\/]* | ?:[\\/]*)
25617   ac_cv_path_GPG_ERROR_CONFIG="$GPG_ERROR_CONFIG" # Let the user override the test with a path.
25618   ;;
25619   *)
25620   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25621 for as_dir in $PATH
25622 do
25623   IFS=$as_save_IFS
25624   test -z "$as_dir" && as_dir=.
25625     for ac_exec_ext in '' $ac_executable_extensions; do
25626   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25627     ac_cv_path_GPG_ERROR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25628     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25629     break 2
25630   fi
25631 done
25632   done
25633 IFS=$as_save_IFS
25634
25635   test -z "$ac_cv_path_GPG_ERROR_CONFIG" && ac_cv_path_GPG_ERROR_CONFIG="no"
25636   ;;
25637 esac
25638 fi
25639 GPG_ERROR_CONFIG=$ac_cv_path_GPG_ERROR_CONFIG
25640 if test -n "$GPG_ERROR_CONFIG"; then
25641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPG_ERROR_CONFIG" >&5
25642 $as_echo "$GPG_ERROR_CONFIG" >&6; }
25643 else
25644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25645 $as_echo "no" >&6; }
25646 fi
25647
25648
25649   min_gpg_error_version="$NEED_GPG_ERROR_VERSION"
25650   ok=no
25651
25652   if test "$prefix" = NONE ; then
25653     prefix_option_expanded=/usr/local
25654   else
25655     prefix_option_expanded="$prefix"
25656   fi
25657   if test "$exec_prefix" = NONE ; then
25658     exec_prefix_option_expanded=$prefix_option_expanded
25659   else
25660     exec_prefix_option_expanded=$(prefix=$prefix_option_expanded eval echo $exec_prefix)
25661   fi
25662   libdir_option_expanded=$(prefix=$prefix_option_expanded exec_prefix=$exec_prefix_option_expanded eval echo $libdir)
25663
25664   if test -f $libdir_option_expanded/pkgconfig/gpg-error.pc; then
25665     gpgrt_libdir=$libdir_option_expanded
25666   else
25667     if crt1_path=$(${CC:-cc} -print-file-name=crt1.o 2>/dev/null); then
25668       if possible_libdir=$(cd ${crt1_path%/*} && pwd 2>/dev/null); then
25669         if test -f $possible_libdir/pkgconfig/gpg-error.pc; then
25670           gpgrt_libdir=$possible_libdir
25671         fi
25672       fi
25673     fi
25674   fi
25675
25676   if test "$GPG_ERROR_CONFIG" = "no" -a -n "$gpgrt_libdir"; then
25677     # Extract the first word of "gpgrt-config", so it can be a program name with args.
25678 set dummy gpgrt-config; ac_word=$2
25679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25680 $as_echo_n "checking for $ac_word... " >&6; }
25681 if ${ac_cv_path_GPGRT_CONFIG+:} false; then :
25682   $as_echo_n "(cached) " >&6
25683 else
25684   case $GPGRT_CONFIG in
25685   [\\/]* | ?:[\\/]*)
25686   ac_cv_path_GPGRT_CONFIG="$GPGRT_CONFIG" # Let the user override the test with a path.
25687   ;;
25688   *)
25689   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25690 for as_dir in $PATH
25691 do
25692   IFS=$as_save_IFS
25693   test -z "$as_dir" && as_dir=.
25694     for ac_exec_ext in '' $ac_executable_extensions; do
25695   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25696     ac_cv_path_GPGRT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25697     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25698     break 2
25699   fi
25700 done
25701   done
25702 IFS=$as_save_IFS
25703
25704   test -z "$ac_cv_path_GPGRT_CONFIG" && ac_cv_path_GPGRT_CONFIG="no"
25705   ;;
25706 esac
25707 fi
25708 GPGRT_CONFIG=$ac_cv_path_GPGRT_CONFIG
25709 if test -n "$GPGRT_CONFIG"; then
25710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPGRT_CONFIG" >&5
25711 $as_echo "$GPGRT_CONFIG" >&6; }
25712 else
25713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25714 $as_echo "no" >&6; }
25715 fi
25716
25717
25718     if test "$GPGRT_CONFIG" = "no"; then
25719       unset GPGRT_CONFIG
25720     else
25721       GPGRT_CONFIG="$GPGRT_CONFIG --libdir=$gpgrt_libdir"
25722       if $GPGRT_CONFIG gpg-error >/dev/null 2>&1; then
25723         GPG_ERROR_CONFIG="$GPGRT_CONFIG gpg-error"
25724         { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config with $gpgrt_libdir as gpg-error-config" >&5
25725 $as_echo "$as_me: Use gpgrt-config with $gpgrt_libdir as gpg-error-config" >&6;}
25726         gpg_error_config_version=`$GPG_ERROR_CONFIG --modversion`
25727       else
25728         unset GPGRT_CONFIG
25729       fi
25730     fi
25731   else
25732     gpg_error_config_version=`$GPG_ERROR_CONFIG --version`
25733   fi
25734   if test "$GPG_ERROR_CONFIG" != "no"; then
25735     req_major=`echo $min_gpg_error_version | \
25736                sed 's/\([0-9]*\)\.\([0-9]*\)/\1/'`
25737     req_minor=`echo $min_gpg_error_version | \
25738                sed 's/\([0-9]*\)\.\([0-9]*\)/\2/'`
25739     major=`echo $gpg_error_config_version | \
25740                sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
25741     minor=`echo $gpg_error_config_version | \
25742                sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
25743     if test "$major" -gt "$req_major"; then
25744         ok=yes
25745     else
25746         if test "$major" -eq "$req_major"; then
25747             if test "$minor" -ge "$req_minor"; then
25748                ok=yes
25749             fi
25750         fi
25751     fi
25752     if test -z "$GPGRT_CONFIG" -a -n "$gpgrt_libdir"; then
25753       if test "$major" -gt 1 -o "$major" -eq 1 -a "$minor" -ge 33; then
25754         # Extract the first word of "gpgrt-config", so it can be a program name with args.
25755 set dummy gpgrt-config; ac_word=$2
25756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25757 $as_echo_n "checking for $ac_word... " >&6; }
25758 if ${ac_cv_path_GPGRT_CONFIG+:} false; then :
25759   $as_echo_n "(cached) " >&6
25760 else
25761   case $GPGRT_CONFIG in
25762   [\\/]* | ?:[\\/]*)
25763   ac_cv_path_GPGRT_CONFIG="$GPGRT_CONFIG" # Let the user override the test with a path.
25764   ;;
25765   *)
25766   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25767 for as_dir in $PATH
25768 do
25769   IFS=$as_save_IFS
25770   test -z "$as_dir" && as_dir=.
25771     for ac_exec_ext in '' $ac_executable_extensions; do
25772   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25773     ac_cv_path_GPGRT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25774     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25775     break 2
25776   fi
25777 done
25778   done
25779 IFS=$as_save_IFS
25780
25781   test -z "$ac_cv_path_GPGRT_CONFIG" && ac_cv_path_GPGRT_CONFIG="no"
25782   ;;
25783 esac
25784 fi
25785 GPGRT_CONFIG=$ac_cv_path_GPGRT_CONFIG
25786 if test -n "$GPGRT_CONFIG"; then
25787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPGRT_CONFIG" >&5
25788 $as_echo "$GPGRT_CONFIG" >&6; }
25789 else
25790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25791 $as_echo "no" >&6; }
25792 fi
25793
25794
25795         if test "$GPGRT_CONFIG" = "no"; then
25796           unset GPGRT_CONFIG
25797         else
25798           GPGRT_CONFIG="$GPGRT_CONFIG --libdir=$gpgrt_libdir"
25799           if $GPGRT_CONFIG gpg-error >/dev/null 2>&1; then
25800             GPG_ERROR_CONFIG="$GPGRT_CONFIG gpg-error"
25801             { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config with $gpgrt_libdir as gpg-error-config" >&5
25802 $as_echo "$as_me: Use gpgrt-config with $gpgrt_libdir as gpg-error-config" >&6;}
25803           else
25804             unset GPGRT_CONFIG
25805           fi
25806         fi
25807       fi
25808     fi
25809   fi
25810   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPG Error - version >= $min_gpg_error_version" >&5
25811 $as_echo_n "checking for GPG Error - version >= $min_gpg_error_version... " >&6; }
25812   if test $ok = yes; then
25813     GPG_ERROR_CFLAGS=`$GPG_ERROR_CONFIG --cflags`
25814     GPG_ERROR_LIBS=`$GPG_ERROR_CONFIG --libs`
25815     if test -z "$GPGRT_CONFIG"; then
25816       GPG_ERROR_MT_CFLAGS=`$GPG_ERROR_CONFIG --mt --cflags 2>/dev/null`
25817       GPG_ERROR_MT_LIBS=`$GPG_ERROR_CONFIG --mt --libs 2>/dev/null`
25818     else
25819       GPG_ERROR_MT_CFLAGS=`$GPG_ERROR_CONFIG --variable=mtcflags 2>/dev/null`
25820       GPG_ERROR_MT_CFLAGS="$GPG_ERROR_CFLAGS${GPG_ERROR_CFLAGS:+ }$GPG_ERROR_MT_CFLAGS"
25821       GPG_ERROR_MT_LIBS=`$GPG_ERROR_CONFIG --variable=mtlibs 2>/dev/null`
25822       GPG_ERROR_MT_LIBS="$GPG_ERROR_LIBS${GPG_ERROR_LIBS:+ }$GPG_ERROR_MT_LIBS"
25823     fi
25824     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($gpg_error_config_version)" >&5
25825 $as_echo "yes ($gpg_error_config_version)" >&6; }
25826     have_gpg_error=yes
25827     if test -z "$GPGRT_CONFIG"; then
25828       gpg_error_config_host=`$GPG_ERROR_CONFIG --host 2>/dev/null || echo none`
25829     else
25830       gpg_error_config_host=`$GPG_ERROR_CONFIG --variable=host 2>/dev/null || echo none`
25831     fi
25832     if test x"$gpg_error_config_host" != xnone ; then
25833       if test x"$gpg_error_config_host" != x"$host" ; then
25834   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
25835 ***
25836 *** The config script \"$GPG_ERROR_CONFIG\" was
25837 *** built for $gpg_error_config_host and thus may not match the
25838 *** used host $host.
25839 *** You may want to use the configure option --with-libgpg-error-prefix
25840 *** to specify a matching config script or use \$SYSROOT.
25841 ***" >&5
25842 $as_echo "$as_me: WARNING:
25843 ***
25844 *** The config script \"$GPG_ERROR_CONFIG\" was
25845 *** built for $gpg_error_config_host and thus may not match the
25846 *** used host $host.
25847 *** You may want to use the configure option --with-libgpg-error-prefix
25848 *** to specify a matching config script or use \$SYSROOT.
25849 ***" >&2;}
25850         gpg_config_script_warn="$gpg_config_script_warn libgpg-error"
25851       fi
25852     fi
25853   else
25854     GPG_ERROR_CFLAGS=""
25855     GPG_ERROR_LIBS=""
25856     GPG_ERROR_MT_CFLAGS=""
25857     GPG_ERROR_MT_LIBS=""
25858     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25859 $as_echo "no" >&6; }
25860     have_gpg_error=no
25861   fi
25862
25863
25864
25865
25866
25867
25868 $as_echo "#define GPG_ERR_SOURCE_DEFAULT GPG_ERR_SOURCE_GPGME" >>confdefs.h
25869
25870
25871 # And for libassuan.
25872 have_libassuan=no
25873
25874
25875 # Check whether --with-libassuan-prefix was given.
25876 if test "${with_libassuan_prefix+set}" = set; then :
25877   withval=$with_libassuan_prefix; libassuan_config_prefix="$withval"
25878 else
25879   libassuan_config_prefix=""
25880 fi
25881
25882   if test x$libassuan_config_prefix != x ; then
25883     if test x${LIBASSUAN_CONFIG+set} != xset ; then
25884       LIBASSUAN_CONFIG=$libassuan_config_prefix/bin/libassuan-config
25885     fi
25886   fi
25887
25888   use_gpgrt_config=""
25889   if test x"${LIBASSUAN_CONFIG}" = x -a x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
25890     if $GPGRT_CONFIG libassuan --exists; then
25891       LIBASSUAN_CONFIG="$GPGRT_CONFIG libassuan"
25892       { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config as libassuan-config" >&5
25893 $as_echo "$as_me: Use gpgrt-config as libassuan-config" >&6;}
25894       use_gpgrt_config=yes
25895     fi
25896   fi
25897   if test -z "$use_gpgrt_config"; then
25898     # Extract the first word of "libassuan-config", so it can be a program name with args.
25899 set dummy libassuan-config; ac_word=$2
25900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25901 $as_echo_n "checking for $ac_word... " >&6; }
25902 if ${ac_cv_path_LIBASSUAN_CONFIG+:} false; then :
25903   $as_echo_n "(cached) " >&6
25904 else
25905   case $LIBASSUAN_CONFIG in
25906   [\\/]* | ?:[\\/]*)
25907   ac_cv_path_LIBASSUAN_CONFIG="$LIBASSUAN_CONFIG" # Let the user override the test with a path.
25908   ;;
25909   *)
25910   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25911 for as_dir in $PATH
25912 do
25913   IFS=$as_save_IFS
25914   test -z "$as_dir" && as_dir=.
25915     for ac_exec_ext in '' $ac_executable_extensions; do
25916   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25917     ac_cv_path_LIBASSUAN_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25918     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25919     break 2
25920   fi
25921 done
25922   done
25923 IFS=$as_save_IFS
25924
25925   test -z "$ac_cv_path_LIBASSUAN_CONFIG" && ac_cv_path_LIBASSUAN_CONFIG="no"
25926   ;;
25927 esac
25928 fi
25929 LIBASSUAN_CONFIG=$ac_cv_path_LIBASSUAN_CONFIG
25930 if test -n "$LIBASSUAN_CONFIG"; then
25931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBASSUAN_CONFIG" >&5
25932 $as_echo "$LIBASSUAN_CONFIG" >&6; }
25933 else
25934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25935 $as_echo "no" >&6; }
25936 fi
25937
25938
25939   fi
25940
25941   tmp="$NEED_LIBASSUAN_API:$NEED_LIBASSUAN_VERSION"
25942   if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
25943     req_libassuan_api=`echo "$tmp"     | sed 's/\(.*\):\(.*\)/\1/'`
25944     min_libassuan_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
25945   else
25946     req_libassuan_api=0
25947     min_libassuan_version="$tmp"
25948   fi
25949
25950   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBASSUAN - version >= $min_libassuan_version" >&5
25951 $as_echo_n "checking for LIBASSUAN - version >= $min_libassuan_version... " >&6; }
25952   ok=no
25953   if test "$LIBASSUAN_CONFIG" != "no"; then
25954     req_major=`echo $min_libassuan_version | \
25955                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
25956     req_minor=`echo $min_libassuan_version | \
25957                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
25958     req_micro=`echo $min_libassuan_version | \
25959                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
25960
25961     if test -z "$use_gpgrt_config"; then
25962       libassuan_config_version=`$LIBASSUAN_CONFIG --version`
25963     else
25964       libassuan_config_version=`$LIBASSUAN_CONFIG --modversion`
25965     fi
25966     major=`echo $libassuan_config_version | \
25967                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
25968     minor=`echo $libassuan_config_version | \
25969                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
25970     micro=`echo $libassuan_config_version | \
25971                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
25972
25973     if test "$major" -gt "$req_major"; then
25974         ok=yes
25975     else
25976         if test "$major" -eq "$req_major"; then
25977             if test "$minor" -gt "$req_minor"; then
25978                ok=yes
25979             else
25980                if test "$minor" -eq "$req_minor"; then
25981                    if test "$micro" -ge "$req_micro"; then
25982                      ok=yes
25983                    fi
25984                fi
25985             fi
25986         fi
25987     fi
25988   fi
25989
25990   if test $ok = yes; then
25991     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libassuan_config_version)" >&5
25992 $as_echo "yes ($libassuan_config_version)" >&6; }
25993   else
25994     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25995 $as_echo "no" >&6; }
25996   fi
25997
25998   if test $ok = yes; then
25999     if test "$req_libassuan_api" -gt 0 ; then
26000       if test -z "$use_gpgrt_config"; then
26001         tmp=`$LIBASSUAN_CONFIG --api-version 2>/dev/null || echo 0`
26002       else
26003         tmp=`$LIBASSUAN_CONFIG --variable=api_version 2>/dev/null || echo 0`
26004       fi
26005       if test "$tmp" -gt 0 ; then
26006         { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBASSUAN API version" >&5
26007 $as_echo_n "checking LIBASSUAN API version... " >&6; }
26008         if test "$req_libassuan_api" -eq "$tmp" ; then
26009           { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
26010 $as_echo "okay" >&6; }
26011         else
26012           ok=no
26013           { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match.  want=$req_libassuan_api got=$tmp." >&5
26014 $as_echo "does not match.  want=$req_libassuan_api got=$tmp." >&6; }
26015         fi
26016       fi
26017     fi
26018   fi
26019
26020   if test $ok = yes; then
26021     if test x"$host" != x ; then
26022       if test -z "$use_gpgrt_config"; then
26023         libassuan_config_host=`$LIBASSUAN_CONFIG --host 2>/dev/null || echo none`
26024       else
26025         libassuan_config_host=`$LIBASSUAN_CONFIG --variable=host 2>/dev/null || echo none`
26026       fi
26027       if test x"$libassuan_config_host" != xnone ; then
26028         if test x"$libassuan_config_host" != x"$host" ; then
26029   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
26030 ***
26031 *** The config script \"$LIBASSUAN_CONFIG\" was
26032 *** built for $libassuan_config_host and thus may not match the
26033 *** used host $host.
26034 *** You may want to use the configure option --with-libassuan-prefix
26035 *** to specify a matching config script.
26036 ***" >&5
26037 $as_echo "$as_me: WARNING:
26038 ***
26039 *** The config script \"$LIBASSUAN_CONFIG\" was
26040 *** built for $libassuan_config_host and thus may not match the
26041 *** used host $host.
26042 *** You may want to use the configure option --with-libassuan-prefix
26043 *** to specify a matching config script.
26044 ***" >&2;}
26045         fi
26046       fi
26047     fi
26048   fi
26049
26050   if test $ok = yes; then
26051     LIBASSUAN_CFLAGS=`$LIBASSUAN_CONFIG --cflags`
26052     LIBASSUAN_LIBS=`$LIBASSUAN_CONFIG --libs`
26053     have_libassuan=yes
26054   else
26055     LIBASSUAN_CFLAGS=""
26056     LIBASSUAN_LIBS=""
26057     have_libassuan=no
26058   fi
26059
26060
26061
26062 if test "$have_libassuan" = "yes"; then
26063
26064 cat >>confdefs.h <<_ACEOF
26065 #define GPGME_LIBASSUAN_VERSION "$libassuan_version"
26066 _ACEOF
26067
26068 fi
26069
26070
26071 #
26072 # Other checks
26073 #
26074
26075 # Check for getgid etc
26076 for ac_func in getgid getegid closefrom
26077 do :
26078   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26079 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26080 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26081   cat >>confdefs.h <<_ACEOF
26082 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26083 _ACEOF
26084
26085 fi
26086 done
26087
26088
26089
26090 # Replacement functions.
26091 ac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy"
26092 if test "x$ac_cv_func_stpcpy" = xyes; then :
26093   $as_echo "#define HAVE_STPCPY 1" >>confdefs.h
26094
26095 else
26096   case " $LIBOBJS " in
26097   *" stpcpy.$ac_objext "* ) ;;
26098   *) LIBOBJS="$LIBOBJS stpcpy.$ac_objext"
26099  ;;
26100 esac
26101
26102 fi
26103
26104
26105 ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
26106 if test "x$ac_cv_func_setenv" = xyes; then :
26107   $as_echo "#define HAVE_SETENV 1" >>confdefs.h
26108
26109 else
26110   case " $LIBOBJS " in
26111   *" setenv.$ac_objext "* ) ;;
26112   *) LIBOBJS="$LIBOBJS setenv.$ac_objext"
26113  ;;
26114 esac
26115
26116 fi
26117
26118
26119
26120 # Assuan check for descriptor passing.
26121 ac_fn_c_check_member "$LINENO" "struct cmsghdr" "cmsg_len" "ac_cv_member_struct_cmsghdr_cmsg_len" "
26122 #include <stdlib.h>
26123 #include <stddef.h>
26124 #include <stdio.h>
26125 #include <sys/types.h>
26126 #include <sys/socket.h>
26127 #include <sys/un.h>
26128 #if HAVE_SYS_UIO_H
26129 #include <sys/uio.h>
26130 #endif
26131 #include <unistd.h>
26132
26133 "
26134 if test "x$ac_cv_member_struct_cmsghdr_cmsg_len" = xyes; then :
26135   supports_descriptor_passing=yes
26136 else
26137   supports_descriptor_passing=no
26138                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
26139 ***
26140 *** Data structure for sending ancillary data missing.
26141 *** Descriptor passing won't work.
26142 ***" >&5
26143 $as_echo "$as_me: WARNING:
26144 ***
26145 *** Data structure for sending ancillary data missing.
26146 *** Descriptor passing won't work.
26147 ***" >&2;}
26148 fi
26149
26150
26151 use_descriptor_passing=yes
26152 # Check whether --enable-fd-passing was given.
26153 if test "${enable_fd_passing+set}" = set; then :
26154   enableval=$enable_fd_passing; use_descriptor_passing=$enableval
26155 fi
26156
26157
26158 if test "$supports_descriptor_passing" != "yes"; then
26159   use_descriptor_passing=no
26160 fi
26161
26162 if test "$use_descriptor_passing" = "yes"; then
26163
26164 $as_echo "#define USE_DESCRIPTOR_PASSING 1" >>confdefs.h
26165
26166 fi
26167
26168  if test "$use_descriptor_passing" = "yes"; then
26169   USE_DESCRIPTOR_PASSING_TRUE=
26170   USE_DESCRIPTOR_PASSING_FALSE='#'
26171 else
26172   USE_DESCRIPTOR_PASSING_TRUE='#'
26173   USE_DESCRIPTOR_PASSING_FALSE=
26174 fi
26175
26176
26177
26178 uiserver=no
26179 if test "$use_descriptor_passing" = "yes" && test "$have_libassuan" = "yes"; then
26180   uiserver=yes
26181 fi
26182 if test "$uiserver" != "no"; then
26183
26184 $as_echo "#define ENABLE_UISERVER 1" >>confdefs.h
26185
26186 fi
26187  if test "$uiserver" != "no"; then
26188   HAVE_UISERVER_TRUE=
26189   HAVE_UISERVER_FALSE='#'
26190 else
26191   HAVE_UISERVER_TRUE='#'
26192   HAVE_UISERVER_FALSE=
26193 fi
26194
26195
26196
26197 # Option --disable-linux-getdents
26198 #
26199 # By default we use SYS_getdents on Linux to optimize fd closing
26200 # before an exec.  This option allows to switch this optimization off.
26201 use_linux_getdents=yes
26202 # Check whether --enable-linux-getdents was given.
26203 if test "${enable_linux_getdents+set}" = set; then :
26204   enableval=$enable_linux_getdents; use_linux_getdents=$enableval
26205 fi
26206
26207 if test "$use_linux_getdents" = "yes"; then
26208     case "${host}" in
26209         *-*-linux*)
26210
26211 $as_echo "#define USE_LINUX_GETDENTS 1" >>confdefs.h
26212
26213            ;;
26214     esac
26215 fi
26216
26217
26218 #
26219 # Add a few constants to help porting to W32
26220 #
26221
26222
26223
26224
26225
26226 # Substitution used for gpgme-config
26227 GPGME_CONFIG_LIBS="-lgpgme"
26228 GPGME_CONFIG_CFLAGS=""
26229 GPGME_CONFIG_HOST="$host"
26230 GPGME_CONFIG_AVAIL_LANG="$enabled_languages"
26231
26232
26233
26234
26235
26236
26237 # Frob'da Variables
26238 LTLIBOBJS=`echo "$LIBOBJS" |
26239            sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'`
26240
26241
26242 # Some checks for gpgme-tool
26243 # Done at top: AC_CHECK_HEADER([argp.h])
26244 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#include <errno.h>
26245 "
26246 if test "x$ac_cv_type_error_t" = xyes; then :
26247
26248 cat >>confdefs.h <<_ACEOF
26249 #define HAVE_ERROR_T 1
26250 _ACEOF
26251
26252
26253 else
26254
26255 $as_echo "#define error_t int" >>confdefs.h
26256
26257 fi
26258
26259
26260
26261 # A substitution to set generated files in a Emacs buffer to read-only.
26262 emacs_local_vars_begin='Local Variables:'
26263
26264 emacs_local_vars_read_only='buffer-read-only: t'
26265
26266 emacs_local_vars_end='End:'
26267
26268
26269 # Last check.
26270 die=no
26271 if test "$have_gpg_error" = "no"; then
26272    die=yes
26273    { $as_echo "$as_me:${as_lineno-$LINENO}:
26274 ***
26275 *** You need libgpg-error to build this program.
26276 **  This library is for example available at
26277 ***   https://www.gnupg.org/ftp/gcrypt/libgpg-error/
26278 *** (at least version $NEED_GPG_ERROR_VERSION is required.)
26279 ***" >&5
26280 $as_echo "$as_me:
26281 ***
26282 *** You need libgpg-error to build this program.
26283 **  This library is for example available at
26284 ***   https://www.gnupg.org/ftp/gcrypt/libgpg-error/
26285 *** (at least version $NEED_GPG_ERROR_VERSION is required.)
26286 ***" >&6;}
26287 fi
26288 if test "$have_libassuan" = "no"; then
26289    die=yes
26290    { $as_echo "$as_me:${as_lineno-$LINENO}:
26291 ***
26292 *** You need libassuan to build this program.
26293 *** This library is for example available at
26294 ***   https://www.gnupg.org/ftp/gcrypt/libassuan/
26295 *** (at least version $NEED_LIBASSUAN_VERSION (API $NEED_LIBASSUAN_API) is required).
26296 ***" >&5
26297 $as_echo "$as_me:
26298 ***
26299 *** You need libassuan to build this program.
26300 *** This library is for example available at
26301 ***   https://www.gnupg.org/ftp/gcrypt/libassuan/
26302 *** (at least version $NEED_LIBASSUAN_VERSION (API $NEED_LIBASSUAN_API) is required).
26303 ***" >&6;}
26304 fi
26305
26306 if test "$die" = "yes"; then
26307     as_fn_error $? "
26308 ***
26309 *** Required libraries not found. Please consult the above messages
26310 *** and install them before running configure again.
26311 ***" "$LINENO" 5
26312 fi
26313
26314
26315 #
26316 # Create config files
26317
26318 ac_config_files="$ac_config_files Makefile src/Makefile tests/Makefile tests/gpg/Makefile tests/gpgsm/Makefile tests/opassuan/Makefile tests/json/Makefile doc/Makefile src/versioninfo.rc src/gpgme.pc src/gpgme-glib.pc src/gpgme.h"
26319
26320 ac_config_files="$ac_config_files src/gpgme-config"
26321
26322 ac_config_files="$ac_config_files lang/cpp/Makefile lang/cpp/src/Makefile"
26323
26324 ac_config_files="$ac_config_files lang/cpp/tests/Makefile"
26325
26326 ac_config_files="$ac_config_files lang/cpp/src/GpgmeppConfig-w32.cmake.in"
26327
26328 ac_config_files="$ac_config_files lang/cpp/src/GpgmeppConfig.cmake.in"
26329
26330 ac_config_files="$ac_config_files lang/cpp/src/GpgmeppConfigVersion.cmake"
26331
26332 ac_config_files="$ac_config_files lang/cpp/src/gpgmepp_version.h"
26333
26334 ac_config_files="$ac_config_files lang/qt/Makefile lang/qt/src/Makefile"
26335
26336 ac_config_files="$ac_config_files lang/qt/src/QGpgmeConfig-w32.cmake.in"
26337
26338 ac_config_files="$ac_config_files lang/qt/src/QGpgmeConfig.cmake.in"
26339
26340 ac_config_files="$ac_config_files lang/qt/src/QGpgmeConfigVersion.cmake"
26341
26342 ac_config_files="$ac_config_files lang/qt/tests/Makefile"
26343
26344 ac_config_files="$ac_config_files lang/qt/src/qgpgme_version.h"
26345
26346 ac_config_files="$ac_config_files lang/Makefile lang/cl/Makefile lang/cl/gpgme.asd"
26347
26348 if test -z "$HAVE_DOXYGEN_TRUE"; then :
26349   ac_config_files="$ac_config_files lang/qt/doc/Doxyfile"
26350
26351 fi
26352 ac_config_files="$ac_config_files lang/js/Makefile lang/js/src/Makefile lang/js/BrowserTestExtension/Makefile lang/js/DemoExtension/Makefile"
26353
26354 ac_config_files="$ac_config_files lang/qt/doc/Makefile"
26355
26356 ac_config_files="$ac_config_files lang/python/Makefile lang/python/version.py lang/python/tests/Makefile lang/python/src/Makefile lang/python/examples/Makefile lang/python/doc/Makefile"
26357
26358 ac_config_files="$ac_config_files lang/python/setup.py"
26359
26360 cat >confcache <<\_ACEOF
26361 # This file is a shell script that caches the results of configure
26362 # tests run on this system so they can be shared between configure
26363 # scripts and configure runs, see configure's option --config-cache.
26364 # It is not useful on other systems.  If it contains results you don't
26365 # want to keep, you may remove or edit it.
26366 #
26367 # config.status only pays attention to the cache file if you give it
26368 # the --recheck option to rerun configure.
26369 #
26370 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26371 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26372 # following values.
26373
26374 _ACEOF
26375
26376 # The following way of writing the cache mishandles newlines in values,
26377 # but we know of no workaround that is simple, portable, and efficient.
26378 # So, we kill variables containing newlines.
26379 # Ultrix sh set writes to stderr and can't be redirected directly,
26380 # and sets the high bit in the cache file unless we assign to the vars.
26381 (
26382   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26383     eval ac_val=\$$ac_var
26384     case $ac_val in #(
26385     *${as_nl}*)
26386       case $ac_var in #(
26387       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26388 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26389       esac
26390       case $ac_var in #(
26391       _ | IFS | as_nl) ;; #(
26392       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26393       *) { eval $ac_var=; unset $ac_var;} ;;
26394       esac ;;
26395     esac
26396   done
26397
26398   (set) 2>&1 |
26399     case $as_nl`(ac_space=' '; set) 2>&1` in #(
26400     *${as_nl}ac_space=\ *)
26401       # `set' does not quote correctly, so add quotes: double-quote
26402       # substitution turns \\\\ into \\, and sed turns \\ into \.
26403       sed -n \
26404         "s/'/'\\\\''/g;
26405           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26406       ;; #(
26407     *)
26408       # `set' quotes correctly as required by POSIX, so do not add quotes.
26409       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26410       ;;
26411     esac |
26412     sort
26413 ) |
26414   sed '
26415      /^ac_cv_env_/b end
26416      t clear
26417      :clear
26418      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26419      t end
26420      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26421      :end' >>confcache
26422 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26423   if test -w "$cache_file"; then
26424     if test "x$cache_file" != "x/dev/null"; then
26425       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26426 $as_echo "$as_me: updating cache $cache_file" >&6;}
26427       if test ! -f "$cache_file" || test -h "$cache_file"; then
26428         cat confcache >"$cache_file"
26429       else
26430         case $cache_file in #(
26431         */* | ?:*)
26432           mv -f confcache "$cache_file"$$ &&
26433           mv -f "$cache_file"$$ "$cache_file" ;; #(
26434         *)
26435           mv -f confcache "$cache_file" ;;
26436         esac
26437       fi
26438     fi
26439   else
26440     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26441 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26442   fi
26443 fi
26444 rm -f confcache
26445
26446 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26447 # Let make expand exec_prefix.
26448 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26449
26450 DEFS=-DHAVE_CONFIG_H
26451
26452 ac_libobjs=
26453 ac_ltlibobjs=
26454 U=
26455 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26456   # 1. Remove the extension, and $U if already installed.
26457   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26458   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26459   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
26460   #    will be set to the directory where LIBOBJS objects are built.
26461   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26462   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26463 done
26464 LIBOBJS=$ac_libobjs
26465
26466 LTLIBOBJS=$ac_ltlibobjs
26467
26468
26469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
26470 $as_echo_n "checking that generated files are newer than configure... " >&6; }
26471    if test -n "$am_sleep_pid"; then
26472      # Hide warnings about reused PIDs.
26473      wait $am_sleep_pid 2>/dev/null
26474    fi
26475    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
26476 $as_echo "done" >&6; }
26477  if test -n "$EXEEXT"; then
26478   am__EXEEXT_TRUE=
26479   am__EXEEXT_FALSE='#'
26480 else
26481   am__EXEEXT_TRUE='#'
26482   am__EXEEXT_FALSE=
26483 fi
26484
26485 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
26486   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
26487 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26488 fi
26489 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26490   as_fn_error $? "conditional \"AMDEP\" was never defined.
26491 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26492 fi
26493 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26494   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
26495 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26496 fi
26497 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26498   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
26499 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26500 fi
26501 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26502   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
26503 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26504 fi
26505 if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
26506   as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
26507 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26508 fi
26509 if test -z "${HAVE_DOSISH_SYSTEM_TRUE}" && test -z "${HAVE_DOSISH_SYSTEM_FALSE}"; then
26510   as_fn_error $? "conditional \"HAVE_DOSISH_SYSTEM\" was never defined.
26511 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26512 fi
26513 if test -z "${HAVE_W32_SYSTEM_TRUE}" && test -z "${HAVE_W32_SYSTEM_FALSE}"; then
26514   as_fn_error $? "conditional \"HAVE_W32_SYSTEM\" was never defined.
26515 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26516 fi
26517 if test -z "${HAVE_W64_SYSTEM_TRUE}" && test -z "${HAVE_W64_SYSTEM_FALSE}"; then
26518   as_fn_error $? "conditional \"HAVE_W64_SYSTEM\" was never defined.
26519 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26520 fi
26521 if test -z "${HAVE_ANDROID_SYSTEM_TRUE}" && test -z "${HAVE_ANDROID_SYSTEM_FALSE}"; then
26522   as_fn_error $? "conditional \"HAVE_ANDROID_SYSTEM\" was never defined.
26523 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26524 fi
26525 if test -z "${HAVE_MACOS_SYSTEM_TRUE}" && test -z "${HAVE_MACOS_SYSTEM_FALSE}"; then
26526   as_fn_error $? "conditional \"HAVE_MACOS_SYSTEM\" was never defined.
26527 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26528 fi
26529 if test -z "${BUILD_W32_GLIB_TRUE}" && test -z "${BUILD_W32_GLIB_FALSE}"; then
26530   as_fn_error $? "conditional \"BUILD_W32_GLIB\" was never defined.
26531 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26532 fi
26533 if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
26534   as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
26535 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26536 fi
26537 if test -z "${RUN_GPGCONF_TESTS_TRUE}" && test -z "${RUN_GPGCONF_TESTS_FALSE}"; then
26538   as_fn_error $? "conditional \"RUN_GPGCONF_TESTS\" was never defined.
26539 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26540 fi
26541 if test -z "${RUN_GPG_TESTS_TRUE}" && test -z "${RUN_GPG_TESTS_FALSE}"; then
26542   as_fn_error $? "conditional \"RUN_GPG_TESTS\" was never defined.
26543 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26544 fi
26545 if test -z "${RUN_GPGSM_TESTS_TRUE}" && test -z "${RUN_GPGSM_TESTS_FALSE}"; then
26546   as_fn_error $? "conditional \"RUN_GPGSM_TESTS\" was never defined.
26547 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26548 fi
26549 if test -z "${RUN_G13_TESTS_TRUE}" && test -z "${RUN_G13_TESTS_FALSE}"; then
26550   as_fn_error $? "conditional \"RUN_G13_TESTS\" was never defined.
26551 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26552 fi
26553 if test -z "${USE_DESCRIPTOR_PASSING_TRUE}" && test -z "${USE_DESCRIPTOR_PASSING_FALSE}"; then
26554   as_fn_error $? "conditional \"USE_DESCRIPTOR_PASSING\" was never defined.
26555 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26556 fi
26557 if test -z "${HAVE_UISERVER_TRUE}" && test -z "${HAVE_UISERVER_FALSE}"; then
26558   as_fn_error $? "conditional \"HAVE_UISERVER\" was never defined.
26559 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26560 fi
26561
26562 : "${CONFIG_STATUS=./config.status}"
26563 ac_write_fail=0
26564 ac_clean_files_save=$ac_clean_files
26565 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26566 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26567 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26568 as_write_fail=0
26569 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26570 #! $SHELL
26571 # Generated by $as_me.
26572 # Run this file to recreate the current configuration.
26573 # Compiler output produced by configure, useful for debugging
26574 # configure, is in config.log if it exists.
26575
26576 debug=false
26577 ac_cs_recheck=false
26578 ac_cs_silent=false
26579
26580 SHELL=\${CONFIG_SHELL-$SHELL}
26581 export SHELL
26582 _ASEOF
26583 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26584 ## -------------------- ##
26585 ## M4sh Initialization. ##
26586 ## -------------------- ##
26587
26588 # Be more Bourne compatible
26589 DUALCASE=1; export DUALCASE # for MKS sh
26590 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26591   emulate sh
26592   NULLCMD=:
26593   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26594   # is contrary to our usage.  Disable this feature.
26595   alias -g '${1+"$@"}'='"$@"'
26596   setopt NO_GLOB_SUBST
26597 else
26598   case `(set -o) 2>/dev/null` in #(
26599   *posix*) :
26600     set -o posix ;; #(
26601   *) :
26602      ;;
26603 esac
26604 fi
26605
26606
26607 as_nl='
26608 '
26609 export as_nl
26610 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26611 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26612 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26613 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26614 # Prefer a ksh shell builtin over an external printf program on Solaris,
26615 # but without wasting forks for bash or zsh.
26616 if test -z "$BASH_VERSION$ZSH_VERSION" \
26617     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26618   as_echo='print -r --'
26619   as_echo_n='print -rn --'
26620 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26621   as_echo='printf %s\n'
26622   as_echo_n='printf %s'
26623 else
26624   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26625     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26626     as_echo_n='/usr/ucb/echo -n'
26627   else
26628     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26629     as_echo_n_body='eval
26630       arg=$1;
26631       case $arg in #(
26632       *"$as_nl"*)
26633         expr "X$arg" : "X\\(.*\\)$as_nl";
26634         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26635       esac;
26636       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26637     '
26638     export as_echo_n_body
26639     as_echo_n='sh -c $as_echo_n_body as_echo'
26640   fi
26641   export as_echo_body
26642   as_echo='sh -c $as_echo_body as_echo'
26643 fi
26644
26645 # The user is always right.
26646 if test "${PATH_SEPARATOR+set}" != set; then
26647   PATH_SEPARATOR=:
26648   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26649     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26650       PATH_SEPARATOR=';'
26651   }
26652 fi
26653
26654
26655 # IFS
26656 # We need space, tab and new line, in precisely that order.  Quoting is
26657 # there to prevent editors from complaining about space-tab.
26658 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26659 # splitting by setting IFS to empty value.)
26660 IFS=" ""        $as_nl"
26661
26662 # Find who we are.  Look in the path if we contain no directory separator.
26663 as_myself=
26664 case $0 in #((
26665   *[\\/]* ) as_myself=$0 ;;
26666   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26667 for as_dir in $PATH
26668 do
26669   IFS=$as_save_IFS
26670   test -z "$as_dir" && as_dir=.
26671     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26672   done
26673 IFS=$as_save_IFS
26674
26675      ;;
26676 esac
26677 # We did not find ourselves, most probably we were run as `sh COMMAND'
26678 # in which case we are not to be found in the path.
26679 if test "x$as_myself" = x; then
26680   as_myself=$0
26681 fi
26682 if test ! -f "$as_myself"; then
26683   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26684   exit 1
26685 fi
26686
26687 # Unset variables that we do not need and which cause bugs (e.g. in
26688 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
26689 # suppresses any "Segmentation fault" message there.  '((' could
26690 # trigger a bug in pdksh 5.2.14.
26691 for as_var in BASH_ENV ENV MAIL MAILPATH
26692 do eval test x\${$as_var+set} = xset \
26693   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26694 done
26695 PS1='$ '
26696 PS2='> '
26697 PS4='+ '
26698
26699 # NLS nuisances.
26700 LC_ALL=C
26701 export LC_ALL
26702 LANGUAGE=C
26703 export LANGUAGE
26704
26705 # CDPATH.
26706 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26707
26708
26709 # as_fn_error STATUS ERROR [LINENO LOG_FD]
26710 # ----------------------------------------
26711 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26712 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26713 # script with STATUS, using 1 if that was 0.
26714 as_fn_error ()
26715 {
26716   as_status=$1; test $as_status -eq 0 && as_status=1
26717   if test "$4"; then
26718     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26719     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
26720   fi
26721   $as_echo "$as_me: error: $2" >&2
26722   as_fn_exit $as_status
26723 } # as_fn_error
26724
26725
26726 # as_fn_set_status STATUS
26727 # -----------------------
26728 # Set $? to STATUS, without forking.
26729 as_fn_set_status ()
26730 {
26731   return $1
26732 } # as_fn_set_status
26733
26734 # as_fn_exit STATUS
26735 # -----------------
26736 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26737 as_fn_exit ()
26738 {
26739   set +e
26740   as_fn_set_status $1
26741   exit $1
26742 } # as_fn_exit
26743
26744 # as_fn_unset VAR
26745 # ---------------
26746 # Portably unset VAR.
26747 as_fn_unset ()
26748 {
26749   { eval $1=; unset $1;}
26750 }
26751 as_unset=as_fn_unset
26752 # as_fn_append VAR VALUE
26753 # ----------------------
26754 # Append the text in VALUE to the end of the definition contained in VAR. Take
26755 # advantage of any shell optimizations that allow amortized linear growth over
26756 # repeated appends, instead of the typical quadratic growth present in naive
26757 # implementations.
26758 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26759   eval 'as_fn_append ()
26760   {
26761     eval $1+=\$2
26762   }'
26763 else
26764   as_fn_append ()
26765   {
26766     eval $1=\$$1\$2
26767   }
26768 fi # as_fn_append
26769
26770 # as_fn_arith ARG...
26771 # ------------------
26772 # Perform arithmetic evaluation on the ARGs, and store the result in the
26773 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26774 # must be portable across $(()) and expr.
26775 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26776   eval 'as_fn_arith ()
26777   {
26778     as_val=$(( $* ))
26779   }'
26780 else
26781   as_fn_arith ()
26782   {
26783     as_val=`expr "$@" || test $? -eq 1`
26784   }
26785 fi # as_fn_arith
26786
26787
26788 if expr a : '\(a\)' >/dev/null 2>&1 &&
26789    test "X`expr 00001 : '.*\(...\)'`" = X001; then
26790   as_expr=expr
26791 else
26792   as_expr=false
26793 fi
26794
26795 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26796   as_basename=basename
26797 else
26798   as_basename=false
26799 fi
26800
26801 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26802   as_dirname=dirname
26803 else
26804   as_dirname=false
26805 fi
26806
26807 as_me=`$as_basename -- "$0" ||
26808 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26809          X"$0" : 'X\(//\)$' \| \
26810          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26811 $as_echo X/"$0" |
26812     sed '/^.*\/\([^/][^/]*\)\/*$/{
26813             s//\1/
26814             q
26815           }
26816           /^X\/\(\/\/\)$/{
26817             s//\1/
26818             q
26819           }
26820           /^X\/\(\/\).*/{
26821             s//\1/
26822             q
26823           }
26824           s/.*/./; q'`
26825
26826 # Avoid depending upon Character Ranges.
26827 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26828 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26829 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26830 as_cr_digits='0123456789'
26831 as_cr_alnum=$as_cr_Letters$as_cr_digits
26832
26833 ECHO_C= ECHO_N= ECHO_T=
26834 case `echo -n x` in #(((((
26835 -n*)
26836   case `echo 'xy\c'` in
26837   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
26838   xy)  ECHO_C='\c';;
26839   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
26840        ECHO_T=' ';;
26841   esac;;
26842 *)
26843   ECHO_N='-n';;
26844 esac
26845
26846 rm -f conf$$ conf$$.exe conf$$.file
26847 if test -d conf$$.dir; then
26848   rm -f conf$$.dir/conf$$.file
26849 else
26850   rm -f conf$$.dir
26851   mkdir conf$$.dir 2>/dev/null
26852 fi
26853 if (echo >conf$$.file) 2>/dev/null; then
26854   if ln -s conf$$.file conf$$ 2>/dev/null; then
26855     as_ln_s='ln -s'
26856     # ... but there are two gotchas:
26857     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26858     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26859     # In both cases, we have to default to `cp -pR'.
26860     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26861       as_ln_s='cp -pR'
26862   elif ln conf$$.file conf$$ 2>/dev/null; then
26863     as_ln_s=ln
26864   else
26865     as_ln_s='cp -pR'
26866   fi
26867 else
26868   as_ln_s='cp -pR'
26869 fi
26870 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26871 rmdir conf$$.dir 2>/dev/null
26872
26873
26874 # as_fn_mkdir_p
26875 # -------------
26876 # Create "$as_dir" as a directory, including parents if necessary.
26877 as_fn_mkdir_p ()
26878 {
26879
26880   case $as_dir in #(
26881   -*) as_dir=./$as_dir;;
26882   esac
26883   test -d "$as_dir" || eval $as_mkdir_p || {
26884     as_dirs=
26885     while :; do
26886       case $as_dir in #(
26887       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26888       *) as_qdir=$as_dir;;
26889       esac
26890       as_dirs="'$as_qdir' $as_dirs"
26891       as_dir=`$as_dirname -- "$as_dir" ||
26892 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26893          X"$as_dir" : 'X\(//\)[^/]' \| \
26894          X"$as_dir" : 'X\(//\)$' \| \
26895          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26896 $as_echo X"$as_dir" |
26897     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26898             s//\1/
26899             q
26900           }
26901           /^X\(\/\/\)[^/].*/{
26902             s//\1/
26903             q
26904           }
26905           /^X\(\/\/\)$/{
26906             s//\1/
26907             q
26908           }
26909           /^X\(\/\).*/{
26910             s//\1/
26911             q
26912           }
26913           s/.*/./; q'`
26914       test -d "$as_dir" && break
26915     done
26916     test -z "$as_dirs" || eval "mkdir $as_dirs"
26917   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
26918
26919
26920 } # as_fn_mkdir_p
26921 if mkdir -p . 2>/dev/null; then
26922   as_mkdir_p='mkdir -p "$as_dir"'
26923 else
26924   test -d ./-p && rmdir ./-p
26925   as_mkdir_p=false
26926 fi
26927
26928
26929 # as_fn_executable_p FILE
26930 # -----------------------
26931 # Test if FILE is an executable regular file.
26932 as_fn_executable_p ()
26933 {
26934   test -f "$1" && test -x "$1"
26935 } # as_fn_executable_p
26936 as_test_x='test -x'
26937 as_executable_p=as_fn_executable_p
26938
26939 # Sed expression to map a string onto a valid CPP name.
26940 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26941
26942 # Sed expression to map a string onto a valid variable name.
26943 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26944
26945
26946 exec 6>&1
26947 ## ----------------------------------- ##
26948 ## Main body of $CONFIG_STATUS script. ##
26949 ## ----------------------------------- ##
26950 _ASEOF
26951 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26952
26953 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26954 # Save the log message, to keep $0 and so on meaningful, and to
26955 # report actual input values of CONFIG_FILES etc. instead of their
26956 # values after options handling.
26957 ac_log="
26958 This file was extended by gpgme $as_me 1.15.1, which was
26959 generated by GNU Autoconf 2.69.  Invocation command line was
26960
26961   CONFIG_FILES    = $CONFIG_FILES
26962   CONFIG_HEADERS  = $CONFIG_HEADERS
26963   CONFIG_LINKS    = $CONFIG_LINKS
26964   CONFIG_COMMANDS = $CONFIG_COMMANDS
26965   $ $0 $@
26966
26967 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26968 "
26969
26970 _ACEOF
26971
26972 case $ac_config_files in *"
26973 "*) set x $ac_config_files; shift; ac_config_files=$*;;
26974 esac
26975
26976 case $ac_config_headers in *"
26977 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26978 esac
26979
26980
26981 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26982 # Files that config.status was made for.
26983 config_files="$ac_config_files"
26984 config_headers="$ac_config_headers"
26985 config_commands="$ac_config_commands"
26986
26987 _ACEOF
26988
26989 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26990 ac_cs_usage="\
26991 \`$as_me' instantiates files and other configuration actions
26992 from templates according to the current configuration.  Unless the files
26993 and actions are specified as TAGs, all are instantiated by default.
26994
26995 Usage: $0 [OPTION]... [TAG]...
26996
26997   -h, --help       print this help, then exit
26998   -V, --version    print version number and configuration settings, then exit
26999       --config     print configuration, then exit
27000   -q, --quiet, --silent
27001                    do not print progress messages
27002   -d, --debug      don't remove temporary files
27003       --recheck    update $as_me by reconfiguring in the same conditions
27004       --file=FILE[:TEMPLATE]
27005                    instantiate the configuration file FILE
27006       --header=FILE[:TEMPLATE]
27007                    instantiate the configuration header FILE
27008
27009 Configuration files:
27010 $config_files
27011
27012 Configuration headers:
27013 $config_headers
27014
27015 Configuration commands:
27016 $config_commands
27017
27018 Report bugs to <https://bugs.gnupg.org>."
27019
27020 _ACEOF
27021 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27022 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
27023 ac_cs_version="\\
27024 gpgme config.status 1.15.1
27025 configured by $0, generated by GNU Autoconf 2.69,
27026   with options \\"\$ac_cs_config\\"
27027
27028 Copyright (C) 2012 Free Software Foundation, Inc.
27029 This config.status script is free software; the Free Software Foundation
27030 gives unlimited permission to copy, distribute and modify it."
27031
27032 ac_pwd='$ac_pwd'
27033 srcdir='$srcdir'
27034 INSTALL='$INSTALL'
27035 MKDIR_P='$MKDIR_P'
27036 AWK='$AWK'
27037 test -n "\$AWK" || AWK=awk
27038 _ACEOF
27039
27040 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27041 # The default lists apply if the user does not specify any file.
27042 ac_need_defaults=:
27043 while test $# != 0
27044 do
27045   case $1 in
27046   --*=?*)
27047     ac_option=`expr "X$1" : 'X\([^=]*\)='`
27048     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27049     ac_shift=:
27050     ;;
27051   --*=)
27052     ac_option=`expr "X$1" : 'X\([^=]*\)='`
27053     ac_optarg=
27054     ac_shift=:
27055     ;;
27056   *)
27057     ac_option=$1
27058     ac_optarg=$2
27059     ac_shift=shift
27060     ;;
27061   esac
27062
27063   case $ac_option in
27064   # Handling of the options.
27065   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27066     ac_cs_recheck=: ;;
27067   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27068     $as_echo "$ac_cs_version"; exit ;;
27069   --config | --confi | --conf | --con | --co | --c )
27070     $as_echo "$ac_cs_config"; exit ;;
27071   --debug | --debu | --deb | --de | --d | -d )
27072     debug=: ;;
27073   --file | --fil | --fi | --f )
27074     $ac_shift
27075     case $ac_optarg in
27076     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27077     '') as_fn_error $? "missing file argument" ;;
27078     esac
27079     as_fn_append CONFIG_FILES " '$ac_optarg'"
27080     ac_need_defaults=false;;
27081   --header | --heade | --head | --hea )
27082     $ac_shift
27083     case $ac_optarg in
27084     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27085     esac
27086     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27087     ac_need_defaults=false;;
27088   --he | --h)
27089     # Conflict between --help and --header
27090     as_fn_error $? "ambiguous option: \`$1'
27091 Try \`$0 --help' for more information.";;
27092   --help | --hel | -h )
27093     $as_echo "$ac_cs_usage"; exit ;;
27094   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27095   | -silent | --silent | --silen | --sile | --sil | --si | --s)
27096     ac_cs_silent=: ;;
27097
27098   # This is an error.
27099   -*) as_fn_error $? "unrecognized option: \`$1'
27100 Try \`$0 --help' for more information." ;;
27101
27102   *) as_fn_append ac_config_targets " $1"
27103      ac_need_defaults=false ;;
27104
27105   esac
27106   shift
27107 done
27108
27109 ac_configure_extra_args=
27110
27111 if $ac_cs_silent; then
27112   exec 6>/dev/null
27113   ac_configure_extra_args="$ac_configure_extra_args --silent"
27114 fi
27115
27116 _ACEOF
27117 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27118 if \$ac_cs_recheck; then
27119   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27120   shift
27121   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27122   CONFIG_SHELL='$SHELL'
27123   export CONFIG_SHELL
27124   exec "\$@"
27125 fi
27126
27127 _ACEOF
27128 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27129 exec 5>>config.log
27130 {
27131   echo
27132   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27133 ## Running $as_me. ##
27134 _ASBOX
27135   $as_echo "$ac_log"
27136 } >&5
27137
27138 _ACEOF
27139 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27140 #
27141 # INIT-COMMANDS
27142 #
27143 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
27144
27145
27146 # The HP-UX ksh and POSIX shell print the target directory to stdout
27147 # if CDPATH is set.
27148 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27149
27150 sed_quote_subst='$sed_quote_subst'
27151 double_quote_subst='$double_quote_subst'
27152 delay_variable_subst='$delay_variable_subst'
27153 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
27154 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
27155 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
27156 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
27157 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
27158 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
27159 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
27160 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
27161 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
27162 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
27163 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
27164 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
27165 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
27166 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
27167 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
27168 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
27169 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
27170 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
27171 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
27172 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
27173 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
27174 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
27175 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
27176 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
27177 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
27178 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
27179 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
27180 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
27181 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
27182 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
27183 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
27184 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
27185 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
27186 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
27187 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
27188 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
27189 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
27190 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
27191 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
27192 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
27193 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
27194 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
27195 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
27196 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
27197 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
27198 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
27199 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27200 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27201 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
27202 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
27203 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
27204 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
27205 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
27206 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
27207 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
27208 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
27209 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
27210 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"`'
27211 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
27212 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
27213 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
27214 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
27215 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
27216 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
27217 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
27218 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
27219 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
27220 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
27221 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
27222 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
27223 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
27224 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
27225 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
27226 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
27227 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
27228 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
27229 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27230 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
27231 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
27232 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
27233 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
27234 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
27235 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
27236 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27237 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
27238 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27239 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
27240 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27241 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
27242 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
27243 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
27244 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
27245 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
27246 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
27247 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
27248 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
27249 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
27250 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
27251 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
27252 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
27253 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
27254 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
27255 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
27256 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
27257 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
27258 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
27259 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
27260 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
27261 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
27262 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
27263 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
27264 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
27265 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
27266 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
27267 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
27268 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
27269 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
27270 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
27271 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27272 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27273 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
27274 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
27275 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
27276 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
27277 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
27278 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
27279 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
27280 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
27281 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
27282 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
27283 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
27284 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
27285 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
27286 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
27287 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
27288 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
27289 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
27290 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
27291 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
27292 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
27293 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
27294 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27295 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
27296 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27297 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
27298 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
27299 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
27300 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
27301 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
27302 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
27303 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
27304 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
27305 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
27306 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
27307 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
27308 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
27309 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
27310 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
27311 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
27312 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
27313 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
27314 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
27315 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
27316 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
27317 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
27318 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
27319 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
27320 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
27321 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
27322 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27323 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
27324 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27325 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
27326 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27327 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
27328 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27329 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
27330 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27331 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
27332 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27333 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
27334 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
27335 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
27336 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
27337 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
27338 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
27339 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
27340 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
27341 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
27342 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
27343 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
27344 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
27345 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
27346 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
27347 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
27348 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
27349 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
27350 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
27351 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
27352 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
27353 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
27354 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
27355 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
27356 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
27357 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
27358 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
27359 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
27360 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27361 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
27362 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
27363 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
27364 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
27365 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
27366 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27367 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
27368 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27369 postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
27370 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
27371 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
27372 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
27373 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
27374 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
27375 compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
27376 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
27377 predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
27378 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
27379 postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
27380 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
27381 predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
27382 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
27383 postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
27384 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
27385 compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
27386
27387 LTCC='$LTCC'
27388 LTCFLAGS='$LTCFLAGS'
27389 compiler='$compiler_DEFAULT'
27390
27391 # A function that is used when there is no print builtin or printf.
27392 func_fallback_echo ()
27393 {
27394   eval 'cat <<_LTECHO_EOF
27395 \$1
27396 _LTECHO_EOF'
27397 }
27398
27399 # Quote evaled strings.
27400 for var in AS \
27401 DLLTOOL \
27402 OBJDUMP \
27403 SHELL \
27404 ECHO \
27405 PATH_SEPARATOR \
27406 SED \
27407 GREP \
27408 EGREP \
27409 FGREP \
27410 LD \
27411 NM \
27412 LN_S \
27413 lt_SP2NL \
27414 lt_NL2SP \
27415 reload_flag \
27416 deplibs_check_method \
27417 file_magic_cmd \
27418 file_magic_glob \
27419 want_nocaseglob \
27420 sharedlib_from_linklib_cmd \
27421 AR \
27422 AR_FLAGS \
27423 archiver_list_spec \
27424 STRIP \
27425 RANLIB \
27426 CC \
27427 CFLAGS \
27428 compiler \
27429 lt_cv_sys_global_symbol_pipe \
27430 lt_cv_sys_global_symbol_to_cdecl \
27431 lt_cv_sys_global_symbol_to_c_name_address \
27432 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
27433 nm_file_list_spec \
27434 lt_prog_compiler_no_builtin_flag \
27435 lt_prog_compiler_pic \
27436 lt_prog_compiler_wl \
27437 lt_prog_compiler_static \
27438 lt_cv_prog_compiler_c_o \
27439 need_locks \
27440 MANIFEST_TOOL \
27441 DSYMUTIL \
27442 NMEDIT \
27443 LIPO \
27444 OTOOL \
27445 OTOOL64 \
27446 shrext_cmds \
27447 export_dynamic_flag_spec \
27448 whole_archive_flag_spec \
27449 compiler_needs_object \
27450 with_gnu_ld \
27451 allow_undefined_flag \
27452 no_undefined_flag \
27453 hardcode_libdir_flag_spec \
27454 hardcode_libdir_separator \
27455 exclude_expsyms \
27456 include_expsyms \
27457 file_list_spec \
27458 variables_saved_for_relink \
27459 libname_spec \
27460 library_names_spec \
27461 soname_spec \
27462 install_override_mode \
27463 finish_eval \
27464 old_striplib \
27465 striplib \
27466 compiler_lib_search_dirs \
27467 predep_objects \
27468 postdep_objects \
27469 predeps \
27470 postdeps \
27471 compiler_lib_search_path \
27472 LD_CXX \
27473 LD_RC \
27474 reload_flag_CXX \
27475 reload_flag_RC \
27476 compiler_CXX \
27477 compiler_RC \
27478 lt_prog_compiler_no_builtin_flag_CXX \
27479 lt_prog_compiler_no_builtin_flag_RC \
27480 lt_prog_compiler_pic_CXX \
27481 lt_prog_compiler_pic_RC \
27482 lt_prog_compiler_wl_CXX \
27483 lt_prog_compiler_wl_RC \
27484 lt_prog_compiler_static_CXX \
27485 lt_prog_compiler_static_RC \
27486 lt_cv_prog_compiler_c_o_CXX \
27487 lt_cv_prog_compiler_c_o_RC \
27488 export_dynamic_flag_spec_CXX \
27489 export_dynamic_flag_spec_RC \
27490 whole_archive_flag_spec_CXX \
27491 whole_archive_flag_spec_RC \
27492 compiler_needs_object_CXX \
27493 compiler_needs_object_RC \
27494 with_gnu_ld_CXX \
27495 with_gnu_ld_RC \
27496 allow_undefined_flag_CXX \
27497 allow_undefined_flag_RC \
27498 no_undefined_flag_CXX \
27499 no_undefined_flag_RC \
27500 hardcode_libdir_flag_spec_CXX \
27501 hardcode_libdir_flag_spec_RC \
27502 hardcode_libdir_separator_CXX \
27503 hardcode_libdir_separator_RC \
27504 exclude_expsyms_CXX \
27505 exclude_expsyms_RC \
27506 include_expsyms_CXX \
27507 include_expsyms_RC \
27508 file_list_spec_CXX \
27509 file_list_spec_RC \
27510 compiler_lib_search_dirs_CXX \
27511 compiler_lib_search_dirs_RC \
27512 predep_objects_CXX \
27513 predep_objects_RC \
27514 postdep_objects_CXX \
27515 postdep_objects_RC \
27516 predeps_CXX \
27517 predeps_RC \
27518 postdeps_CXX \
27519 postdeps_RC \
27520 compiler_lib_search_path_CXX \
27521 compiler_lib_search_path_RC; do
27522     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27523     *[\\\\\\\`\\"\\\$]*)
27524       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
27525       ;;
27526     *)
27527       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27528       ;;
27529     esac
27530 done
27531
27532 # Double-quote double-evaled strings.
27533 for var in reload_cmds \
27534 old_postinstall_cmds \
27535 old_postuninstall_cmds \
27536 old_archive_cmds \
27537 extract_expsyms_cmds \
27538 old_archive_from_new_cmds \
27539 old_archive_from_expsyms_cmds \
27540 archive_cmds \
27541 archive_expsym_cmds \
27542 module_cmds \
27543 module_expsym_cmds \
27544 export_symbols_cmds \
27545 prelink_cmds \
27546 postlink_cmds \
27547 postinstall_cmds \
27548 postuninstall_cmds \
27549 finish_cmds \
27550 sys_lib_search_path_spec \
27551 sys_lib_dlsearch_path_spec \
27552 reload_cmds_CXX \
27553 reload_cmds_RC \
27554 old_archive_cmds_CXX \
27555 old_archive_cmds_RC \
27556 old_archive_from_new_cmds_CXX \
27557 old_archive_from_new_cmds_RC \
27558 old_archive_from_expsyms_cmds_CXX \
27559 old_archive_from_expsyms_cmds_RC \
27560 archive_cmds_CXX \
27561 archive_cmds_RC \
27562 archive_expsym_cmds_CXX \
27563 archive_expsym_cmds_RC \
27564 module_cmds_CXX \
27565 module_cmds_RC \
27566 module_expsym_cmds_CXX \
27567 module_expsym_cmds_RC \
27568 export_symbols_cmds_CXX \
27569 export_symbols_cmds_RC \
27570 prelink_cmds_CXX \
27571 prelink_cmds_RC \
27572 postlink_cmds_CXX \
27573 postlink_cmds_RC; do
27574     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27575     *[\\\\\\\`\\"\\\$]*)
27576       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
27577       ;;
27578     *)
27579       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27580       ;;
27581     esac
27582 done
27583
27584 ac_aux_dir='$ac_aux_dir'
27585 xsi_shell='$xsi_shell'
27586 lt_shell_append='$lt_shell_append'
27587
27588 # See if we are running on zsh, and set the options which allow our
27589 # commands through without removal of \ escapes INIT.
27590 if test -n "\${ZSH_VERSION+set}" ; then
27591    setopt NO_GLOB_SUBST
27592 fi
27593
27594
27595     PACKAGE='$PACKAGE'
27596     VERSION='$VERSION'
27597     TIMESTAMP='$TIMESTAMP'
27598     RM='$RM'
27599     ofile='$ofile'
27600
27601
27602
27603
27604
27605
27606
27607
27608 _ACEOF
27609
27610 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27611
27612 # Handling of arguments.
27613 for ac_config_target in $ac_config_targets
27614 do
27615   case $ac_config_target in
27616     "conf/config.h") CONFIG_HEADERS="$CONFIG_HEADERS conf/config.h" ;;
27617     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27618     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
27619     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27620     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
27621     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
27622     "tests/gpg/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gpg/Makefile" ;;
27623     "tests/gpgsm/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gpgsm/Makefile" ;;
27624     "tests/opassuan/Makefile") CONFIG_FILES="$CONFIG_FILES tests/opassuan/Makefile" ;;
27625     "tests/json/Makefile") CONFIG_FILES="$CONFIG_FILES tests/json/Makefile" ;;
27626     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
27627     "src/versioninfo.rc") CONFIG_FILES="$CONFIG_FILES src/versioninfo.rc" ;;
27628     "src/gpgme.pc") CONFIG_FILES="$CONFIG_FILES src/gpgme.pc" ;;
27629     "src/gpgme-glib.pc") CONFIG_FILES="$CONFIG_FILES src/gpgme-glib.pc" ;;
27630     "src/gpgme.h") CONFIG_FILES="$CONFIG_FILES src/gpgme.h" ;;
27631     "src/gpgme-config") CONFIG_FILES="$CONFIG_FILES src/gpgme-config" ;;
27632     "lang/cpp/Makefile") CONFIG_FILES="$CONFIG_FILES lang/cpp/Makefile" ;;
27633     "lang/cpp/src/Makefile") CONFIG_FILES="$CONFIG_FILES lang/cpp/src/Makefile" ;;
27634     "lang/cpp/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lang/cpp/tests/Makefile" ;;
27635     "lang/cpp/src/GpgmeppConfig-w32.cmake.in") CONFIG_FILES="$CONFIG_FILES lang/cpp/src/GpgmeppConfig-w32.cmake.in" ;;
27636     "lang/cpp/src/GpgmeppConfig.cmake.in") CONFIG_FILES="$CONFIG_FILES lang/cpp/src/GpgmeppConfig.cmake.in" ;;
27637     "lang/cpp/src/GpgmeppConfigVersion.cmake") CONFIG_FILES="$CONFIG_FILES lang/cpp/src/GpgmeppConfigVersion.cmake" ;;
27638     "lang/cpp/src/gpgmepp_version.h") CONFIG_FILES="$CONFIG_FILES lang/cpp/src/gpgmepp_version.h" ;;
27639     "lang/qt/Makefile") CONFIG_FILES="$CONFIG_FILES lang/qt/Makefile" ;;
27640     "lang/qt/src/Makefile") CONFIG_FILES="$CONFIG_FILES lang/qt/src/Makefile" ;;
27641     "lang/qt/src/QGpgmeConfig-w32.cmake.in") CONFIG_FILES="$CONFIG_FILES lang/qt/src/QGpgmeConfig-w32.cmake.in" ;;
27642     "lang/qt/src/QGpgmeConfig.cmake.in") CONFIG_FILES="$CONFIG_FILES lang/qt/src/QGpgmeConfig.cmake.in" ;;
27643     "lang/qt/src/QGpgmeConfigVersion.cmake") CONFIG_FILES="$CONFIG_FILES lang/qt/src/QGpgmeConfigVersion.cmake" ;;
27644     "lang/qt/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lang/qt/tests/Makefile" ;;
27645     "lang/qt/src/qgpgme_version.h") CONFIG_FILES="$CONFIG_FILES lang/qt/src/qgpgme_version.h" ;;
27646     "lang/Makefile") CONFIG_FILES="$CONFIG_FILES lang/Makefile" ;;
27647     "lang/cl/Makefile") CONFIG_FILES="$CONFIG_FILES lang/cl/Makefile" ;;
27648     "lang/cl/gpgme.asd") CONFIG_FILES="$CONFIG_FILES lang/cl/gpgme.asd" ;;
27649     "lang/qt/doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES lang/qt/doc/Doxyfile" ;;
27650     "lang/js/Makefile") CONFIG_FILES="$CONFIG_FILES lang/js/Makefile" ;;
27651     "lang/js/src/Makefile") CONFIG_FILES="$CONFIG_FILES lang/js/src/Makefile" ;;
27652     "lang/js/BrowserTestExtension/Makefile") CONFIG_FILES="$CONFIG_FILES lang/js/BrowserTestExtension/Makefile" ;;
27653     "lang/js/DemoExtension/Makefile") CONFIG_FILES="$CONFIG_FILES lang/js/DemoExtension/Makefile" ;;
27654     "lang/qt/doc/Makefile") CONFIG_FILES="$CONFIG_FILES lang/qt/doc/Makefile" ;;
27655     "lang/python/Makefile") CONFIG_FILES="$CONFIG_FILES lang/python/Makefile" ;;
27656     "lang/python/version.py") CONFIG_FILES="$CONFIG_FILES lang/python/version.py" ;;
27657     "lang/python/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lang/python/tests/Makefile" ;;
27658     "lang/python/src/Makefile") CONFIG_FILES="$CONFIG_FILES lang/python/src/Makefile" ;;
27659     "lang/python/examples/Makefile") CONFIG_FILES="$CONFIG_FILES lang/python/examples/Makefile" ;;
27660     "lang/python/doc/Makefile") CONFIG_FILES="$CONFIG_FILES lang/python/doc/Makefile" ;;
27661     "lang/python/setup.py") CONFIG_FILES="$CONFIG_FILES lang/python/setup.py" ;;
27662
27663   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27664   esac
27665 done
27666
27667
27668 # If the user did not use the arguments to specify the items to instantiate,
27669 # then the envvar interface is used.  Set only those that are not.
27670 # We use the long form for the default assignment because of an extremely
27671 # bizarre bug on SunOS 4.1.3.
27672 if $ac_need_defaults; then
27673   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27674   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27675   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27676 fi
27677
27678 # Have a temporary directory for convenience.  Make it in the build tree
27679 # simply because there is no reason against having it here, and in addition,
27680 # creating and moving files from /tmp can sometimes cause problems.
27681 # Hook for its removal unless debugging.
27682 # Note that there is a small window in which the directory will not be cleaned:
27683 # after its creation but before its name has been assigned to `$tmp'.
27684 $debug ||
27685 {
27686   tmp= ac_tmp=
27687   trap 'exit_status=$?
27688   : "${ac_tmp:=$tmp}"
27689   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
27690 ' 0
27691   trap 'as_fn_exit 1' 1 2 13 15
27692 }
27693 # Create a (secure) tmp directory for tmp files.
27694
27695 {
27696   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27697   test -d "$tmp"
27698 }  ||
27699 {
27700   tmp=./conf$$-$RANDOM
27701   (umask 077 && mkdir "$tmp")
27702 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
27703 ac_tmp=$tmp
27704
27705 # Set up the scripts for CONFIG_FILES section.
27706 # No need to generate them if there are no CONFIG_FILES.
27707 # This happens for instance with `./config.status config.h'.
27708 if test -n "$CONFIG_FILES"; then
27709
27710
27711 ac_cr=`echo X | tr X '\015'`
27712 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27713 # But we know of no other shell where ac_cr would be empty at this
27714 # point, so we can use a bashism as a fallback.
27715 if test "x$ac_cr" = x; then
27716   eval ac_cr=\$\'\\r\'
27717 fi
27718 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27719 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27720   ac_cs_awk_cr='\\r'
27721 else
27722   ac_cs_awk_cr=$ac_cr
27723 fi
27724
27725 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
27726 _ACEOF
27727
27728
27729 {
27730   echo "cat >conf$$subs.awk <<_ACEOF" &&
27731   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27732   echo "_ACEOF"
27733 } >conf$$subs.sh ||
27734   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27735 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
27736 ac_delim='%!_!# '
27737 for ac_last_try in false false false false false :; do
27738   . ./conf$$subs.sh ||
27739     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27740
27741   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27742   if test $ac_delim_n = $ac_delim_num; then
27743     break
27744   elif $ac_last_try; then
27745     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27746   else
27747     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27748   fi
27749 done
27750 rm -f conf$$subs.sh
27751
27752 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27753 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
27754 _ACEOF
27755 sed -n '
27756 h
27757 s/^/S["/; s/!.*/"]=/
27758 p
27759 g
27760 s/^[^!]*!//
27761 :repl
27762 t repl
27763 s/'"$ac_delim"'$//
27764 t delim
27765 :nl
27766 h
27767 s/\(.\{148\}\)..*/\1/
27768 t more1
27769 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27770 p
27771 n
27772 b repl
27773 :more1
27774 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27775 p
27776 g
27777 s/.\{148\}//
27778 t nl
27779 :delim
27780 h
27781 s/\(.\{148\}\)..*/\1/
27782 t more2
27783 s/["\\]/\\&/g; s/^/"/; s/$/"/
27784 p
27785 b
27786 :more2
27787 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27788 p
27789 g
27790 s/.\{148\}//
27791 t delim
27792 ' <conf$$subs.awk | sed '
27793 /^[^""]/{
27794   N
27795   s/\n//
27796 }
27797 ' >>$CONFIG_STATUS || ac_write_fail=1
27798 rm -f conf$$subs.awk
27799 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27800 _ACAWK
27801 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
27802   for (key in S) S_is_set[key] = 1
27803   FS = "\a"
27804
27805 }
27806 {
27807   line = $ 0
27808   nfields = split(line, field, "@")
27809   substed = 0
27810   len = length(field[1])
27811   for (i = 2; i < nfields; i++) {
27812     key = field[i]
27813     keylen = length(key)
27814     if (S_is_set[key]) {
27815       value = S[key]
27816       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27817       len += length(value) + length(field[++i])
27818       substed = 1
27819     } else
27820       len += 1 + keylen
27821   }
27822
27823   print line
27824 }
27825
27826 _ACAWK
27827 _ACEOF
27828 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27829 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27830   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27831 else
27832   cat
27833 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
27834   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
27835 _ACEOF
27836
27837 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
27838 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
27839 # trailing colons and then remove the whole line if VPATH becomes empty
27840 # (actually we leave an empty line to preserve line numbers).
27841 if test "x$srcdir" = x.; then
27842   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
27843 h
27844 s///
27845 s/^/:/
27846 s/[      ]*$/:/
27847 s/:\$(srcdir):/:/g
27848 s/:\${srcdir}:/:/g
27849 s/:@srcdir@:/:/g
27850 s/^:*//
27851 s/:*$//
27852 x
27853 s/\(=[   ]*\).*/\1/
27854 G
27855 s/\n//
27856 s/^[^=]*=[       ]*$//
27857 }'
27858 fi
27859
27860 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27861 fi # test -n "$CONFIG_FILES"
27862
27863 # Set up the scripts for CONFIG_HEADERS section.
27864 # No need to generate them if there are no CONFIG_HEADERS.
27865 # This happens for instance with `./config.status Makefile'.
27866 if test -n "$CONFIG_HEADERS"; then
27867 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
27868 BEGIN {
27869 _ACEOF
27870
27871 # Transform confdefs.h into an awk script `defines.awk', embedded as
27872 # here-document in config.status, that substitutes the proper values into
27873 # config.h.in to produce config.h.
27874
27875 # Create a delimiter string that does not exist in confdefs.h, to ease
27876 # handling of long lines.
27877 ac_delim='%!_!# '
27878 for ac_last_try in false false :; do
27879   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
27880   if test -z "$ac_tt"; then
27881     break
27882   elif $ac_last_try; then
27883     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
27884   else
27885     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27886   fi
27887 done
27888
27889 # For the awk script, D is an array of macro values keyed by name,
27890 # likewise P contains macro parameters if any.  Preserve backslash
27891 # newline sequences.
27892
27893 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27894 sed -n '
27895 s/.\{148\}/&'"$ac_delim"'/g
27896 t rset
27897 :rset
27898 s/^[     ]*#[    ]*define[       ][      ]*/ /
27899 t def
27900 d
27901 :def
27902 s/\\$//
27903 t bsnl
27904 s/["\\]/\\&/g
27905 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
27906 D["\1"]=" \3"/p
27907 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
27908 d
27909 :bsnl
27910 s/["\\]/\\&/g
27911 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
27912 D["\1"]=" \3\\\\\\n"\\/p
27913 t cont
27914 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27915 t cont
27916 d
27917 :cont
27918 n
27919 s/.\{148\}/&'"$ac_delim"'/g
27920 t clear
27921 :clear
27922 s/\\$//
27923 t bsnlc
27924 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27925 d
27926 :bsnlc
27927 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27928 b cont
27929 ' <confdefs.h | sed '
27930 s/'"$ac_delim"'/"\\\
27931 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27932
27933 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27934   for (key in D) D_is_set[key] = 1
27935   FS = "\a"
27936 }
27937 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27938   line = \$ 0
27939   split(line, arg, " ")
27940   if (arg[1] == "#") {
27941     defundef = arg[2]
27942     mac1 = arg[3]
27943   } else {
27944     defundef = substr(arg[1], 2)
27945     mac1 = arg[2]
27946   }
27947   split(mac1, mac2, "(") #)
27948   macro = mac2[1]
27949   prefix = substr(line, 1, index(line, defundef) - 1)
27950   if (D_is_set[macro]) {
27951     # Preserve the white space surrounding the "#".
27952     print prefix "define", macro P[macro] D[macro]
27953     next
27954   } else {
27955     # Replace #undef with comments.  This is necessary, for example,
27956     # in the case of _POSIX_SOURCE, which is predefined and required
27957     # on some systems where configure will not decide to define it.
27958     if (defundef == "undef") {
27959       print "/*", prefix defundef, macro, "*/"
27960       next
27961     }
27962   }
27963 }
27964 { print }
27965 _ACAWK
27966 _ACEOF
27967 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27968   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
27969 fi # test -n "$CONFIG_HEADERS"
27970
27971
27972 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
27973 shift
27974 for ac_tag
27975 do
27976   case $ac_tag in
27977   :[FHLC]) ac_mode=$ac_tag; continue;;
27978   esac
27979   case $ac_mode$ac_tag in
27980   :[FHL]*:*);;
27981   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
27982   :[FH]-) ac_tag=-:-;;
27983   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27984   esac
27985   ac_save_IFS=$IFS
27986   IFS=:
27987   set x $ac_tag
27988   IFS=$ac_save_IFS
27989   shift
27990   ac_file=$1
27991   shift
27992
27993   case $ac_mode in
27994   :L) ac_source=$1;;
27995   :[FH])
27996     ac_file_inputs=
27997     for ac_f
27998     do
27999       case $ac_f in
28000       -) ac_f="$ac_tmp/stdin";;
28001       *) # Look for the file first in the build tree, then in the source tree
28002          # (if the path is not absolute).  The absolute path cannot be DOS-style,
28003          # because $ac_f cannot contain `:'.
28004          test -f "$ac_f" ||
28005            case $ac_f in
28006            [\\/$]*) false;;
28007            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28008            esac ||
28009            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28010       esac
28011       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28012       as_fn_append ac_file_inputs " '$ac_f'"
28013     done
28014
28015     # Let's still pretend it is `configure' which instantiates (i.e., don't
28016     # use $as_me), people would be surprised to read:
28017     #    /* config.h.  Generated by config.status.  */
28018     configure_input='Generated from '`
28019           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28020         `' by configure.'
28021     if test x"$ac_file" != x-; then
28022       configure_input="$ac_file.  $configure_input"
28023       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28024 $as_echo "$as_me: creating $ac_file" >&6;}
28025     fi
28026     # Neutralize special characters interpreted by sed in replacement strings.
28027     case $configure_input in #(
28028     *\&* | *\|* | *\\* )
28029        ac_sed_conf_input=`$as_echo "$configure_input" |
28030        sed 's/[\\\\&|]/\\\\&/g'`;; #(
28031     *) ac_sed_conf_input=$configure_input;;
28032     esac
28033
28034     case $ac_tag in
28035     *:-:* | *:-) cat >"$ac_tmp/stdin" \
28036       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
28037     esac
28038     ;;
28039   esac
28040
28041   ac_dir=`$as_dirname -- "$ac_file" ||
28042 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28043          X"$ac_file" : 'X\(//\)[^/]' \| \
28044          X"$ac_file" : 'X\(//\)$' \| \
28045          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28046 $as_echo X"$ac_file" |
28047     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28048             s//\1/
28049             q
28050           }
28051           /^X\(\/\/\)[^/].*/{
28052             s//\1/
28053             q
28054           }
28055           /^X\(\/\/\)$/{
28056             s//\1/
28057             q
28058           }
28059           /^X\(\/\).*/{
28060             s//\1/
28061             q
28062           }
28063           s/.*/./; q'`
28064   as_dir="$ac_dir"; as_fn_mkdir_p
28065   ac_builddir=.
28066
28067 case "$ac_dir" in
28068 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28069 *)
28070   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28071   # A ".." for each directory in $ac_dir_suffix.
28072   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28073   case $ac_top_builddir_sub in
28074   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28075   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28076   esac ;;
28077 esac
28078 ac_abs_top_builddir=$ac_pwd
28079 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28080 # for backward compatibility:
28081 ac_top_builddir=$ac_top_build_prefix
28082
28083 case $srcdir in
28084   .)  # We are building in place.
28085     ac_srcdir=.
28086     ac_top_srcdir=$ac_top_builddir_sub
28087     ac_abs_top_srcdir=$ac_pwd ;;
28088   [\\/]* | ?:[\\/]* )  # Absolute name.
28089     ac_srcdir=$srcdir$ac_dir_suffix;
28090     ac_top_srcdir=$srcdir
28091     ac_abs_top_srcdir=$srcdir ;;
28092   *) # Relative name.
28093     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28094     ac_top_srcdir=$ac_top_build_prefix$srcdir
28095     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28096 esac
28097 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28098
28099
28100   case $ac_mode in
28101   :F)
28102   #
28103   # CONFIG_FILE
28104   #
28105
28106   case $INSTALL in
28107   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28108   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28109   esac
28110   ac_MKDIR_P=$MKDIR_P
28111   case $MKDIR_P in
28112   [\\/$]* | ?:[\\/]* ) ;;
28113   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
28114   esac
28115 _ACEOF
28116
28117 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28118 # If the template does not know about datarootdir, expand it.
28119 # FIXME: This hack should be removed a few years after 2.60.
28120 ac_datarootdir_hack=; ac_datarootdir_seen=
28121 ac_sed_dataroot='
28122 /datarootdir/ {
28123   p
28124   q
28125 }
28126 /@datadir@/p
28127 /@docdir@/p
28128 /@infodir@/p
28129 /@localedir@/p
28130 /@mandir@/p'
28131 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28132 *datarootdir*) ac_datarootdir_seen=yes;;
28133 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28134   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28135 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28136 _ACEOF
28137 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28138   ac_datarootdir_hack='
28139   s&@datadir@&$datadir&g
28140   s&@docdir@&$docdir&g
28141   s&@infodir@&$infodir&g
28142   s&@localedir@&$localedir&g
28143   s&@mandir@&$mandir&g
28144   s&\\\${datarootdir}&$datarootdir&g' ;;
28145 esac
28146 _ACEOF
28147
28148 # Neutralize VPATH when `$srcdir' = `.'.
28149 # Shell code in configure.ac might set extrasub.
28150 # FIXME: do we really want to maintain this feature?
28151 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28152 ac_sed_extra="$ac_vpsub
28153 $extrasub
28154 _ACEOF
28155 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28156 :t
28157 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28158 s|@configure_input@|$ac_sed_conf_input|;t t
28159 s&@top_builddir@&$ac_top_builddir_sub&;t t
28160 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28161 s&@srcdir@&$ac_srcdir&;t t
28162 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28163 s&@top_srcdir@&$ac_top_srcdir&;t t
28164 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28165 s&@builddir@&$ac_builddir&;t t
28166 s&@abs_builddir@&$ac_abs_builddir&;t t
28167 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28168 s&@INSTALL@&$ac_INSTALL&;t t
28169 s&@MKDIR_P@&$ac_MKDIR_P&;t t
28170 $ac_datarootdir_hack
28171 "
28172 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
28173   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28174
28175 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28176   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
28177   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
28178       "$ac_tmp/out"`; test -z "$ac_out"; } &&
28179   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28180 which seems to be undefined.  Please make sure it is defined" >&5
28181 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28182 which seems to be undefined.  Please make sure it is defined" >&2;}
28183
28184   rm -f "$ac_tmp/stdin"
28185   case $ac_file in
28186   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
28187   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
28188   esac \
28189   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28190  ;;
28191   :H)
28192   #
28193   # CONFIG_HEADER
28194   #
28195   if test x"$ac_file" != x-; then
28196     {
28197       $as_echo "/* $configure_input  */" \
28198       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
28199     } >"$ac_tmp/config.h" \
28200       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28201     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
28202       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28203 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28204     else
28205       rm -f "$ac_file"
28206       mv "$ac_tmp/config.h" "$ac_file" \
28207         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28208     fi
28209   else
28210     $as_echo "/* $configure_input  */" \
28211       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
28212       || as_fn_error $? "could not create -" "$LINENO" 5
28213   fi
28214 # Compute "$ac_file"'s index in $config_headers.
28215 _am_arg="$ac_file"
28216 _am_stamp_count=1
28217 for _am_header in $config_headers :; do
28218   case $_am_header in
28219     $_am_arg | $_am_arg:* )
28220       break ;;
28221     * )
28222       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28223   esac
28224 done
28225 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28226 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28227          X"$_am_arg" : 'X\(//\)[^/]' \| \
28228          X"$_am_arg" : 'X\(//\)$' \| \
28229          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28230 $as_echo X"$_am_arg" |
28231     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28232             s//\1/
28233             q
28234           }
28235           /^X\(\/\/\)[^/].*/{
28236             s//\1/
28237             q
28238           }
28239           /^X\(\/\/\)$/{
28240             s//\1/
28241             q
28242           }
28243           /^X\(\/\).*/{
28244             s//\1/
28245             q
28246           }
28247           s/.*/./; q'`/stamp-h$_am_stamp_count
28248  ;;
28249
28250   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28251 $as_echo "$as_me: executing $ac_file commands" >&6;}
28252  ;;
28253   esac
28254
28255
28256   case $ac_file$ac_mode in
28257     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
28258   # Older Autoconf quotes --file arguments for eval, but not when files
28259   # are listed without --file.  Let's play safe and only enable the eval
28260   # if we detect the quoting.
28261   # TODO: see whether this extra hack can be removed once we start
28262   # requiring Autoconf 2.70 or later.
28263   case $CONFIG_FILES in #(
28264   *\'*) :
28265     eval set x "$CONFIG_FILES" ;; #(
28266   *) :
28267     set x $CONFIG_FILES ;; #(
28268   *) :
28269      ;;
28270 esac
28271   shift
28272   # Used to flag and report bootstrapping failures.
28273   am_rc=0
28274   for am_mf
28275   do
28276     # Strip MF so we end up with the name of the file.
28277     am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
28278     # Check whether this is an Automake generated Makefile which includes
28279     # dependency-tracking related rules and includes.
28280     # Grep'ing the whole file directly is not great: AIX grep has a line
28281     # limit of 2048, but all sed's we know have understand at least 4000.
28282     sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
28283       || continue
28284     am_dirpart=`$as_dirname -- "$am_mf" ||
28285 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28286          X"$am_mf" : 'X\(//\)[^/]' \| \
28287          X"$am_mf" : 'X\(//\)$' \| \
28288          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
28289 $as_echo X"$am_mf" |
28290     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28291             s//\1/
28292             q
28293           }
28294           /^X\(\/\/\)[^/].*/{
28295             s//\1/
28296             q
28297           }
28298           /^X\(\/\/\)$/{
28299             s//\1/
28300             q
28301           }
28302           /^X\(\/\).*/{
28303             s//\1/
28304             q
28305           }
28306           s/.*/./; q'`
28307     am_filepart=`$as_basename -- "$am_mf" ||
28308 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
28309          X"$am_mf" : 'X\(//\)$' \| \
28310          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
28311 $as_echo X/"$am_mf" |
28312     sed '/^.*\/\([^/][^/]*\)\/*$/{
28313             s//\1/
28314             q
28315           }
28316           /^X\/\(\/\/\)$/{
28317             s//\1/
28318             q
28319           }
28320           /^X\/\(\/\).*/{
28321             s//\1/
28322             q
28323           }
28324           s/.*/./; q'`
28325     { echo "$as_me:$LINENO: cd "$am_dirpart" \
28326       && sed -e '/# am--include-marker/d' "$am_filepart" \
28327         | $MAKE -f - am--depfiles" >&5
28328    (cd "$am_dirpart" \
28329       && sed -e '/# am--include-marker/d' "$am_filepart" \
28330         | $MAKE -f - am--depfiles) >&5 2>&5
28331    ac_status=$?
28332    echo "$as_me:$LINENO: \$? = $ac_status" >&5
28333    (exit $ac_status); } || am_rc=$?
28334   done
28335   if test $am_rc -ne 0; then
28336     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28337 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28338 as_fn_error $? "Something went wrong bootstrapping makefile fragments
28339     for automatic dependency tracking.  Try re-running configure with the
28340     '--disable-dependency-tracking' option to at least be able to build
28341     the package (albeit without support for automatic dependency tracking).
28342 See \`config.log' for more details" "$LINENO" 5; }
28343   fi
28344   { am_dirpart=; unset am_dirpart;}
28345   { am_filepart=; unset am_filepart;}
28346   { am_mf=; unset am_mf;}
28347   { am_rc=; unset am_rc;}
28348   rm -f conftest-deps.mk
28349 }
28350  ;;
28351     "libtool":C)
28352
28353     # See if we are running on zsh, and set the options which allow our
28354     # commands through without removal of \ escapes.
28355     if test -n "${ZSH_VERSION+set}" ; then
28356       setopt NO_GLOB_SUBST
28357     fi
28358
28359     cfgfile="${ofile}T"
28360     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
28361     $RM "$cfgfile"
28362
28363     cat <<_LT_EOF >> "$cfgfile"
28364 #! $SHELL
28365
28366 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
28367 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
28368 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
28369 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
28370 #
28371 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
28372 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
28373 #                 Foundation, Inc.
28374 #   Written by Gordon Matzigkeit, 1996
28375 #
28376 #   This file is part of GNU Libtool.
28377 #
28378 # GNU Libtool is free software; you can redistribute it and/or
28379 # modify it under the terms of the GNU General Public License as
28380 # published by the Free Software Foundation; either version 2 of
28381 # the License, or (at your option) any later version.
28382 #
28383 # As a special exception to the GNU General Public License,
28384 # if you distribute this file as part of a program or library that
28385 # is built using GNU Libtool, you may include this file under the
28386 # same distribution terms that you use for the rest of that program.
28387 #
28388 # GNU Libtool is distributed in the hope that it will be useful,
28389 # but WITHOUT ANY WARRANTY; without even the implied warranty of
28390 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
28391 # GNU General Public License for more details.
28392 #
28393 # You should have received a copy of the GNU General Public License
28394 # along with GNU Libtool; see the file COPYING.  If not, a copy
28395 # can be downloaded from https://www.gnu.org/licenses/gpl.html, or
28396 # obtained by writing to the Free Software Foundation, Inc.,
28397 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
28398
28399
28400 # The names of the tagged configurations supported by this script.
28401 available_tags="CXX RC "
28402
28403 # ### BEGIN LIBTOOL CONFIG
28404
28405 # Which release of libtool.m4 was used?
28406 macro_version=$macro_version
28407 macro_revision=$macro_revision
28408
28409 # Assembler program.
28410 AS=$lt_AS
28411
28412 # DLL creation program.
28413 DLLTOOL=$lt_DLLTOOL
28414
28415 # Object dumper program.
28416 OBJDUMP=$lt_OBJDUMP
28417
28418 # Whether or not to build static libraries.
28419 build_old_libs=$enable_static
28420
28421 # Whether or not to build shared libraries.
28422 build_libtool_libs=$enable_shared
28423
28424 # What type of objects to build.
28425 pic_mode=$pic_mode
28426
28427 # Whether or not to optimize for fast installation.
28428 fast_install=$enable_fast_install
28429
28430 # Shell to use when invoking shell scripts.
28431 SHELL=$lt_SHELL
28432
28433 # An echo program that protects backslashes.
28434 ECHO=$lt_ECHO
28435
28436 # The PATH separator for the build system.
28437 PATH_SEPARATOR=$lt_PATH_SEPARATOR
28438
28439 # The host system.
28440 host_alias=$host_alias
28441 host=$host
28442 host_os=$host_os
28443
28444 # The build system.
28445 build_alias=$build_alias
28446 build=$build
28447 build_os=$build_os
28448
28449 # A sed program that does not truncate output.
28450 SED=$lt_SED
28451
28452 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
28453 Xsed="\$SED -e 1s/^X//"
28454
28455 # A grep program that handles long lines.
28456 GREP=$lt_GREP
28457
28458 # An ERE matcher.
28459 EGREP=$lt_EGREP
28460
28461 # A literal string matcher.
28462 FGREP=$lt_FGREP
28463
28464 # A BSD- or MS-compatible name lister.
28465 NM=$lt_NM
28466
28467 # Whether we need soft or hard links.
28468 LN_S=$lt_LN_S
28469
28470 # What is the maximum length of a command?
28471 max_cmd_len=$max_cmd_len
28472
28473 # Object file suffix (normally "o").
28474 objext=$ac_objext
28475
28476 # Executable file suffix (normally "").
28477 exeext=$exeext
28478
28479 # whether the shell understands "unset".
28480 lt_unset=$lt_unset
28481
28482 # turn spaces into newlines.
28483 SP2NL=$lt_lt_SP2NL
28484
28485 # turn newlines into spaces.
28486 NL2SP=$lt_lt_NL2SP
28487
28488 # convert \$build file names to \$host format.
28489 to_host_file_cmd=$lt_cv_to_host_file_cmd
28490
28491 # convert \$build files to toolchain format.
28492 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
28493
28494 # Method to check whether dependent libraries are shared objects.
28495 deplibs_check_method=$lt_deplibs_check_method
28496
28497 # Command to use when deplibs_check_method = "file_magic".
28498 file_magic_cmd=$lt_file_magic_cmd
28499
28500 # How to find potential files when deplibs_check_method = "file_magic".
28501 file_magic_glob=$lt_file_magic_glob
28502
28503 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
28504 want_nocaseglob=$lt_want_nocaseglob
28505
28506 # Command to associate shared and link libraries.
28507 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
28508
28509 # The archiver.
28510 AR=$lt_AR
28511
28512 # Flags to create an archive.
28513 AR_FLAGS=$lt_AR_FLAGS
28514
28515 # How to feed a file listing to the archiver.
28516 archiver_list_spec=$lt_archiver_list_spec
28517
28518 # A symbol stripping program.
28519 STRIP=$lt_STRIP
28520
28521 # Commands used to install an old-style archive.
28522 RANLIB=$lt_RANLIB
28523 old_postinstall_cmds=$lt_old_postinstall_cmds
28524 old_postuninstall_cmds=$lt_old_postuninstall_cmds
28525
28526 # Whether to use a lock for old archive extraction.
28527 lock_old_archive_extraction=$lock_old_archive_extraction
28528
28529 # A C compiler.
28530 LTCC=$lt_CC
28531
28532 # LTCC compiler flags.
28533 LTCFLAGS=$lt_CFLAGS
28534
28535 # Take the output of nm and produce a listing of raw symbols and C names.
28536 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28537
28538 # Transform the output of nm in a proper C declaration.
28539 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28540
28541 # Transform the output of nm in a C name address pair.
28542 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28543
28544 # Transform the output of nm in a C name address pair when lib prefix is needed.
28545 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
28546
28547 # Specify filename containing input files for \$NM.
28548 nm_file_list_spec=$lt_nm_file_list_spec
28549
28550 # The root where to search for dependent libraries,and in which our libraries should be installed.
28551 lt_sysroot=$lt_sysroot
28552
28553 # The name of the directory that contains temporary libtool files.
28554 objdir=$objdir
28555
28556 # Used to examine libraries when file_magic_cmd begins with "file".
28557 MAGIC_CMD=$MAGIC_CMD
28558
28559 # Must we lock files when doing compilation?
28560 need_locks=$lt_need_locks
28561
28562 # Manifest tool.
28563 MANIFEST_TOOL=$lt_MANIFEST_TOOL
28564
28565 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
28566 DSYMUTIL=$lt_DSYMUTIL
28567
28568 # Tool to change global to local symbols on Mac OS X.
28569 NMEDIT=$lt_NMEDIT
28570
28571 # Tool to manipulate fat objects and archives on Mac OS X.
28572 LIPO=$lt_LIPO
28573
28574 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
28575 OTOOL=$lt_OTOOL
28576
28577 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
28578 OTOOL64=$lt_OTOOL64
28579
28580 # Old archive suffix (normally "a").
28581 libext=$libext
28582
28583 # Shared library suffix (normally ".so").
28584 shrext_cmds=$lt_shrext_cmds
28585
28586 # The commands to extract the exported symbol list from a shared archive.
28587 extract_expsyms_cmds=$lt_extract_expsyms_cmds
28588
28589 # Variables whose values should be saved in libtool wrapper scripts and
28590 # restored at link time.
28591 variables_saved_for_relink=$lt_variables_saved_for_relink
28592
28593 # Do we need the "lib" prefix for modules?
28594 need_lib_prefix=$need_lib_prefix
28595
28596 # Do we need a version for libraries?
28597 need_version=$need_version
28598
28599 # Library versioning type.
28600 version_type=$version_type
28601
28602 # Shared library runtime path variable.
28603 runpath_var=$runpath_var
28604
28605 # Shared library path variable.
28606 shlibpath_var=$shlibpath_var
28607
28608 # Is shlibpath searched before the hard-coded library search path?
28609 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
28610
28611 # Format of library name prefix.
28612 libname_spec=$lt_libname_spec
28613
28614 # List of archive names.  First name is the real one, the rest are links.
28615 # The last name is the one that the linker finds with -lNAME
28616 library_names_spec=$lt_library_names_spec
28617
28618 # The coded name of the library, if different from the real name.
28619 soname_spec=$lt_soname_spec
28620
28621 # Permission mode override for installation of shared libraries.
28622 install_override_mode=$lt_install_override_mode
28623
28624 # Command to use after installation of a shared archive.
28625 postinstall_cmds=$lt_postinstall_cmds
28626
28627 # Command to use after uninstallation of a shared archive.
28628 postuninstall_cmds=$lt_postuninstall_cmds
28629
28630 # Commands used to finish a libtool library installation in a directory.
28631 finish_cmds=$lt_finish_cmds
28632
28633 # As "finish_cmds", except a single script fragment to be evaled but
28634 # not shown.
28635 finish_eval=$lt_finish_eval
28636
28637 # Whether we should hardcode library paths into libraries.
28638 hardcode_into_libs=$hardcode_into_libs
28639
28640 # Compile-time system search path for libraries.
28641 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
28642
28643 # Run-time system search path for libraries.
28644 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
28645
28646 # Whether dlopen is supported.
28647 dlopen_support=$enable_dlopen
28648
28649 # Whether dlopen of programs is supported.
28650 dlopen_self=$enable_dlopen_self
28651
28652 # Whether dlopen of statically linked programs is supported.
28653 dlopen_self_static=$enable_dlopen_self_static
28654
28655 # Commands to strip libraries.
28656 old_striplib=$lt_old_striplib
28657 striplib=$lt_striplib
28658
28659
28660 # The linker used to build libraries.
28661 LD=$lt_LD
28662
28663 # How to create reloadable object files.
28664 reload_flag=$lt_reload_flag
28665 reload_cmds=$lt_reload_cmds
28666
28667 # Commands used to build an old-style archive.
28668 old_archive_cmds=$lt_old_archive_cmds
28669
28670 # A language specific compiler.
28671 CC=$lt_compiler
28672
28673 # Is the compiler the GNU compiler?
28674 with_gcc=$GCC
28675
28676 # Compiler flag to turn off builtin functions.
28677 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
28678
28679 # Additional compiler flags for building library objects.
28680 pic_flag=$lt_lt_prog_compiler_pic
28681
28682 # How to pass a linker flag through the compiler.
28683 wl=$lt_lt_prog_compiler_wl
28684
28685 # Compiler flag to prevent dynamic linking.
28686 link_static_flag=$lt_lt_prog_compiler_static
28687
28688 # Does compiler simultaneously support -c and -o options?
28689 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
28690
28691 # Whether or not to add -lc for building shared libraries.
28692 build_libtool_need_lc=$archive_cmds_need_lc
28693
28694 # Whether or not to disallow shared libs when runtime libs are static.
28695 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
28696
28697 # Compiler flag to allow reflexive dlopens.
28698 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
28699
28700 # Compiler flag to generate shared objects directly from archives.
28701 whole_archive_flag_spec=$lt_whole_archive_flag_spec
28702
28703 # Whether the compiler copes with passing no objects directly.
28704 compiler_needs_object=$lt_compiler_needs_object
28705
28706 # Create an old-style archive from a shared archive.
28707 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
28708
28709 # Create a temporary old-style archive to link instead of a shared archive.
28710 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
28711
28712 # Commands used to build a shared archive.
28713 archive_cmds=$lt_archive_cmds
28714 archive_expsym_cmds=$lt_archive_expsym_cmds
28715
28716 # Commands used to build a loadable module if different from building
28717 # a shared archive.
28718 module_cmds=$lt_module_cmds
28719 module_expsym_cmds=$lt_module_expsym_cmds
28720
28721 # Whether we are building with GNU ld or not.
28722 with_gnu_ld=$lt_with_gnu_ld
28723
28724 # Flag that allows shared libraries with undefined symbols to be built.
28725 allow_undefined_flag=$lt_allow_undefined_flag
28726
28727 # Flag that enforces no undefined symbols.
28728 no_undefined_flag=$lt_no_undefined_flag
28729
28730 # Flag to hardcode \$libdir into a binary during linking.
28731 # This must work even if \$libdir does not exist
28732 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
28733
28734 # Whether we need a single "-rpath" flag with a separated argument.
28735 hardcode_libdir_separator=$lt_hardcode_libdir_separator
28736
28737 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28738 # DIR into the resulting binary.
28739 hardcode_direct=$hardcode_direct
28740
28741 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28742 # DIR into the resulting binary and the resulting library dependency is
28743 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
28744 # library is relocated.
28745 hardcode_direct_absolute=$hardcode_direct_absolute
28746
28747 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28748 # into the resulting binary.
28749 hardcode_minus_L=$hardcode_minus_L
28750
28751 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28752 # into the resulting binary.
28753 hardcode_shlibpath_var=$hardcode_shlibpath_var
28754
28755 # Set to "yes" if building a shared library automatically hardcodes DIR
28756 # into the library and all subsequent libraries and executables linked
28757 # against it.
28758 hardcode_automatic=$hardcode_automatic
28759
28760 # Set to yes if linker adds runtime paths of dependent libraries
28761 # to runtime path list.
28762 inherit_rpath=$inherit_rpath
28763
28764 # Whether libtool must link a program against all its dependency libraries.
28765 link_all_deplibs=$link_all_deplibs
28766
28767 # Set to "yes" if exported symbols are required.
28768 always_export_symbols=$always_export_symbols
28769
28770 # The commands to list exported symbols.
28771 export_symbols_cmds=$lt_export_symbols_cmds
28772
28773 # Symbols that should not be listed in the preloaded symbols.
28774 exclude_expsyms=$lt_exclude_expsyms
28775
28776 # Symbols that must always be exported.
28777 include_expsyms=$lt_include_expsyms
28778
28779 # Commands necessary for linking programs (against libraries) with templates.
28780 prelink_cmds=$lt_prelink_cmds
28781
28782 # Commands necessary for finishing linking programs.
28783 postlink_cmds=$lt_postlink_cmds
28784
28785 # Specify filename containing input files.
28786 file_list_spec=$lt_file_list_spec
28787
28788 # How to hardcode a shared library path into an executable.
28789 hardcode_action=$hardcode_action
28790
28791 # The directories searched by this compiler when creating a shared library.
28792 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
28793
28794 # Dependencies to place before and after the objects being linked to
28795 # create a shared library.
28796 predep_objects=$lt_predep_objects
28797 postdep_objects=$lt_postdep_objects
28798 predeps=$lt_predeps
28799 postdeps=$lt_postdeps
28800
28801 # The library search path used internally by the compiler when linking
28802 # a shared library.
28803 compiler_lib_search_path=$lt_compiler_lib_search_path
28804
28805 # ### END LIBTOOL CONFIG
28806
28807 _LT_EOF
28808
28809   case $host_os in
28810   aix3*)
28811     cat <<\_LT_EOF >> "$cfgfile"
28812 # AIX sometimes has problems with the GCC collect2 program.  For some
28813 # reason, if we set the COLLECT_NAMES environment variable, the problems
28814 # vanish in a puff of smoke.
28815 if test "X${COLLECT_NAMES+set}" != Xset; then
28816   COLLECT_NAMES=
28817   export COLLECT_NAMES
28818 fi
28819 _LT_EOF
28820     ;;
28821   esac
28822
28823
28824 ltmain="$ac_aux_dir/ltmain.sh"
28825
28826
28827   # We use sed instead of cat because bash on DJGPP gets confused if
28828   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
28829   # text mode, it properly converts lines to CR/LF.  This bash problem
28830   # is reportedly fixed, but why not run on old versions too?
28831   sed '$q' "$ltmain" >> "$cfgfile" \
28832      || (rm -f "$cfgfile"; exit 1)
28833
28834   if test x"$xsi_shell" = xyes; then
28835   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
28836 func_dirname ()\
28837 {\
28838 \    case ${1} in\
28839 \      */*) func_dirname_result="${1%/*}${2}" ;;\
28840 \      *  ) func_dirname_result="${3}" ;;\
28841 \    esac\
28842 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
28843   && mv -f "$cfgfile.tmp" "$cfgfile" \
28844     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28845 test 0 -eq $? || _lt_function_replace_fail=:
28846
28847
28848   sed -e '/^func_basename ()$/,/^} # func_basename /c\
28849 func_basename ()\
28850 {\
28851 \    func_basename_result="${1##*/}"\
28852 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
28853   && mv -f "$cfgfile.tmp" "$cfgfile" \
28854     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28855 test 0 -eq $? || _lt_function_replace_fail=:
28856
28857
28858   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
28859 func_dirname_and_basename ()\
28860 {\
28861 \    case ${1} in\
28862 \      */*) func_dirname_result="${1%/*}${2}" ;;\
28863 \      *  ) func_dirname_result="${3}" ;;\
28864 \    esac\
28865 \    func_basename_result="${1##*/}"\
28866 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
28867   && mv -f "$cfgfile.tmp" "$cfgfile" \
28868     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28869 test 0 -eq $? || _lt_function_replace_fail=:
28870
28871
28872   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
28873 func_stripname ()\
28874 {\
28875 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
28876 \    # positional parameters, so assign one to ordinary parameter first.\
28877 \    func_stripname_result=${3}\
28878 \    func_stripname_result=${func_stripname_result#"${1}"}\
28879 \    func_stripname_result=${func_stripname_result%"${2}"}\
28880 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
28881   && mv -f "$cfgfile.tmp" "$cfgfile" \
28882     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28883 test 0 -eq $? || _lt_function_replace_fail=:
28884
28885
28886   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
28887 func_split_long_opt ()\
28888 {\
28889 \    func_split_long_opt_name=${1%%=*}\
28890 \    func_split_long_opt_arg=${1#*=}\
28891 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
28892   && mv -f "$cfgfile.tmp" "$cfgfile" \
28893     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28894 test 0 -eq $? || _lt_function_replace_fail=:
28895
28896
28897   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
28898 func_split_short_opt ()\
28899 {\
28900 \    func_split_short_opt_arg=${1#??}\
28901 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
28902 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
28903   && mv -f "$cfgfile.tmp" "$cfgfile" \
28904     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28905 test 0 -eq $? || _lt_function_replace_fail=:
28906
28907
28908   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
28909 func_lo2o ()\
28910 {\
28911 \    case ${1} in\
28912 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
28913 \      *)    func_lo2o_result=${1} ;;\
28914 \    esac\
28915 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
28916   && mv -f "$cfgfile.tmp" "$cfgfile" \
28917     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28918 test 0 -eq $? || _lt_function_replace_fail=:
28919
28920
28921   sed -e '/^func_xform ()$/,/^} # func_xform /c\
28922 func_xform ()\
28923 {\
28924     func_xform_result=${1%.*}.lo\
28925 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
28926   && mv -f "$cfgfile.tmp" "$cfgfile" \
28927     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28928 test 0 -eq $? || _lt_function_replace_fail=:
28929
28930
28931   sed -e '/^func_arith ()$/,/^} # func_arith /c\
28932 func_arith ()\
28933 {\
28934     func_arith_result=$(( $* ))\
28935 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
28936   && mv -f "$cfgfile.tmp" "$cfgfile" \
28937     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28938 test 0 -eq $? || _lt_function_replace_fail=:
28939
28940
28941   sed -e '/^func_len ()$/,/^} # func_len /c\
28942 func_len ()\
28943 {\
28944     func_len_result=${#1}\
28945 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
28946   && mv -f "$cfgfile.tmp" "$cfgfile" \
28947     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28948 test 0 -eq $? || _lt_function_replace_fail=:
28949
28950 fi
28951
28952 if test x"$lt_shell_append" = xyes; then
28953   sed -e '/^func_append ()$/,/^} # func_append /c\
28954 func_append ()\
28955 {\
28956     eval "${1}+=\\${2}"\
28957 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
28958   && mv -f "$cfgfile.tmp" "$cfgfile" \
28959     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28960 test 0 -eq $? || _lt_function_replace_fail=:
28961
28962
28963   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
28964 func_append_quoted ()\
28965 {\
28966 \    func_quote_for_eval "${2}"\
28967 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
28968 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
28969   && mv -f "$cfgfile.tmp" "$cfgfile" \
28970     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28971 test 0 -eq $? || _lt_function_replace_fail=:
28972
28973
28974   # Save a `func_append' function call where possible by direct use of '+='
28975   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
28976     && mv -f "$cfgfile.tmp" "$cfgfile" \
28977       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28978   test 0 -eq $? || _lt_function_replace_fail=:
28979 else
28980   # Save a `func_append' function call even when '+=' is not available
28981   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
28982     && mv -f "$cfgfile.tmp" "$cfgfile" \
28983       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28984   test 0 -eq $? || _lt_function_replace_fail=:
28985 fi
28986
28987 if test x"$_lt_function_replace_fail" = x":"; then
28988   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
28989 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
28990 fi
28991
28992
28993    mv -f "$cfgfile" "$ofile" ||
28994     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
28995   chmod +x "$ofile"
28996
28997
28998     cat <<_LT_EOF >> "$ofile"
28999
29000 # ### BEGIN LIBTOOL TAG CONFIG: CXX
29001
29002 # The linker used to build libraries.
29003 LD=$lt_LD_CXX
29004
29005 # How to create reloadable object files.
29006 reload_flag=$lt_reload_flag_CXX
29007 reload_cmds=$lt_reload_cmds_CXX
29008
29009 # Commands used to build an old-style archive.
29010 old_archive_cmds=$lt_old_archive_cmds_CXX
29011
29012 # A language specific compiler.
29013 CC=$lt_compiler_CXX
29014
29015 # Is the compiler the GNU compiler?
29016 with_gcc=$GCC_CXX
29017
29018 # Compiler flag to turn off builtin functions.
29019 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
29020
29021 # Additional compiler flags for building library objects.
29022 pic_flag=$lt_lt_prog_compiler_pic_CXX
29023
29024 # How to pass a linker flag through the compiler.
29025 wl=$lt_lt_prog_compiler_wl_CXX
29026
29027 # Compiler flag to prevent dynamic linking.
29028 link_static_flag=$lt_lt_prog_compiler_static_CXX
29029
29030 # Does compiler simultaneously support -c and -o options?
29031 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
29032
29033 # Whether or not to add -lc for building shared libraries.
29034 build_libtool_need_lc=$archive_cmds_need_lc_CXX
29035
29036 # Whether or not to disallow shared libs when runtime libs are static.
29037 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
29038
29039 # Compiler flag to allow reflexive dlopens.
29040 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
29041
29042 # Compiler flag to generate shared objects directly from archives.
29043 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
29044
29045 # Whether the compiler copes with passing no objects directly.
29046 compiler_needs_object=$lt_compiler_needs_object_CXX
29047
29048 # Create an old-style archive from a shared archive.
29049 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
29050
29051 # Create a temporary old-style archive to link instead of a shared archive.
29052 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
29053
29054 # Commands used to build a shared archive.
29055 archive_cmds=$lt_archive_cmds_CXX
29056 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
29057
29058 # Commands used to build a loadable module if different from building
29059 # a shared archive.
29060 module_cmds=$lt_module_cmds_CXX
29061 module_expsym_cmds=$lt_module_expsym_cmds_CXX
29062
29063 # Whether we are building with GNU ld or not.
29064 with_gnu_ld=$lt_with_gnu_ld_CXX
29065
29066 # Flag that allows shared libraries with undefined symbols to be built.
29067 allow_undefined_flag=$lt_allow_undefined_flag_CXX
29068
29069 # Flag that enforces no undefined symbols.
29070 no_undefined_flag=$lt_no_undefined_flag_CXX
29071
29072 # Flag to hardcode \$libdir into a binary during linking.
29073 # This must work even if \$libdir does not exist
29074 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
29075
29076 # Whether we need a single "-rpath" flag with a separated argument.
29077 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
29078
29079 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29080 # DIR into the resulting binary.
29081 hardcode_direct=$hardcode_direct_CXX
29082
29083 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29084 # DIR into the resulting binary and the resulting library dependency is
29085 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
29086 # library is relocated.
29087 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
29088
29089 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29090 # into the resulting binary.
29091 hardcode_minus_L=$hardcode_minus_L_CXX
29092
29093 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29094 # into the resulting binary.
29095 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
29096
29097 # Set to "yes" if building a shared library automatically hardcodes DIR
29098 # into the library and all subsequent libraries and executables linked
29099 # against it.
29100 hardcode_automatic=$hardcode_automatic_CXX
29101
29102 # Set to yes if linker adds runtime paths of dependent libraries
29103 # to runtime path list.
29104 inherit_rpath=$inherit_rpath_CXX
29105
29106 # Whether libtool must link a program against all its dependency libraries.
29107 link_all_deplibs=$link_all_deplibs_CXX
29108
29109 # Set to "yes" if exported symbols are required.
29110 always_export_symbols=$always_export_symbols_CXX
29111
29112 # The commands to list exported symbols.
29113 export_symbols_cmds=$lt_export_symbols_cmds_CXX
29114
29115 # Symbols that should not be listed in the preloaded symbols.
29116 exclude_expsyms=$lt_exclude_expsyms_CXX
29117
29118 # Symbols that must always be exported.
29119 include_expsyms=$lt_include_expsyms_CXX
29120
29121 # Commands necessary for linking programs (against libraries) with templates.
29122 prelink_cmds=$lt_prelink_cmds_CXX
29123
29124 # Commands necessary for finishing linking programs.
29125 postlink_cmds=$lt_postlink_cmds_CXX
29126
29127 # Specify filename containing input files.
29128 file_list_spec=$lt_file_list_spec_CXX
29129
29130 # How to hardcode a shared library path into an executable.
29131 hardcode_action=$hardcode_action_CXX
29132
29133 # The directories searched by this compiler when creating a shared library.
29134 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
29135
29136 # Dependencies to place before and after the objects being linked to
29137 # create a shared library.
29138 predep_objects=$lt_predep_objects_CXX
29139 postdep_objects=$lt_postdep_objects_CXX
29140 predeps=$lt_predeps_CXX
29141 postdeps=$lt_postdeps_CXX
29142
29143 # The library search path used internally by the compiler when linking
29144 # a shared library.
29145 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
29146
29147 # ### END LIBTOOL TAG CONFIG: CXX
29148 _LT_EOF
29149
29150
29151     cat <<_LT_EOF >> "$ofile"
29152
29153 # ### BEGIN LIBTOOL TAG CONFIG: RC
29154
29155 # The linker used to build libraries.
29156 LD=$lt_LD_RC
29157
29158 # How to create reloadable object files.
29159 reload_flag=$lt_reload_flag_RC
29160 reload_cmds=$lt_reload_cmds_RC
29161
29162 # Commands used to build an old-style archive.
29163 old_archive_cmds=$lt_old_archive_cmds_RC
29164
29165 # A language specific compiler.
29166 CC=$lt_compiler_RC
29167
29168 # Is the compiler the GNU compiler?
29169 with_gcc=$GCC_RC
29170
29171 # Compiler flag to turn off builtin functions.
29172 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
29173
29174 # Additional compiler flags for building library objects.
29175 pic_flag=$lt_lt_prog_compiler_pic_RC
29176
29177 # How to pass a linker flag through the compiler.
29178 wl=$lt_lt_prog_compiler_wl_RC
29179
29180 # Compiler flag to prevent dynamic linking.
29181 link_static_flag=$lt_lt_prog_compiler_static_RC
29182
29183 # Does compiler simultaneously support -c and -o options?
29184 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
29185
29186 # Whether or not to add -lc for building shared libraries.
29187 build_libtool_need_lc=$archive_cmds_need_lc_RC
29188
29189 # Whether or not to disallow shared libs when runtime libs are static.
29190 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
29191
29192 # Compiler flag to allow reflexive dlopens.
29193 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
29194
29195 # Compiler flag to generate shared objects directly from archives.
29196 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
29197
29198 # Whether the compiler copes with passing no objects directly.
29199 compiler_needs_object=$lt_compiler_needs_object_RC
29200
29201 # Create an old-style archive from a shared archive.
29202 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
29203
29204 # Create a temporary old-style archive to link instead of a shared archive.
29205 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
29206
29207 # Commands used to build a shared archive.
29208 archive_cmds=$lt_archive_cmds_RC
29209 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
29210
29211 # Commands used to build a loadable module if different from building
29212 # a shared archive.
29213 module_cmds=$lt_module_cmds_RC
29214 module_expsym_cmds=$lt_module_expsym_cmds_RC
29215
29216 # Whether we are building with GNU ld or not.
29217 with_gnu_ld=$lt_with_gnu_ld_RC
29218
29219 # Flag that allows shared libraries with undefined symbols to be built.
29220 allow_undefined_flag=$lt_allow_undefined_flag_RC
29221
29222 # Flag that enforces no undefined symbols.
29223 no_undefined_flag=$lt_no_undefined_flag_RC
29224
29225 # Flag to hardcode \$libdir into a binary during linking.
29226 # This must work even if \$libdir does not exist
29227 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
29228
29229 # Whether we need a single "-rpath" flag with a separated argument.
29230 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
29231
29232 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29233 # DIR into the resulting binary.
29234 hardcode_direct=$hardcode_direct_RC
29235
29236 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29237 # DIR into the resulting binary and the resulting library dependency is
29238 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
29239 # library is relocated.
29240 hardcode_direct_absolute=$hardcode_direct_absolute_RC
29241
29242 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29243 # into the resulting binary.
29244 hardcode_minus_L=$hardcode_minus_L_RC
29245
29246 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29247 # into the resulting binary.
29248 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
29249
29250 # Set to "yes" if building a shared library automatically hardcodes DIR
29251 # into the library and all subsequent libraries and executables linked
29252 # against it.
29253 hardcode_automatic=$hardcode_automatic_RC
29254
29255 # Set to yes if linker adds runtime paths of dependent libraries
29256 # to runtime path list.
29257 inherit_rpath=$inherit_rpath_RC
29258
29259 # Whether libtool must link a program against all its dependency libraries.
29260 link_all_deplibs=$link_all_deplibs_RC
29261
29262 # Set to "yes" if exported symbols are required.
29263 always_export_symbols=$always_export_symbols_RC
29264
29265 # The commands to list exported symbols.
29266 export_symbols_cmds=$lt_export_symbols_cmds_RC
29267
29268 # Symbols that should not be listed in the preloaded symbols.
29269 exclude_expsyms=$lt_exclude_expsyms_RC
29270
29271 # Symbols that must always be exported.
29272 include_expsyms=$lt_include_expsyms_RC
29273
29274 # Commands necessary for linking programs (against libraries) with templates.
29275 prelink_cmds=$lt_prelink_cmds_RC
29276
29277 # Commands necessary for finishing linking programs.
29278 postlink_cmds=$lt_postlink_cmds_RC
29279
29280 # Specify filename containing input files.
29281 file_list_spec=$lt_file_list_spec_RC
29282
29283 # How to hardcode a shared library path into an executable.
29284 hardcode_action=$hardcode_action_RC
29285
29286 # The directories searched by this compiler when creating a shared library.
29287 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
29288
29289 # Dependencies to place before and after the objects being linked to
29290 # create a shared library.
29291 predep_objects=$lt_predep_objects_RC
29292 postdep_objects=$lt_postdep_objects_RC
29293 predeps=$lt_predeps_RC
29294 postdeps=$lt_postdeps_RC
29295
29296 # The library search path used internally by the compiler when linking
29297 # a shared library.
29298 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
29299
29300 # ### END LIBTOOL TAG CONFIG: RC
29301 _LT_EOF
29302
29303  ;;
29304     "src/gpgme-config":F) chmod +x src/gpgme-config ;;
29305     "lang/python/setup.py":F) chmod a+x lang/python/setup.py ;;
29306
29307   esac
29308 done # for ac_tag
29309
29310
29311 as_fn_exit 0
29312 _ACEOF
29313 ac_clean_files=$ac_clean_files_save
29314
29315 test $ac_write_fail = 0 ||
29316   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
29317
29318
29319 # configure is writing to config.log, and then calls config.status.
29320 # config.status does its own redirection, appending to config.log.
29321 # Unfortunately, on DOS this fails, as config.log is still kept open
29322 # by configure, so config.status won't be able to write to it; its
29323 # output is simply discarded.  So we exec the FD to /dev/null,
29324 # effectively closing config.log, so it can be properly (re)opened and
29325 # appended to by config.status.  When coming back to configure, we
29326 # need to make the FD available again.
29327 if test "$no_create" != yes; then
29328   ac_cs_success=:
29329   ac_config_status_args=
29330   test "$silent" = yes &&
29331     ac_config_status_args="$ac_config_status_args --quiet"
29332   exec 5>/dev/null
29333   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29334   exec 5>>config.log
29335   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29336   # would make configure fail if this is the last instruction.
29337   $ac_cs_success || as_fn_exit 1
29338 fi
29339 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29340   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29341 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
29342 fi
29343
29344
29345 echo "
29346         GPGME v${VERSION} has been configured as follows:
29347
29348         Revision:          bb988077  (48024)
29349         Platform:          $host
29350
29351         UI Server:         $uiserver
29352         FD Passing:        $use_descriptor_passing
29353
29354         Language bindings: ${enabled_languages_v:-$enabled_languages}
29355 "
29356 if test "x${gpg_config_script_warn}" != x; then
29357 cat <<G10EOF
29358         Mismatches between the target platform and the to
29359         be used libraries have been been detected for:
29360          ${gpg_config_script_warn}
29361         Please check above for warning messages.
29362
29363 G10EOF
29364 fi