f307736e99aaeaac79766d0c79656e97515ea448
[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.16.0.
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.16.0'
594 PACKAGE_STRING='gpgme 1.16.0'
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.16.0 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.16.0:";;
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.16.0
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.16.0, 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=36
2888 LIBGPGME_LT_AGE=25
2889 LIBGPGME_LT_REVISION=0
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=19
2895 LIBGPGMEPP_LT_AGE=13
2896 LIBGPGMEPP_LT_REVISION=0
2897
2898 LIBQGPGME_LT_CURRENT=13
2899 LIBQGPGME_LT_AGE=6
2900 LIBQGPGME_LT_REVISION=0
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=16
2926 VERSION_MICRO=0
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   MISSING="\${SHELL} '$am_aux_dir/missing'"
3138 fi
3139 # Use eval to expand $SHELL
3140 if eval "$MISSING --is-lightweight"; then
3141   am_missing_run="$MISSING "
3142 else
3143   am_missing_run=
3144   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3145 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3146 fi
3147
3148 if test x"${install_sh+set}" != xset; then
3149   case $am_aux_dir in
3150   *\ * | *\     *)
3151     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3152   *)
3153     install_sh="\${SHELL} $am_aux_dir/install-sh"
3154   esac
3155 fi
3156
3157 # Installed binaries are usually stripped using 'strip' when the user
3158 # run "make install-strip".  However 'strip' might not be the right
3159 # tool to use in cross-compilation environments, therefore Automake
3160 # will honor the 'STRIP' environment variable to overrule this program.
3161 if test "$cross_compiling" != no; then
3162   if test -n "$ac_tool_prefix"; then
3163   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3164 set dummy ${ac_tool_prefix}strip; ac_word=$2
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3166 $as_echo_n "checking for $ac_word... " >&6; }
3167 if ${ac_cv_prog_STRIP+:} false; then :
3168   $as_echo_n "(cached) " >&6
3169 else
3170   if test -n "$STRIP"; then
3171   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3172 else
3173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3174 for as_dir in $PATH
3175 do
3176   IFS=$as_save_IFS
3177   test -z "$as_dir" && as_dir=.
3178     for ac_exec_ext in '' $ac_executable_extensions; do
3179   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3180     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3181     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3182     break 2
3183   fi
3184 done
3185   done
3186 IFS=$as_save_IFS
3187
3188 fi
3189 fi
3190 STRIP=$ac_cv_prog_STRIP
3191 if test -n "$STRIP"; then
3192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3193 $as_echo "$STRIP" >&6; }
3194 else
3195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3196 $as_echo "no" >&6; }
3197 fi
3198
3199
3200 fi
3201 if test -z "$ac_cv_prog_STRIP"; then
3202   ac_ct_STRIP=$STRIP
3203   # Extract the first word of "strip", so it can be a program name with args.
3204 set dummy strip; ac_word=$2
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3206 $as_echo_n "checking for $ac_word... " >&6; }
3207 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3208   $as_echo_n "(cached) " >&6
3209 else
3210   if test -n "$ac_ct_STRIP"; then
3211   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3212 else
3213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3214 for as_dir in $PATH
3215 do
3216   IFS=$as_save_IFS
3217   test -z "$as_dir" && as_dir=.
3218     for ac_exec_ext in '' $ac_executable_extensions; do
3219   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3220     ac_cv_prog_ac_ct_STRIP="strip"
3221     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3222     break 2
3223   fi
3224 done
3225   done
3226 IFS=$as_save_IFS
3227
3228 fi
3229 fi
3230 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3231 if test -n "$ac_ct_STRIP"; then
3232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3233 $as_echo "$ac_ct_STRIP" >&6; }
3234 else
3235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3236 $as_echo "no" >&6; }
3237 fi
3238
3239   if test "x$ac_ct_STRIP" = x; then
3240     STRIP=":"
3241   else
3242     case $cross_compiling:$ac_tool_warned in
3243 yes:)
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3245 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3246 ac_tool_warned=yes ;;
3247 esac
3248     STRIP=$ac_ct_STRIP
3249   fi
3250 else
3251   STRIP="$ac_cv_prog_STRIP"
3252 fi
3253
3254 fi
3255 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3256
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3258 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3259 if test -z "$MKDIR_P"; then
3260   if ${ac_cv_path_mkdir+:} false; then :
3261   $as_echo_n "(cached) " >&6
3262 else
3263   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3264 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3265 do
3266   IFS=$as_save_IFS
3267   test -z "$as_dir" && as_dir=.
3268     for ac_prog in mkdir gmkdir; do
3269          for ac_exec_ext in '' $ac_executable_extensions; do
3270            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3271            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3272              'mkdir (GNU coreutils) '* | \
3273              'mkdir (coreutils) '* | \
3274              'mkdir (fileutils) '4.1*)
3275                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3276                break 3;;
3277            esac
3278          done
3279        done
3280   done
3281 IFS=$as_save_IFS
3282
3283 fi
3284
3285   test -d ./--version && rmdir ./--version
3286   if test "${ac_cv_path_mkdir+set}" = set; then
3287     MKDIR_P="$ac_cv_path_mkdir -p"
3288   else
3289     # As a last resort, use the slow shell script.  Don't cache a
3290     # value for MKDIR_P within a source directory, because that will
3291     # break other packages using the cache if that directory is
3292     # removed, or if the value is a relative name.
3293     MKDIR_P="$ac_install_sh -d"
3294   fi
3295 fi
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3297 $as_echo "$MKDIR_P" >&6; }
3298
3299 for ac_prog in gawk mawk nawk awk
3300 do
3301   # Extract the first word of "$ac_prog", so it can be a program name with args.
3302 set dummy $ac_prog; ac_word=$2
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3304 $as_echo_n "checking for $ac_word... " >&6; }
3305 if ${ac_cv_prog_AWK+:} false; then :
3306   $as_echo_n "(cached) " >&6
3307 else
3308   if test -n "$AWK"; then
3309   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3310 else
3311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3312 for as_dir in $PATH
3313 do
3314   IFS=$as_save_IFS
3315   test -z "$as_dir" && as_dir=.
3316     for ac_exec_ext in '' $ac_executable_extensions; do
3317   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3318     ac_cv_prog_AWK="$ac_prog"
3319     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3320     break 2
3321   fi
3322 done
3323   done
3324 IFS=$as_save_IFS
3325
3326 fi
3327 fi
3328 AWK=$ac_cv_prog_AWK
3329 if test -n "$AWK"; then
3330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3331 $as_echo "$AWK" >&6; }
3332 else
3333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3334 $as_echo "no" >&6; }
3335 fi
3336
3337
3338   test -n "$AWK" && break
3339 done
3340
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3342 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3343 set x ${MAKE-make}
3344 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3345 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3346   $as_echo_n "(cached) " >&6
3347 else
3348   cat >conftest.make <<\_ACEOF
3349 SHELL = /bin/sh
3350 all:
3351         @echo '@@@%%%=$(MAKE)=@@@%%%'
3352 _ACEOF
3353 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3354 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3355   *@@@%%%=?*=@@@%%%*)
3356     eval ac_cv_prog_make_${ac_make}_set=yes;;
3357   *)
3358     eval ac_cv_prog_make_${ac_make}_set=no;;
3359 esac
3360 rm -f conftest.make
3361 fi
3362 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3364 $as_echo "yes" >&6; }
3365   SET_MAKE=
3366 else
3367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3368 $as_echo "no" >&6; }
3369   SET_MAKE="MAKE=${MAKE-make}"
3370 fi
3371
3372 rm -rf .tst 2>/dev/null
3373 mkdir .tst 2>/dev/null
3374 if test -d .tst; then
3375   am__leading_dot=.
3376 else
3377   am__leading_dot=_
3378 fi
3379 rmdir .tst 2>/dev/null
3380
3381 # Check whether --enable-silent-rules was given.
3382 if test "${enable_silent_rules+set}" = set; then :
3383   enableval=$enable_silent_rules;
3384 fi
3385
3386 case $enable_silent_rules in # (((
3387   yes) AM_DEFAULT_VERBOSITY=0;;
3388    no) AM_DEFAULT_VERBOSITY=1;;
3389     *) AM_DEFAULT_VERBOSITY=1;;
3390 esac
3391 am_make=${MAKE-make}
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3393 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3394 if ${am_cv_make_support_nested_variables+:} false; then :
3395   $as_echo_n "(cached) " >&6
3396 else
3397   if $as_echo 'TRUE=$(BAR$(V))
3398 BAR0=false
3399 BAR1=true
3400 V=1
3401 am__doit:
3402         @$(TRUE)
3403 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3404   am_cv_make_support_nested_variables=yes
3405 else
3406   am_cv_make_support_nested_variables=no
3407 fi
3408 fi
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3410 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3411 if test $am_cv_make_support_nested_variables = yes; then
3412     AM_V='$(V)'
3413   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3414 else
3415   AM_V=$AM_DEFAULT_VERBOSITY
3416   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3417 fi
3418 AM_BACKSLASH='\'
3419
3420 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3421   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3422   # is not polluted with repeated "-I."
3423   am__isrc=' -I$(srcdir)'
3424   # test to see if srcdir already configured
3425   if test -f $srcdir/config.status; then
3426     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3427   fi
3428 fi
3429
3430 # test whether we have cygpath
3431 if test -z "$CYGPATH_W"; then
3432   if (cygpath --version) >/dev/null 2>/dev/null; then
3433     CYGPATH_W='cygpath -w'
3434   else
3435     CYGPATH_W=echo
3436   fi
3437 fi
3438
3439
3440 # Define the identity of the package.
3441  PACKAGE='gpgme'
3442  VERSION='1.16.0'
3443
3444
3445 cat >>confdefs.h <<_ACEOF
3446 #define PACKAGE "$PACKAGE"
3447 _ACEOF
3448
3449
3450 cat >>confdefs.h <<_ACEOF
3451 #define VERSION "$VERSION"
3452 _ACEOF
3453
3454 # Some tools Automake needs.
3455
3456 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3457
3458
3459 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3460
3461
3462 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3463
3464
3465 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3466
3467
3468 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3469
3470 # For better backward compatibility.  To be removed once Automake 1.9.x
3471 # dies out for good.  For more background, see:
3472 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3473 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3474 mkdir_p='$(MKDIR_P)'
3475
3476 # We need awk for the "check" target (and possibly the TAP driver).  The
3477 # system "awk" is bad on some platforms.
3478 # Always define AMTAR for backward compatibility.  Yes, it's still used
3479 # in the wild :-(  We should find a proper way to deprecate it ...
3480 AMTAR='$${TAR-tar}'
3481
3482
3483 # We'll loop over all known methods to create a tar archive until one works.
3484 _am_tools='gnutar  pax cpio none'
3485
3486 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3487
3488
3489
3490
3491
3492
3493 # POSIX will say in a future version that running "rm -f" with no argument
3494 # is OK; and we want to be able to make that assumption in our Makefile
3495 # recipes.  So use an aggressive probe to check that the usage we want is
3496 # actually supported "in the wild" to an acceptable degree.
3497 # See automake bug#10828.
3498 # To make any issue more visible, cause the running configure to be aborted
3499 # by default if the 'rm' program in use doesn't match our expectations; the
3500 # user can still override this though.
3501 if rm -f && rm -fr && rm -rf; then : OK; else
3502   cat >&2 <<'END'
3503 Oops!
3504
3505 Your 'rm' program seems unable to run without file operands specified
3506 on the command line, even when the '-f' option is present.  This is contrary
3507 to the behaviour of most rm programs out there, and not conforming with
3508 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3509
3510 Please tell bug-automake@gnu.org about your system, including the value
3511 of your $PATH and any error possibly output before this message.  This
3512 can help us improve future automake versions.
3513
3514 END
3515   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3516     echo 'Configuration will proceed anyway, since you have set the' >&2
3517     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3518     echo >&2
3519   else
3520     cat >&2 <<'END'
3521 Aborting the configuration process, to ensure you take notice of the issue.
3522
3523 You can download and install GNU coreutils to get an 'rm' implementation
3524 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3525
3526 If you want to complete the configuration process using your problematic
3527 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3528 to "yes", and re-run configure.
3529
3530 END
3531     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3532   fi
3533 fi
3534
3535
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3537 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3538     # Check whether --enable-maintainer-mode was given.
3539 if test "${enable_maintainer_mode+set}" = set; then :
3540   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3541 else
3542   USE_MAINTAINER_MODE=no
3543 fi
3544
3545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3546 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3547    if test $USE_MAINTAINER_MODE = yes; then
3548   MAINTAINER_MODE_TRUE=
3549   MAINTAINER_MODE_FALSE='#'
3550 else
3551   MAINTAINER_MODE_TRUE='#'
3552   MAINTAINER_MODE_FALSE=
3553 fi
3554
3555   MAINT=$MAINTAINER_MODE_TRUE
3556
3557
3558 # Make sure we can run config.sub.
3559 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3560   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3561
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3563 $as_echo_n "checking build system type... " >&6; }
3564 if ${ac_cv_build+:} false; then :
3565   $as_echo_n "(cached) " >&6
3566 else
3567   ac_build_alias=$build_alias
3568 test "x$ac_build_alias" = x &&
3569   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3570 test "x$ac_build_alias" = x &&
3571   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3572 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3573   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3574
3575 fi
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3577 $as_echo "$ac_cv_build" >&6; }
3578 case $ac_cv_build in
3579 *-*-*) ;;
3580 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3581 esac
3582 build=$ac_cv_build
3583 ac_save_IFS=$IFS; IFS='-'
3584 set x $ac_cv_build
3585 shift
3586 build_cpu=$1
3587 build_vendor=$2
3588 shift; shift
3589 # Remember, the first character of IFS is used to create $*,
3590 # except with old shells:
3591 build_os=$*
3592 IFS=$ac_save_IFS
3593 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3594
3595
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3597 $as_echo_n "checking host system type... " >&6; }
3598 if ${ac_cv_host+:} false; then :
3599   $as_echo_n "(cached) " >&6
3600 else
3601   if test "x$host_alias" = x; then
3602   ac_cv_host=$ac_cv_build
3603 else
3604   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3605     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3606 fi
3607
3608 fi
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3610 $as_echo "$ac_cv_host" >&6; }
3611 case $ac_cv_host in
3612 *-*-*) ;;
3613 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3614 esac
3615 host=$ac_cv_host
3616 ac_save_IFS=$IFS; IFS='-'
3617 set x $ac_cv_host
3618 shift
3619 host_cpu=$1
3620 host_vendor=$2
3621 shift; shift
3622 # Remember, the first character of IFS is used to create $*,
3623 # except with old shells:
3624 host_os=$*
3625 IFS=$ac_save_IFS
3626 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3627
3628
3629 # Check whether --enable-silent-rules was given.
3630 if test "${enable_silent_rules+set}" = set; then :
3631   enableval=$enable_silent_rules;
3632 fi
3633
3634 case $enable_silent_rules in # (((
3635   yes) AM_DEFAULT_VERBOSITY=0;;
3636    no) AM_DEFAULT_VERBOSITY=1;;
3637     *) AM_DEFAULT_VERBOSITY=1;;
3638 esac
3639 am_make=${MAKE-make}
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3641 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3642 if ${am_cv_make_support_nested_variables+:} false; then :
3643   $as_echo_n "(cached) " >&6
3644 else
3645   if $as_echo 'TRUE=$(BAR$(V))
3646 BAR0=false
3647 BAR1=true
3648 V=1
3649 am__doit:
3650         @$(TRUE)
3651 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3652   am_cv_make_support_nested_variables=yes
3653 else
3654   am_cv_make_support_nested_variables=no
3655 fi
3656 fi
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3658 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3659 if test $am_cv_make_support_nested_variables = yes; then
3660     AM_V='$(V)'
3661   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3662 else
3663   AM_V=$AM_DEFAULT_VERBOSITY
3664   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3665 fi
3666 AM_BACKSLASH='\'
3667
3668
3669
3670 # Enable GNU extensions on systems that have them.
3671 DEPDIR="${am__leading_dot}deps"
3672
3673 ac_config_commands="$ac_config_commands depfiles"
3674
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3676 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3677 cat > confinc.mk << 'END'
3678 am__doit:
3679         @echo this is the am__doit target >confinc.out
3680 .PHONY: am__doit
3681 END
3682 am__include="#"
3683 am__quote=
3684 # BSD make does it like this.
3685 echo '.include "confinc.mk" # ignored' > confmf.BSD
3686 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3687 echo 'include confinc.mk # ignored' > confmf.GNU
3688 _am_result=no
3689 for s in GNU BSD; do
3690   { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3691    (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3692    ac_status=$?
3693    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694    (exit $ac_status); }
3695   case $?:`cat confinc.out 2>/dev/null` in #(
3696   '0:this is the am__doit target') :
3697     case $s in #(
3698   BSD) :
3699     am__include='.include' am__quote='"' ;; #(
3700   *) :
3701     am__include='include' am__quote='' ;;
3702 esac ;; #(
3703   *) :
3704      ;;
3705 esac
3706   if test "$am__include" != "#"; then
3707     _am_result="yes ($s style)"
3708     break
3709   fi
3710 done
3711 rm -f confinc.* confmf.*
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3713 $as_echo "${_am_result}" >&6; }
3714
3715 # Check whether --enable-dependency-tracking was given.
3716 if test "${enable_dependency_tracking+set}" = set; then :
3717   enableval=$enable_dependency_tracking;
3718 fi
3719
3720 if test "x$enable_dependency_tracking" != xno; then
3721   am_depcomp="$ac_aux_dir/depcomp"
3722   AMDEPBACKSLASH='\'
3723   am__nodep='_no'
3724 fi
3725  if test "x$enable_dependency_tracking" != xno; then
3726   AMDEP_TRUE=
3727   AMDEP_FALSE='#'
3728 else
3729   AMDEP_TRUE='#'
3730   AMDEP_FALSE=
3731 fi
3732
3733
3734 ac_ext=c
3735 ac_cpp='$CPP $CPPFLAGS'
3736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3739 if test -n "$ac_tool_prefix"; then
3740   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3741 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3743 $as_echo_n "checking for $ac_word... " >&6; }
3744 if ${ac_cv_prog_CC+:} false; then :
3745   $as_echo_n "(cached) " >&6
3746 else
3747   if test -n "$CC"; then
3748   ac_cv_prog_CC="$CC" # Let the user override the test.
3749 else
3750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3751 for as_dir in $PATH
3752 do
3753   IFS=$as_save_IFS
3754   test -z "$as_dir" && as_dir=.
3755     for ac_exec_ext in '' $ac_executable_extensions; do
3756   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3757     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3758     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3759     break 2
3760   fi
3761 done
3762   done
3763 IFS=$as_save_IFS
3764
3765 fi
3766 fi
3767 CC=$ac_cv_prog_CC
3768 if test -n "$CC"; then
3769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3770 $as_echo "$CC" >&6; }
3771 else
3772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3773 $as_echo "no" >&6; }
3774 fi
3775
3776
3777 fi
3778 if test -z "$ac_cv_prog_CC"; then
3779   ac_ct_CC=$CC
3780   # Extract the first word of "gcc", so it can be a program name with args.
3781 set dummy gcc; ac_word=$2
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3783 $as_echo_n "checking for $ac_word... " >&6; }
3784 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3785   $as_echo_n "(cached) " >&6
3786 else
3787   if test -n "$ac_ct_CC"; then
3788   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3789 else
3790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3791 for as_dir in $PATH
3792 do
3793   IFS=$as_save_IFS
3794   test -z "$as_dir" && as_dir=.
3795     for ac_exec_ext in '' $ac_executable_extensions; do
3796   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3797     ac_cv_prog_ac_ct_CC="gcc"
3798     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3799     break 2
3800   fi
3801 done
3802   done
3803 IFS=$as_save_IFS
3804
3805 fi
3806 fi
3807 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3808 if test -n "$ac_ct_CC"; then
3809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3810 $as_echo "$ac_ct_CC" >&6; }
3811 else
3812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3813 $as_echo "no" >&6; }
3814 fi
3815
3816   if test "x$ac_ct_CC" = x; then
3817     CC=""
3818   else
3819     case $cross_compiling:$ac_tool_warned in
3820 yes:)
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3822 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3823 ac_tool_warned=yes ;;
3824 esac
3825     CC=$ac_ct_CC
3826   fi
3827 else
3828   CC="$ac_cv_prog_CC"
3829 fi
3830
3831 if test -z "$CC"; then
3832           if test -n "$ac_tool_prefix"; then
3833     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3834 set dummy ${ac_tool_prefix}cc; ac_word=$2
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3836 $as_echo_n "checking for $ac_word... " >&6; }
3837 if ${ac_cv_prog_CC+:} false; then :
3838   $as_echo_n "(cached) " >&6
3839 else
3840   if test -n "$CC"; then
3841   ac_cv_prog_CC="$CC" # Let the user override the test.
3842 else
3843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3844 for as_dir in $PATH
3845 do
3846   IFS=$as_save_IFS
3847   test -z "$as_dir" && as_dir=.
3848     for ac_exec_ext in '' $ac_executable_extensions; do
3849   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3850     ac_cv_prog_CC="${ac_tool_prefix}cc"
3851     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3852     break 2
3853   fi
3854 done
3855   done
3856 IFS=$as_save_IFS
3857
3858 fi
3859 fi
3860 CC=$ac_cv_prog_CC
3861 if test -n "$CC"; then
3862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3863 $as_echo "$CC" >&6; }
3864 else
3865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3866 $as_echo "no" >&6; }
3867 fi
3868
3869
3870   fi
3871 fi
3872 if test -z "$CC"; then
3873   # Extract the first word of "cc", so it can be a program name with args.
3874 set dummy cc; ac_word=$2
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3876 $as_echo_n "checking for $ac_word... " >&6; }
3877 if ${ac_cv_prog_CC+:} false; then :
3878   $as_echo_n "(cached) " >&6
3879 else
3880   if test -n "$CC"; then
3881   ac_cv_prog_CC="$CC" # Let the user override the test.
3882 else
3883   ac_prog_rejected=no
3884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3885 for as_dir in $PATH
3886 do
3887   IFS=$as_save_IFS
3888   test -z "$as_dir" && as_dir=.
3889     for ac_exec_ext in '' $ac_executable_extensions; do
3890   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3891     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3892        ac_prog_rejected=yes
3893        continue
3894      fi
3895     ac_cv_prog_CC="cc"
3896     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3897     break 2
3898   fi
3899 done
3900   done
3901 IFS=$as_save_IFS
3902
3903 if test $ac_prog_rejected = yes; then
3904   # We found a bogon in the path, so make sure we never use it.
3905   set dummy $ac_cv_prog_CC
3906   shift
3907   if test $# != 0; then
3908     # We chose a different compiler from the bogus one.
3909     # However, it has the same basename, so the bogon will be chosen
3910     # first if we set CC to just the basename; use the full file name.
3911     shift
3912     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3913   fi
3914 fi
3915 fi
3916 fi
3917 CC=$ac_cv_prog_CC
3918 if test -n "$CC"; then
3919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3920 $as_echo "$CC" >&6; }
3921 else
3922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3923 $as_echo "no" >&6; }
3924 fi
3925
3926
3927 fi
3928 if test -z "$CC"; then
3929   if test -n "$ac_tool_prefix"; then
3930   for ac_prog in cl.exe
3931   do
3932     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3933 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3935 $as_echo_n "checking for $ac_word... " >&6; }
3936 if ${ac_cv_prog_CC+:} false; then :
3937   $as_echo_n "(cached) " >&6
3938 else
3939   if test -n "$CC"; then
3940   ac_cv_prog_CC="$CC" # Let the user override the test.
3941 else
3942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3943 for as_dir in $PATH
3944 do
3945   IFS=$as_save_IFS
3946   test -z "$as_dir" && as_dir=.
3947     for ac_exec_ext in '' $ac_executable_extensions; do
3948   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3949     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3950     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3951     break 2
3952   fi
3953 done
3954   done
3955 IFS=$as_save_IFS
3956
3957 fi
3958 fi
3959 CC=$ac_cv_prog_CC
3960 if test -n "$CC"; then
3961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3962 $as_echo "$CC" >&6; }
3963 else
3964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3965 $as_echo "no" >&6; }
3966 fi
3967
3968
3969     test -n "$CC" && break
3970   done
3971 fi
3972 if test -z "$CC"; then
3973   ac_ct_CC=$CC
3974   for ac_prog in cl.exe
3975 do
3976   # Extract the first word of "$ac_prog", so it can be a program name with args.
3977 set dummy $ac_prog; ac_word=$2
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3979 $as_echo_n "checking for $ac_word... " >&6; }
3980 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3981   $as_echo_n "(cached) " >&6
3982 else
3983   if test -n "$ac_ct_CC"; then
3984   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3985 else
3986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3987 for as_dir in $PATH
3988 do
3989   IFS=$as_save_IFS
3990   test -z "$as_dir" && as_dir=.
3991     for ac_exec_ext in '' $ac_executable_extensions; do
3992   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3993     ac_cv_prog_ac_ct_CC="$ac_prog"
3994     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3995     break 2
3996   fi
3997 done
3998   done
3999 IFS=$as_save_IFS
4000
4001 fi
4002 fi
4003 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4004 if test -n "$ac_ct_CC"; then
4005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4006 $as_echo "$ac_ct_CC" >&6; }
4007 else
4008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4009 $as_echo "no" >&6; }
4010 fi
4011
4012
4013   test -n "$ac_ct_CC" && break
4014 done
4015
4016   if test "x$ac_ct_CC" = x; then
4017     CC=""
4018   else
4019     case $cross_compiling:$ac_tool_warned in
4020 yes:)
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4022 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4023 ac_tool_warned=yes ;;
4024 esac
4025     CC=$ac_ct_CC
4026   fi
4027 fi
4028
4029 fi
4030
4031
4032 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4033 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4034 as_fn_error $? "no acceptable C compiler found in \$PATH
4035 See \`config.log' for more details" "$LINENO" 5; }
4036
4037 # Provide some information about the compiler.
4038 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4039 set X $ac_compile
4040 ac_compiler=$2
4041 for ac_option in --version -v -V -qversion; do
4042   { { ac_try="$ac_compiler $ac_option >&5"
4043 case "(($ac_try" in
4044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4045   *) ac_try_echo=$ac_try;;
4046 esac
4047 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4048 $as_echo "$ac_try_echo"; } >&5
4049   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4050   ac_status=$?
4051   if test -s conftest.err; then
4052     sed '10a\
4053 ... rest of stderr output deleted ...
4054          10q' conftest.err >conftest.er1
4055     cat conftest.er1 >&5
4056   fi
4057   rm -f conftest.er1 conftest.err
4058   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4059   test $ac_status = 0; }
4060 done
4061
4062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4063 /* end confdefs.h.  */
4064
4065 int
4066 main ()
4067 {
4068
4069   ;
4070   return 0;
4071 }
4072 _ACEOF
4073 ac_clean_files_save=$ac_clean_files
4074 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4075 # Try to create an executable without -o first, disregard a.out.
4076 # It will help us diagnose broken compilers, and finding out an intuition
4077 # of exeext.
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4079 $as_echo_n "checking whether the C compiler works... " >&6; }
4080 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4081
4082 # The possible output files:
4083 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4084
4085 ac_rmfiles=
4086 for ac_file in $ac_files
4087 do
4088   case $ac_file in
4089     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4090     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4091   esac
4092 done
4093 rm -f $ac_rmfiles
4094
4095 if { { ac_try="$ac_link_default"
4096 case "(($ac_try" in
4097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4098   *) ac_try_echo=$ac_try;;
4099 esac
4100 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4101 $as_echo "$ac_try_echo"; } >&5
4102   (eval "$ac_link_default") 2>&5
4103   ac_status=$?
4104   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4105   test $ac_status = 0; }; then :
4106   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4107 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4108 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4109 # so that the user can short-circuit this test for compilers unknown to
4110 # Autoconf.
4111 for ac_file in $ac_files ''
4112 do
4113   test -f "$ac_file" || continue
4114   case $ac_file in
4115     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4116         ;;
4117     [ab].out )
4118         # We found the default executable, but exeext='' is most
4119         # certainly right.
4120         break;;
4121     *.* )
4122         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4123         then :; else
4124            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4125         fi
4126         # We set ac_cv_exeext here because the later test for it is not
4127         # safe: cross compilers may not add the suffix if given an `-o'
4128         # argument, so we may need to know it at that point already.
4129         # Even if this section looks crufty: it has the advantage of
4130         # actually working.
4131         break;;
4132     * )
4133         break;;
4134   esac
4135 done
4136 test "$ac_cv_exeext" = no && ac_cv_exeext=
4137
4138 else
4139   ac_file=''
4140 fi
4141 if test -z "$ac_file"; then :
4142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4143 $as_echo "no" >&6; }
4144 $as_echo "$as_me: failed program was:" >&5
4145 sed 's/^/| /' conftest.$ac_ext >&5
4146
4147 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4148 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4149 as_fn_error 77 "C compiler cannot create executables
4150 See \`config.log' for more details" "$LINENO" 5; }
4151 else
4152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4153 $as_echo "yes" >&6; }
4154 fi
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4156 $as_echo_n "checking for C compiler default output file name... " >&6; }
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4158 $as_echo "$ac_file" >&6; }
4159 ac_exeext=$ac_cv_exeext
4160
4161 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4162 ac_clean_files=$ac_clean_files_save
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4164 $as_echo_n "checking for suffix of executables... " >&6; }
4165 if { { ac_try="$ac_link"
4166 case "(($ac_try" in
4167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4168   *) ac_try_echo=$ac_try;;
4169 esac
4170 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4171 $as_echo "$ac_try_echo"; } >&5
4172   (eval "$ac_link") 2>&5
4173   ac_status=$?
4174   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4175   test $ac_status = 0; }; then :
4176   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4177 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4178 # work properly (i.e., refer to `conftest.exe'), while it won't with
4179 # `rm'.
4180 for ac_file in conftest.exe conftest conftest.*; do
4181   test -f "$ac_file" || continue
4182   case $ac_file in
4183     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4184     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4185           break;;
4186     * ) break;;
4187   esac
4188 done
4189 else
4190   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4191 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4192 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4193 See \`config.log' for more details" "$LINENO" 5; }
4194 fi
4195 rm -f conftest conftest$ac_cv_exeext
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4197 $as_echo "$ac_cv_exeext" >&6; }
4198
4199 rm -f conftest.$ac_ext
4200 EXEEXT=$ac_cv_exeext
4201 ac_exeext=$EXEEXT
4202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4203 /* end confdefs.h.  */
4204 #include <stdio.h>
4205 int
4206 main ()
4207 {
4208 FILE *f = fopen ("conftest.out", "w");
4209  return ferror (f) || fclose (f) != 0;
4210
4211   ;
4212   return 0;
4213 }
4214 _ACEOF
4215 ac_clean_files="$ac_clean_files conftest.out"
4216 # Check that the compiler produces executables we can run.  If not, either
4217 # the compiler is broken, or we cross compile.
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4219 $as_echo_n "checking whether we are cross compiling... " >&6; }
4220 if test "$cross_compiling" != yes; then
4221   { { ac_try="$ac_link"
4222 case "(($ac_try" in
4223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4224   *) ac_try_echo=$ac_try;;
4225 esac
4226 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4227 $as_echo "$ac_try_echo"; } >&5
4228   (eval "$ac_link") 2>&5
4229   ac_status=$?
4230   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4231   test $ac_status = 0; }
4232   if { ac_try='./conftest$ac_cv_exeext'
4233   { { case "(($ac_try" in
4234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4235   *) ac_try_echo=$ac_try;;
4236 esac
4237 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4238 $as_echo "$ac_try_echo"; } >&5
4239   (eval "$ac_try") 2>&5
4240   ac_status=$?
4241   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4242   test $ac_status = 0; }; }; then
4243     cross_compiling=no
4244   else
4245     if test "$cross_compiling" = maybe; then
4246         cross_compiling=yes
4247     else
4248         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4249 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4250 as_fn_error $? "cannot run C compiled programs.
4251 If you meant to cross compile, use \`--host'.
4252 See \`config.log' for more details" "$LINENO" 5; }
4253     fi
4254   fi
4255 fi
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4257 $as_echo "$cross_compiling" >&6; }
4258
4259 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4260 ac_clean_files=$ac_clean_files_save
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4262 $as_echo_n "checking for suffix of object files... " >&6; }
4263 if ${ac_cv_objext+:} false; then :
4264   $as_echo_n "(cached) " >&6
4265 else
4266   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4267 /* end confdefs.h.  */
4268
4269 int
4270 main ()
4271 {
4272
4273   ;
4274   return 0;
4275 }
4276 _ACEOF
4277 rm -f conftest.o conftest.obj
4278 if { { ac_try="$ac_compile"
4279 case "(($ac_try" in
4280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4281   *) ac_try_echo=$ac_try;;
4282 esac
4283 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4284 $as_echo "$ac_try_echo"; } >&5
4285   (eval "$ac_compile") 2>&5
4286   ac_status=$?
4287   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4288   test $ac_status = 0; }; then :
4289   for ac_file in conftest.o conftest.obj conftest.*; do
4290   test -f "$ac_file" || continue;
4291   case $ac_file in
4292     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4293     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4294        break;;
4295   esac
4296 done
4297 else
4298   $as_echo "$as_me: failed program was:" >&5
4299 sed 's/^/| /' conftest.$ac_ext >&5
4300
4301 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4302 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4303 as_fn_error $? "cannot compute suffix of object files: cannot compile
4304 See \`config.log' for more details" "$LINENO" 5; }
4305 fi
4306 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4307 fi
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4309 $as_echo "$ac_cv_objext" >&6; }
4310 OBJEXT=$ac_cv_objext
4311 ac_objext=$OBJEXT
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4313 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4314 if ${ac_cv_c_compiler_gnu+:} false; then :
4315   $as_echo_n "(cached) " >&6
4316 else
4317   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4318 /* end confdefs.h.  */
4319
4320 int
4321 main ()
4322 {
4323 #ifndef __GNUC__
4324        choke me
4325 #endif
4326
4327   ;
4328   return 0;
4329 }
4330 _ACEOF
4331 if ac_fn_c_try_compile "$LINENO"; then :
4332   ac_compiler_gnu=yes
4333 else
4334   ac_compiler_gnu=no
4335 fi
4336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4337 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4338
4339 fi
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4341 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4342 if test $ac_compiler_gnu = yes; then
4343   GCC=yes
4344 else
4345   GCC=
4346 fi
4347 ac_test_CFLAGS=${CFLAGS+set}
4348 ac_save_CFLAGS=$CFLAGS
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4350 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4351 if ${ac_cv_prog_cc_g+:} false; then :
4352   $as_echo_n "(cached) " >&6
4353 else
4354   ac_save_c_werror_flag=$ac_c_werror_flag
4355    ac_c_werror_flag=yes
4356    ac_cv_prog_cc_g=no
4357    CFLAGS="-g"
4358    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4359 /* end confdefs.h.  */
4360
4361 int
4362 main ()
4363 {
4364
4365   ;
4366   return 0;
4367 }
4368 _ACEOF
4369 if ac_fn_c_try_compile "$LINENO"; then :
4370   ac_cv_prog_cc_g=yes
4371 else
4372   CFLAGS=""
4373       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4374 /* end confdefs.h.  */
4375
4376 int
4377 main ()
4378 {
4379
4380   ;
4381   return 0;
4382 }
4383 _ACEOF
4384 if ac_fn_c_try_compile "$LINENO"; then :
4385
4386 else
4387   ac_c_werror_flag=$ac_save_c_werror_flag
4388          CFLAGS="-g"
4389          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4390 /* end confdefs.h.  */
4391
4392 int
4393 main ()
4394 {
4395
4396   ;
4397   return 0;
4398 }
4399 _ACEOF
4400 if ac_fn_c_try_compile "$LINENO"; then :
4401   ac_cv_prog_cc_g=yes
4402 fi
4403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4404 fi
4405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4406 fi
4407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4408    ac_c_werror_flag=$ac_save_c_werror_flag
4409 fi
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4411 $as_echo "$ac_cv_prog_cc_g" >&6; }
4412 if test "$ac_test_CFLAGS" = set; then
4413   CFLAGS=$ac_save_CFLAGS
4414 elif test $ac_cv_prog_cc_g = yes; then
4415   if test "$GCC" = yes; then
4416     CFLAGS="-g -O2"
4417   else
4418     CFLAGS="-g"
4419   fi
4420 else
4421   if test "$GCC" = yes; then
4422     CFLAGS="-O2"
4423   else
4424     CFLAGS=
4425   fi
4426 fi
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4428 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4429 if ${ac_cv_prog_cc_c89+:} false; then :
4430   $as_echo_n "(cached) " >&6
4431 else
4432   ac_cv_prog_cc_c89=no
4433 ac_save_CC=$CC
4434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4435 /* end confdefs.h.  */
4436 #include <stdarg.h>
4437 #include <stdio.h>
4438 struct stat;
4439 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4440 struct buf { int x; };
4441 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4442 static char *e (p, i)
4443      char **p;
4444      int i;
4445 {
4446   return p[i];
4447 }
4448 static char *f (char * (*g) (char **, int), char **p, ...)
4449 {
4450   char *s;
4451   va_list v;
4452   va_start (v,p);
4453   s = g (p, va_arg (v,int));
4454   va_end (v);
4455   return s;
4456 }
4457
4458 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4459    function prototypes and stuff, but not '\xHH' hex character constants.
4460    These don't provoke an error unfortunately, instead are silently treated
4461    as 'x'.  The following induces an error, until -std is added to get
4462    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4463    array size at least.  It's necessary to write '\x00'==0 to get something
4464    that's true only with -std.  */
4465 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4466
4467 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4468    inside strings and character constants.  */
4469 #define FOO(x) 'x'
4470 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4471
4472 int test (int i, double x);
4473 struct s1 {int (*f) (int a);};
4474 struct s2 {int (*f) (double a);};
4475 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4476 int argc;
4477 char **argv;
4478 int
4479 main ()
4480 {
4481 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4482   ;
4483   return 0;
4484 }
4485 _ACEOF
4486 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4487         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4488 do
4489   CC="$ac_save_CC $ac_arg"
4490   if ac_fn_c_try_compile "$LINENO"; then :
4491   ac_cv_prog_cc_c89=$ac_arg
4492 fi
4493 rm -f core conftest.err conftest.$ac_objext
4494   test "x$ac_cv_prog_cc_c89" != "xno" && break
4495 done
4496 rm -f conftest.$ac_ext
4497 CC=$ac_save_CC
4498
4499 fi
4500 # AC_CACHE_VAL
4501 case "x$ac_cv_prog_cc_c89" in
4502   x)
4503     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4504 $as_echo "none needed" >&6; } ;;
4505   xno)
4506     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4507 $as_echo "unsupported" >&6; } ;;
4508   *)
4509     CC="$CC $ac_cv_prog_cc_c89"
4510     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4511 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4512 esac
4513 if test "x$ac_cv_prog_cc_c89" != xno; then :
4514
4515 fi
4516
4517 ac_ext=c
4518 ac_cpp='$CPP $CPPFLAGS'
4519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4522
4523 ac_ext=c
4524 ac_cpp='$CPP $CPPFLAGS'
4525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4529 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4530 if ${am_cv_prog_cc_c_o+:} false; then :
4531   $as_echo_n "(cached) " >&6
4532 else
4533   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4534 /* end confdefs.h.  */
4535
4536 int
4537 main ()
4538 {
4539
4540   ;
4541   return 0;
4542 }
4543 _ACEOF
4544   # Make sure it works both with $CC and with simple cc.
4545   # Following AC_PROG_CC_C_O, we do the test twice because some
4546   # compilers refuse to overwrite an existing .o file with -o,
4547   # though they will create one.
4548   am_cv_prog_cc_c_o=yes
4549   for am_i in 1 2; do
4550     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4551    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4552    ac_status=$?
4553    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554    (exit $ac_status); } \
4555          && test -f conftest2.$ac_objext; then
4556       : OK
4557     else
4558       am_cv_prog_cc_c_o=no
4559       break
4560     fi
4561   done
4562   rm -f core conftest*
4563   unset am_i
4564 fi
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4566 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4567 if test "$am_cv_prog_cc_c_o" != yes; then
4568    # Losing compiler, so override with the script.
4569    # FIXME: It is wrong to rewrite CC.
4570    # But if we don't then we get into trouble of one sort or another.
4571    # A longer-term fix would be to have automake use am__CC in this case,
4572    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4573    CC="$am_aux_dir/compile $CC"
4574 fi
4575 ac_ext=c
4576 ac_cpp='$CPP $CPPFLAGS'
4577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4580
4581
4582 depcc="$CC"   am_compiler_list=
4583
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4585 $as_echo_n "checking dependency style of $depcc... " >&6; }
4586 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4587   $as_echo_n "(cached) " >&6
4588 else
4589   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4590   # We make a subdir and do the tests there.  Otherwise we can end up
4591   # making bogus files that we don't know about and never remove.  For
4592   # instance it was reported that on HP-UX the gcc test will end up
4593   # making a dummy file named 'D' -- because '-MD' means "put the output
4594   # in D".
4595   rm -rf conftest.dir
4596   mkdir conftest.dir
4597   # Copy depcomp to subdir because otherwise we won't find it if we're
4598   # using a relative directory.
4599   cp "$am_depcomp" conftest.dir
4600   cd conftest.dir
4601   # We will build objects and dependencies in a subdirectory because
4602   # it helps to detect inapplicable dependency modes.  For instance
4603   # both Tru64's cc and ICC support -MD to output dependencies as a
4604   # side effect of compilation, but ICC will put the dependencies in
4605   # the current directory while Tru64 will put them in the object
4606   # directory.
4607   mkdir sub
4608
4609   am_cv_CC_dependencies_compiler_type=none
4610   if test "$am_compiler_list" = ""; then
4611      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4612   fi
4613   am__universal=false
4614   case " $depcc " in #(
4615      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4616      esac
4617
4618   for depmode in $am_compiler_list; do
4619     # Setup a source with many dependencies, because some compilers
4620     # like to wrap large dependency lists on column 80 (with \), and
4621     # we should not choose a depcomp mode which is confused by this.
4622     #
4623     # We need to recreate these files for each test, as the compiler may
4624     # overwrite some of them when testing with obscure command lines.
4625     # This happens at least with the AIX C compiler.
4626     : > sub/conftest.c
4627     for i in 1 2 3 4 5 6; do
4628       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4629       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4630       # Solaris 10 /bin/sh.
4631       echo '/* dummy */' > sub/conftst$i.h
4632     done
4633     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4634
4635     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4636     # mode.  It turns out that the SunPro C++ compiler does not properly
4637     # handle '-M -o', and we need to detect this.  Also, some Intel
4638     # versions had trouble with output in subdirs.
4639     am__obj=sub/conftest.${OBJEXT-o}
4640     am__minus_obj="-o $am__obj"
4641     case $depmode in
4642     gcc)
4643       # This depmode causes a compiler race in universal mode.
4644       test "$am__universal" = false || continue
4645       ;;
4646     nosideeffect)
4647       # After this tag, mechanisms are not by side-effect, so they'll
4648       # only be used when explicitly requested.
4649       if test "x$enable_dependency_tracking" = xyes; then
4650         continue
4651       else
4652         break
4653       fi
4654       ;;
4655     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4656       # This compiler won't grok '-c -o', but also, the minuso test has
4657       # not run yet.  These depmodes are late enough in the game, and
4658       # so weak that their functioning should not be impacted.
4659       am__obj=conftest.${OBJEXT-o}
4660       am__minus_obj=
4661       ;;
4662     none) break ;;
4663     esac
4664     if depmode=$depmode \
4665        source=sub/conftest.c object=$am__obj \
4666        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4667        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4668          >/dev/null 2>conftest.err &&
4669        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4670        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4671        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4672        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4673       # icc doesn't choke on unknown options, it will just issue warnings
4674       # or remarks (even with -Werror).  So we grep stderr for any message
4675       # that says an option was ignored or not supported.
4676       # When given -MP, icc 7.0 and 7.1 complain thusly:
4677       #   icc: Command line warning: ignoring option '-M'; no argument required
4678       # The diagnosis changed in icc 8.0:
4679       #   icc: Command line remark: option '-MP' not supported
4680       if (grep 'ignoring option' conftest.err ||
4681           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4682         am_cv_CC_dependencies_compiler_type=$depmode
4683         break
4684       fi
4685     fi
4686   done
4687
4688   cd ..
4689   rm -rf conftest.dir
4690 else
4691   am_cv_CC_dependencies_compiler_type=none
4692 fi
4693
4694 fi
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4696 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4697 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4698
4699  if
4700   test "x$enable_dependency_tracking" != xno \
4701   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4702   am__fastdepCC_TRUE=
4703   am__fastdepCC_FALSE='#'
4704 else
4705   am__fastdepCC_TRUE='#'
4706   am__fastdepCC_FALSE=
4707 fi
4708
4709
4710
4711 ac_ext=c
4712 ac_cpp='$CPP $CPPFLAGS'
4713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4717 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4718 # On Suns, sometimes $CPP names a directory.
4719 if test -n "$CPP" && test -d "$CPP"; then
4720   CPP=
4721 fi
4722 if test -z "$CPP"; then
4723   if ${ac_cv_prog_CPP+:} false; then :
4724   $as_echo_n "(cached) " >&6
4725 else
4726       # Double quotes because CPP needs to be expanded
4727     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4728     do
4729       ac_preproc_ok=false
4730 for ac_c_preproc_warn_flag in '' yes
4731 do
4732   # Use a header file that comes with gcc, so configuring glibc
4733   # with a fresh cross-compiler works.
4734   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4735   # <limits.h> exists even on freestanding compilers.
4736   # On the NeXT, cc -E runs the code through the compiler's parser,
4737   # not just through cpp. "Syntax error" is here to catch this case.
4738   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4739 /* end confdefs.h.  */
4740 #ifdef __STDC__
4741 # include <limits.h>
4742 #else
4743 # include <assert.h>
4744 #endif
4745                      Syntax error
4746 _ACEOF
4747 if ac_fn_c_try_cpp "$LINENO"; then :
4748
4749 else
4750   # Broken: fails on valid input.
4751 continue
4752 fi
4753 rm -f conftest.err conftest.i conftest.$ac_ext
4754
4755   # OK, works on sane cases.  Now check whether nonexistent headers
4756   # can be detected and how.
4757   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4758 /* end confdefs.h.  */
4759 #include <ac_nonexistent.h>
4760 _ACEOF
4761 if ac_fn_c_try_cpp "$LINENO"; then :
4762   # Broken: success on invalid input.
4763 continue
4764 else
4765   # Passes both tests.
4766 ac_preproc_ok=:
4767 break
4768 fi
4769 rm -f conftest.err conftest.i conftest.$ac_ext
4770
4771 done
4772 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4773 rm -f conftest.i conftest.err conftest.$ac_ext
4774 if $ac_preproc_ok; then :
4775   break
4776 fi
4777
4778     done
4779     ac_cv_prog_CPP=$CPP
4780
4781 fi
4782   CPP=$ac_cv_prog_CPP
4783 else
4784   ac_cv_prog_CPP=$CPP
4785 fi
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4787 $as_echo "$CPP" >&6; }
4788 ac_preproc_ok=false
4789 for ac_c_preproc_warn_flag in '' yes
4790 do
4791   # Use a header file that comes with gcc, so configuring glibc
4792   # with a fresh cross-compiler works.
4793   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4794   # <limits.h> exists even on freestanding compilers.
4795   # On the NeXT, cc -E runs the code through the compiler's parser,
4796   # not just through cpp. "Syntax error" is here to catch this case.
4797   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4798 /* end confdefs.h.  */
4799 #ifdef __STDC__
4800 # include <limits.h>
4801 #else
4802 # include <assert.h>
4803 #endif
4804                      Syntax error
4805 _ACEOF
4806 if ac_fn_c_try_cpp "$LINENO"; then :
4807
4808 else
4809   # Broken: fails on valid input.
4810 continue
4811 fi
4812 rm -f conftest.err conftest.i conftest.$ac_ext
4813
4814   # OK, works on sane cases.  Now check whether nonexistent headers
4815   # can be detected and how.
4816   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4817 /* end confdefs.h.  */
4818 #include <ac_nonexistent.h>
4819 _ACEOF
4820 if ac_fn_c_try_cpp "$LINENO"; then :
4821   # Broken: success on invalid input.
4822 continue
4823 else
4824   # Passes both tests.
4825 ac_preproc_ok=:
4826 break
4827 fi
4828 rm -f conftest.err conftest.i conftest.$ac_ext
4829
4830 done
4831 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4832 rm -f conftest.i conftest.err conftest.$ac_ext
4833 if $ac_preproc_ok; then :
4834
4835 else
4836   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4837 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4838 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4839 See \`config.log' for more details" "$LINENO" 5; }
4840 fi
4841
4842 ac_ext=c
4843 ac_cpp='$CPP $CPPFLAGS'
4844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4847
4848
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4850 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4851 if ${ac_cv_path_GREP+:} false; then :
4852   $as_echo_n "(cached) " >&6
4853 else
4854   if test -z "$GREP"; then
4855   ac_path_GREP_found=false
4856   # Loop through the user's path and test for each of PROGNAME-LIST
4857   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4858 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4859 do
4860   IFS=$as_save_IFS
4861   test -z "$as_dir" && as_dir=.
4862     for ac_prog in grep ggrep; do
4863     for ac_exec_ext in '' $ac_executable_extensions; do
4864       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4865       as_fn_executable_p "$ac_path_GREP" || continue
4866 # Check for GNU ac_path_GREP and select it if it is found.
4867   # Check for GNU $ac_path_GREP
4868 case `"$ac_path_GREP" --version 2>&1` in
4869 *GNU*)
4870   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4871 *)
4872   ac_count=0
4873   $as_echo_n 0123456789 >"conftest.in"
4874   while :
4875   do
4876     cat "conftest.in" "conftest.in" >"conftest.tmp"
4877     mv "conftest.tmp" "conftest.in"
4878     cp "conftest.in" "conftest.nl"
4879     $as_echo 'GREP' >> "conftest.nl"
4880     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4881     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4882     as_fn_arith $ac_count + 1 && ac_count=$as_val
4883     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4884       # Best one so far, save it but keep looking for a better one
4885       ac_cv_path_GREP="$ac_path_GREP"
4886       ac_path_GREP_max=$ac_count
4887     fi
4888     # 10*(2^10) chars as input seems more than enough
4889     test $ac_count -gt 10 && break
4890   done
4891   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4892 esac
4893
4894       $ac_path_GREP_found && break 3
4895     done
4896   done
4897   done
4898 IFS=$as_save_IFS
4899   if test -z "$ac_cv_path_GREP"; then
4900     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4901   fi
4902 else
4903   ac_cv_path_GREP=$GREP
4904 fi
4905
4906 fi
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4908 $as_echo "$ac_cv_path_GREP" >&6; }
4909  GREP="$ac_cv_path_GREP"
4910
4911
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4913 $as_echo_n "checking for egrep... " >&6; }
4914 if ${ac_cv_path_EGREP+:} false; then :
4915   $as_echo_n "(cached) " >&6
4916 else
4917   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4918    then ac_cv_path_EGREP="$GREP -E"
4919    else
4920      if test -z "$EGREP"; then
4921   ac_path_EGREP_found=false
4922   # Loop through the user's path and test for each of PROGNAME-LIST
4923   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4924 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4925 do
4926   IFS=$as_save_IFS
4927   test -z "$as_dir" && as_dir=.
4928     for ac_prog in egrep; do
4929     for ac_exec_ext in '' $ac_executable_extensions; do
4930       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4931       as_fn_executable_p "$ac_path_EGREP" || continue
4932 # Check for GNU ac_path_EGREP and select it if it is found.
4933   # Check for GNU $ac_path_EGREP
4934 case `"$ac_path_EGREP" --version 2>&1` in
4935 *GNU*)
4936   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4937 *)
4938   ac_count=0
4939   $as_echo_n 0123456789 >"conftest.in"
4940   while :
4941   do
4942     cat "conftest.in" "conftest.in" >"conftest.tmp"
4943     mv "conftest.tmp" "conftest.in"
4944     cp "conftest.in" "conftest.nl"
4945     $as_echo 'EGREP' >> "conftest.nl"
4946     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4947     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4948     as_fn_arith $ac_count + 1 && ac_count=$as_val
4949     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4950       # Best one so far, save it but keep looking for a better one
4951       ac_cv_path_EGREP="$ac_path_EGREP"
4952       ac_path_EGREP_max=$ac_count
4953     fi
4954     # 10*(2^10) chars as input seems more than enough
4955     test $ac_count -gt 10 && break
4956   done
4957   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4958 esac
4959
4960       $ac_path_EGREP_found && break 3
4961     done
4962   done
4963   done
4964 IFS=$as_save_IFS
4965   if test -z "$ac_cv_path_EGREP"; then
4966     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4967   fi
4968 else
4969   ac_cv_path_EGREP=$EGREP
4970 fi
4971
4972    fi
4973 fi
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4975 $as_echo "$ac_cv_path_EGREP" >&6; }
4976  EGREP="$ac_cv_path_EGREP"
4977
4978
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4980 $as_echo_n "checking for ANSI C header files... " >&6; }
4981 if ${ac_cv_header_stdc+:} false; then :
4982   $as_echo_n "(cached) " >&6
4983 else
4984   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4985 /* end confdefs.h.  */
4986 #include <stdlib.h>
4987 #include <stdarg.h>
4988 #include <string.h>
4989 #include <float.h>
4990
4991 int
4992 main ()
4993 {
4994
4995   ;
4996   return 0;
4997 }
4998 _ACEOF
4999 if ac_fn_c_try_compile "$LINENO"; then :
5000   ac_cv_header_stdc=yes
5001 else
5002   ac_cv_header_stdc=no
5003 fi
5004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5005
5006 if test $ac_cv_header_stdc = yes; then
5007   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5008   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5009 /* end confdefs.h.  */
5010 #include <string.h>
5011
5012 _ACEOF
5013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5014   $EGREP "memchr" >/dev/null 2>&1; then :
5015
5016 else
5017   ac_cv_header_stdc=no
5018 fi
5019 rm -f conftest*
5020
5021 fi
5022
5023 if test $ac_cv_header_stdc = yes; then
5024   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5025   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5026 /* end confdefs.h.  */
5027 #include <stdlib.h>
5028
5029 _ACEOF
5030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5031   $EGREP "free" >/dev/null 2>&1; then :
5032
5033 else
5034   ac_cv_header_stdc=no
5035 fi
5036 rm -f conftest*
5037
5038 fi
5039
5040 if test $ac_cv_header_stdc = yes; then
5041   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5042   if test "$cross_compiling" = yes; then :
5043   :
5044 else
5045   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5046 /* end confdefs.h.  */
5047 #include <ctype.h>
5048 #include <stdlib.h>
5049 #if ((' ' & 0x0FF) == 0x020)
5050 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5051 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5052 #else
5053 # define ISLOWER(c) \
5054                    (('a' <= (c) && (c) <= 'i') \
5055                      || ('j' <= (c) && (c) <= 'r') \
5056                      || ('s' <= (c) && (c) <= 'z'))
5057 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5058 #endif
5059
5060 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5061 int
5062 main ()
5063 {
5064   int i;
5065   for (i = 0; i < 256; i++)
5066     if (XOR (islower (i), ISLOWER (i))
5067         || toupper (i) != TOUPPER (i))
5068       return 2;
5069   return 0;
5070 }
5071 _ACEOF
5072 if ac_fn_c_try_run "$LINENO"; then :
5073
5074 else
5075   ac_cv_header_stdc=no
5076 fi
5077 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5078   conftest.$ac_objext conftest.beam conftest.$ac_ext
5079 fi
5080
5081 fi
5082 fi
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5084 $as_echo "$ac_cv_header_stdc" >&6; }
5085 if test $ac_cv_header_stdc = yes; then
5086
5087 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5088
5089 fi
5090
5091 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5092 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5093                   inttypes.h stdint.h unistd.h
5094 do :
5095   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5096 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5097 "
5098 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5099   cat >>confdefs.h <<_ACEOF
5100 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5101 _ACEOF
5102
5103 fi
5104
5105 done
5106
5107
5108
5109   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5110 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5111   MINIX=yes
5112 else
5113   MINIX=
5114 fi
5115
5116
5117   if test "$MINIX" = yes; then
5118
5119 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5120
5121
5122 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5123
5124
5125 $as_echo "#define _MINIX 1" >>confdefs.h
5126
5127   fi
5128
5129
5130   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5131 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5132 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5133   $as_echo_n "(cached) " >&6
5134 else
5135   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5136 /* end confdefs.h.  */
5137
5138 #         define __EXTENSIONS__ 1
5139           $ac_includes_default
5140 int
5141 main ()
5142 {
5143
5144   ;
5145   return 0;
5146 }
5147 _ACEOF
5148 if ac_fn_c_try_compile "$LINENO"; then :
5149   ac_cv_safe_to_define___extensions__=yes
5150 else
5151   ac_cv_safe_to_define___extensions__=no
5152 fi
5153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5154 fi
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5156 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5157   test $ac_cv_safe_to_define___extensions__ = yes &&
5158     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5159
5160   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5161
5162   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5163
5164   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5165
5166   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5167
5168
5169
5170 # Taken from mpfr-4.0.1, then modified for LDADD_FOR_TESTS_KLUDGE
5171 case $host in
5172   *-*-linux*)
5173     if test -n "$LD_LIBRARY_PATH"; then
5174       saved_LDFLAGS="$LDFLAGS"
5175       LDADD_FOR_TESTS_KLUDGE="-Wl,--disable-new-dtags"
5176       LDFLAGS="$LDFLAGS $LDADD_FOR_TESTS_KLUDGE"
5177       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --disable-new-dtags is supported by the linker" >&5
5178 $as_echo_n "checking whether --disable-new-dtags is supported by the linker... " >&6; }
5179       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5180 /* end confdefs.h.  */
5181
5182 int main (void) { return 0; }
5183
5184 _ACEOF
5185 if ac_fn_c_try_link "$LINENO"; then :
5186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (use it since LD_LIBRARY_PATH is set)" >&5
5187 $as_echo "yes (use it since LD_LIBRARY_PATH is set)" >&6; }
5188 else
5189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5190 $as_echo "no" >&6; }
5191        LDADD_FOR_TESTS_KLUDGE=""
5192
5193 fi
5194 rm -f core conftest.err conftest.$ac_objext \
5195     conftest$ac_exeext conftest.$ac_ext
5196       LDFLAGS="$saved_LDFLAGS"
5197     fi
5198     ;;
5199 esac
5200
5201
5202
5203
5204 ac_ext=c
5205 ac_cpp='$CPP $CPPFLAGS'
5206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5209 if test -n "$ac_tool_prefix"; then
5210   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5211 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5213 $as_echo_n "checking for $ac_word... " >&6; }
5214 if ${ac_cv_prog_CC+:} false; then :
5215   $as_echo_n "(cached) " >&6
5216 else
5217   if test -n "$CC"; then
5218   ac_cv_prog_CC="$CC" # Let the user override the test.
5219 else
5220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5221 for as_dir in $PATH
5222 do
5223   IFS=$as_save_IFS
5224   test -z "$as_dir" && as_dir=.
5225     for ac_exec_ext in '' $ac_executable_extensions; do
5226   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5227     ac_cv_prog_CC="${ac_tool_prefix}gcc"
5228     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5229     break 2
5230   fi
5231 done
5232   done
5233 IFS=$as_save_IFS
5234
5235 fi
5236 fi
5237 CC=$ac_cv_prog_CC
5238 if test -n "$CC"; then
5239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5240 $as_echo "$CC" >&6; }
5241 else
5242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5243 $as_echo "no" >&6; }
5244 fi
5245
5246
5247 fi
5248 if test -z "$ac_cv_prog_CC"; then
5249   ac_ct_CC=$CC
5250   # Extract the first word of "gcc", so it can be a program name with args.
5251 set dummy gcc; ac_word=$2
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5253 $as_echo_n "checking for $ac_word... " >&6; }
5254 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5255   $as_echo_n "(cached) " >&6
5256 else
5257   if test -n "$ac_ct_CC"; then
5258   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5259 else
5260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5261 for as_dir in $PATH
5262 do
5263   IFS=$as_save_IFS
5264   test -z "$as_dir" && as_dir=.
5265     for ac_exec_ext in '' $ac_executable_extensions; do
5266   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5267     ac_cv_prog_ac_ct_CC="gcc"
5268     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5269     break 2
5270   fi
5271 done
5272   done
5273 IFS=$as_save_IFS
5274
5275 fi
5276 fi
5277 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5278 if test -n "$ac_ct_CC"; then
5279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5280 $as_echo "$ac_ct_CC" >&6; }
5281 else
5282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5283 $as_echo "no" >&6; }
5284 fi
5285
5286   if test "x$ac_ct_CC" = x; then
5287     CC=""
5288   else
5289     case $cross_compiling:$ac_tool_warned in
5290 yes:)
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5292 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5293 ac_tool_warned=yes ;;
5294 esac
5295     CC=$ac_ct_CC
5296   fi
5297 else
5298   CC="$ac_cv_prog_CC"
5299 fi
5300
5301 if test -z "$CC"; then
5302           if test -n "$ac_tool_prefix"; then
5303     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5304 set dummy ${ac_tool_prefix}cc; ac_word=$2
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5306 $as_echo_n "checking for $ac_word... " >&6; }
5307 if ${ac_cv_prog_CC+:} false; then :
5308   $as_echo_n "(cached) " >&6
5309 else
5310   if test -n "$CC"; then
5311   ac_cv_prog_CC="$CC" # Let the user override the test.
5312 else
5313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5314 for as_dir in $PATH
5315 do
5316   IFS=$as_save_IFS
5317   test -z "$as_dir" && as_dir=.
5318     for ac_exec_ext in '' $ac_executable_extensions; do
5319   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5320     ac_cv_prog_CC="${ac_tool_prefix}cc"
5321     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5322     break 2
5323   fi
5324 done
5325   done
5326 IFS=$as_save_IFS
5327
5328 fi
5329 fi
5330 CC=$ac_cv_prog_CC
5331 if test -n "$CC"; then
5332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5333 $as_echo "$CC" >&6; }
5334 else
5335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5336 $as_echo "no" >&6; }
5337 fi
5338
5339
5340   fi
5341 fi
5342 if test -z "$CC"; then
5343   # Extract the first word of "cc", so it can be a program name with args.
5344 set dummy cc; ac_word=$2
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5346 $as_echo_n "checking for $ac_word... " >&6; }
5347 if ${ac_cv_prog_CC+:} false; then :
5348   $as_echo_n "(cached) " >&6
5349 else
5350   if test -n "$CC"; then
5351   ac_cv_prog_CC="$CC" # Let the user override the test.
5352 else
5353   ac_prog_rejected=no
5354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5355 for as_dir in $PATH
5356 do
5357   IFS=$as_save_IFS
5358   test -z "$as_dir" && as_dir=.
5359     for ac_exec_ext in '' $ac_executable_extensions; do
5360   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5361     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5362        ac_prog_rejected=yes
5363        continue
5364      fi
5365     ac_cv_prog_CC="cc"
5366     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5367     break 2
5368   fi
5369 done
5370   done
5371 IFS=$as_save_IFS
5372
5373 if test $ac_prog_rejected = yes; then
5374   # We found a bogon in the path, so make sure we never use it.
5375   set dummy $ac_cv_prog_CC
5376   shift
5377   if test $# != 0; then
5378     # We chose a different compiler from the bogus one.
5379     # However, it has the same basename, so the bogon will be chosen
5380     # first if we set CC to just the basename; use the full file name.
5381     shift
5382     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5383   fi
5384 fi
5385 fi
5386 fi
5387 CC=$ac_cv_prog_CC
5388 if test -n "$CC"; then
5389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5390 $as_echo "$CC" >&6; }
5391 else
5392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5393 $as_echo "no" >&6; }
5394 fi
5395
5396
5397 fi
5398 if test -z "$CC"; then
5399   if test -n "$ac_tool_prefix"; then
5400   for ac_prog in cl.exe
5401   do
5402     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5403 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5405 $as_echo_n "checking for $ac_word... " >&6; }
5406 if ${ac_cv_prog_CC+:} false; then :
5407   $as_echo_n "(cached) " >&6
5408 else
5409   if test -n "$CC"; then
5410   ac_cv_prog_CC="$CC" # Let the user override the test.
5411 else
5412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5413 for as_dir in $PATH
5414 do
5415   IFS=$as_save_IFS
5416   test -z "$as_dir" && as_dir=.
5417     for ac_exec_ext in '' $ac_executable_extensions; do
5418   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5419     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5420     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5421     break 2
5422   fi
5423 done
5424   done
5425 IFS=$as_save_IFS
5426
5427 fi
5428 fi
5429 CC=$ac_cv_prog_CC
5430 if test -n "$CC"; then
5431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5432 $as_echo "$CC" >&6; }
5433 else
5434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5435 $as_echo "no" >&6; }
5436 fi
5437
5438
5439     test -n "$CC" && break
5440   done
5441 fi
5442 if test -z "$CC"; then
5443   ac_ct_CC=$CC
5444   for ac_prog in cl.exe
5445 do
5446   # Extract the first word of "$ac_prog", so it can be a program name with args.
5447 set dummy $ac_prog; ac_word=$2
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5449 $as_echo_n "checking for $ac_word... " >&6; }
5450 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5451   $as_echo_n "(cached) " >&6
5452 else
5453   if test -n "$ac_ct_CC"; then
5454   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5455 else
5456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5457 for as_dir in $PATH
5458 do
5459   IFS=$as_save_IFS
5460   test -z "$as_dir" && as_dir=.
5461     for ac_exec_ext in '' $ac_executable_extensions; do
5462   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5463     ac_cv_prog_ac_ct_CC="$ac_prog"
5464     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5465     break 2
5466   fi
5467 done
5468   done
5469 IFS=$as_save_IFS
5470
5471 fi
5472 fi
5473 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5474 if test -n "$ac_ct_CC"; then
5475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5476 $as_echo "$ac_ct_CC" >&6; }
5477 else
5478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5479 $as_echo "no" >&6; }
5480 fi
5481
5482
5483   test -n "$ac_ct_CC" && break
5484 done
5485
5486   if test "x$ac_ct_CC" = x; then
5487     CC=""
5488   else
5489     case $cross_compiling:$ac_tool_warned in
5490 yes:)
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5492 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5493 ac_tool_warned=yes ;;
5494 esac
5495     CC=$ac_ct_CC
5496   fi
5497 fi
5498
5499 fi
5500
5501
5502 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5503 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5504 as_fn_error $? "no acceptable C compiler found in \$PATH
5505 See \`config.log' for more details" "$LINENO" 5; }
5506
5507 # Provide some information about the compiler.
5508 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5509 set X $ac_compile
5510 ac_compiler=$2
5511 for ac_option in --version -v -V -qversion; do
5512   { { ac_try="$ac_compiler $ac_option >&5"
5513 case "(($ac_try" in
5514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5515   *) ac_try_echo=$ac_try;;
5516 esac
5517 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5518 $as_echo "$ac_try_echo"; } >&5
5519   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5520   ac_status=$?
5521   if test -s conftest.err; then
5522     sed '10a\
5523 ... rest of stderr output deleted ...
5524          10q' conftest.err >conftest.er1
5525     cat conftest.er1 >&5
5526   fi
5527   rm -f conftest.er1 conftest.err
5528   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5529   test $ac_status = 0; }
5530 done
5531
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5533 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5534 if ${ac_cv_c_compiler_gnu+:} false; then :
5535   $as_echo_n "(cached) " >&6
5536 else
5537   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5538 /* end confdefs.h.  */
5539
5540 int
5541 main ()
5542 {
5543 #ifndef __GNUC__
5544        choke me
5545 #endif
5546
5547   ;
5548   return 0;
5549 }
5550 _ACEOF
5551 if ac_fn_c_try_compile "$LINENO"; then :
5552   ac_compiler_gnu=yes
5553 else
5554   ac_compiler_gnu=no
5555 fi
5556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5557 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5558
5559 fi
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5561 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5562 if test $ac_compiler_gnu = yes; then
5563   GCC=yes
5564 else
5565   GCC=
5566 fi
5567 ac_test_CFLAGS=${CFLAGS+set}
5568 ac_save_CFLAGS=$CFLAGS
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5570 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5571 if ${ac_cv_prog_cc_g+:} false; then :
5572   $as_echo_n "(cached) " >&6
5573 else
5574   ac_save_c_werror_flag=$ac_c_werror_flag
5575    ac_c_werror_flag=yes
5576    ac_cv_prog_cc_g=no
5577    CFLAGS="-g"
5578    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5579 /* end confdefs.h.  */
5580
5581 int
5582 main ()
5583 {
5584
5585   ;
5586   return 0;
5587 }
5588 _ACEOF
5589 if ac_fn_c_try_compile "$LINENO"; then :
5590   ac_cv_prog_cc_g=yes
5591 else
5592   CFLAGS=""
5593       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5594 /* end confdefs.h.  */
5595
5596 int
5597 main ()
5598 {
5599
5600   ;
5601   return 0;
5602 }
5603 _ACEOF
5604 if ac_fn_c_try_compile "$LINENO"; then :
5605
5606 else
5607   ac_c_werror_flag=$ac_save_c_werror_flag
5608          CFLAGS="-g"
5609          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5610 /* end confdefs.h.  */
5611
5612 int
5613 main ()
5614 {
5615
5616   ;
5617   return 0;
5618 }
5619 _ACEOF
5620 if ac_fn_c_try_compile "$LINENO"; then :
5621   ac_cv_prog_cc_g=yes
5622 fi
5623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5624 fi
5625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5626 fi
5627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5628    ac_c_werror_flag=$ac_save_c_werror_flag
5629 fi
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5631 $as_echo "$ac_cv_prog_cc_g" >&6; }
5632 if test "$ac_test_CFLAGS" = set; then
5633   CFLAGS=$ac_save_CFLAGS
5634 elif test $ac_cv_prog_cc_g = yes; then
5635   if test "$GCC" = yes; then
5636     CFLAGS="-g -O2"
5637   else
5638     CFLAGS="-g"
5639   fi
5640 else
5641   if test "$GCC" = yes; then
5642     CFLAGS="-O2"
5643   else
5644     CFLAGS=
5645   fi
5646 fi
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5648 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5649 if ${ac_cv_prog_cc_c89+:} false; then :
5650   $as_echo_n "(cached) " >&6
5651 else
5652   ac_cv_prog_cc_c89=no
5653 ac_save_CC=$CC
5654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5655 /* end confdefs.h.  */
5656 #include <stdarg.h>
5657 #include <stdio.h>
5658 struct stat;
5659 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5660 struct buf { int x; };
5661 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5662 static char *e (p, i)
5663      char **p;
5664      int i;
5665 {
5666   return p[i];
5667 }
5668 static char *f (char * (*g) (char **, int), char **p, ...)
5669 {
5670   char *s;
5671   va_list v;
5672   va_start (v,p);
5673   s = g (p, va_arg (v,int));
5674   va_end (v);
5675   return s;
5676 }
5677
5678 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5679    function prototypes and stuff, but not '\xHH' hex character constants.
5680    These don't provoke an error unfortunately, instead are silently treated
5681    as 'x'.  The following induces an error, until -std is added to get
5682    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5683    array size at least.  It's necessary to write '\x00'==0 to get something
5684    that's true only with -std.  */
5685 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5686
5687 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5688    inside strings and character constants.  */
5689 #define FOO(x) 'x'
5690 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5691
5692 int test (int i, double x);
5693 struct s1 {int (*f) (int a);};
5694 struct s2 {int (*f) (double a);};
5695 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5696 int argc;
5697 char **argv;
5698 int
5699 main ()
5700 {
5701 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5702   ;
5703   return 0;
5704 }
5705 _ACEOF
5706 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5707         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5708 do
5709   CC="$ac_save_CC $ac_arg"
5710   if ac_fn_c_try_compile "$LINENO"; then :
5711   ac_cv_prog_cc_c89=$ac_arg
5712 fi
5713 rm -f core conftest.err conftest.$ac_objext
5714   test "x$ac_cv_prog_cc_c89" != "xno" && break
5715 done
5716 rm -f conftest.$ac_ext
5717 CC=$ac_save_CC
5718
5719 fi
5720 # AC_CACHE_VAL
5721 case "x$ac_cv_prog_cc_c89" in
5722   x)
5723     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5724 $as_echo "none needed" >&6; } ;;
5725   xno)
5726     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5727 $as_echo "unsupported" >&6; } ;;
5728   *)
5729     CC="$CC $ac_cv_prog_cc_c89"
5730     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5731 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5732 esac
5733 if test "x$ac_cv_prog_cc_c89" != xno; then :
5734
5735 fi
5736
5737 ac_ext=c
5738 ac_cpp='$CPP $CPPFLAGS'
5739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5742
5743 ac_ext=c
5744 ac_cpp='$CPP $CPPFLAGS'
5745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5749 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5750 if ${am_cv_prog_cc_c_o+:} false; then :
5751   $as_echo_n "(cached) " >&6
5752 else
5753   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5754 /* end confdefs.h.  */
5755
5756 int
5757 main ()
5758 {
5759
5760   ;
5761   return 0;
5762 }
5763 _ACEOF
5764   # Make sure it works both with $CC and with simple cc.
5765   # Following AC_PROG_CC_C_O, we do the test twice because some
5766   # compilers refuse to overwrite an existing .o file with -o,
5767   # though they will create one.
5768   am_cv_prog_cc_c_o=yes
5769   for am_i in 1 2; do
5770     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5771    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5772    ac_status=$?
5773    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774    (exit $ac_status); } \
5775          && test -f conftest2.$ac_objext; then
5776       : OK
5777     else
5778       am_cv_prog_cc_c_o=no
5779       break
5780     fi
5781   done
5782   rm -f core conftest*
5783   unset am_i
5784 fi
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5786 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5787 if test "$am_cv_prog_cc_c_o" != yes; then
5788    # Losing compiler, so override with the script.
5789    # FIXME: It is wrong to rewrite CC.
5790    # But if we don't then we get into trouble of one sort or another.
5791    # A longer-term fix would be to have automake use am__CC in this case,
5792    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5793    CC="$am_aux_dir/compile $CC"
5794 fi
5795 ac_ext=c
5796 ac_cpp='$CPP $CPPFLAGS'
5797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5800
5801
5802 depcc="$CC"   am_compiler_list=
5803
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5805 $as_echo_n "checking dependency style of $depcc... " >&6; }
5806 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5807   $as_echo_n "(cached) " >&6
5808 else
5809   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5810   # We make a subdir and do the tests there.  Otherwise we can end up
5811   # making bogus files that we don't know about and never remove.  For
5812   # instance it was reported that on HP-UX the gcc test will end up
5813   # making a dummy file named 'D' -- because '-MD' means "put the output
5814   # in D".
5815   rm -rf conftest.dir
5816   mkdir conftest.dir
5817   # Copy depcomp to subdir because otherwise we won't find it if we're
5818   # using a relative directory.
5819   cp "$am_depcomp" conftest.dir
5820   cd conftest.dir
5821   # We will build objects and dependencies in a subdirectory because
5822   # it helps to detect inapplicable dependency modes.  For instance
5823   # both Tru64's cc and ICC support -MD to output dependencies as a
5824   # side effect of compilation, but ICC will put the dependencies in
5825   # the current directory while Tru64 will put them in the object
5826   # directory.
5827   mkdir sub
5828
5829   am_cv_CC_dependencies_compiler_type=none
5830   if test "$am_compiler_list" = ""; then
5831      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5832   fi
5833   am__universal=false
5834   case " $depcc " in #(
5835      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5836      esac
5837
5838   for depmode in $am_compiler_list; do
5839     # Setup a source with many dependencies, because some compilers
5840     # like to wrap large dependency lists on column 80 (with \), and
5841     # we should not choose a depcomp mode which is confused by this.
5842     #
5843     # We need to recreate these files for each test, as the compiler may
5844     # overwrite some of them when testing with obscure command lines.
5845     # This happens at least with the AIX C compiler.
5846     : > sub/conftest.c
5847     for i in 1 2 3 4 5 6; do
5848       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5849       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5850       # Solaris 10 /bin/sh.
5851       echo '/* dummy */' > sub/conftst$i.h
5852     done
5853     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5854
5855     # We check with '-c' and '-o' for the sake of the "dashmstdout"
5856     # mode.  It turns out that the SunPro C++ compiler does not properly
5857     # handle '-M -o', and we need to detect this.  Also, some Intel
5858     # versions had trouble with output in subdirs.
5859     am__obj=sub/conftest.${OBJEXT-o}
5860     am__minus_obj="-o $am__obj"
5861     case $depmode in
5862     gcc)
5863       # This depmode causes a compiler race in universal mode.
5864       test "$am__universal" = false || continue
5865       ;;
5866     nosideeffect)
5867       # After this tag, mechanisms are not by side-effect, so they'll
5868       # only be used when explicitly requested.
5869       if test "x$enable_dependency_tracking" = xyes; then
5870         continue
5871       else
5872         break
5873       fi
5874       ;;
5875     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5876       # This compiler won't grok '-c -o', but also, the minuso test has
5877       # not run yet.  These depmodes are late enough in the game, and
5878       # so weak that their functioning should not be impacted.
5879       am__obj=conftest.${OBJEXT-o}
5880       am__minus_obj=
5881       ;;
5882     none) break ;;
5883     esac
5884     if depmode=$depmode \
5885        source=sub/conftest.c object=$am__obj \
5886        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5887        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5888          >/dev/null 2>conftest.err &&
5889        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5890        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5891        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5892        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5893       # icc doesn't choke on unknown options, it will just issue warnings
5894       # or remarks (even with -Werror).  So we grep stderr for any message
5895       # that says an option was ignored or not supported.
5896       # When given -MP, icc 7.0 and 7.1 complain thusly:
5897       #   icc: Command line warning: ignoring option '-M'; no argument required
5898       # The diagnosis changed in icc 8.0:
5899       #   icc: Command line remark: option '-MP' not supported
5900       if (grep 'ignoring option' conftest.err ||
5901           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5902         am_cv_CC_dependencies_compiler_type=$depmode
5903         break
5904       fi
5905     fi
5906   done
5907
5908   cd ..
5909   rm -rf conftest.dir
5910 else
5911   am_cv_CC_dependencies_compiler_type=none
5912 fi
5913
5914 fi
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5916 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5917 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5918
5919  if
5920   test "x$enable_dependency_tracking" != xno \
5921   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5922   am__fastdepCC_TRUE=
5923   am__fastdepCC_FALSE='#'
5924 else
5925   am__fastdepCC_TRUE='#'
5926   am__fastdepCC_FALSE=
5927 fi
5928
5929
5930 ac_ext=c
5931 ac_cpp='$CPP $CPPFLAGS'
5932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5936 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5937 # On Suns, sometimes $CPP names a directory.
5938 if test -n "$CPP" && test -d "$CPP"; then
5939   CPP=
5940 fi
5941 if test -z "$CPP"; then
5942   if ${ac_cv_prog_CPP+:} false; then :
5943   $as_echo_n "(cached) " >&6
5944 else
5945       # Double quotes because CPP needs to be expanded
5946     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5947     do
5948       ac_preproc_ok=false
5949 for ac_c_preproc_warn_flag in '' yes
5950 do
5951   # Use a header file that comes with gcc, so configuring glibc
5952   # with a fresh cross-compiler works.
5953   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5954   # <limits.h> exists even on freestanding compilers.
5955   # On the NeXT, cc -E runs the code through the compiler's parser,
5956   # not just through cpp. "Syntax error" is here to catch this case.
5957   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5958 /* end confdefs.h.  */
5959 #ifdef __STDC__
5960 # include <limits.h>
5961 #else
5962 # include <assert.h>
5963 #endif
5964                      Syntax error
5965 _ACEOF
5966 if ac_fn_c_try_cpp "$LINENO"; then :
5967
5968 else
5969   # Broken: fails on valid input.
5970 continue
5971 fi
5972 rm -f conftest.err conftest.i conftest.$ac_ext
5973
5974   # OK, works on sane cases.  Now check whether nonexistent headers
5975   # can be detected and how.
5976   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5977 /* end confdefs.h.  */
5978 #include <ac_nonexistent.h>
5979 _ACEOF
5980 if ac_fn_c_try_cpp "$LINENO"; then :
5981   # Broken: success on invalid input.
5982 continue
5983 else
5984   # Passes both tests.
5985 ac_preproc_ok=:
5986 break
5987 fi
5988 rm -f conftest.err conftest.i conftest.$ac_ext
5989
5990 done
5991 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5992 rm -f conftest.i conftest.err conftest.$ac_ext
5993 if $ac_preproc_ok; then :
5994   break
5995 fi
5996
5997     done
5998     ac_cv_prog_CPP=$CPP
5999
6000 fi
6001   CPP=$ac_cv_prog_CPP
6002 else
6003   ac_cv_prog_CPP=$CPP
6004 fi
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6006 $as_echo "$CPP" >&6; }
6007 ac_preproc_ok=false
6008 for ac_c_preproc_warn_flag in '' yes
6009 do
6010   # Use a header file that comes with gcc, so configuring glibc
6011   # with a fresh cross-compiler works.
6012   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6013   # <limits.h> exists even on freestanding compilers.
6014   # On the NeXT, cc -E runs the code through the compiler's parser,
6015   # not just through cpp. "Syntax error" is here to catch this case.
6016   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6017 /* end confdefs.h.  */
6018 #ifdef __STDC__
6019 # include <limits.h>
6020 #else
6021 # include <assert.h>
6022 #endif
6023                      Syntax error
6024 _ACEOF
6025 if ac_fn_c_try_cpp "$LINENO"; then :
6026
6027 else
6028   # Broken: fails on valid input.
6029 continue
6030 fi
6031 rm -f conftest.err conftest.i conftest.$ac_ext
6032
6033   # OK, works on sane cases.  Now check whether nonexistent headers
6034   # can be detected and how.
6035   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6036 /* end confdefs.h.  */
6037 #include <ac_nonexistent.h>
6038 _ACEOF
6039 if ac_fn_c_try_cpp "$LINENO"; then :
6040   # Broken: success on invalid input.
6041 continue
6042 else
6043   # Passes both tests.
6044 ac_preproc_ok=:
6045 break
6046 fi
6047 rm -f conftest.err conftest.i conftest.$ac_ext
6048
6049 done
6050 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6051 rm -f conftest.i conftest.err conftest.$ac_ext
6052 if $ac_preproc_ok; then :
6053
6054 else
6055   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6056 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6057 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6058 See \`config.log' for more details" "$LINENO" 5; }
6059 fi
6060
6061 ac_ext=c
6062 ac_cpp='$CPP $CPPFLAGS'
6063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6066
6067 ac_ext=cpp
6068 ac_cpp='$CXXCPP $CPPFLAGS'
6069 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6070 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6071 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6072 if test -z "$CXX"; then
6073   if test -n "$CCC"; then
6074     CXX=$CCC
6075   else
6076     if test -n "$ac_tool_prefix"; then
6077   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6078   do
6079     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6080 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6082 $as_echo_n "checking for $ac_word... " >&6; }
6083 if ${ac_cv_prog_CXX+:} false; then :
6084   $as_echo_n "(cached) " >&6
6085 else
6086   if test -n "$CXX"; then
6087   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6088 else
6089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6090 for as_dir in $PATH
6091 do
6092   IFS=$as_save_IFS
6093   test -z "$as_dir" && as_dir=.
6094     for ac_exec_ext in '' $ac_executable_extensions; do
6095   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6096     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6097     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6098     break 2
6099   fi
6100 done
6101   done
6102 IFS=$as_save_IFS
6103
6104 fi
6105 fi
6106 CXX=$ac_cv_prog_CXX
6107 if test -n "$CXX"; then
6108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6109 $as_echo "$CXX" >&6; }
6110 else
6111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6112 $as_echo "no" >&6; }
6113 fi
6114
6115
6116     test -n "$CXX" && break
6117   done
6118 fi
6119 if test -z "$CXX"; then
6120   ac_ct_CXX=$CXX
6121   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6122 do
6123   # Extract the first word of "$ac_prog", so it can be a program name with args.
6124 set dummy $ac_prog; ac_word=$2
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6126 $as_echo_n "checking for $ac_word... " >&6; }
6127 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
6128   $as_echo_n "(cached) " >&6
6129 else
6130   if test -n "$ac_ct_CXX"; then
6131   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6132 else
6133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6134 for as_dir in $PATH
6135 do
6136   IFS=$as_save_IFS
6137   test -z "$as_dir" && as_dir=.
6138     for ac_exec_ext in '' $ac_executable_extensions; do
6139   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6140     ac_cv_prog_ac_ct_CXX="$ac_prog"
6141     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6142     break 2
6143   fi
6144 done
6145   done
6146 IFS=$as_save_IFS
6147
6148 fi
6149 fi
6150 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6151 if test -n "$ac_ct_CXX"; then
6152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6153 $as_echo "$ac_ct_CXX" >&6; }
6154 else
6155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6156 $as_echo "no" >&6; }
6157 fi
6158
6159
6160   test -n "$ac_ct_CXX" && break
6161 done
6162
6163   if test "x$ac_ct_CXX" = x; then
6164     CXX="g++"
6165   else
6166     case $cross_compiling:$ac_tool_warned in
6167 yes:)
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6169 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6170 ac_tool_warned=yes ;;
6171 esac
6172     CXX=$ac_ct_CXX
6173   fi
6174 fi
6175
6176   fi
6177 fi
6178 # Provide some information about the compiler.
6179 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6180 set X $ac_compile
6181 ac_compiler=$2
6182 for ac_option in --version -v -V -qversion; do
6183   { { ac_try="$ac_compiler $ac_option >&5"
6184 case "(($ac_try" in
6185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6186   *) ac_try_echo=$ac_try;;
6187 esac
6188 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6189 $as_echo "$ac_try_echo"; } >&5
6190   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6191   ac_status=$?
6192   if test -s conftest.err; then
6193     sed '10a\
6194 ... rest of stderr output deleted ...
6195          10q' conftest.err >conftest.er1
6196     cat conftest.er1 >&5
6197   fi
6198   rm -f conftest.er1 conftest.err
6199   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6200   test $ac_status = 0; }
6201 done
6202
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6204 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6205 if ${ac_cv_cxx_compiler_gnu+:} false; then :
6206   $as_echo_n "(cached) " >&6
6207 else
6208   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6209 /* end confdefs.h.  */
6210
6211 int
6212 main ()
6213 {
6214 #ifndef __GNUC__
6215        choke me
6216 #endif
6217
6218   ;
6219   return 0;
6220 }
6221 _ACEOF
6222 if ac_fn_cxx_try_compile "$LINENO"; then :
6223   ac_compiler_gnu=yes
6224 else
6225   ac_compiler_gnu=no
6226 fi
6227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6228 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6229
6230 fi
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6232 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6233 if test $ac_compiler_gnu = yes; then
6234   GXX=yes
6235 else
6236   GXX=
6237 fi
6238 ac_test_CXXFLAGS=${CXXFLAGS+set}
6239 ac_save_CXXFLAGS=$CXXFLAGS
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6241 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
6242 if ${ac_cv_prog_cxx_g+:} false; then :
6243   $as_echo_n "(cached) " >&6
6244 else
6245   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6246    ac_cxx_werror_flag=yes
6247    ac_cv_prog_cxx_g=no
6248    CXXFLAGS="-g"
6249    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6250 /* end confdefs.h.  */
6251
6252 int
6253 main ()
6254 {
6255
6256   ;
6257   return 0;
6258 }
6259 _ACEOF
6260 if ac_fn_cxx_try_compile "$LINENO"; then :
6261   ac_cv_prog_cxx_g=yes
6262 else
6263   CXXFLAGS=""
6264       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6265 /* end confdefs.h.  */
6266
6267 int
6268 main ()
6269 {
6270
6271   ;
6272   return 0;
6273 }
6274 _ACEOF
6275 if ac_fn_cxx_try_compile "$LINENO"; then :
6276
6277 else
6278   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6279          CXXFLAGS="-g"
6280          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6281 /* end confdefs.h.  */
6282
6283 int
6284 main ()
6285 {
6286
6287   ;
6288   return 0;
6289 }
6290 _ACEOF
6291 if ac_fn_cxx_try_compile "$LINENO"; then :
6292   ac_cv_prog_cxx_g=yes
6293 fi
6294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6295 fi
6296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6297 fi
6298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6299    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6300 fi
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6302 $as_echo "$ac_cv_prog_cxx_g" >&6; }
6303 if test "$ac_test_CXXFLAGS" = set; then
6304   CXXFLAGS=$ac_save_CXXFLAGS
6305 elif test $ac_cv_prog_cxx_g = yes; then
6306   if test "$GXX" = yes; then
6307     CXXFLAGS="-g -O2"
6308   else
6309     CXXFLAGS="-g"
6310   fi
6311 else
6312   if test "$GXX" = yes; then
6313     CXXFLAGS="-O2"
6314   else
6315     CXXFLAGS=
6316   fi
6317 fi
6318 ac_ext=c
6319 ac_cpp='$CPP $CPPFLAGS'
6320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6323
6324 depcc="$CXX"  am_compiler_list=
6325
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6327 $as_echo_n "checking dependency style of $depcc... " >&6; }
6328 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
6329   $as_echo_n "(cached) " >&6
6330 else
6331   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6332   # We make a subdir and do the tests there.  Otherwise we can end up
6333   # making bogus files that we don't know about and never remove.  For
6334   # instance it was reported that on HP-UX the gcc test will end up
6335   # making a dummy file named 'D' -- because '-MD' means "put the output
6336   # in D".
6337   rm -rf conftest.dir
6338   mkdir conftest.dir
6339   # Copy depcomp to subdir because otherwise we won't find it if we're
6340   # using a relative directory.
6341   cp "$am_depcomp" conftest.dir
6342   cd conftest.dir
6343   # We will build objects and dependencies in a subdirectory because
6344   # it helps to detect inapplicable dependency modes.  For instance
6345   # both Tru64's cc and ICC support -MD to output dependencies as a
6346   # side effect of compilation, but ICC will put the dependencies in
6347   # the current directory while Tru64 will put them in the object
6348   # directory.
6349   mkdir sub
6350
6351   am_cv_CXX_dependencies_compiler_type=none
6352   if test "$am_compiler_list" = ""; then
6353      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6354   fi
6355   am__universal=false
6356   case " $depcc " in #(
6357      *\ -arch\ *\ -arch\ *) am__universal=true ;;
6358      esac
6359
6360   for depmode in $am_compiler_list; do
6361     # Setup a source with many dependencies, because some compilers
6362     # like to wrap large dependency lists on column 80 (with \), and
6363     # we should not choose a depcomp mode which is confused by this.
6364     #
6365     # We need to recreate these files for each test, as the compiler may
6366     # overwrite some of them when testing with obscure command lines.
6367     # This happens at least with the AIX C compiler.
6368     : > sub/conftest.c
6369     for i in 1 2 3 4 5 6; do
6370       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6371       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6372       # Solaris 10 /bin/sh.
6373       echo '/* dummy */' > sub/conftst$i.h
6374     done
6375     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6376
6377     # We check with '-c' and '-o' for the sake of the "dashmstdout"
6378     # mode.  It turns out that the SunPro C++ compiler does not properly
6379     # handle '-M -o', and we need to detect this.  Also, some Intel
6380     # versions had trouble with output in subdirs.
6381     am__obj=sub/conftest.${OBJEXT-o}
6382     am__minus_obj="-o $am__obj"
6383     case $depmode in
6384     gcc)
6385       # This depmode causes a compiler race in universal mode.
6386       test "$am__universal" = false || continue
6387       ;;
6388     nosideeffect)
6389       # After this tag, mechanisms are not by side-effect, so they'll
6390       # only be used when explicitly requested.
6391       if test "x$enable_dependency_tracking" = xyes; then
6392         continue
6393       else
6394         break
6395       fi
6396       ;;
6397     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6398       # This compiler won't grok '-c -o', but also, the minuso test has
6399       # not run yet.  These depmodes are late enough in the game, and
6400       # so weak that their functioning should not be impacted.
6401       am__obj=conftest.${OBJEXT-o}
6402       am__minus_obj=
6403       ;;
6404     none) break ;;
6405     esac
6406     if depmode=$depmode \
6407        source=sub/conftest.c object=$am__obj \
6408        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6409        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6410          >/dev/null 2>conftest.err &&
6411        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6412        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6413        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6414        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6415       # icc doesn't choke on unknown options, it will just issue warnings
6416       # or remarks (even with -Werror).  So we grep stderr for any message
6417       # that says an option was ignored or not supported.
6418       # When given -MP, icc 7.0 and 7.1 complain thusly:
6419       #   icc: Command line warning: ignoring option '-M'; no argument required
6420       # The diagnosis changed in icc 8.0:
6421       #   icc: Command line remark: option '-MP' not supported
6422       if (grep 'ignoring option' conftest.err ||
6423           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6424         am_cv_CXX_dependencies_compiler_type=$depmode
6425         break
6426       fi
6427     fi
6428   done
6429
6430   cd ..
6431   rm -rf conftest.dir
6432 else
6433   am_cv_CXX_dependencies_compiler_type=none
6434 fi
6435
6436 fi
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6438 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6439 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6440
6441  if
6442   test "x$enable_dependency_tracking" != xno \
6443   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6444   am__fastdepCXX_TRUE=
6445   am__fastdepCXX_FALSE='#'
6446 else
6447   am__fastdepCXX_TRUE='#'
6448   am__fastdepCXX_FALSE=
6449 fi
6450
6451
6452
6453 # Note: A suitable gitlog-to-changelog script can be found in GnuPG master.
6454 for ac_prog in gitlog-to-changelog
6455 do
6456   # Extract the first word of "$ac_prog", so it can be a program name with args.
6457 set dummy $ac_prog; ac_word=$2
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6459 $as_echo_n "checking for $ac_word... " >&6; }
6460 if ${ac_cv_prog_GITLOG_TO_CHANGELOG+:} false; then :
6461   $as_echo_n "(cached) " >&6
6462 else
6463   if test -n "$GITLOG_TO_CHANGELOG"; then
6464   ac_cv_prog_GITLOG_TO_CHANGELOG="$GITLOG_TO_CHANGELOG" # Let the user override the test.
6465 else
6466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6467 for as_dir in $PATH
6468 do
6469   IFS=$as_save_IFS
6470   test -z "$as_dir" && as_dir=.
6471     for ac_exec_ext in '' $ac_executable_extensions; do
6472   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6473     ac_cv_prog_GITLOG_TO_CHANGELOG="$ac_prog"
6474     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6475     break 2
6476   fi
6477 done
6478   done
6479 IFS=$as_save_IFS
6480
6481 fi
6482 fi
6483 GITLOG_TO_CHANGELOG=$ac_cv_prog_GITLOG_TO_CHANGELOG
6484 if test -n "$GITLOG_TO_CHANGELOG"; then
6485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GITLOG_TO_CHANGELOG" >&5
6486 $as_echo "$GITLOG_TO_CHANGELOG" >&6; }
6487 else
6488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6489 $as_echo "no" >&6; }
6490 fi
6491
6492
6493   test -n "$GITLOG_TO_CHANGELOG" && break
6494 done
6495 test -n "$GITLOG_TO_CHANGELOG" || GITLOG_TO_CHANGELOG="gitlog-to-changelog"
6496
6497
6498
6499
6500
6501
6502 VERSION_NUMBER=0x011000
6503
6504
6505 # We need to compile and run a program on the build machine.  A
6506 # comment in libgpg-error says that the AC_PROG_CC_FOR_BUILD macro in
6507 # the AC archive is broken for autoconf 2.57.  Given that there is no
6508 # newer version of that macro, we assume that it is also broken for
6509 # autoconf 2.61 and thus we use a simple but usually sufficient
6510 # approach.
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc for build" >&5
6512 $as_echo_n "checking for cc for build... " >&6; }
6513 if test "$cross_compiling" = "yes"; then
6514   CC_FOR_BUILD="${CC_FOR_BUILD-cc}"
6515 else
6516   CC_FOR_BUILD="${CC_FOR_BUILD-$CC}"
6517 fi
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
6519 $as_echo "$CC_FOR_BUILD" >&6; }
6520
6521
6522
6523 # Don't default to build static libs.
6524
6525 case `pwd` in
6526   *\ * | *\     *)
6527     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6528 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6529 esac
6530
6531
6532
6533 macro_version='2.4.2'
6534 macro_revision='1.3337'
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548 ltmain="$ac_aux_dir/ltmain.sh"
6549
6550 # Backslashify metacharacters that are still active within
6551 # double-quoted strings.
6552 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6553
6554 # Same as above, but do not quote variable references.
6555 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6556
6557 # Sed substitution to delay expansion of an escaped shell variable in a
6558 # double_quote_subst'ed string.
6559 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6560
6561 # Sed substitution to delay expansion of an escaped single quote.
6562 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6563
6564 # Sed substitution to avoid accidental globbing in evaled expressions
6565 no_glob_subst='s/\*/\\\*/g'
6566
6567 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6568 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6569 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6570
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6572 $as_echo_n "checking how to print strings... " >&6; }
6573 # Test print first, because it will be a builtin if present.
6574 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6575    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6576   ECHO='print -r --'
6577 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6578   ECHO='printf %s\n'
6579 else
6580   # Use this function as a fallback that always works.
6581   func_fallback_echo ()
6582   {
6583     eval 'cat <<_LTECHO_EOF
6584 $1
6585 _LTECHO_EOF'
6586   }
6587   ECHO='func_fallback_echo'
6588 fi
6589
6590 # func_echo_all arg...
6591 # Invoke $ECHO with all args, space-separated.
6592 func_echo_all ()
6593 {
6594     $ECHO ""
6595 }
6596
6597 case "$ECHO" in
6598   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6599 $as_echo "printf" >&6; } ;;
6600   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6601 $as_echo "print -r" >&6; } ;;
6602   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6603 $as_echo "cat" >&6; } ;;
6604 esac
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6620 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6621 if ${ac_cv_path_SED+:} false; then :
6622   $as_echo_n "(cached) " >&6
6623 else
6624             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6625      for ac_i in 1 2 3 4 5 6 7; do
6626        ac_script="$ac_script$as_nl$ac_script"
6627      done
6628      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6629      { ac_script=; unset ac_script;}
6630      if test -z "$SED"; then
6631   ac_path_SED_found=false
6632   # Loop through the user's path and test for each of PROGNAME-LIST
6633   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6634 for as_dir in $PATH
6635 do
6636   IFS=$as_save_IFS
6637   test -z "$as_dir" && as_dir=.
6638     for ac_prog in sed gsed; do
6639     for ac_exec_ext in '' $ac_executable_extensions; do
6640       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6641       as_fn_executable_p "$ac_path_SED" || continue
6642 # Check for GNU ac_path_SED and select it if it is found.
6643   # Check for GNU $ac_path_SED
6644 case `"$ac_path_SED" --version 2>&1` in
6645 *GNU*)
6646   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6647 *)
6648   ac_count=0
6649   $as_echo_n 0123456789 >"conftest.in"
6650   while :
6651   do
6652     cat "conftest.in" "conftest.in" >"conftest.tmp"
6653     mv "conftest.tmp" "conftest.in"
6654     cp "conftest.in" "conftest.nl"
6655     $as_echo '' >> "conftest.nl"
6656     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6657     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6658     as_fn_arith $ac_count + 1 && ac_count=$as_val
6659     if test $ac_count -gt ${ac_path_SED_max-0}; then
6660       # Best one so far, save it but keep looking for a better one
6661       ac_cv_path_SED="$ac_path_SED"
6662       ac_path_SED_max=$ac_count
6663     fi
6664     # 10*(2^10) chars as input seems more than enough
6665     test $ac_count -gt 10 && break
6666   done
6667   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6668 esac
6669
6670       $ac_path_SED_found && break 3
6671     done
6672   done
6673   done
6674 IFS=$as_save_IFS
6675   if test -z "$ac_cv_path_SED"; then
6676     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6677   fi
6678 else
6679   ac_cv_path_SED=$SED
6680 fi
6681
6682 fi
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6684 $as_echo "$ac_cv_path_SED" >&6; }
6685  SED="$ac_cv_path_SED"
6686   rm -f conftest.sed
6687
6688 test -z "$SED" && SED=sed
6689 Xsed="$SED -e 1s/^X//"
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6702 $as_echo_n "checking for fgrep... " >&6; }
6703 if ${ac_cv_path_FGREP+:} false; then :
6704   $as_echo_n "(cached) " >&6
6705 else
6706   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6707    then ac_cv_path_FGREP="$GREP -F"
6708    else
6709      if test -z "$FGREP"; then
6710   ac_path_FGREP_found=false
6711   # Loop through the user's path and test for each of PROGNAME-LIST
6712   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6713 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6714 do
6715   IFS=$as_save_IFS
6716   test -z "$as_dir" && as_dir=.
6717     for ac_prog in fgrep; do
6718     for ac_exec_ext in '' $ac_executable_extensions; do
6719       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6720       as_fn_executable_p "$ac_path_FGREP" || continue
6721 # Check for GNU ac_path_FGREP and select it if it is found.
6722   # Check for GNU $ac_path_FGREP
6723 case `"$ac_path_FGREP" --version 2>&1` in
6724 *GNU*)
6725   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6726 *)
6727   ac_count=0
6728   $as_echo_n 0123456789 >"conftest.in"
6729   while :
6730   do
6731     cat "conftest.in" "conftest.in" >"conftest.tmp"
6732     mv "conftest.tmp" "conftest.in"
6733     cp "conftest.in" "conftest.nl"
6734     $as_echo 'FGREP' >> "conftest.nl"
6735     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6736     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6737     as_fn_arith $ac_count + 1 && ac_count=$as_val
6738     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6739       # Best one so far, save it but keep looking for a better one
6740       ac_cv_path_FGREP="$ac_path_FGREP"
6741       ac_path_FGREP_max=$ac_count
6742     fi
6743     # 10*(2^10) chars as input seems more than enough
6744     test $ac_count -gt 10 && break
6745   done
6746   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6747 esac
6748
6749       $ac_path_FGREP_found && break 3
6750     done
6751   done
6752   done
6753 IFS=$as_save_IFS
6754   if test -z "$ac_cv_path_FGREP"; then
6755     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6756   fi
6757 else
6758   ac_cv_path_FGREP=$FGREP
6759 fi
6760
6761    fi
6762 fi
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6764 $as_echo "$ac_cv_path_FGREP" >&6; }
6765  FGREP="$ac_cv_path_FGREP"
6766
6767
6768 test -z "$GREP" && GREP=grep
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788 # Check whether --with-gnu-ld was given.
6789 if test "${with_gnu_ld+set}" = set; then :
6790   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6791 else
6792   with_gnu_ld=no
6793 fi
6794
6795 ac_prog=ld
6796 if test "$GCC" = yes; then
6797   # Check if gcc -print-prog-name=ld gives a path.
6798   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6799 $as_echo_n "checking for ld used by $CC... " >&6; }
6800   case $host in
6801   *-*-mingw*)
6802     # gcc leaves a trailing carriage return which upsets mingw
6803     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6804   *)
6805     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6806   esac
6807   case $ac_prog in
6808     # Accept absolute paths.
6809     [\\/]* | ?:[\\/]*)
6810       re_direlt='/[^/][^/]*/\.\./'
6811       # Canonicalize the pathname of ld
6812       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6813       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6814         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6815       done
6816       test -z "$LD" && LD="$ac_prog"
6817       ;;
6818   "")
6819     # If it fails, then pretend we aren't using GCC.
6820     ac_prog=ld
6821     ;;
6822   *)
6823     # If it is relative, then search for the first ld in PATH.
6824     with_gnu_ld=unknown
6825     ;;
6826   esac
6827 elif test "$with_gnu_ld" = yes; then
6828   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6829 $as_echo_n "checking for GNU ld... " >&6; }
6830 else
6831   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6832 $as_echo_n "checking for non-GNU ld... " >&6; }
6833 fi
6834 if ${lt_cv_path_LD+:} false; then :
6835   $as_echo_n "(cached) " >&6
6836 else
6837   if test -z "$LD"; then
6838   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6839   for ac_dir in $PATH; do
6840     IFS="$lt_save_ifs"
6841     test -z "$ac_dir" && ac_dir=.
6842     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6843       lt_cv_path_LD="$ac_dir/$ac_prog"
6844       # Check to see if the program is GNU ld.  I'd rather use --version,
6845       # but apparently some variants of GNU ld only accept -v.
6846       # Break only if it was the GNU/non-GNU ld that we prefer.
6847       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6848       *GNU* | *'with BFD'*)
6849         test "$with_gnu_ld" != no && break
6850         ;;
6851       *)
6852         test "$with_gnu_ld" != yes && break
6853         ;;
6854       esac
6855     fi
6856   done
6857   IFS="$lt_save_ifs"
6858 else
6859   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6860 fi
6861 fi
6862
6863 LD="$lt_cv_path_LD"
6864 if test -n "$LD"; then
6865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6866 $as_echo "$LD" >&6; }
6867 else
6868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6869 $as_echo "no" >&6; }
6870 fi
6871 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6873 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6874 if ${lt_cv_prog_gnu_ld+:} false; then :
6875   $as_echo_n "(cached) " >&6
6876 else
6877   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6878 case `$LD -v 2>&1 </dev/null` in
6879 *GNU* | *'with BFD'*)
6880   lt_cv_prog_gnu_ld=yes
6881   ;;
6882 *)
6883   lt_cv_prog_gnu_ld=no
6884   ;;
6885 esac
6886 fi
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6888 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6889 with_gnu_ld=$lt_cv_prog_gnu_ld
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6900 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6901 if ${lt_cv_path_NM+:} false; then :
6902   $as_echo_n "(cached) " >&6
6903 else
6904   if test -n "$NM"; then
6905   # Let the user override the test.
6906   lt_cv_path_NM="$NM"
6907 else
6908   lt_nm_to_check="${ac_tool_prefix}nm"
6909   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6910     lt_nm_to_check="$lt_nm_to_check nm"
6911   fi
6912   for lt_tmp_nm in $lt_nm_to_check; do
6913     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6914     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6915       IFS="$lt_save_ifs"
6916       test -z "$ac_dir" && ac_dir=.
6917       tmp_nm="$ac_dir/$lt_tmp_nm"
6918       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6919         # Check to see if the nm accepts a BSD-compat flag.
6920         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6921         #   nm: unknown option "B" ignored
6922         # Tru64's nm complains that /dev/null is an invalid object file
6923         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6924         */dev/null* | *'Invalid file or object type'*)
6925           lt_cv_path_NM="$tmp_nm -B"
6926           break
6927           ;;
6928         *)
6929           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6930           */dev/null*)
6931             lt_cv_path_NM="$tmp_nm -p"
6932             break
6933             ;;
6934           *)
6935             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6936             continue # so that we can try to find one that supports BSD flags
6937             ;;
6938           esac
6939           ;;
6940         esac
6941       fi
6942     done
6943     IFS="$lt_save_ifs"
6944   done
6945   : ${lt_cv_path_NM=no}
6946 fi
6947 fi
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6949 $as_echo "$lt_cv_path_NM" >&6; }
6950 if test "$lt_cv_path_NM" != "no"; then
6951   NM="$lt_cv_path_NM"
6952 else
6953   # Didn't find any BSD compatible name lister, look for dumpbin.
6954   if test -n "$DUMPBIN"; then :
6955     # Let the user override the test.
6956   else
6957     if test -n "$ac_tool_prefix"; then
6958   for ac_prog in dumpbin "link -dump"
6959   do
6960     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6961 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6963 $as_echo_n "checking for $ac_word... " >&6; }
6964 if ${ac_cv_prog_DUMPBIN+:} false; then :
6965   $as_echo_n "(cached) " >&6
6966 else
6967   if test -n "$DUMPBIN"; then
6968   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6969 else
6970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6971 for as_dir in $PATH
6972 do
6973   IFS=$as_save_IFS
6974   test -z "$as_dir" && as_dir=.
6975     for ac_exec_ext in '' $ac_executable_extensions; do
6976   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6977     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6978     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6979     break 2
6980   fi
6981 done
6982   done
6983 IFS=$as_save_IFS
6984
6985 fi
6986 fi
6987 DUMPBIN=$ac_cv_prog_DUMPBIN
6988 if test -n "$DUMPBIN"; then
6989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6990 $as_echo "$DUMPBIN" >&6; }
6991 else
6992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6993 $as_echo "no" >&6; }
6994 fi
6995
6996
6997     test -n "$DUMPBIN" && break
6998   done
6999 fi
7000 if test -z "$DUMPBIN"; then
7001   ac_ct_DUMPBIN=$DUMPBIN
7002   for ac_prog in dumpbin "link -dump"
7003 do
7004   # Extract the first word of "$ac_prog", so it can be a program name with args.
7005 set dummy $ac_prog; ac_word=$2
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7007 $as_echo_n "checking for $ac_word... " >&6; }
7008 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7009   $as_echo_n "(cached) " >&6
7010 else
7011   if test -n "$ac_ct_DUMPBIN"; then
7012   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7013 else
7014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7015 for as_dir in $PATH
7016 do
7017   IFS=$as_save_IFS
7018   test -z "$as_dir" && as_dir=.
7019     for ac_exec_ext in '' $ac_executable_extensions; do
7020   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7021     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7022     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7023     break 2
7024   fi
7025 done
7026   done
7027 IFS=$as_save_IFS
7028
7029 fi
7030 fi
7031 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7032 if test -n "$ac_ct_DUMPBIN"; then
7033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7034 $as_echo "$ac_ct_DUMPBIN" >&6; }
7035 else
7036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7037 $as_echo "no" >&6; }
7038 fi
7039
7040
7041   test -n "$ac_ct_DUMPBIN" && break
7042 done
7043
7044   if test "x$ac_ct_DUMPBIN" = x; then
7045     DUMPBIN=":"
7046   else
7047     case $cross_compiling:$ac_tool_warned in
7048 yes:)
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7050 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7051 ac_tool_warned=yes ;;
7052 esac
7053     DUMPBIN=$ac_ct_DUMPBIN
7054   fi
7055 fi
7056
7057     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7058     *COFF*)
7059       DUMPBIN="$DUMPBIN -symbols"
7060       ;;
7061     *)
7062       DUMPBIN=:
7063       ;;
7064     esac
7065   fi
7066
7067   if test "$DUMPBIN" != ":"; then
7068     NM="$DUMPBIN"
7069   fi
7070 fi
7071 test -z "$NM" && NM=nm
7072
7073
7074
7075
7076
7077
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7079 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7080 if ${lt_cv_nm_interface+:} false; then :
7081   $as_echo_n "(cached) " >&6
7082 else
7083   lt_cv_nm_interface="BSD nm"
7084   echo "int some_variable = 0;" > conftest.$ac_ext
7085   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7086   (eval "$ac_compile" 2>conftest.err)
7087   cat conftest.err >&5
7088   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7089   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7090   cat conftest.err >&5
7091   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7092   cat conftest.out >&5
7093   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7094     lt_cv_nm_interface="MS dumpbin"
7095   fi
7096   rm -f conftest*
7097 fi
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7099 $as_echo "$lt_cv_nm_interface" >&6; }
7100
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7102 $as_echo_n "checking whether ln -s works... " >&6; }
7103 LN_S=$as_ln_s
7104 if test "$LN_S" = "ln -s"; then
7105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7106 $as_echo "yes" >&6; }
7107 else
7108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7109 $as_echo "no, using $LN_S" >&6; }
7110 fi
7111
7112 # find the maximum length of command line arguments
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7114 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7115 if ${lt_cv_sys_max_cmd_len+:} false; then :
7116   $as_echo_n "(cached) " >&6
7117 else
7118     i=0
7119   teststring="ABCD"
7120
7121   case $build_os in
7122   msdosdjgpp*)
7123     # On DJGPP, this test can blow up pretty badly due to problems in libc
7124     # (any single argument exceeding 2000 bytes causes a buffer overrun
7125     # during glob expansion).  Even if it were fixed, the result of this
7126     # check would be larger than it should be.
7127     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7128     ;;
7129
7130   gnu*)
7131     # Under GNU Hurd, this test is not required because there is
7132     # no limit to the length of command line arguments.
7133     # Libtool will interpret -1 as no limit whatsoever
7134     lt_cv_sys_max_cmd_len=-1;
7135     ;;
7136
7137   cygwin* | mingw* | cegcc*)
7138     # On Win9x/ME, this test blows up -- it succeeds, but takes
7139     # about 5 minutes as the teststring grows exponentially.
7140     # Worse, since 9x/ME are not pre-emptively multitasking,
7141     # you end up with a "frozen" computer, even though with patience
7142     # the test eventually succeeds (with a max line length of 256k).
7143     # Instead, let's just punt: use the minimum linelength reported by
7144     # all of the supported platforms: 8192 (on NT/2K/XP).
7145     lt_cv_sys_max_cmd_len=8192;
7146     ;;
7147
7148   mint*)
7149     # On MiNT this can take a long time and run out of memory.
7150     lt_cv_sys_max_cmd_len=8192;
7151     ;;
7152
7153   amigaos*)
7154     # On AmigaOS with pdksh, this test takes hours, literally.
7155     # So we just punt and use a minimum line length of 8192.
7156     lt_cv_sys_max_cmd_len=8192;
7157     ;;
7158
7159   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7160     # This has been around since 386BSD, at least.  Likely further.
7161     if test -x /sbin/sysctl; then
7162       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7163     elif test -x /usr/sbin/sysctl; then
7164       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7165     else
7166       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7167     fi
7168     # And add a safety zone
7169     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7170     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7171     ;;
7172
7173   interix*)
7174     # We know the value 262144 and hardcode it with a safety zone (like BSD)
7175     lt_cv_sys_max_cmd_len=196608
7176     ;;
7177
7178   os2*)
7179     # The test takes a long time on OS/2.
7180     lt_cv_sys_max_cmd_len=8192
7181     ;;
7182
7183   osf*)
7184     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7185     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7186     # nice to cause kernel panics so lets avoid the loop below.
7187     # First set a reasonable default.
7188     lt_cv_sys_max_cmd_len=16384
7189     #
7190     if test -x /sbin/sysconfig; then
7191       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7192         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7193       esac
7194     fi
7195     ;;
7196   sco3.2v5*)
7197     lt_cv_sys_max_cmd_len=102400
7198     ;;
7199   sysv5* | sco5v6* | sysv4.2uw2*)
7200     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7201     if test -n "$kargmax"; then
7202       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
7203     else
7204       lt_cv_sys_max_cmd_len=32768
7205     fi
7206     ;;
7207   *)
7208     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7209     if test -n "$lt_cv_sys_max_cmd_len"; then
7210       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7211       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7212     else
7213       # Make teststring a little bigger before we do anything with it.
7214       # a 1K string should be a reasonable start.
7215       for i in 1 2 3 4 5 6 7 8 ; do
7216         teststring=$teststring$teststring
7217       done
7218       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7219       # If test is not a shell built-in, we'll probably end up computing a
7220       # maximum length that is only half of the actual maximum length, but
7221       # we can't tell.
7222       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
7223                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7224               test $i != 17 # 1/2 MB should be enough
7225       do
7226         i=`expr $i + 1`
7227         teststring=$teststring$teststring
7228       done
7229       # Only check the string length outside the loop.
7230       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7231       teststring=
7232       # Add a significant safety factor because C++ compilers can tack on
7233       # massive amounts of additional arguments before passing them to the
7234       # linker.  It appears as though 1/2 is a usable value.
7235       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7236     fi
7237     ;;
7238   esac
7239
7240 fi
7241
7242 if test -n $lt_cv_sys_max_cmd_len ; then
7243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7244 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7245 else
7246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7247 $as_echo "none" >&6; }
7248 fi
7249 max_cmd_len=$lt_cv_sys_max_cmd_len
7250
7251
7252
7253
7254
7255
7256 : ${CP="cp -f"}
7257 : ${MV="mv -f"}
7258 : ${RM="rm -f"}
7259
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7261 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7262 # Try some XSI features
7263 xsi_shell=no
7264 ( _lt_dummy="a/b/c"
7265   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7266       = c,a/b,b/c, \
7267     && eval 'test $(( 1 + 1 )) -eq 2 \
7268     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7269   && xsi_shell=yes
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7271 $as_echo "$xsi_shell" >&6; }
7272
7273
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7275 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7276 lt_shell_append=no
7277 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7278     >/dev/null 2>&1 \
7279   && lt_shell_append=yes
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7281 $as_echo "$lt_shell_append" >&6; }
7282
7283
7284 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7285   lt_unset=unset
7286 else
7287   lt_unset=false
7288 fi
7289
7290
7291
7292
7293
7294 # test EBCDIC or ASCII
7295 case `echo X|tr X '\101'` in
7296  A) # ASCII based system
7297     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7298   lt_SP2NL='tr \040 \012'
7299   lt_NL2SP='tr \015\012 \040\040'
7300   ;;
7301  *) # EBCDIC based system
7302   lt_SP2NL='tr \100 \n'
7303   lt_NL2SP='tr \r\n \100\100'
7304   ;;
7305 esac
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7316 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7317 if ${lt_cv_to_host_file_cmd+:} false; then :
7318   $as_echo_n "(cached) " >&6
7319 else
7320   case $host in
7321   *-*-mingw* )
7322     case $build in
7323       *-*-mingw* ) # actually msys
7324         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7325         ;;
7326       *-*-cygwin* )
7327         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7328         ;;
7329       * ) # otherwise, assume *nix
7330         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7331         ;;
7332     esac
7333     ;;
7334   *-*-cygwin* )
7335     case $build in
7336       *-*-mingw* ) # actually msys
7337         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7338         ;;
7339       *-*-cygwin* )
7340         lt_cv_to_host_file_cmd=func_convert_file_noop
7341         ;;
7342       * ) # otherwise, assume *nix
7343         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7344         ;;
7345     esac
7346     ;;
7347   * ) # unhandled hosts (and "normal" native builds)
7348     lt_cv_to_host_file_cmd=func_convert_file_noop
7349     ;;
7350 esac
7351
7352 fi
7353
7354 to_host_file_cmd=$lt_cv_to_host_file_cmd
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7356 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7357
7358
7359
7360
7361
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7363 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7364 if ${lt_cv_to_tool_file_cmd+:} false; then :
7365   $as_echo_n "(cached) " >&6
7366 else
7367   #assume ordinary cross tools, or native build.
7368 lt_cv_to_tool_file_cmd=func_convert_file_noop
7369 case $host in
7370   *-*-mingw* )
7371     case $build in
7372       *-*-mingw* ) # actually msys
7373         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7374         ;;
7375     esac
7376     ;;
7377 esac
7378
7379 fi
7380
7381 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7383 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7384
7385
7386
7387
7388
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7390 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7391 if ${lt_cv_ld_reload_flag+:} false; then :
7392   $as_echo_n "(cached) " >&6
7393 else
7394   lt_cv_ld_reload_flag='-r'
7395 fi
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7397 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7398 reload_flag=$lt_cv_ld_reload_flag
7399 case $reload_flag in
7400 "" | " "*) ;;
7401 *) reload_flag=" $reload_flag" ;;
7402 esac
7403 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7404 case $host_os in
7405   cygwin* | mingw* | pw32* | cegcc*)
7406     if test "$GCC" != yes; then
7407       reload_cmds=false
7408     fi
7409     ;;
7410   darwin*)
7411     if test "$GCC" = yes; then
7412       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7413     else
7414       reload_cmds='$LD$reload_flag -o $output$reload_objs'
7415     fi
7416     ;;
7417 esac
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427 if test -n "$ac_tool_prefix"; then
7428   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7429 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7431 $as_echo_n "checking for $ac_word... " >&6; }
7432 if ${ac_cv_prog_OBJDUMP+:} false; then :
7433   $as_echo_n "(cached) " >&6
7434 else
7435   if test -n "$OBJDUMP"; then
7436   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7437 else
7438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7439 for as_dir in $PATH
7440 do
7441   IFS=$as_save_IFS
7442   test -z "$as_dir" && as_dir=.
7443     for ac_exec_ext in '' $ac_executable_extensions; do
7444   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7445     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7446     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7447     break 2
7448   fi
7449 done
7450   done
7451 IFS=$as_save_IFS
7452
7453 fi
7454 fi
7455 OBJDUMP=$ac_cv_prog_OBJDUMP
7456 if test -n "$OBJDUMP"; then
7457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7458 $as_echo "$OBJDUMP" >&6; }
7459 else
7460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7461 $as_echo "no" >&6; }
7462 fi
7463
7464
7465 fi
7466 if test -z "$ac_cv_prog_OBJDUMP"; then
7467   ac_ct_OBJDUMP=$OBJDUMP
7468   # Extract the first word of "objdump", so it can be a program name with args.
7469 set dummy objdump; ac_word=$2
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7471 $as_echo_n "checking for $ac_word... " >&6; }
7472 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7473   $as_echo_n "(cached) " >&6
7474 else
7475   if test -n "$ac_ct_OBJDUMP"; then
7476   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7477 else
7478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7479 for as_dir in $PATH
7480 do
7481   IFS=$as_save_IFS
7482   test -z "$as_dir" && as_dir=.
7483     for ac_exec_ext in '' $ac_executable_extensions; do
7484   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7485     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7486     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7487     break 2
7488   fi
7489 done
7490   done
7491 IFS=$as_save_IFS
7492
7493 fi
7494 fi
7495 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7496 if test -n "$ac_ct_OBJDUMP"; then
7497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7498 $as_echo "$ac_ct_OBJDUMP" >&6; }
7499 else
7500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7501 $as_echo "no" >&6; }
7502 fi
7503
7504   if test "x$ac_ct_OBJDUMP" = x; then
7505     OBJDUMP="false"
7506   else
7507     case $cross_compiling:$ac_tool_warned in
7508 yes:)
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7510 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7511 ac_tool_warned=yes ;;
7512 esac
7513     OBJDUMP=$ac_ct_OBJDUMP
7514   fi
7515 else
7516   OBJDUMP="$ac_cv_prog_OBJDUMP"
7517 fi
7518
7519 test -z "$OBJDUMP" && OBJDUMP=objdump
7520
7521
7522
7523
7524
7525
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7527 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7528 if ${lt_cv_deplibs_check_method+:} false; then :
7529   $as_echo_n "(cached) " >&6
7530 else
7531   lt_cv_file_magic_cmd='$MAGIC_CMD'
7532 lt_cv_file_magic_test_file=
7533 lt_cv_deplibs_check_method='unknown'
7534 # Need to set the preceding variable on all platforms that support
7535 # interlibrary dependencies.
7536 # 'none' -- dependencies not supported.
7537 # `unknown' -- same as none, but documents that we really don't know.
7538 # 'pass_all' -- all dependencies passed with no checks.
7539 # 'test_compile' -- check by making test program.
7540 # 'file_magic [[regex]]' -- check by looking for files in library path
7541 # which responds to the $file_magic_cmd with a given extended regex.
7542 # If you have `file' or equivalent on your system and you're not sure
7543 # whether `pass_all' will *always* work, you probably want this one.
7544
7545 case $host_os in
7546 aix[4-9]*)
7547   lt_cv_deplibs_check_method=pass_all
7548   ;;
7549
7550 beos*)
7551   lt_cv_deplibs_check_method=pass_all
7552   ;;
7553
7554 bsdi[45]*)
7555   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7556   lt_cv_file_magic_cmd='/usr/bin/file -L'
7557   lt_cv_file_magic_test_file=/shlib/libc.so
7558   ;;
7559
7560 cygwin*)
7561   # func_win32_libid is a shell function defined in ltmain.sh
7562   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7563   lt_cv_file_magic_cmd='func_win32_libid'
7564   ;;
7565
7566 mingw* | pw32*)
7567   # Base MSYS/MinGW do not provide the 'file' command needed by
7568   # func_win32_libid shell function, so use a weaker test based on 'objdump',
7569   # unless we find 'file', for example because we are cross-compiling.
7570   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7571   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7572     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7573     lt_cv_file_magic_cmd='func_win32_libid'
7574   else
7575     # Keep this pattern in sync with the one in func_win32_libid.
7576     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7577     lt_cv_file_magic_cmd='$OBJDUMP -f'
7578   fi
7579   ;;
7580
7581 cegcc*)
7582   # use the weaker test based on 'objdump'. See mingw*.
7583   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7584   lt_cv_file_magic_cmd='$OBJDUMP -f'
7585   ;;
7586
7587 darwin* | rhapsody*)
7588   lt_cv_deplibs_check_method=pass_all
7589   ;;
7590
7591 freebsd* | dragonfly*)
7592   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7593     case $host_cpu in
7594     i*86 )
7595       # Not sure whether the presence of OpenBSD here was a mistake.
7596       # Let's accept both of them until this is cleared up.
7597       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7598       lt_cv_file_magic_cmd=/usr/bin/file
7599       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7600       ;;
7601     esac
7602   else
7603     lt_cv_deplibs_check_method=pass_all
7604   fi
7605   ;;
7606
7607 gnu*)
7608   lt_cv_deplibs_check_method=pass_all
7609   ;;
7610
7611 haiku*)
7612   lt_cv_deplibs_check_method=pass_all
7613   ;;
7614
7615 hpux10.20* | hpux11*)
7616   lt_cv_file_magic_cmd=/usr/bin/file
7617   case $host_cpu in
7618   ia64*)
7619     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7620     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7621     ;;
7622   hppa*64*)
7623     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]'
7624     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7625     ;;
7626   *)
7627     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7628     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7629     ;;
7630   esac
7631   ;;
7632
7633 interix[3-9]*)
7634   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7635   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7636   ;;
7637
7638 irix5* | irix6* | nonstopux*)
7639   case $LD in
7640   *-32|*"-32 ") libmagic=32-bit;;
7641   *-n32|*"-n32 ") libmagic=N32;;
7642   *-64|*"-64 ") libmagic=64-bit;;
7643   *) libmagic=never-match;;
7644   esac
7645   lt_cv_deplibs_check_method=pass_all
7646   ;;
7647
7648 # This must be glibc/ELF.
7649 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7650   lt_cv_deplibs_check_method=pass_all
7651   ;;
7652
7653 netbsd* | netbsdelf*-gnu)
7654   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7655     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7656   else
7657     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7658   fi
7659   ;;
7660
7661 newos6*)
7662   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7663   lt_cv_file_magic_cmd=/usr/bin/file
7664   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7665   ;;
7666
7667 *nto* | *qnx*)
7668   lt_cv_deplibs_check_method=pass_all
7669   ;;
7670
7671 openbsd*)
7672   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7673     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7674   else
7675     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7676   fi
7677   ;;
7678
7679 osf3* | osf4* | osf5*)
7680   lt_cv_deplibs_check_method=pass_all
7681   ;;
7682
7683 rdos*)
7684   lt_cv_deplibs_check_method=pass_all
7685   ;;
7686
7687 solaris*)
7688   lt_cv_deplibs_check_method=pass_all
7689   ;;
7690
7691 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7692   lt_cv_deplibs_check_method=pass_all
7693   ;;
7694
7695 sysv4 | sysv4.3*)
7696   case $host_vendor in
7697   motorola)
7698     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]'
7699     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7700     ;;
7701   ncr)
7702     lt_cv_deplibs_check_method=pass_all
7703     ;;
7704   sequent)
7705     lt_cv_file_magic_cmd='/bin/file'
7706     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7707     ;;
7708   sni)
7709     lt_cv_file_magic_cmd='/bin/file'
7710     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7711     lt_cv_file_magic_test_file=/lib/libc.so
7712     ;;
7713   siemens)
7714     lt_cv_deplibs_check_method=pass_all
7715     ;;
7716   pc)
7717     lt_cv_deplibs_check_method=pass_all
7718     ;;
7719   esac
7720   ;;
7721
7722 tpf*)
7723   lt_cv_deplibs_check_method=pass_all
7724   ;;
7725 esac
7726
7727 fi
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7729 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7730
7731 file_magic_glob=
7732 want_nocaseglob=no
7733 if test "$build" = "$host"; then
7734   case $host_os in
7735   mingw* | pw32*)
7736     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7737       want_nocaseglob=yes
7738     else
7739       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7740     fi
7741     ;;
7742   esac
7743 fi
7744
7745 file_magic_cmd=$lt_cv_file_magic_cmd
7746 deplibs_check_method=$lt_cv_deplibs_check_method
7747 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770 if test -n "$ac_tool_prefix"; then
7771   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7772 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7774 $as_echo_n "checking for $ac_word... " >&6; }
7775 if ${ac_cv_prog_DLLTOOL+:} false; then :
7776   $as_echo_n "(cached) " >&6
7777 else
7778   if test -n "$DLLTOOL"; then
7779   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7780 else
7781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7782 for as_dir in $PATH
7783 do
7784   IFS=$as_save_IFS
7785   test -z "$as_dir" && as_dir=.
7786     for ac_exec_ext in '' $ac_executable_extensions; do
7787   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7788     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7789     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7790     break 2
7791   fi
7792 done
7793   done
7794 IFS=$as_save_IFS
7795
7796 fi
7797 fi
7798 DLLTOOL=$ac_cv_prog_DLLTOOL
7799 if test -n "$DLLTOOL"; then
7800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7801 $as_echo "$DLLTOOL" >&6; }
7802 else
7803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7804 $as_echo "no" >&6; }
7805 fi
7806
7807
7808 fi
7809 if test -z "$ac_cv_prog_DLLTOOL"; then
7810   ac_ct_DLLTOOL=$DLLTOOL
7811   # Extract the first word of "dlltool", so it can be a program name with args.
7812 set dummy dlltool; ac_word=$2
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7814 $as_echo_n "checking for $ac_word... " >&6; }
7815 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7816   $as_echo_n "(cached) " >&6
7817 else
7818   if test -n "$ac_ct_DLLTOOL"; then
7819   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7820 else
7821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7822 for as_dir in $PATH
7823 do
7824   IFS=$as_save_IFS
7825   test -z "$as_dir" && as_dir=.
7826     for ac_exec_ext in '' $ac_executable_extensions; do
7827   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7828     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7829     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7830     break 2
7831   fi
7832 done
7833   done
7834 IFS=$as_save_IFS
7835
7836 fi
7837 fi
7838 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7839 if test -n "$ac_ct_DLLTOOL"; then
7840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7841 $as_echo "$ac_ct_DLLTOOL" >&6; }
7842 else
7843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7844 $as_echo "no" >&6; }
7845 fi
7846
7847   if test "x$ac_ct_DLLTOOL" = x; then
7848     DLLTOOL="false"
7849   else
7850     case $cross_compiling:$ac_tool_warned in
7851 yes:)
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7853 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7854 ac_tool_warned=yes ;;
7855 esac
7856     DLLTOOL=$ac_ct_DLLTOOL
7857   fi
7858 else
7859   DLLTOOL="$ac_cv_prog_DLLTOOL"
7860 fi
7861
7862 test -z "$DLLTOOL" && DLLTOOL=dlltool
7863
7864
7865
7866
7867
7868
7869
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7871 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7872 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7873   $as_echo_n "(cached) " >&6
7874 else
7875   lt_cv_sharedlib_from_linklib_cmd='unknown'
7876
7877 case $host_os in
7878 cygwin* | mingw* | pw32* | cegcc*)
7879   # two different shell functions defined in ltmain.sh
7880   # decide which to use based on capabilities of $DLLTOOL
7881   case `$DLLTOOL --help 2>&1` in
7882   *--identify-strict*)
7883     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7884     ;;
7885   *)
7886     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7887     ;;
7888   esac
7889   ;;
7890 *)
7891   # fallback: assume linklib IS sharedlib
7892   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7893   ;;
7894 esac
7895
7896 fi
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7898 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7899 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7900 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7901
7902
7903
7904
7905
7906
7907
7908 if test -n "$ac_tool_prefix"; then
7909   for ac_prog in ar
7910   do
7911     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7912 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7914 $as_echo_n "checking for $ac_word... " >&6; }
7915 if ${ac_cv_prog_AR+:} false; then :
7916   $as_echo_n "(cached) " >&6
7917 else
7918   if test -n "$AR"; then
7919   ac_cv_prog_AR="$AR" # Let the user override the test.
7920 else
7921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7922 for as_dir in $PATH
7923 do
7924   IFS=$as_save_IFS
7925   test -z "$as_dir" && as_dir=.
7926     for ac_exec_ext in '' $ac_executable_extensions; do
7927   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7928     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7929     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7930     break 2
7931   fi
7932 done
7933   done
7934 IFS=$as_save_IFS
7935
7936 fi
7937 fi
7938 AR=$ac_cv_prog_AR
7939 if test -n "$AR"; then
7940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7941 $as_echo "$AR" >&6; }
7942 else
7943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7944 $as_echo "no" >&6; }
7945 fi
7946
7947
7948     test -n "$AR" && break
7949   done
7950 fi
7951 if test -z "$AR"; then
7952   ac_ct_AR=$AR
7953   for ac_prog in ar
7954 do
7955   # Extract the first word of "$ac_prog", so it can be a program name with args.
7956 set dummy $ac_prog; ac_word=$2
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7958 $as_echo_n "checking for $ac_word... " >&6; }
7959 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7960   $as_echo_n "(cached) " >&6
7961 else
7962   if test -n "$ac_ct_AR"; then
7963   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7964 else
7965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7966 for as_dir in $PATH
7967 do
7968   IFS=$as_save_IFS
7969   test -z "$as_dir" && as_dir=.
7970     for ac_exec_ext in '' $ac_executable_extensions; do
7971   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7972     ac_cv_prog_ac_ct_AR="$ac_prog"
7973     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7974     break 2
7975   fi
7976 done
7977   done
7978 IFS=$as_save_IFS
7979
7980 fi
7981 fi
7982 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7983 if test -n "$ac_ct_AR"; then
7984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7985 $as_echo "$ac_ct_AR" >&6; }
7986 else
7987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7988 $as_echo "no" >&6; }
7989 fi
7990
7991
7992   test -n "$ac_ct_AR" && break
7993 done
7994
7995   if test "x$ac_ct_AR" = x; then
7996     AR="false"
7997   else
7998     case $cross_compiling:$ac_tool_warned in
7999 yes:)
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8001 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8002 ac_tool_warned=yes ;;
8003 esac
8004     AR=$ac_ct_AR
8005   fi
8006 fi
8007
8008 : ${AR=ar}
8009 : ${AR_FLAGS=cru}
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8022 $as_echo_n "checking for archiver @FILE support... " >&6; }
8023 if ${lt_cv_ar_at_file+:} false; then :
8024   $as_echo_n "(cached) " >&6
8025 else
8026   lt_cv_ar_at_file=no
8027    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8028 /* end confdefs.h.  */
8029
8030 int
8031 main ()
8032 {
8033
8034   ;
8035   return 0;
8036 }
8037 _ACEOF
8038 if ac_fn_c_try_compile "$LINENO"; then :
8039   echo conftest.$ac_objext > conftest.lst
8040       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8041       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8042   (eval $lt_ar_try) 2>&5
8043   ac_status=$?
8044   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8045   test $ac_status = 0; }
8046       if test "$ac_status" -eq 0; then
8047         # Ensure the archiver fails upon bogus file names.
8048         rm -f conftest.$ac_objext libconftest.a
8049         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8050   (eval $lt_ar_try) 2>&5
8051   ac_status=$?
8052   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8053   test $ac_status = 0; }
8054         if test "$ac_status" -ne 0; then
8055           lt_cv_ar_at_file=@
8056         fi
8057       fi
8058       rm -f conftest.* libconftest.a
8059
8060 fi
8061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8062
8063 fi
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8065 $as_echo "$lt_cv_ar_at_file" >&6; }
8066
8067 if test "x$lt_cv_ar_at_file" = xno; then
8068   archiver_list_spec=
8069 else
8070   archiver_list_spec=$lt_cv_ar_at_file
8071 fi
8072
8073
8074
8075
8076
8077
8078
8079 if test -n "$ac_tool_prefix"; then
8080   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8081 set dummy ${ac_tool_prefix}strip; ac_word=$2
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8083 $as_echo_n "checking for $ac_word... " >&6; }
8084 if ${ac_cv_prog_STRIP+:} false; then :
8085   $as_echo_n "(cached) " >&6
8086 else
8087   if test -n "$STRIP"; then
8088   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8089 else
8090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8091 for as_dir in $PATH
8092 do
8093   IFS=$as_save_IFS
8094   test -z "$as_dir" && as_dir=.
8095     for ac_exec_ext in '' $ac_executable_extensions; do
8096   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8097     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8098     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8099     break 2
8100   fi
8101 done
8102   done
8103 IFS=$as_save_IFS
8104
8105 fi
8106 fi
8107 STRIP=$ac_cv_prog_STRIP
8108 if test -n "$STRIP"; then
8109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8110 $as_echo "$STRIP" >&6; }
8111 else
8112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8113 $as_echo "no" >&6; }
8114 fi
8115
8116
8117 fi
8118 if test -z "$ac_cv_prog_STRIP"; then
8119   ac_ct_STRIP=$STRIP
8120   # Extract the first word of "strip", so it can be a program name with args.
8121 set dummy strip; ac_word=$2
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8123 $as_echo_n "checking for $ac_word... " >&6; }
8124 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8125   $as_echo_n "(cached) " >&6
8126 else
8127   if test -n "$ac_ct_STRIP"; then
8128   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8129 else
8130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8131 for as_dir in $PATH
8132 do
8133   IFS=$as_save_IFS
8134   test -z "$as_dir" && as_dir=.
8135     for ac_exec_ext in '' $ac_executable_extensions; do
8136   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8137     ac_cv_prog_ac_ct_STRIP="strip"
8138     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8139     break 2
8140   fi
8141 done
8142   done
8143 IFS=$as_save_IFS
8144
8145 fi
8146 fi
8147 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8148 if test -n "$ac_ct_STRIP"; then
8149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8150 $as_echo "$ac_ct_STRIP" >&6; }
8151 else
8152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8153 $as_echo "no" >&6; }
8154 fi
8155
8156   if test "x$ac_ct_STRIP" = x; then
8157     STRIP=":"
8158   else
8159     case $cross_compiling:$ac_tool_warned in
8160 yes:)
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8162 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8163 ac_tool_warned=yes ;;
8164 esac
8165     STRIP=$ac_ct_STRIP
8166   fi
8167 else
8168   STRIP="$ac_cv_prog_STRIP"
8169 fi
8170
8171 test -z "$STRIP" && STRIP=:
8172
8173
8174
8175
8176
8177
8178 if test -n "$ac_tool_prefix"; then
8179   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8180 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8182 $as_echo_n "checking for $ac_word... " >&6; }
8183 if ${ac_cv_prog_RANLIB+:} false; then :
8184   $as_echo_n "(cached) " >&6
8185 else
8186   if test -n "$RANLIB"; then
8187   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8188 else
8189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8190 for as_dir in $PATH
8191 do
8192   IFS=$as_save_IFS
8193   test -z "$as_dir" && as_dir=.
8194     for ac_exec_ext in '' $ac_executable_extensions; do
8195   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8196     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8197     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8198     break 2
8199   fi
8200 done
8201   done
8202 IFS=$as_save_IFS
8203
8204 fi
8205 fi
8206 RANLIB=$ac_cv_prog_RANLIB
8207 if test -n "$RANLIB"; then
8208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8209 $as_echo "$RANLIB" >&6; }
8210 else
8211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8212 $as_echo "no" >&6; }
8213 fi
8214
8215
8216 fi
8217 if test -z "$ac_cv_prog_RANLIB"; then
8218   ac_ct_RANLIB=$RANLIB
8219   # Extract the first word of "ranlib", so it can be a program name with args.
8220 set dummy ranlib; ac_word=$2
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8222 $as_echo_n "checking for $ac_word... " >&6; }
8223 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8224   $as_echo_n "(cached) " >&6
8225 else
8226   if test -n "$ac_ct_RANLIB"; then
8227   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8228 else
8229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8230 for as_dir in $PATH
8231 do
8232   IFS=$as_save_IFS
8233   test -z "$as_dir" && as_dir=.
8234     for ac_exec_ext in '' $ac_executable_extensions; do
8235   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8236     ac_cv_prog_ac_ct_RANLIB="ranlib"
8237     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8238     break 2
8239   fi
8240 done
8241   done
8242 IFS=$as_save_IFS
8243
8244 fi
8245 fi
8246 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8247 if test -n "$ac_ct_RANLIB"; then
8248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8249 $as_echo "$ac_ct_RANLIB" >&6; }
8250 else
8251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8252 $as_echo "no" >&6; }
8253 fi
8254
8255   if test "x$ac_ct_RANLIB" = x; then
8256     RANLIB=":"
8257   else
8258     case $cross_compiling:$ac_tool_warned in
8259 yes:)
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8261 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8262 ac_tool_warned=yes ;;
8263 esac
8264     RANLIB=$ac_ct_RANLIB
8265   fi
8266 else
8267   RANLIB="$ac_cv_prog_RANLIB"
8268 fi
8269
8270 test -z "$RANLIB" && RANLIB=:
8271
8272
8273
8274
8275
8276
8277 # Determine commands to create old-style static archives.
8278 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8279 old_postinstall_cmds='chmod 644 $oldlib'
8280 old_postuninstall_cmds=
8281
8282 if test -n "$RANLIB"; then
8283   case $host_os in
8284   openbsd*)
8285     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8286     ;;
8287   *)
8288     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8289     ;;
8290   esac
8291   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8292 fi
8293
8294 case $host_os in
8295   darwin*)
8296     lock_old_archive_extraction=yes ;;
8297   *)
8298     lock_old_archive_extraction=no ;;
8299 esac
8300
8301
8302
8303
8304
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 # If no C compiler was specified, use CC.
8340 LTCC=${LTCC-"$CC"}
8341
8342 # If no C compiler flags were specified, use CFLAGS.
8343 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8344
8345 # Allow CC to be a program name with arguments.
8346 compiler=$CC
8347
8348
8349 # Check for command to grab the raw symbol name followed by C symbol from nm.
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8351 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8352 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8353   $as_echo_n "(cached) " >&6
8354 else
8355
8356 # These are sane defaults that work on at least a few old systems.
8357 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8358
8359 # Character class describing NM global symbol codes.
8360 symcode='[BCDEGRST]'
8361
8362 # Regexp to match symbols that can be accessed directly from C.
8363 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8364
8365 # Define system-specific variables.
8366 case $host_os in
8367 aix*)
8368   symcode='[BCDT]'
8369   ;;
8370 cygwin* | mingw* | pw32* | cegcc*)
8371   symcode='[ABCDGISTW]'
8372   ;;
8373 hpux*)
8374   if test "$host_cpu" = ia64; then
8375     symcode='[ABCDEGRST]'
8376   fi
8377   ;;
8378 irix* | nonstopux*)
8379   symcode='[BCDEGRST]'
8380   ;;
8381 osf*)
8382   symcode='[BCDEGQRST]'
8383   ;;
8384 solaris*)
8385   symcode='[BDRT]'
8386   ;;
8387 sco3.2v5*)
8388   symcode='[DT]'
8389   ;;
8390 sysv4.2uw2*)
8391   symcode='[DT]'
8392   ;;
8393 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8394   symcode='[ABDT]'
8395   ;;
8396 sysv4)
8397   symcode='[DFNSTU]'
8398   ;;
8399 esac
8400
8401 # If we're using GNU nm, then use its standard symbol codes.
8402 case `$NM -V 2>&1` in
8403 *GNU* | *'with BFD'*)
8404   symcode='[ABCDGIRSTW]' ;;
8405 esac
8406
8407 # Transform an extracted symbol line into a proper C declaration.
8408 # Some systems (esp. on ia64) link data and code symbols differently,
8409 # so use this general approach.
8410 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8411
8412 # Transform an extracted symbol line into symbol name and symbol address
8413 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
8414 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'"
8415
8416 # Handle CRLF in mingw tool chain
8417 opt_cr=
8418 case $build_os in
8419 mingw*)
8420   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8421   ;;
8422 esac
8423
8424 # Try without a prefix underscore, then with it.
8425 for ac_symprfx in "" "_"; do
8426
8427   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8428   symxfrm="\\1 $ac_symprfx\\2 \\2"
8429
8430   # Write the raw and C identifiers.
8431   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8432     # Fake it for dumpbin and say T for any non-static function
8433     # and D for any global variable.
8434     # Also find C++ and __fastcall symbols from MSVC++,
8435     # which start with @ or ?.
8436     lt_cv_sys_global_symbol_pipe="$AWK '"\
8437 "     {last_section=section; section=\$ 3};"\
8438 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8439 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8440 "     \$ 0!~/External *\|/{next};"\
8441 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8442 "     {if(hide[section]) next};"\
8443 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8444 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8445 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
8446 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8447 "     ' prfx=^$ac_symprfx"
8448   else
8449     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8450   fi
8451   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8452
8453   # Check to see that the pipe works correctly.
8454   pipe_works=no
8455
8456   rm -f conftest*
8457   cat > conftest.$ac_ext <<_LT_EOF
8458 #ifdef __cplusplus
8459 extern "C" {
8460 #endif
8461 char nm_test_var;
8462 void nm_test_func(void);
8463 void nm_test_func(void){}
8464 #ifdef __cplusplus
8465 }
8466 #endif
8467 int main(){nm_test_var='a';nm_test_func();return(0);}
8468 _LT_EOF
8469
8470   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8471   (eval $ac_compile) 2>&5
8472   ac_status=$?
8473   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8474   test $ac_status = 0; }; then
8475     # Now try to grab the symbols.
8476     nlist=conftest.nm
8477     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8478   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8479   ac_status=$?
8480   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8481   test $ac_status = 0; } && test -s "$nlist"; then
8482       # Try sorting and uniquifying the output.
8483       if sort "$nlist" | uniq > "$nlist"T; then
8484         mv -f "$nlist"T "$nlist"
8485       else
8486         rm -f "$nlist"T
8487       fi
8488
8489       # Make sure that we snagged all the symbols we need.
8490       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8491         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8492           cat <<_LT_EOF > conftest.$ac_ext
8493 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
8494 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8495 /* DATA imports from DLLs on WIN32 con't be const, because runtime
8496    relocations are performed -- see ld's documentation on pseudo-relocs.  */
8497 # define LT_DLSYM_CONST
8498 #elif defined(__osf__)
8499 /* This system does not cope well with relocations in const data.  */
8500 # define LT_DLSYM_CONST
8501 #else
8502 # define LT_DLSYM_CONST const
8503 #endif
8504
8505 #ifdef __cplusplus
8506 extern "C" {
8507 #endif
8508
8509 _LT_EOF
8510           # Now generate the symbol file.
8511           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8512
8513           cat <<_LT_EOF >> conftest.$ac_ext
8514
8515 /* The mapping between symbol names and symbols.  */
8516 LT_DLSYM_CONST struct {
8517   const char *name;
8518   void       *address;
8519 }
8520 lt__PROGRAM__LTX_preloaded_symbols[] =
8521 {
8522   { "@PROGRAM@", (void *) 0 },
8523 _LT_EOF
8524           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8525           cat <<\_LT_EOF >> conftest.$ac_ext
8526   {0, (void *) 0}
8527 };
8528
8529 /* This works around a problem in FreeBSD linker */
8530 #ifdef FREEBSD_WORKAROUND
8531 static const void *lt_preloaded_setup() {
8532   return lt__PROGRAM__LTX_preloaded_symbols;
8533 }
8534 #endif
8535
8536 #ifdef __cplusplus
8537 }
8538 #endif
8539 _LT_EOF
8540           # Now try linking the two files.
8541           mv conftest.$ac_objext conftstm.$ac_objext
8542           lt_globsym_save_LIBS=$LIBS
8543           lt_globsym_save_CFLAGS=$CFLAGS
8544           LIBS="conftstm.$ac_objext"
8545           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8546           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8547   (eval $ac_link) 2>&5
8548   ac_status=$?
8549   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8550   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8551             pipe_works=yes
8552           fi
8553           LIBS=$lt_globsym_save_LIBS
8554           CFLAGS=$lt_globsym_save_CFLAGS
8555         else
8556           echo "cannot find nm_test_func in $nlist" >&5
8557         fi
8558       else
8559         echo "cannot find nm_test_var in $nlist" >&5
8560       fi
8561     else
8562       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8563     fi
8564   else
8565     echo "$progname: failed program was:" >&5
8566     cat conftest.$ac_ext >&5
8567   fi
8568   rm -rf conftest* conftst*
8569
8570   # Do not use the global_symbol_pipe unless it works.
8571   if test "$pipe_works" = yes; then
8572     break
8573   else
8574     lt_cv_sys_global_symbol_pipe=
8575   fi
8576 done
8577
8578 fi
8579
8580 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8581   lt_cv_sys_global_symbol_to_cdecl=
8582 fi
8583 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8585 $as_echo "failed" >&6; }
8586 else
8587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8588 $as_echo "ok" >&6; }
8589 fi
8590
8591 # Response file support.
8592 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8593   nm_file_list_spec='@'
8594 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8595   nm_file_list_spec='@'
8596 fi
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8625 $as_echo_n "checking for sysroot... " >&6; }
8626
8627 # Check whether --with-sysroot was given.
8628 if test "${with_sysroot+set}" = set; then :
8629   withval=$with_sysroot;
8630 else
8631   with_sysroot=no
8632 fi
8633
8634
8635 lt_sysroot=
8636 case ${with_sysroot} in #(
8637  yes)
8638    if test "$GCC" = yes; then
8639      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8640    fi
8641    ;; #(
8642  /*)
8643    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8644    ;; #(
8645  no|'')
8646    ;; #(
8647  *)
8648    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8649 $as_echo "${with_sysroot}" >&6; }
8650    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8651    ;;
8652 esac
8653
8654  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8655 $as_echo "${lt_sysroot:-no}" >&6; }
8656
8657
8658
8659
8660
8661 # Check whether --enable-libtool-lock was given.
8662 if test "${enable_libtool_lock+set}" = set; then :
8663   enableval=$enable_libtool_lock;
8664 fi
8665
8666 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8667
8668 # Some flags need to be propagated to the compiler or linker for good
8669 # libtool support.
8670 case $host in
8671 ia64-*-hpux*)
8672   # Find out which ABI we are using.
8673   echo 'int i;' > conftest.$ac_ext
8674   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8675   (eval $ac_compile) 2>&5
8676   ac_status=$?
8677   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8678   test $ac_status = 0; }; then
8679     case `/usr/bin/file conftest.$ac_objext` in
8680       *ELF-32*)
8681         HPUX_IA64_MODE="32"
8682         ;;
8683       *ELF-64*)
8684         HPUX_IA64_MODE="64"
8685         ;;
8686     esac
8687   fi
8688   rm -rf conftest*
8689   ;;
8690 *-*-irix6*)
8691   # Find out which ABI we are using.
8692   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8693   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8694   (eval $ac_compile) 2>&5
8695   ac_status=$?
8696   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8697   test $ac_status = 0; }; then
8698     if test "$lt_cv_prog_gnu_ld" = yes; then
8699       case `/usr/bin/file conftest.$ac_objext` in
8700         *32-bit*)
8701           LD="${LD-ld} -melf32bsmip"
8702           ;;
8703         *N32*)
8704           LD="${LD-ld} -melf32bmipn32"
8705           ;;
8706         *64-bit*)
8707           LD="${LD-ld} -melf64bmip"
8708         ;;
8709       esac
8710     else
8711       case `/usr/bin/file conftest.$ac_objext` in
8712         *32-bit*)
8713           LD="${LD-ld} -32"
8714           ;;
8715         *N32*)
8716           LD="${LD-ld} -n32"
8717           ;;
8718         *64-bit*)
8719           LD="${LD-ld} -64"
8720           ;;
8721       esac
8722     fi
8723   fi
8724   rm -rf conftest*
8725   ;;
8726
8727 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8728 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8729   # Find out which ABI we are using.
8730   echo 'int i;' > conftest.$ac_ext
8731   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8732   (eval $ac_compile) 2>&5
8733   ac_status=$?
8734   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8735   test $ac_status = 0; }; then
8736     case `/usr/bin/file conftest.o` in
8737       *32-bit*)
8738         case $host in
8739           x86_64-*kfreebsd*-gnu)
8740             LD="${LD-ld} -m elf_i386_fbsd"
8741             ;;
8742           x86_64-*linux*)
8743             LD="${LD-ld} -m elf_i386"
8744             ;;
8745          powerpc64le-*)
8746            LD="${LD-ld} -m elf32lppclinux"
8747            ;;
8748          powerpc64-*)
8749             LD="${LD-ld} -m elf32ppclinux"
8750             ;;
8751           s390x-*linux*)
8752             LD="${LD-ld} -m elf_s390"
8753             ;;
8754           sparc64-*linux*)
8755             LD="${LD-ld} -m elf32_sparc"
8756             ;;
8757         esac
8758         ;;
8759       *64-bit*)
8760         case $host in
8761           x86_64-*kfreebsd*-gnu)
8762             LD="${LD-ld} -m elf_x86_64_fbsd"
8763             ;;
8764           x86_64-*linux*)
8765             LD="${LD-ld} -m elf_x86_64"
8766             ;;
8767          powerpcle-*)
8768            LD="${LD-ld} -m elf64lppc"
8769            ;;
8770          powerpc-*)
8771             LD="${LD-ld} -m elf64ppc"
8772             ;;
8773           s390*-*linux*|s390*-*tpf*)
8774             LD="${LD-ld} -m elf64_s390"
8775             ;;
8776           sparc*-*linux*)
8777             LD="${LD-ld} -m elf64_sparc"
8778             ;;
8779         esac
8780         ;;
8781     esac
8782   fi
8783   rm -rf conftest*
8784   ;;
8785
8786 *-*-sco3.2v5*)
8787   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8788   SAVE_CFLAGS="$CFLAGS"
8789   CFLAGS="$CFLAGS -belf"
8790   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8791 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8792 if ${lt_cv_cc_needs_belf+:} false; then :
8793   $as_echo_n "(cached) " >&6
8794 else
8795   ac_ext=c
8796 ac_cpp='$CPP $CPPFLAGS'
8797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8800
8801      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8802 /* end confdefs.h.  */
8803
8804 int
8805 main ()
8806 {
8807
8808   ;
8809   return 0;
8810 }
8811 _ACEOF
8812 if ac_fn_c_try_link "$LINENO"; then :
8813   lt_cv_cc_needs_belf=yes
8814 else
8815   lt_cv_cc_needs_belf=no
8816 fi
8817 rm -f core conftest.err conftest.$ac_objext \
8818     conftest$ac_exeext conftest.$ac_ext
8819      ac_ext=c
8820 ac_cpp='$CPP $CPPFLAGS'
8821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8824
8825 fi
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8827 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8828   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8829     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8830     CFLAGS="$SAVE_CFLAGS"
8831   fi
8832   ;;
8833 *-*solaris*)
8834   # Find out which ABI we are using.
8835   echo 'int i;' > conftest.$ac_ext
8836   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8837   (eval $ac_compile) 2>&5
8838   ac_status=$?
8839   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8840   test $ac_status = 0; }; then
8841     case `/usr/bin/file conftest.o` in
8842     *64-bit*)
8843       case $lt_cv_prog_gnu_ld in
8844       yes*)
8845         case $host in
8846         i?86-*-solaris*)
8847           LD="${LD-ld} -m elf_x86_64"
8848           ;;
8849         sparc*-*-solaris*)
8850           LD="${LD-ld} -m elf64_sparc"
8851           ;;
8852         esac
8853         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8854         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8855           LD="${LD-ld}_sol2"
8856         fi
8857         ;;
8858       *)
8859         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8860           LD="${LD-ld} -64"
8861         fi
8862         ;;
8863       esac
8864       ;;
8865     esac
8866   fi
8867   rm -rf conftest*
8868   ;;
8869 esac
8870
8871 need_locks="$enable_libtool_lock"
8872
8873 if test -n "$ac_tool_prefix"; then
8874   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8875 set dummy ${ac_tool_prefix}mt; ac_word=$2
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8877 $as_echo_n "checking for $ac_word... " >&6; }
8878 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8879   $as_echo_n "(cached) " >&6
8880 else
8881   if test -n "$MANIFEST_TOOL"; then
8882   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8883 else
8884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8885 for as_dir in $PATH
8886 do
8887   IFS=$as_save_IFS
8888   test -z "$as_dir" && as_dir=.
8889     for ac_exec_ext in '' $ac_executable_extensions; do
8890   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8891     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8892     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8893     break 2
8894   fi
8895 done
8896   done
8897 IFS=$as_save_IFS
8898
8899 fi
8900 fi
8901 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8902 if test -n "$MANIFEST_TOOL"; then
8903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8904 $as_echo "$MANIFEST_TOOL" >&6; }
8905 else
8906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8907 $as_echo "no" >&6; }
8908 fi
8909
8910
8911 fi
8912 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8913   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8914   # Extract the first word of "mt", so it can be a program name with args.
8915 set dummy mt; ac_word=$2
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8917 $as_echo_n "checking for $ac_word... " >&6; }
8918 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8919   $as_echo_n "(cached) " >&6
8920 else
8921   if test -n "$ac_ct_MANIFEST_TOOL"; then
8922   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8923 else
8924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8925 for as_dir in $PATH
8926 do
8927   IFS=$as_save_IFS
8928   test -z "$as_dir" && as_dir=.
8929     for ac_exec_ext in '' $ac_executable_extensions; do
8930   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8931     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8932     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8933     break 2
8934   fi
8935 done
8936   done
8937 IFS=$as_save_IFS
8938
8939 fi
8940 fi
8941 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8942 if test -n "$ac_ct_MANIFEST_TOOL"; then
8943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8944 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8945 else
8946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8947 $as_echo "no" >&6; }
8948 fi
8949
8950   if test "x$ac_ct_MANIFEST_TOOL" = x; then
8951     MANIFEST_TOOL=":"
8952   else
8953     case $cross_compiling:$ac_tool_warned in
8954 yes:)
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8956 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8957 ac_tool_warned=yes ;;
8958 esac
8959     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8960   fi
8961 else
8962   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8963 fi
8964
8965 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8967 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8968 if ${lt_cv_path_mainfest_tool+:} false; then :
8969   $as_echo_n "(cached) " >&6
8970 else
8971   lt_cv_path_mainfest_tool=no
8972   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8973   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8974   cat conftest.err >&5
8975   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8976     lt_cv_path_mainfest_tool=yes
8977   fi
8978   rm -f conftest*
8979 fi
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8981 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8982 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8983   MANIFEST_TOOL=:
8984 fi
8985
8986
8987
8988
8989
8990
8991   case $host_os in
8992     rhapsody* | darwin*)
8993     if test -n "$ac_tool_prefix"; then
8994   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8995 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8997 $as_echo_n "checking for $ac_word... " >&6; }
8998 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8999   $as_echo_n "(cached) " >&6
9000 else
9001   if test -n "$DSYMUTIL"; then
9002   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9003 else
9004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9005 for as_dir in $PATH
9006 do
9007   IFS=$as_save_IFS
9008   test -z "$as_dir" && as_dir=.
9009     for ac_exec_ext in '' $ac_executable_extensions; do
9010   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9011     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9012     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9013     break 2
9014   fi
9015 done
9016   done
9017 IFS=$as_save_IFS
9018
9019 fi
9020 fi
9021 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9022 if test -n "$DSYMUTIL"; then
9023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9024 $as_echo "$DSYMUTIL" >&6; }
9025 else
9026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9027 $as_echo "no" >&6; }
9028 fi
9029
9030
9031 fi
9032 if test -z "$ac_cv_prog_DSYMUTIL"; then
9033   ac_ct_DSYMUTIL=$DSYMUTIL
9034   # Extract the first word of "dsymutil", so it can be a program name with args.
9035 set dummy dsymutil; ac_word=$2
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9037 $as_echo_n "checking for $ac_word... " >&6; }
9038 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9039   $as_echo_n "(cached) " >&6
9040 else
9041   if test -n "$ac_ct_DSYMUTIL"; then
9042   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9043 else
9044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9045 for as_dir in $PATH
9046 do
9047   IFS=$as_save_IFS
9048   test -z "$as_dir" && as_dir=.
9049     for ac_exec_ext in '' $ac_executable_extensions; do
9050   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9051     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9052     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9053     break 2
9054   fi
9055 done
9056   done
9057 IFS=$as_save_IFS
9058
9059 fi
9060 fi
9061 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9062 if test -n "$ac_ct_DSYMUTIL"; then
9063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9064 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9065 else
9066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9067 $as_echo "no" >&6; }
9068 fi
9069
9070   if test "x$ac_ct_DSYMUTIL" = x; then
9071     DSYMUTIL=":"
9072   else
9073     case $cross_compiling:$ac_tool_warned in
9074 yes:)
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9076 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9077 ac_tool_warned=yes ;;
9078 esac
9079     DSYMUTIL=$ac_ct_DSYMUTIL
9080   fi
9081 else
9082   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9083 fi
9084
9085     if test -n "$ac_tool_prefix"; then
9086   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9087 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9089 $as_echo_n "checking for $ac_word... " >&6; }
9090 if ${ac_cv_prog_NMEDIT+:} false; then :
9091   $as_echo_n "(cached) " >&6
9092 else
9093   if test -n "$NMEDIT"; then
9094   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9095 else
9096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9097 for as_dir in $PATH
9098 do
9099   IFS=$as_save_IFS
9100   test -z "$as_dir" && as_dir=.
9101     for ac_exec_ext in '' $ac_executable_extensions; do
9102   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9103     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9104     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9105     break 2
9106   fi
9107 done
9108   done
9109 IFS=$as_save_IFS
9110
9111 fi
9112 fi
9113 NMEDIT=$ac_cv_prog_NMEDIT
9114 if test -n "$NMEDIT"; then
9115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9116 $as_echo "$NMEDIT" >&6; }
9117 else
9118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9119 $as_echo "no" >&6; }
9120 fi
9121
9122
9123 fi
9124 if test -z "$ac_cv_prog_NMEDIT"; then
9125   ac_ct_NMEDIT=$NMEDIT
9126   # Extract the first word of "nmedit", so it can be a program name with args.
9127 set dummy nmedit; ac_word=$2
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9129 $as_echo_n "checking for $ac_word... " >&6; }
9130 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9131   $as_echo_n "(cached) " >&6
9132 else
9133   if test -n "$ac_ct_NMEDIT"; then
9134   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9135 else
9136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9137 for as_dir in $PATH
9138 do
9139   IFS=$as_save_IFS
9140   test -z "$as_dir" && as_dir=.
9141     for ac_exec_ext in '' $ac_executable_extensions; do
9142   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9143     ac_cv_prog_ac_ct_NMEDIT="nmedit"
9144     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9145     break 2
9146   fi
9147 done
9148   done
9149 IFS=$as_save_IFS
9150
9151 fi
9152 fi
9153 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9154 if test -n "$ac_ct_NMEDIT"; then
9155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9156 $as_echo "$ac_ct_NMEDIT" >&6; }
9157 else
9158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9159 $as_echo "no" >&6; }
9160 fi
9161
9162   if test "x$ac_ct_NMEDIT" = x; then
9163     NMEDIT=":"
9164   else
9165     case $cross_compiling:$ac_tool_warned in
9166 yes:)
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9168 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9169 ac_tool_warned=yes ;;
9170 esac
9171     NMEDIT=$ac_ct_NMEDIT
9172   fi
9173 else
9174   NMEDIT="$ac_cv_prog_NMEDIT"
9175 fi
9176
9177     if test -n "$ac_tool_prefix"; then
9178   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9179 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9181 $as_echo_n "checking for $ac_word... " >&6; }
9182 if ${ac_cv_prog_LIPO+:} false; then :
9183   $as_echo_n "(cached) " >&6
9184 else
9185   if test -n "$LIPO"; then
9186   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9187 else
9188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9189 for as_dir in $PATH
9190 do
9191   IFS=$as_save_IFS
9192   test -z "$as_dir" && as_dir=.
9193     for ac_exec_ext in '' $ac_executable_extensions; do
9194   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9195     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9196     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9197     break 2
9198   fi
9199 done
9200   done
9201 IFS=$as_save_IFS
9202
9203 fi
9204 fi
9205 LIPO=$ac_cv_prog_LIPO
9206 if test -n "$LIPO"; then
9207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9208 $as_echo "$LIPO" >&6; }
9209 else
9210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9211 $as_echo "no" >&6; }
9212 fi
9213
9214
9215 fi
9216 if test -z "$ac_cv_prog_LIPO"; then
9217   ac_ct_LIPO=$LIPO
9218   # Extract the first word of "lipo", so it can be a program name with args.
9219 set dummy lipo; ac_word=$2
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9221 $as_echo_n "checking for $ac_word... " >&6; }
9222 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9223   $as_echo_n "(cached) " >&6
9224 else
9225   if test -n "$ac_ct_LIPO"; then
9226   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9227 else
9228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9229 for as_dir in $PATH
9230 do
9231   IFS=$as_save_IFS
9232   test -z "$as_dir" && as_dir=.
9233     for ac_exec_ext in '' $ac_executable_extensions; do
9234   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9235     ac_cv_prog_ac_ct_LIPO="lipo"
9236     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9237     break 2
9238   fi
9239 done
9240   done
9241 IFS=$as_save_IFS
9242
9243 fi
9244 fi
9245 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9246 if test -n "$ac_ct_LIPO"; then
9247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9248 $as_echo "$ac_ct_LIPO" >&6; }
9249 else
9250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9251 $as_echo "no" >&6; }
9252 fi
9253
9254   if test "x$ac_ct_LIPO" = x; then
9255     LIPO=":"
9256   else
9257     case $cross_compiling:$ac_tool_warned in
9258 yes:)
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9260 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9261 ac_tool_warned=yes ;;
9262 esac
9263     LIPO=$ac_ct_LIPO
9264   fi
9265 else
9266   LIPO="$ac_cv_prog_LIPO"
9267 fi
9268
9269     if test -n "$ac_tool_prefix"; then
9270   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9271 set dummy ${ac_tool_prefix}otool; ac_word=$2
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9273 $as_echo_n "checking for $ac_word... " >&6; }
9274 if ${ac_cv_prog_OTOOL+:} false; then :
9275   $as_echo_n "(cached) " >&6
9276 else
9277   if test -n "$OTOOL"; then
9278   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9279 else
9280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9281 for as_dir in $PATH
9282 do
9283   IFS=$as_save_IFS
9284   test -z "$as_dir" && as_dir=.
9285     for ac_exec_ext in '' $ac_executable_extensions; do
9286   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9287     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9288     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9289     break 2
9290   fi
9291 done
9292   done
9293 IFS=$as_save_IFS
9294
9295 fi
9296 fi
9297 OTOOL=$ac_cv_prog_OTOOL
9298 if test -n "$OTOOL"; then
9299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9300 $as_echo "$OTOOL" >&6; }
9301 else
9302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9303 $as_echo "no" >&6; }
9304 fi
9305
9306
9307 fi
9308 if test -z "$ac_cv_prog_OTOOL"; then
9309   ac_ct_OTOOL=$OTOOL
9310   # Extract the first word of "otool", so it can be a program name with args.
9311 set dummy otool; ac_word=$2
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9313 $as_echo_n "checking for $ac_word... " >&6; }
9314 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9315   $as_echo_n "(cached) " >&6
9316 else
9317   if test -n "$ac_ct_OTOOL"; then
9318   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9319 else
9320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9321 for as_dir in $PATH
9322 do
9323   IFS=$as_save_IFS
9324   test -z "$as_dir" && as_dir=.
9325     for ac_exec_ext in '' $ac_executable_extensions; do
9326   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9327     ac_cv_prog_ac_ct_OTOOL="otool"
9328     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9329     break 2
9330   fi
9331 done
9332   done
9333 IFS=$as_save_IFS
9334
9335 fi
9336 fi
9337 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9338 if test -n "$ac_ct_OTOOL"; then
9339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9340 $as_echo "$ac_ct_OTOOL" >&6; }
9341 else
9342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9343 $as_echo "no" >&6; }
9344 fi
9345
9346   if test "x$ac_ct_OTOOL" = x; then
9347     OTOOL=":"
9348   else
9349     case $cross_compiling:$ac_tool_warned in
9350 yes:)
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9352 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9353 ac_tool_warned=yes ;;
9354 esac
9355     OTOOL=$ac_ct_OTOOL
9356   fi
9357 else
9358   OTOOL="$ac_cv_prog_OTOOL"
9359 fi
9360
9361     if test -n "$ac_tool_prefix"; then
9362   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9363 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9365 $as_echo_n "checking for $ac_word... " >&6; }
9366 if ${ac_cv_prog_OTOOL64+:} false; then :
9367   $as_echo_n "(cached) " >&6
9368 else
9369   if test -n "$OTOOL64"; then
9370   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9371 else
9372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9373 for as_dir in $PATH
9374 do
9375   IFS=$as_save_IFS
9376   test -z "$as_dir" && as_dir=.
9377     for ac_exec_ext in '' $ac_executable_extensions; do
9378   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9379     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9380     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9381     break 2
9382   fi
9383 done
9384   done
9385 IFS=$as_save_IFS
9386
9387 fi
9388 fi
9389 OTOOL64=$ac_cv_prog_OTOOL64
9390 if test -n "$OTOOL64"; then
9391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9392 $as_echo "$OTOOL64" >&6; }
9393 else
9394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9395 $as_echo "no" >&6; }
9396 fi
9397
9398
9399 fi
9400 if test -z "$ac_cv_prog_OTOOL64"; then
9401   ac_ct_OTOOL64=$OTOOL64
9402   # Extract the first word of "otool64", so it can be a program name with args.
9403 set dummy otool64; ac_word=$2
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9405 $as_echo_n "checking for $ac_word... " >&6; }
9406 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9407   $as_echo_n "(cached) " >&6
9408 else
9409   if test -n "$ac_ct_OTOOL64"; then
9410   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9411 else
9412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9413 for as_dir in $PATH
9414 do
9415   IFS=$as_save_IFS
9416   test -z "$as_dir" && as_dir=.
9417     for ac_exec_ext in '' $ac_executable_extensions; do
9418   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9419     ac_cv_prog_ac_ct_OTOOL64="otool64"
9420     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9421     break 2
9422   fi
9423 done
9424   done
9425 IFS=$as_save_IFS
9426
9427 fi
9428 fi
9429 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9430 if test -n "$ac_ct_OTOOL64"; then
9431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9432 $as_echo "$ac_ct_OTOOL64" >&6; }
9433 else
9434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9435 $as_echo "no" >&6; }
9436 fi
9437
9438   if test "x$ac_ct_OTOOL64" = x; then
9439     OTOOL64=":"
9440   else
9441     case $cross_compiling:$ac_tool_warned in
9442 yes:)
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9444 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9445 ac_tool_warned=yes ;;
9446 esac
9447     OTOOL64=$ac_ct_OTOOL64
9448   fi
9449 else
9450   OTOOL64="$ac_cv_prog_OTOOL64"
9451 fi
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9480 $as_echo_n "checking for -single_module linker flag... " >&6; }
9481 if ${lt_cv_apple_cc_single_mod+:} false; then :
9482   $as_echo_n "(cached) " >&6
9483 else
9484   lt_cv_apple_cc_single_mod=no
9485       if test -z "${LT_MULTI_MODULE}"; then
9486         # By default we will add the -single_module flag. You can override
9487         # by either setting the environment variable LT_MULTI_MODULE
9488         # non-empty at configure time, or by adding -multi_module to the
9489         # link flags.
9490         rm -rf libconftest.dylib*
9491         echo "int foo(void){return 1;}" > conftest.c
9492         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9493 -dynamiclib -Wl,-single_module conftest.c" >&5
9494         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9495           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9496         _lt_result=$?
9497         # If there is a non-empty error log, and "single_module"
9498         # appears in it, assume the flag caused a linker warning
9499         if test -s conftest.err && $GREP single_module conftest.err; then
9500           cat conftest.err >&5
9501         # Otherwise, if the output was created with a 0 exit code from
9502         # the compiler, it worked.
9503         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
9504           lt_cv_apple_cc_single_mod=yes
9505         else
9506           cat conftest.err >&5
9507         fi
9508         rm -rf libconftest.dylib*
9509         rm -f conftest.*
9510       fi
9511 fi
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9513 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9514
9515     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9516 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9517 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9518   $as_echo_n "(cached) " >&6
9519 else
9520   lt_cv_ld_exported_symbols_list=no
9521       save_LDFLAGS=$LDFLAGS
9522       echo "_main" > conftest.sym
9523       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9524       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9525 /* end confdefs.h.  */
9526
9527 int
9528 main ()
9529 {
9530
9531   ;
9532   return 0;
9533 }
9534 _ACEOF
9535 if ac_fn_c_try_link "$LINENO"; then :
9536   lt_cv_ld_exported_symbols_list=yes
9537 else
9538   lt_cv_ld_exported_symbols_list=no
9539 fi
9540 rm -f core conftest.err conftest.$ac_objext \
9541     conftest$ac_exeext conftest.$ac_ext
9542         LDFLAGS="$save_LDFLAGS"
9543
9544 fi
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9546 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9547
9548     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9549 $as_echo_n "checking for -force_load linker flag... " >&6; }
9550 if ${lt_cv_ld_force_load+:} false; then :
9551   $as_echo_n "(cached) " >&6
9552 else
9553   lt_cv_ld_force_load=no
9554       cat > conftest.c << _LT_EOF
9555 int forced_loaded() { return 2;}
9556 _LT_EOF
9557       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9558       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9559       echo "$AR cru libconftest.a conftest.o" >&5
9560       $AR cru libconftest.a conftest.o 2>&5
9561       echo "$RANLIB libconftest.a" >&5
9562       $RANLIB libconftest.a 2>&5
9563       cat > conftest.c << _LT_EOF
9564 int main() { return 0;}
9565 _LT_EOF
9566       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9567       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9568       _lt_result=$?
9569       if test -s conftest.err && $GREP force_load conftest.err; then
9570         cat conftest.err >&5
9571       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
9572         lt_cv_ld_force_load=yes
9573       else
9574         cat conftest.err >&5
9575       fi
9576         rm -f conftest.err libconftest.a conftest conftest.c
9577         rm -rf conftest.dSYM
9578
9579 fi
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9581 $as_echo "$lt_cv_ld_force_load" >&6; }
9582     case $host_os in
9583     rhapsody* | darwin1.[012])
9584       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9585     darwin1.*)
9586       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9587     darwin*) # darwin 5.x on
9588       # if running on 10.5 or later, the deployment target defaults
9589       # to the OS version, if on x86, and 10.4, the deployment
9590       # target defaults to 10.4. Don't you love it?
9591       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9592         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9593           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9594         10.[012]*)
9595           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9596         10.*)
9597           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9598       esac
9599     ;;
9600   esac
9601     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9602       _lt_dar_single_mod='$single_module'
9603     fi
9604     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9605       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9606     else
9607       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9608     fi
9609     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9610       _lt_dsymutil='~$DSYMUTIL $lib || :'
9611     else
9612       _lt_dsymutil=
9613     fi
9614     ;;
9615   esac
9616
9617 for ac_header in dlfcn.h
9618 do :
9619   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9620 "
9621 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9622   cat >>confdefs.h <<_ACEOF
9623 #define HAVE_DLFCN_H 1
9624 _ACEOF
9625
9626 fi
9627
9628 done
9629
9630
9631
9632
9633 func_stripname_cnf ()
9634 {
9635   case ${2} in
9636   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9637   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9638   esac
9639 } # func_stripname_cnf
9640
9641
9642
9643
9644
9645 # Set options
9646 enable_win32_dll=yes
9647
9648 case $host in
9649 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
9650   if test -n "$ac_tool_prefix"; then
9651   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
9652 set dummy ${ac_tool_prefix}as; ac_word=$2
9653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9654 $as_echo_n "checking for $ac_word... " >&6; }
9655 if ${ac_cv_prog_AS+:} false; then :
9656   $as_echo_n "(cached) " >&6
9657 else
9658   if test -n "$AS"; then
9659   ac_cv_prog_AS="$AS" # Let the user override the test.
9660 else
9661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9662 for as_dir in $PATH
9663 do
9664   IFS=$as_save_IFS
9665   test -z "$as_dir" && as_dir=.
9666     for ac_exec_ext in '' $ac_executable_extensions; do
9667   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9668     ac_cv_prog_AS="${ac_tool_prefix}as"
9669     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9670     break 2
9671   fi
9672 done
9673   done
9674 IFS=$as_save_IFS
9675
9676 fi
9677 fi
9678 AS=$ac_cv_prog_AS
9679 if test -n "$AS"; then
9680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9681 $as_echo "$AS" >&6; }
9682 else
9683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9684 $as_echo "no" >&6; }
9685 fi
9686
9687
9688 fi
9689 if test -z "$ac_cv_prog_AS"; then
9690   ac_ct_AS=$AS
9691   # Extract the first word of "as", so it can be a program name with args.
9692 set dummy as; ac_word=$2
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9694 $as_echo_n "checking for $ac_word... " >&6; }
9695 if ${ac_cv_prog_ac_ct_AS+:} false; then :
9696   $as_echo_n "(cached) " >&6
9697 else
9698   if test -n "$ac_ct_AS"; then
9699   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9700 else
9701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9702 for as_dir in $PATH
9703 do
9704   IFS=$as_save_IFS
9705   test -z "$as_dir" && as_dir=.
9706     for ac_exec_ext in '' $ac_executable_extensions; do
9707   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9708     ac_cv_prog_ac_ct_AS="as"
9709     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9710     break 2
9711   fi
9712 done
9713   done
9714 IFS=$as_save_IFS
9715
9716 fi
9717 fi
9718 ac_ct_AS=$ac_cv_prog_ac_ct_AS
9719 if test -n "$ac_ct_AS"; then
9720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
9721 $as_echo "$ac_ct_AS" >&6; }
9722 else
9723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9724 $as_echo "no" >&6; }
9725 fi
9726
9727   if test "x$ac_ct_AS" = x; then
9728     AS="false"
9729   else
9730     case $cross_compiling:$ac_tool_warned in
9731 yes:)
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9733 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9734 ac_tool_warned=yes ;;
9735 esac
9736     AS=$ac_ct_AS
9737   fi
9738 else
9739   AS="$ac_cv_prog_AS"
9740 fi
9741
9742   if test -n "$ac_tool_prefix"; then
9743   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9744 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9746 $as_echo_n "checking for $ac_word... " >&6; }
9747 if ${ac_cv_prog_DLLTOOL+:} false; then :
9748   $as_echo_n "(cached) " >&6
9749 else
9750   if test -n "$DLLTOOL"; then
9751   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9752 else
9753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9754 for as_dir in $PATH
9755 do
9756   IFS=$as_save_IFS
9757   test -z "$as_dir" && as_dir=.
9758     for ac_exec_ext in '' $ac_executable_extensions; do
9759   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9760     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9761     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9762     break 2
9763   fi
9764 done
9765   done
9766 IFS=$as_save_IFS
9767
9768 fi
9769 fi
9770 DLLTOOL=$ac_cv_prog_DLLTOOL
9771 if test -n "$DLLTOOL"; then
9772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9773 $as_echo "$DLLTOOL" >&6; }
9774 else
9775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9776 $as_echo "no" >&6; }
9777 fi
9778
9779
9780 fi
9781 if test -z "$ac_cv_prog_DLLTOOL"; then
9782   ac_ct_DLLTOOL=$DLLTOOL
9783   # Extract the first word of "dlltool", so it can be a program name with args.
9784 set dummy dlltool; ac_word=$2
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9786 $as_echo_n "checking for $ac_word... " >&6; }
9787 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9788   $as_echo_n "(cached) " >&6
9789 else
9790   if test -n "$ac_ct_DLLTOOL"; then
9791   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9792 else
9793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9794 for as_dir in $PATH
9795 do
9796   IFS=$as_save_IFS
9797   test -z "$as_dir" && as_dir=.
9798     for ac_exec_ext in '' $ac_executable_extensions; do
9799   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9800     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9801     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9802     break 2
9803   fi
9804 done
9805   done
9806 IFS=$as_save_IFS
9807
9808 fi
9809 fi
9810 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9811 if test -n "$ac_ct_DLLTOOL"; then
9812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9813 $as_echo "$ac_ct_DLLTOOL" >&6; }
9814 else
9815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9816 $as_echo "no" >&6; }
9817 fi
9818
9819   if test "x$ac_ct_DLLTOOL" = x; then
9820     DLLTOOL="false"
9821   else
9822     case $cross_compiling:$ac_tool_warned in
9823 yes:)
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9825 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9826 ac_tool_warned=yes ;;
9827 esac
9828     DLLTOOL=$ac_ct_DLLTOOL
9829   fi
9830 else
9831   DLLTOOL="$ac_cv_prog_DLLTOOL"
9832 fi
9833
9834   if test -n "$ac_tool_prefix"; then
9835   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9836 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9838 $as_echo_n "checking for $ac_word... " >&6; }
9839 if ${ac_cv_prog_OBJDUMP+:} false; then :
9840   $as_echo_n "(cached) " >&6
9841 else
9842   if test -n "$OBJDUMP"; then
9843   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9844 else
9845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9846 for as_dir in $PATH
9847 do
9848   IFS=$as_save_IFS
9849   test -z "$as_dir" && as_dir=.
9850     for ac_exec_ext in '' $ac_executable_extensions; do
9851   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9852     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9853     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9854     break 2
9855   fi
9856 done
9857   done
9858 IFS=$as_save_IFS
9859
9860 fi
9861 fi
9862 OBJDUMP=$ac_cv_prog_OBJDUMP
9863 if test -n "$OBJDUMP"; then
9864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9865 $as_echo "$OBJDUMP" >&6; }
9866 else
9867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9868 $as_echo "no" >&6; }
9869 fi
9870
9871
9872 fi
9873 if test -z "$ac_cv_prog_OBJDUMP"; then
9874   ac_ct_OBJDUMP=$OBJDUMP
9875   # Extract the first word of "objdump", so it can be a program name with args.
9876 set dummy objdump; ac_word=$2
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9878 $as_echo_n "checking for $ac_word... " >&6; }
9879 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9880   $as_echo_n "(cached) " >&6
9881 else
9882   if test -n "$ac_ct_OBJDUMP"; then
9883   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9884 else
9885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9886 for as_dir in $PATH
9887 do
9888   IFS=$as_save_IFS
9889   test -z "$as_dir" && as_dir=.
9890     for ac_exec_ext in '' $ac_executable_extensions; do
9891   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9892     ac_cv_prog_ac_ct_OBJDUMP="objdump"
9893     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9894     break 2
9895   fi
9896 done
9897   done
9898 IFS=$as_save_IFS
9899
9900 fi
9901 fi
9902 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9903 if test -n "$ac_ct_OBJDUMP"; then
9904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9905 $as_echo "$ac_ct_OBJDUMP" >&6; }
9906 else
9907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9908 $as_echo "no" >&6; }
9909 fi
9910
9911   if test "x$ac_ct_OBJDUMP" = x; then
9912     OBJDUMP="false"
9913   else
9914     case $cross_compiling:$ac_tool_warned in
9915 yes:)
9916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9917 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9918 ac_tool_warned=yes ;;
9919 esac
9920     OBJDUMP=$ac_ct_OBJDUMP
9921   fi
9922 else
9923   OBJDUMP="$ac_cv_prog_OBJDUMP"
9924 fi
9925
9926   ;;
9927 esac
9928
9929 test -z "$AS" && AS=as
9930
9931
9932
9933
9934
9935 test -z "$DLLTOOL" && DLLTOOL=dlltool
9936
9937
9938
9939
9940
9941 test -z "$OBJDUMP" && OBJDUMP=objdump
9942
9943
9944
9945
9946 # Check whether --enable-static was given.
9947 if test "${enable_static+set}" = set; then :
9948   enableval=$enable_static; p=${PACKAGE-default}
9949     case $enableval in
9950     yes) enable_static=yes ;;
9951     no) enable_static=no ;;
9952     *)
9953      enable_static=no
9954       # Look at the argument we got.  We use all the common list separators.
9955       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9956       for pkg in $enableval; do
9957         IFS="$lt_save_ifs"
9958         if test "X$pkg" = "X$p"; then
9959           enable_static=yes
9960         fi
9961       done
9962       IFS="$lt_save_ifs"
9963       ;;
9964     esac
9965 else
9966   enable_static=no
9967 fi
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978         enable_dlopen=no
9979
9980
9981
9982             # Check whether --enable-shared was given.
9983 if test "${enable_shared+set}" = set; then :
9984   enableval=$enable_shared; p=${PACKAGE-default}
9985     case $enableval in
9986     yes) enable_shared=yes ;;
9987     no) enable_shared=no ;;
9988     *)
9989       enable_shared=no
9990       # Look at the argument we got.  We use all the common list separators.
9991       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9992       for pkg in $enableval; do
9993         IFS="$lt_save_ifs"
9994         if test "X$pkg" = "X$p"; then
9995           enable_shared=yes
9996         fi
9997       done
9998       IFS="$lt_save_ifs"
9999       ;;
10000     esac
10001 else
10002   enable_shared=yes
10003 fi
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015 # Check whether --with-pic was given.
10016 if test "${with_pic+set}" = set; then :
10017   withval=$with_pic; lt_p=${PACKAGE-default}
10018     case $withval in
10019     yes|no) pic_mode=$withval ;;
10020     *)
10021       pic_mode=default
10022       # Look at the argument we got.  We use all the common list separators.
10023       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10024       for lt_pkg in $withval; do
10025         IFS="$lt_save_ifs"
10026         if test "X$lt_pkg" = "X$lt_p"; then
10027           pic_mode=yes
10028         fi
10029       done
10030       IFS="$lt_save_ifs"
10031       ;;
10032     esac
10033 else
10034   pic_mode=default
10035 fi
10036
10037
10038 test -z "$pic_mode" && pic_mode=default
10039
10040
10041
10042
10043
10044
10045
10046   # Check whether --enable-fast-install was given.
10047 if test "${enable_fast_install+set}" = set; then :
10048   enableval=$enable_fast_install; p=${PACKAGE-default}
10049     case $enableval in
10050     yes) enable_fast_install=yes ;;
10051     no) enable_fast_install=no ;;
10052     *)
10053       enable_fast_install=no
10054       # Look at the argument we got.  We use all the common list separators.
10055       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10056       for pkg in $enableval; do
10057         IFS="$lt_save_ifs"
10058         if test "X$pkg" = "X$p"; then
10059           enable_fast_install=yes
10060         fi
10061       done
10062       IFS="$lt_save_ifs"
10063       ;;
10064     esac
10065 else
10066   enable_fast_install=yes
10067 fi
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079 # This can be used to rebuild libtool when needed
10080 LIBTOOL_DEPS="$ltmain"
10081
10082 # Always use our own libtool.
10083 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10084
10085
10086
10087
10088
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 test -z "$LN_S" && LN_S="ln -s"
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129 if test -n "${ZSH_VERSION+set}" ; then
10130    setopt NO_GLOB_SUBST
10131 fi
10132
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10134 $as_echo_n "checking for objdir... " >&6; }
10135 if ${lt_cv_objdir+:} false; then :
10136   $as_echo_n "(cached) " >&6
10137 else
10138   rm -f .libs 2>/dev/null
10139 mkdir .libs 2>/dev/null
10140 if test -d .libs; then
10141   lt_cv_objdir=.libs
10142 else
10143   # MS-DOS does not allow filenames that begin with a dot.
10144   lt_cv_objdir=_libs
10145 fi
10146 rmdir .libs 2>/dev/null
10147 fi
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10149 $as_echo "$lt_cv_objdir" >&6; }
10150 objdir=$lt_cv_objdir
10151
10152
10153
10154
10155
10156 cat >>confdefs.h <<_ACEOF
10157 #define LT_OBJDIR "$lt_cv_objdir/"
10158 _ACEOF
10159
10160
10161
10162
10163 case $host_os in
10164 aix3*)
10165   # AIX sometimes has problems with the GCC collect2 program.  For some
10166   # reason, if we set the COLLECT_NAMES environment variable, the problems
10167   # vanish in a puff of smoke.
10168   if test "X${COLLECT_NAMES+set}" != Xset; then
10169     COLLECT_NAMES=
10170     export COLLECT_NAMES
10171   fi
10172   ;;
10173 esac
10174
10175 # Global variables:
10176 ofile=libtool
10177 can_build_shared=yes
10178
10179 # All known linkers require a `.a' archive for static linking (except MSVC,
10180 # which needs '.lib').
10181 libext=a
10182
10183 with_gnu_ld="$lt_cv_prog_gnu_ld"
10184
10185 old_CC="$CC"
10186 old_CFLAGS="$CFLAGS"
10187
10188 # Set sane defaults for various variables
10189 test -z "$CC" && CC=cc
10190 test -z "$LTCC" && LTCC=$CC
10191 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10192 test -z "$LD" && LD=ld
10193 test -z "$ac_objext" && ac_objext=o
10194
10195 for cc_temp in $compiler""; do
10196   case $cc_temp in
10197     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10198     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10199     \-*) ;;
10200     *) break;;
10201   esac
10202 done
10203 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10204
10205
10206 # Only perform the check for file, if the check method requires it
10207 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10208 case $deplibs_check_method in
10209 file_magic*)
10210   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10211     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10212 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10213 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10214   $as_echo_n "(cached) " >&6
10215 else
10216   case $MAGIC_CMD in
10217 [\\/*] |  ?:[\\/]*)
10218   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10219   ;;
10220 *)
10221   lt_save_MAGIC_CMD="$MAGIC_CMD"
10222   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10223   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10224   for ac_dir in $ac_dummy; do
10225     IFS="$lt_save_ifs"
10226     test -z "$ac_dir" && ac_dir=.
10227     if test -f $ac_dir/${ac_tool_prefix}file; then
10228       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10229       if test -n "$file_magic_test_file"; then
10230         case $deplibs_check_method in
10231         "file_magic "*)
10232           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10233           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10234           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10235             $EGREP "$file_magic_regex" > /dev/null; then
10236             :
10237           else
10238             cat <<_LT_EOF 1>&2
10239
10240 *** Warning: the command libtool uses to detect shared libraries,
10241 *** $file_magic_cmd, produces output that libtool cannot recognize.
10242 *** The result is that libtool may fail to recognize shared libraries
10243 *** as such.  This will affect the creation of libtool libraries that
10244 *** depend on shared libraries, but programs linked with such libtool
10245 *** libraries will work regardless of this problem.  Nevertheless, you
10246 *** may want to report the problem to your system manager and/or to
10247 *** bug-libtool@gnu.org
10248
10249 _LT_EOF
10250           fi ;;
10251         esac
10252       fi
10253       break
10254     fi
10255   done
10256   IFS="$lt_save_ifs"
10257   MAGIC_CMD="$lt_save_MAGIC_CMD"
10258   ;;
10259 esac
10260 fi
10261
10262 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10263 if test -n "$MAGIC_CMD"; then
10264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10265 $as_echo "$MAGIC_CMD" >&6; }
10266 else
10267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10268 $as_echo "no" >&6; }
10269 fi
10270
10271
10272
10273
10274
10275 if test -z "$lt_cv_path_MAGIC_CMD"; then
10276   if test -n "$ac_tool_prefix"; then
10277     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10278 $as_echo_n "checking for file... " >&6; }
10279 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10280   $as_echo_n "(cached) " >&6
10281 else
10282   case $MAGIC_CMD in
10283 [\\/*] |  ?:[\\/]*)
10284   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10285   ;;
10286 *)
10287   lt_save_MAGIC_CMD="$MAGIC_CMD"
10288   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10289   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10290   for ac_dir in $ac_dummy; do
10291     IFS="$lt_save_ifs"
10292     test -z "$ac_dir" && ac_dir=.
10293     if test -f $ac_dir/file; then
10294       lt_cv_path_MAGIC_CMD="$ac_dir/file"
10295       if test -n "$file_magic_test_file"; then
10296         case $deplibs_check_method in
10297         "file_magic "*)
10298           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10299           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10300           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10301             $EGREP "$file_magic_regex" > /dev/null; then
10302             :
10303           else
10304             cat <<_LT_EOF 1>&2
10305
10306 *** Warning: the command libtool uses to detect shared libraries,
10307 *** $file_magic_cmd, produces output that libtool cannot recognize.
10308 *** The result is that libtool may fail to recognize shared libraries
10309 *** as such.  This will affect the creation of libtool libraries that
10310 *** depend on shared libraries, but programs linked with such libtool
10311 *** libraries will work regardless of this problem.  Nevertheless, you
10312 *** may want to report the problem to your system manager and/or to
10313 *** bug-libtool@gnu.org
10314
10315 _LT_EOF
10316           fi ;;
10317         esac
10318       fi
10319       break
10320     fi
10321   done
10322   IFS="$lt_save_ifs"
10323   MAGIC_CMD="$lt_save_MAGIC_CMD"
10324   ;;
10325 esac
10326 fi
10327
10328 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10329 if test -n "$MAGIC_CMD"; then
10330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10331 $as_echo "$MAGIC_CMD" >&6; }
10332 else
10333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10334 $as_echo "no" >&6; }
10335 fi
10336
10337
10338   else
10339     MAGIC_CMD=:
10340   fi
10341 fi
10342
10343   fi
10344   ;;
10345 esac
10346
10347 # Use C for the default configuration in the libtool script
10348
10349 lt_save_CC="$CC"
10350 ac_ext=c
10351 ac_cpp='$CPP $CPPFLAGS'
10352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10355
10356
10357 # Source file extension for C test sources.
10358 ac_ext=c
10359
10360 # Object file extension for compiled C test sources.
10361 objext=o
10362 objext=$objext
10363
10364 # Code to be used in simple compile tests
10365 lt_simple_compile_test_code="int some_variable = 0;"
10366
10367 # Code to be used in simple link tests
10368 lt_simple_link_test_code='int main(){return(0);}'
10369
10370
10371
10372
10373
10374
10375
10376 # If no C compiler was specified, use CC.
10377 LTCC=${LTCC-"$CC"}
10378
10379 # If no C compiler flags were specified, use CFLAGS.
10380 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10381
10382 # Allow CC to be a program name with arguments.
10383 compiler=$CC
10384
10385 # Save the default compiler, since it gets overwritten when the other
10386 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10387 compiler_DEFAULT=$CC
10388
10389 # save warnings/boilerplate of simple test code
10390 ac_outfile=conftest.$ac_objext
10391 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10392 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10393 _lt_compiler_boilerplate=`cat conftest.err`
10394 $RM conftest*
10395
10396 ac_outfile=conftest.$ac_objext
10397 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10398 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10399 _lt_linker_boilerplate=`cat conftest.err`
10400 $RM -r conftest*
10401
10402
10403 ## CAVEAT EMPTOR:
10404 ## There is no encapsulation within the following macros, do not change
10405 ## the running order or otherwise move them around unless you know exactly
10406 ## what you are doing...
10407 if test -n "$compiler"; then
10408
10409 lt_prog_compiler_no_builtin_flag=
10410
10411 if test "$GCC" = yes; then
10412   case $cc_basename in
10413   nvcc*)
10414     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10415   *)
10416     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10417   esac
10418
10419   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10420 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10421 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10422   $as_echo_n "(cached) " >&6
10423 else
10424   lt_cv_prog_compiler_rtti_exceptions=no
10425    ac_outfile=conftest.$ac_objext
10426    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10427    lt_compiler_flag="-fno-rtti -fno-exceptions"
10428    # Insert the option either (1) after the last *FLAGS variable, or
10429    # (2) before a word containing "conftest.", or (3) at the end.
10430    # Note that $ac_compile itself does not contain backslashes and begins
10431    # with a dollar sign (not a hyphen), so the echo should work correctly.
10432    # The option is referenced via a variable to avoid confusing sed.
10433    lt_compile=`echo "$ac_compile" | $SED \
10434    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10435    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10436    -e 's:$: $lt_compiler_flag:'`
10437    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10438    (eval "$lt_compile" 2>conftest.err)
10439    ac_status=$?
10440    cat conftest.err >&5
10441    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442    if (exit $ac_status) && test -s "$ac_outfile"; then
10443      # The compiler can only warn and ignore the option if not recognized
10444      # So say no if there are warnings other than the usual output.
10445      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10446      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10447      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10448        lt_cv_prog_compiler_rtti_exceptions=yes
10449      fi
10450    fi
10451    $RM conftest*
10452
10453 fi
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10455 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10456
10457 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10458     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10459 else
10460     :
10461 fi
10462
10463 fi
10464
10465
10466
10467
10468
10469
10470   lt_prog_compiler_wl=
10471 lt_prog_compiler_pic=
10472 lt_prog_compiler_static=
10473
10474
10475   if test "$GCC" = yes; then
10476     lt_prog_compiler_wl='-Wl,'
10477     lt_prog_compiler_static='-static'
10478
10479     case $host_os in
10480       aix*)
10481       # All AIX code is PIC.
10482       if test "$host_cpu" = ia64; then
10483         # AIX 5 now supports IA64 processor
10484         lt_prog_compiler_static='-Bstatic'
10485       fi
10486       ;;
10487
10488     amigaos*)
10489       case $host_cpu in
10490       powerpc)
10491             # see comment about AmigaOS4 .so support
10492             lt_prog_compiler_pic='-fPIC'
10493         ;;
10494       m68k)
10495             # FIXME: we need at least 68020 code to build shared libraries, but
10496             # adding the `-m68020' flag to GCC prevents building anything better,
10497             # like `-m68040'.
10498             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10499         ;;
10500       esac
10501       ;;
10502
10503     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10504       # PIC is the default for these OSes.
10505       ;;
10506
10507     mingw* | cygwin* | pw32* | os2* | cegcc*)
10508       # This hack is so that the source file can tell whether it is being
10509       # built for inclusion in a dll (and should export symbols for example).
10510       # Although the cygwin gcc ignores -fPIC, still need this for old-style
10511       # (--disable-auto-import) libraries
10512       lt_prog_compiler_pic='-DDLL_EXPORT'
10513       ;;
10514
10515     darwin* | rhapsody*)
10516       # PIC is the default on this platform
10517       # Common symbols not allowed in MH_DYLIB files
10518       lt_prog_compiler_pic='-fno-common'
10519       ;;
10520
10521     haiku*)
10522       # PIC is the default for Haiku.
10523       # The "-static" flag exists, but is broken.
10524       lt_prog_compiler_static=
10525       ;;
10526
10527     hpux*)
10528       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10529       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10530       # sets the default TLS model and affects inlining.
10531       case $host_cpu in
10532       hppa*64*)
10533         # +Z the default
10534         ;;
10535       *)
10536         lt_prog_compiler_pic='-fPIC'
10537         ;;
10538       esac
10539       ;;
10540
10541     interix[3-9]*)
10542       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10543       # Instead, we relocate shared libraries at runtime.
10544       ;;
10545
10546     msdosdjgpp*)
10547       # Just because we use GCC doesn't mean we suddenly get shared libraries
10548       # on systems that don't support them.
10549       lt_prog_compiler_can_build_shared=no
10550       enable_shared=no
10551       ;;
10552
10553     *nto* | *qnx*)
10554       # QNX uses GNU C++, but need to define -shared option too, otherwise
10555       # it will coredump.
10556       lt_prog_compiler_pic='-fPIC -shared'
10557       ;;
10558
10559     sysv4*MP*)
10560       if test -d /usr/nec; then
10561         lt_prog_compiler_pic=-Kconform_pic
10562       fi
10563       ;;
10564
10565     *)
10566       lt_prog_compiler_pic='-fPIC'
10567       ;;
10568     esac
10569
10570     case $cc_basename in
10571     nvcc*) # Cuda Compiler Driver 2.2
10572       lt_prog_compiler_wl='-Xlinker '
10573       if test -n "$lt_prog_compiler_pic"; then
10574         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10575       fi
10576       ;;
10577     esac
10578   else
10579     # PORTME Check for flag to pass linker flags through the system compiler.
10580     case $host_os in
10581     aix*)
10582       lt_prog_compiler_wl='-Wl,'
10583       if test "$host_cpu" = ia64; then
10584         # AIX 5 now supports IA64 processor
10585         lt_prog_compiler_static='-Bstatic'
10586       else
10587         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10588       fi
10589       ;;
10590
10591     mingw* | cygwin* | pw32* | os2* | cegcc*)
10592       # This hack is so that the source file can tell whether it is being
10593       # built for inclusion in a dll (and should export symbols for example).
10594       lt_prog_compiler_pic='-DDLL_EXPORT'
10595       ;;
10596
10597     hpux9* | hpux10* | hpux11*)
10598       lt_prog_compiler_wl='-Wl,'
10599       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10600       # not for PA HP-UX.
10601       case $host_cpu in
10602       hppa*64*|ia64*)
10603         # +Z the default
10604         ;;
10605       *)
10606         lt_prog_compiler_pic='+Z'
10607         ;;
10608       esac
10609       # Is there a better lt_prog_compiler_static that works with the bundled CC?
10610       lt_prog_compiler_static='${wl}-a ${wl}archive'
10611       ;;
10612
10613     irix5* | irix6* | nonstopux*)
10614       lt_prog_compiler_wl='-Wl,'
10615       # PIC (with -KPIC) is the default.
10616       lt_prog_compiler_static='-non_shared'
10617       ;;
10618
10619     linux* | k*bsd*-gnu | kopensolaris*-gnu)
10620       case $cc_basename in
10621       # old Intel for x86_64 which still supported -KPIC.
10622       ecc*)
10623         lt_prog_compiler_wl='-Wl,'
10624         lt_prog_compiler_pic='-KPIC'
10625         lt_prog_compiler_static='-static'
10626         ;;
10627       # icc used to be incompatible with GCC.
10628       # ICC 10 doesn't accept -KPIC any more.
10629       icc* | ifort*)
10630         lt_prog_compiler_wl='-Wl,'
10631         lt_prog_compiler_pic='-fPIC'
10632         lt_prog_compiler_static='-static'
10633         ;;
10634       # Lahey Fortran 8.1.
10635       lf95*)
10636         lt_prog_compiler_wl='-Wl,'
10637         lt_prog_compiler_pic='--shared'
10638         lt_prog_compiler_static='--static'
10639         ;;
10640       nagfor*)
10641         # NAG Fortran compiler
10642         lt_prog_compiler_wl='-Wl,-Wl,,'
10643         lt_prog_compiler_pic='-PIC'
10644         lt_prog_compiler_static='-Bstatic'
10645         ;;
10646       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10647         # Portland Group compilers (*not* the Pentium gcc compiler,
10648         # which looks to be a dead project)
10649         lt_prog_compiler_wl='-Wl,'
10650         lt_prog_compiler_pic='-fpic'
10651         lt_prog_compiler_static='-Bstatic'
10652         ;;
10653       ccc*)
10654         lt_prog_compiler_wl='-Wl,'
10655         # All Alpha code is PIC.
10656         lt_prog_compiler_static='-non_shared'
10657         ;;
10658       xl* | bgxl* | bgf* | mpixl*)
10659         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10660         lt_prog_compiler_wl='-Wl,'
10661         lt_prog_compiler_pic='-qpic'
10662         lt_prog_compiler_static='-qstaticlink'
10663         ;;
10664       *)
10665         case `$CC -V 2>&1 | sed 5q` in
10666         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10667           # Sun Fortran 8.3 passes all unrecognized flags to the linker
10668           lt_prog_compiler_pic='-KPIC'
10669           lt_prog_compiler_static='-Bstatic'
10670           lt_prog_compiler_wl=''
10671           ;;
10672         *Sun\ F* | *Sun*Fortran*)
10673           lt_prog_compiler_pic='-KPIC'
10674           lt_prog_compiler_static='-Bstatic'
10675           lt_prog_compiler_wl='-Qoption ld '
10676           ;;
10677         *Sun\ C*)
10678           # Sun C 5.9
10679           lt_prog_compiler_pic='-KPIC'
10680           lt_prog_compiler_static='-Bstatic'
10681           lt_prog_compiler_wl='-Wl,'
10682           ;;
10683         *Intel*\ [CF]*Compiler*)
10684           lt_prog_compiler_wl='-Wl,'
10685           lt_prog_compiler_pic='-fPIC'
10686           lt_prog_compiler_static='-static'
10687           ;;
10688         *Portland\ Group*)
10689           lt_prog_compiler_wl='-Wl,'
10690           lt_prog_compiler_pic='-fpic'
10691           lt_prog_compiler_static='-Bstatic'
10692           ;;
10693         esac
10694         ;;
10695       esac
10696       ;;
10697
10698     newsos6)
10699       lt_prog_compiler_pic='-KPIC'
10700       lt_prog_compiler_static='-Bstatic'
10701       ;;
10702
10703     *nto* | *qnx*)
10704       # QNX uses GNU C++, but need to define -shared option too, otherwise
10705       # it will coredump.
10706       lt_prog_compiler_pic='-fPIC -shared'
10707       ;;
10708
10709     osf3* | osf4* | osf5*)
10710       lt_prog_compiler_wl='-Wl,'
10711       # All OSF/1 code is PIC.
10712       lt_prog_compiler_static='-non_shared'
10713       ;;
10714
10715     rdos*)
10716       lt_prog_compiler_static='-non_shared'
10717       ;;
10718
10719     solaris*)
10720       lt_prog_compiler_pic='-KPIC'
10721       lt_prog_compiler_static='-Bstatic'
10722       case $cc_basename in
10723       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10724         lt_prog_compiler_wl='-Qoption ld ';;
10725       *)
10726         lt_prog_compiler_wl='-Wl,';;
10727       esac
10728       ;;
10729
10730     sunos4*)
10731       lt_prog_compiler_wl='-Qoption ld '
10732       lt_prog_compiler_pic='-PIC'
10733       lt_prog_compiler_static='-Bstatic'
10734       ;;
10735
10736     sysv4 | sysv4.2uw2* | sysv4.3*)
10737       lt_prog_compiler_wl='-Wl,'
10738       lt_prog_compiler_pic='-KPIC'
10739       lt_prog_compiler_static='-Bstatic'
10740       ;;
10741
10742     sysv4*MP*)
10743       if test -d /usr/nec ;then
10744         lt_prog_compiler_pic='-Kconform_pic'
10745         lt_prog_compiler_static='-Bstatic'
10746       fi
10747       ;;
10748
10749     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10750       lt_prog_compiler_wl='-Wl,'
10751       lt_prog_compiler_pic='-KPIC'
10752       lt_prog_compiler_static='-Bstatic'
10753       ;;
10754
10755     unicos*)
10756       lt_prog_compiler_wl='-Wl,'
10757       lt_prog_compiler_can_build_shared=no
10758       ;;
10759
10760     uts4*)
10761       lt_prog_compiler_pic='-pic'
10762       lt_prog_compiler_static='-Bstatic'
10763       ;;
10764
10765     *)
10766       lt_prog_compiler_can_build_shared=no
10767       ;;
10768     esac
10769   fi
10770
10771 case $host_os in
10772   # For platforms which do not support PIC, -DPIC is meaningless:
10773   *djgpp*)
10774     lt_prog_compiler_pic=
10775     ;;
10776   *)
10777     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10778     ;;
10779 esac
10780
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10782 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10783 if ${lt_cv_prog_compiler_pic+:} false; then :
10784   $as_echo_n "(cached) " >&6
10785 else
10786   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10787 fi
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10789 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10790 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10791
10792 #
10793 # Check to make sure the PIC flag actually works.
10794 #
10795 if test -n "$lt_prog_compiler_pic"; then
10796   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10797 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10798 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10799   $as_echo_n "(cached) " >&6
10800 else
10801   lt_cv_prog_compiler_pic_works=no
10802    ac_outfile=conftest.$ac_objext
10803    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10804    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10805    # Insert the option either (1) after the last *FLAGS variable, or
10806    # (2) before a word containing "conftest.", or (3) at the end.
10807    # Note that $ac_compile itself does not contain backslashes and begins
10808    # with a dollar sign (not a hyphen), so the echo should work correctly.
10809    # The option is referenced via a variable to avoid confusing sed.
10810    lt_compile=`echo "$ac_compile" | $SED \
10811    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10812    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10813    -e 's:$: $lt_compiler_flag:'`
10814    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10815    (eval "$lt_compile" 2>conftest.err)
10816    ac_status=$?
10817    cat conftest.err >&5
10818    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819    if (exit $ac_status) && test -s "$ac_outfile"; then
10820      # The compiler can only warn and ignore the option if not recognized
10821      # So say no if there are warnings other than the usual output.
10822      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10823      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10824      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10825        lt_cv_prog_compiler_pic_works=yes
10826      fi
10827    fi
10828    $RM conftest*
10829
10830 fi
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10832 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10833
10834 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10835     case $lt_prog_compiler_pic in
10836      "" | " "*) ;;
10837      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10838      esac
10839 else
10840     lt_prog_compiler_pic=
10841      lt_prog_compiler_can_build_shared=no
10842 fi
10843
10844 fi
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856 #
10857 # Check to make sure the static flag actually works.
10858 #
10859 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10861 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10862 if ${lt_cv_prog_compiler_static_works+:} false; then :
10863   $as_echo_n "(cached) " >&6
10864 else
10865   lt_cv_prog_compiler_static_works=no
10866    save_LDFLAGS="$LDFLAGS"
10867    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10868    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10869    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10870      # The linker can only warn and ignore the option if not recognized
10871      # So say no if there are warnings
10872      if test -s conftest.err; then
10873        # Append any errors to the config.log.
10874        cat conftest.err 1>&5
10875        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10876        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10877        if diff conftest.exp conftest.er2 >/dev/null; then
10878          lt_cv_prog_compiler_static_works=yes
10879        fi
10880      else
10881        lt_cv_prog_compiler_static_works=yes
10882      fi
10883    fi
10884    $RM -r conftest*
10885    LDFLAGS="$save_LDFLAGS"
10886
10887 fi
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10889 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10890
10891 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10892     :
10893 else
10894     lt_prog_compiler_static=
10895 fi
10896
10897
10898
10899
10900
10901
10902
10903   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10904 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10905 if ${lt_cv_prog_compiler_c_o+:} false; then :
10906   $as_echo_n "(cached) " >&6
10907 else
10908   lt_cv_prog_compiler_c_o=no
10909    $RM -r conftest 2>/dev/null
10910    mkdir conftest
10911    cd conftest
10912    mkdir out
10913    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10914
10915    lt_compiler_flag="-o out/conftest2.$ac_objext"
10916    # Insert the option either (1) after the last *FLAGS variable, or
10917    # (2) before a word containing "conftest.", or (3) at the end.
10918    # Note that $ac_compile itself does not contain backslashes and begins
10919    # with a dollar sign (not a hyphen), so the echo should work correctly.
10920    lt_compile=`echo "$ac_compile" | $SED \
10921    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10922    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10923    -e 's:$: $lt_compiler_flag:'`
10924    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10925    (eval "$lt_compile" 2>out/conftest.err)
10926    ac_status=$?
10927    cat out/conftest.err >&5
10928    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10930    then
10931      # The compiler can only warn and ignore the option if not recognized
10932      # So say no if there are warnings
10933      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10934      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10935      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10936        lt_cv_prog_compiler_c_o=yes
10937      fi
10938    fi
10939    chmod u+w . 2>&5
10940    $RM conftest*
10941    # SGI C++ compiler will create directory out/ii_files/ for
10942    # template instantiation
10943    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10944    $RM out/* && rmdir out
10945    cd ..
10946    $RM -r conftest
10947    $RM conftest*
10948
10949 fi
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10951 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10952
10953
10954
10955
10956
10957
10958   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10959 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10960 if ${lt_cv_prog_compiler_c_o+:} false; then :
10961   $as_echo_n "(cached) " >&6
10962 else
10963   lt_cv_prog_compiler_c_o=no
10964    $RM -r conftest 2>/dev/null
10965    mkdir conftest
10966    cd conftest
10967    mkdir out
10968    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10969
10970    lt_compiler_flag="-o out/conftest2.$ac_objext"
10971    # Insert the option either (1) after the last *FLAGS variable, or
10972    # (2) before a word containing "conftest.", or (3) at the end.
10973    # Note that $ac_compile itself does not contain backslashes and begins
10974    # with a dollar sign (not a hyphen), so the echo should work correctly.
10975    lt_compile=`echo "$ac_compile" | $SED \
10976    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10977    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10978    -e 's:$: $lt_compiler_flag:'`
10979    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10980    (eval "$lt_compile" 2>out/conftest.err)
10981    ac_status=$?
10982    cat out/conftest.err >&5
10983    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10985    then
10986      # The compiler can only warn and ignore the option if not recognized
10987      # So say no if there are warnings
10988      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10989      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10990      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10991        lt_cv_prog_compiler_c_o=yes
10992      fi
10993    fi
10994    chmod u+w . 2>&5
10995    $RM conftest*
10996    # SGI C++ compiler will create directory out/ii_files/ for
10997    # template instantiation
10998    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10999    $RM out/* && rmdir out
11000    cd ..
11001    $RM -r conftest
11002    $RM conftest*
11003
11004 fi
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11006 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11007
11008
11009
11010
11011 hard_links="nottested"
11012 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
11013   # do not overwrite the value of need_locks provided by the user
11014   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11015 $as_echo_n "checking if we can lock with hard links... " >&6; }
11016   hard_links=yes
11017   $RM conftest*
11018   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11019   touch conftest.a
11020   ln conftest.a conftest.b 2>&5 || hard_links=no
11021   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11023 $as_echo "$hard_links" >&6; }
11024   if test "$hard_links" = no; then
11025     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11026 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11027     need_locks=warn
11028   fi
11029 else
11030   need_locks=no
11031 fi
11032
11033
11034
11035
11036
11037
11038   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11039 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11040
11041   runpath_var=
11042   allow_undefined_flag=
11043   always_export_symbols=no
11044   archive_cmds=
11045   archive_expsym_cmds=
11046   compiler_needs_object=no
11047   enable_shared_with_static_runtimes=no
11048   export_dynamic_flag_spec=
11049   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11050   hardcode_automatic=no
11051   hardcode_direct=no
11052   hardcode_direct_absolute=no
11053   hardcode_libdir_flag_spec=
11054   hardcode_libdir_separator=
11055   hardcode_minus_L=no
11056   hardcode_shlibpath_var=unsupported
11057   inherit_rpath=no
11058   link_all_deplibs=unknown
11059   module_cmds=
11060   module_expsym_cmds=
11061   old_archive_from_new_cmds=
11062   old_archive_from_expsyms_cmds=
11063   thread_safe_flag_spec=
11064   whole_archive_flag_spec=
11065   # include_expsyms should be a list of space-separated symbols to be *always*
11066   # included in the symbol list
11067   include_expsyms=
11068   # exclude_expsyms can be an extended regexp of symbols to exclude
11069   # it will be wrapped by ` (' and `)$', so one must not match beginning or
11070   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11071   # as well as any symbol that contains `d'.
11072   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11073   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11074   # platforms (ab)use it in PIC code, but their linkers get confused if
11075   # the symbol is explicitly referenced.  Since portable code cannot
11076   # rely on this symbol name, it's probably fine to never include it in
11077   # preloaded symbol tables.
11078   # Exclude shared library initialization/finalization symbols.
11079   extract_expsyms_cmds=
11080
11081   case $host_os in
11082   cygwin* | mingw* | pw32* | cegcc*)
11083     # FIXME: the MSVC++ port hasn't been tested in a loooong time
11084     # When not using gcc, we currently assume that we are using
11085     # Microsoft Visual C++.
11086     if test "$GCC" != yes; then
11087       with_gnu_ld=no
11088     fi
11089     ;;
11090   interix*)
11091     # we just hope/assume this is gcc and not c89 (= MSVC++)
11092     with_gnu_ld=yes
11093     ;;
11094   openbsd*)
11095     with_gnu_ld=no
11096     ;;
11097   linux* | k*bsd*-gnu | gnu*)
11098     link_all_deplibs=no
11099     ;;
11100   esac
11101
11102   ld_shlibs=yes
11103
11104   # On some targets, GNU ld is compatible enough with the native linker
11105   # that we're better off using the native interface for both.
11106   lt_use_gnu_ld_interface=no
11107   if test "$with_gnu_ld" = yes; then
11108     case $host_os in
11109       aix*)
11110         # The AIX port of GNU ld has always aspired to compatibility
11111         # with the native linker.  However, as the warning in the GNU ld
11112         # block says, versions before 2.19.5* couldn't really create working
11113         # shared libraries, regardless of the interface used.
11114         case `$LD -v 2>&1` in
11115           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11116           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11117           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11118           *)
11119             lt_use_gnu_ld_interface=yes
11120             ;;
11121         esac
11122         ;;
11123       *)
11124         lt_use_gnu_ld_interface=yes
11125         ;;
11126     esac
11127   fi
11128
11129   if test "$lt_use_gnu_ld_interface" = yes; then
11130     # If archive_cmds runs LD, not CC, wlarc should be empty
11131     wlarc='${wl}'
11132
11133     # Set some defaults for GNU ld with shared library support. These
11134     # are reset later if shared libraries are not supported. Putting them
11135     # here allows them to be overridden if necessary.
11136     runpath_var=LD_RUN_PATH
11137     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11138     export_dynamic_flag_spec='${wl}--export-dynamic'
11139     # ancient GNU ld didn't support --whole-archive et. al.
11140     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11141       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11142     else
11143       whole_archive_flag_spec=
11144     fi
11145     supports_anon_versioning=no
11146     case `$LD -v 2>&1` in
11147       *GNU\ gold*) supports_anon_versioning=yes ;;
11148       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11149       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11150       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11151       *\ 2.11.*) ;; # other 2.11 versions
11152       *) supports_anon_versioning=yes ;;
11153     esac
11154
11155     # See if GNU ld supports shared libraries.
11156     case $host_os in
11157     aix[3-9]*)
11158       # On AIX/PPC, the GNU linker is very broken
11159       if test "$host_cpu" != ia64; then
11160         ld_shlibs=no
11161         cat <<_LT_EOF 1>&2
11162
11163 *** Warning: the GNU linker, at least up to release 2.19, is reported
11164 *** to be unable to reliably create shared libraries on AIX.
11165 *** Therefore, libtool is disabling shared libraries support.  If you
11166 *** really care for shared libraries, you may want to install binutils
11167 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11168 *** You will then need to restart the configuration process.
11169
11170 _LT_EOF
11171       fi
11172       ;;
11173
11174     amigaos*)
11175       case $host_cpu in
11176       powerpc)
11177             # see comment about AmigaOS4 .so support
11178             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11179             archive_expsym_cmds=''
11180         ;;
11181       m68k)
11182             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)'
11183             hardcode_libdir_flag_spec='-L$libdir'
11184             hardcode_minus_L=yes
11185         ;;
11186       esac
11187       ;;
11188
11189     beos*)
11190       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11191         allow_undefined_flag=unsupported
11192         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11193         # support --undefined.  This deserves some investigation.  FIXME
11194         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11195       else
11196         ld_shlibs=no
11197       fi
11198       ;;
11199
11200     cygwin* | mingw* | pw32* | cegcc*)
11201       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11202       # as there is no search path for DLLs.
11203       hardcode_libdir_flag_spec='-L$libdir'
11204       export_dynamic_flag_spec='${wl}--export-all-symbols'
11205       allow_undefined_flag=unsupported
11206       always_export_symbols=no
11207       enable_shared_with_static_runtimes=yes
11208       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'
11209       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11210
11211       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11212         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11213         # If the export-symbols file already is a .def file (1st line
11214         # is EXPORTS), use it as is; otherwise, prepend...
11215         archive_expsym_cmds='if test "x`$SED \"$sed_uncomment_deffile\" $export_symbols | $SED 1q`" = xEXPORTS; then
11216           cp $export_symbols $output_objdir/$soname.def;
11217         else
11218           echo EXPORTS > $output_objdir/$soname.def;
11219           cat $export_symbols >> $output_objdir/$soname.def;
11220         fi~
11221         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11222       else
11223         ld_shlibs=no
11224       fi
11225       ;;
11226
11227     haiku*)
11228       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11229       link_all_deplibs=yes
11230       ;;
11231
11232     interix[3-9]*)
11233       hardcode_direct=no
11234       hardcode_shlibpath_var=no
11235       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11236       export_dynamic_flag_spec='${wl}-E'
11237       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11238       # Instead, shared libraries are loaded at an image base (0x10000000 by
11239       # default) and relocated if they conflict, which is a slow very memory
11240       # consuming and fragmenting process.  To avoid this, we pick a random,
11241       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11242       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11243       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11244       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'
11245       ;;
11246
11247     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11248       tmp_diet=no
11249       if test "$host_os" = linux-dietlibc; then
11250         case $cc_basename in
11251           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
11252         esac
11253       fi
11254       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11255          && test "$tmp_diet" = no
11256       then
11257         tmp_addflag=' $pic_flag'
11258         tmp_sharedflag='-shared'
11259         case $cc_basename,$host_cpu in
11260         pgcc*)                          # Portland Group C compiler
11261           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'
11262           tmp_addflag=' $pic_flag'
11263           ;;
11264         pgf77* | pgf90* | pgf95* | pgfortran*)
11265                                         # Portland Group f77 and f90 compilers
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 -Mnomain' ;;
11268         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
11269           tmp_addflag=' -i_dynamic' ;;
11270         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
11271           tmp_addflag=' -i_dynamic -nofor_main' ;;
11272         ifc* | ifort*)                  # Intel Fortran compiler
11273           tmp_addflag=' -nofor_main' ;;
11274         lf95*)                          # Lahey Fortran 8.1
11275           whole_archive_flag_spec=
11276           tmp_sharedflag='--shared' ;;
11277         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11278           tmp_sharedflag='-qmkshrobj'
11279           tmp_addflag= ;;
11280         nvcc*)  # Cuda Compiler Driver 2.2
11281           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'
11282           compiler_needs_object=yes
11283           ;;
11284         esac
11285         case `$CC -V 2>&1 | sed 5q` in
11286         *Sun\ C*)                       # Sun C 5.9
11287           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'
11288           compiler_needs_object=yes
11289           tmp_sharedflag='-G' ;;
11290         *Sun\ F*)                       # Sun Fortran 8.3
11291           tmp_sharedflag='-G' ;;
11292         esac
11293         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11294
11295         if test "x$supports_anon_versioning" = xyes; then
11296           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11297             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11298             echo "local: *; };" >> $output_objdir/$libname.ver~
11299             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11300         fi
11301
11302         case $cc_basename in
11303         xlf* | bgf* | bgxlf* | mpixlf*)
11304           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11305           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11306           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11307           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11308           if test "x$supports_anon_versioning" = xyes; then
11309             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11310               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11311               echo "local: *; };" >> $output_objdir/$libname.ver~
11312               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11313           fi
11314           ;;
11315         esac
11316       else
11317         ld_shlibs=no
11318       fi
11319       ;;
11320
11321     netbsd* | netbsdelf*-gnu)
11322       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11323         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11324         wlarc=
11325       else
11326         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11327         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11328       fi
11329       ;;
11330
11331     solaris*)
11332       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11333         ld_shlibs=no
11334         cat <<_LT_EOF 1>&2
11335
11336 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11337 *** create shared libraries on Solaris systems.  Therefore, libtool
11338 *** is disabling shared libraries support.  We urge you to upgrade GNU
11339 *** binutils to release 2.9.1 or newer.  Another option is to modify
11340 *** your PATH or compiler configuration so that the native linker is
11341 *** used, and then restart.
11342
11343 _LT_EOF
11344       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11345         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11346         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11347       else
11348         ld_shlibs=no
11349       fi
11350       ;;
11351
11352     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11353       case `$LD -v 2>&1` in
11354         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11355         ld_shlibs=no
11356         cat <<_LT_EOF 1>&2
11357
11358 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11359 *** reliably create shared libraries on SCO systems.  Therefore, libtool
11360 *** is disabling shared libraries support.  We urge you to upgrade GNU
11361 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11362 *** your PATH or compiler configuration so that the native linker is
11363 *** used, and then restart.
11364
11365 _LT_EOF
11366         ;;
11367         *)
11368           # For security reasons, it is highly recommended that you always
11369           # use absolute paths for naming shared libraries, and exclude the
11370           # DT_RUNPATH tag from executables and libraries.  But doing so
11371           # requires that you compile everything twice, which is a pain.
11372           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11373             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11374             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11375             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11376           else
11377             ld_shlibs=no
11378           fi
11379         ;;
11380       esac
11381       ;;
11382
11383     sunos4*)
11384       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11385       wlarc=
11386       hardcode_direct=yes
11387       hardcode_shlibpath_var=no
11388       ;;
11389
11390     *)
11391       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11392         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11393         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11394       else
11395         ld_shlibs=no
11396       fi
11397       ;;
11398     esac
11399
11400     if test "$ld_shlibs" = no; then
11401       runpath_var=
11402       hardcode_libdir_flag_spec=
11403       export_dynamic_flag_spec=
11404       whole_archive_flag_spec=
11405     fi
11406   else
11407     # PORTME fill in a description of your system's linker (not GNU ld)
11408     case $host_os in
11409     aix3*)
11410       allow_undefined_flag=unsupported
11411       always_export_symbols=yes
11412       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'
11413       # Note: this linker hardcodes the directories in LIBPATH if there
11414       # are no directories specified by -L.
11415       hardcode_minus_L=yes
11416       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11417         # Neither direct hardcoding nor static linking is supported with a
11418         # broken collect2.
11419         hardcode_direct=unsupported
11420       fi
11421       ;;
11422
11423     aix[4-9]*)
11424       if test "$host_cpu" = ia64; then
11425         # On IA64, the linker does run time linking by default, so we don't
11426         # have to do anything special.
11427         aix_use_runtimelinking=no
11428         exp_sym_flag='-Bexport'
11429         no_entry_flag=""
11430       else
11431         # If we're using GNU nm, then we don't want the "-C" option.
11432         # -C means demangle to AIX nm, but means don't demangle with GNU nm
11433         # Also, AIX nm treats weak defined symbols like other global
11434         # defined symbols, whereas GNU nm marks them as "W".
11435         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11436           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'
11437         else
11438           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'
11439         fi
11440         aix_use_runtimelinking=no
11441
11442         # Test if we are trying to use run time linking or normal
11443         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11444         # need to do runtime linking.
11445         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11446           for ld_flag in $LDFLAGS; do
11447           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11448             aix_use_runtimelinking=yes
11449             break
11450           fi
11451           done
11452           ;;
11453         esac
11454
11455         exp_sym_flag='-bexport'
11456         no_entry_flag='-bnoentry'
11457       fi
11458
11459       # When large executables or shared objects are built, AIX ld can
11460       # have problems creating the table of contents.  If linking a library
11461       # or program results in "error TOC overflow" add -mminimal-toc to
11462       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11463       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11464
11465       archive_cmds=''
11466       hardcode_direct=yes
11467       hardcode_direct_absolute=yes
11468       hardcode_libdir_separator=':'
11469       link_all_deplibs=yes
11470       file_list_spec='${wl}-f,'
11471
11472       if test "$GCC" = yes; then
11473         case $host_os in aix4.[012]|aix4.[012].*)
11474         # We only want to do this on AIX 4.2 and lower, the check
11475         # below for broken collect2 doesn't work under 4.3+
11476           collect2name=`${CC} -print-prog-name=collect2`
11477           if test -f "$collect2name" &&
11478            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11479           then
11480           # We have reworked collect2
11481           :
11482           else
11483           # We have old collect2
11484           hardcode_direct=unsupported
11485           # It fails to find uninstalled libraries when the uninstalled
11486           # path is not listed in the libpath.  Setting hardcode_minus_L
11487           # to unsupported forces relinking
11488           hardcode_minus_L=yes
11489           hardcode_libdir_flag_spec='-L$libdir'
11490           hardcode_libdir_separator=
11491           fi
11492           ;;
11493         esac
11494         shared_flag='-shared'
11495         if test "$aix_use_runtimelinking" = yes; then
11496           shared_flag="$shared_flag "'${wl}-G'
11497         fi
11498         link_all_deplibs=no
11499       else
11500         # not using gcc
11501         if test "$host_cpu" = ia64; then
11502         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11503         # chokes on -Wl,-G. The following line is correct:
11504           shared_flag='-G'
11505         else
11506           if test "$aix_use_runtimelinking" = yes; then
11507             shared_flag='${wl}-G'
11508           else
11509             shared_flag='${wl}-bM:SRE'
11510           fi
11511         fi
11512       fi
11513
11514       export_dynamic_flag_spec='${wl}-bexpall'
11515       # It seems that -bexpall does not export symbols beginning with
11516       # underscore (_), so it is better to generate a list of symbols to export.
11517       always_export_symbols=yes
11518       if test "$aix_use_runtimelinking" = yes; then
11519         # Warning - without using the other runtime loading flags (-brtl),
11520         # -berok will link without error, but may produce a broken library.
11521         allow_undefined_flag='-berok'
11522         # Determine the default libpath from the value encoded in an
11523         # empty executable.
11524         if test "${lt_cv_aix_libpath+set}" = set; then
11525   aix_libpath=$lt_cv_aix_libpath
11526 else
11527   if ${lt_cv_aix_libpath_+:} false; then :
11528   $as_echo_n "(cached) " >&6
11529 else
11530   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11531 /* end confdefs.h.  */
11532
11533 int
11534 main ()
11535 {
11536
11537   ;
11538   return 0;
11539 }
11540 _ACEOF
11541 if ac_fn_c_try_link "$LINENO"; then :
11542
11543   lt_aix_libpath_sed='
11544       /Import File Strings/,/^$/ {
11545           /^0/ {
11546               s/^0  *\([^ ]*\) *$/\1/
11547               p
11548           }
11549       }'
11550   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11551   # Check for a 64-bit object if we didn't find anything.
11552   if test -z "$lt_cv_aix_libpath_"; then
11553     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11554   fi
11555 fi
11556 rm -f core conftest.err conftest.$ac_objext \
11557     conftest$ac_exeext conftest.$ac_ext
11558   if test -z "$lt_cv_aix_libpath_"; then
11559     lt_cv_aix_libpath_="/usr/lib:/lib"
11560   fi
11561
11562 fi
11563
11564   aix_libpath=$lt_cv_aix_libpath_
11565 fi
11566
11567         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11568         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"
11569       else
11570         if test "$host_cpu" = ia64; then
11571           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11572           allow_undefined_flag="-z nodefs"
11573           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"
11574         else
11575          # Determine the default libpath from the value encoded in an
11576          # empty executable.
11577          if test "${lt_cv_aix_libpath+set}" = set; then
11578   aix_libpath=$lt_cv_aix_libpath
11579 else
11580   if ${lt_cv_aix_libpath_+:} false; then :
11581   $as_echo_n "(cached) " >&6
11582 else
11583   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11584 /* end confdefs.h.  */
11585
11586 int
11587 main ()
11588 {
11589
11590   ;
11591   return 0;
11592 }
11593 _ACEOF
11594 if ac_fn_c_try_link "$LINENO"; then :
11595
11596   lt_aix_libpath_sed='
11597       /Import File Strings/,/^$/ {
11598           /^0/ {
11599               s/^0  *\([^ ]*\) *$/\1/
11600               p
11601           }
11602       }'
11603   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11604   # Check for a 64-bit object if we didn't find anything.
11605   if test -z "$lt_cv_aix_libpath_"; then
11606     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11607   fi
11608 fi
11609 rm -f core conftest.err conftest.$ac_objext \
11610     conftest$ac_exeext conftest.$ac_ext
11611   if test -z "$lt_cv_aix_libpath_"; then
11612     lt_cv_aix_libpath_="/usr/lib:/lib"
11613   fi
11614
11615 fi
11616
11617   aix_libpath=$lt_cv_aix_libpath_
11618 fi
11619
11620          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11621           # Warning - without using the other run time loading flags,
11622           # -berok will link without error, but may produce a broken library.
11623           no_undefined_flag=' ${wl}-bernotok'
11624           allow_undefined_flag=' ${wl}-berok'
11625           if test "$with_gnu_ld" = yes; then
11626             # We only use this code for GNU lds that support --whole-archive.
11627             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11628           else
11629             # Exported symbols can be pulled into shared objects from archives
11630             whole_archive_flag_spec='$convenience'
11631           fi
11632           archive_cmds_need_lc=yes
11633           # This is similar to how AIX traditionally builds its shared libraries.
11634           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'
11635         fi
11636       fi
11637       ;;
11638
11639     amigaos*)
11640       case $host_cpu in
11641       powerpc)
11642             # see comment about AmigaOS4 .so support
11643             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11644             archive_expsym_cmds=''
11645         ;;
11646       m68k)
11647             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)'
11648             hardcode_libdir_flag_spec='-L$libdir'
11649             hardcode_minus_L=yes
11650         ;;
11651       esac
11652       ;;
11653
11654     bsdi[45]*)
11655       export_dynamic_flag_spec=-rdynamic
11656       ;;
11657
11658     cygwin* | mingw* | pw32* | cegcc*)
11659       # When not using gcc, we currently assume that we are using
11660       # Microsoft Visual C++.
11661       # hardcode_libdir_flag_spec is actually meaningless, as there is
11662       # no search path for DLLs.
11663       case $cc_basename in
11664       cl*)
11665         # Native MSVC
11666         hardcode_libdir_flag_spec=' '
11667         allow_undefined_flag=unsupported
11668         always_export_symbols=yes
11669         file_list_spec='@'
11670         # Tell ltmain to make .lib files, not .a files.
11671         libext=lib
11672         # Tell ltmain to make .dll files, not .so files.
11673         shrext_cmds=".dll"
11674         # FIXME: Setting linknames here is a bad hack.
11675         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11676         archive_expsym_cmds='if test "x`$SED \"$sed_uncomment_deffile\" $export_symbols | $SED 1q`" = xEXPORTS; then
11677             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11678           else
11679             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11680           fi~
11681           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11682           linknames='
11683         # The linker will not automatically build a static lib if we build a DLL.
11684         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11685         enable_shared_with_static_runtimes=yes
11686         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11687         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11688         # Don't use ranlib
11689         old_postinstall_cmds='chmod 644 $oldlib'
11690         postlink_cmds='lt_outputfile="@OUTPUT@"~
11691           lt_tool_outputfile="@TOOL_OUTPUT@"~
11692           case $lt_outputfile in
11693             *.exe|*.EXE) ;;
11694             *)
11695               lt_outputfile="$lt_outputfile.exe"
11696               lt_tool_outputfile="$lt_tool_outputfile.exe"
11697               ;;
11698           esac~
11699           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11700             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11701             $RM "$lt_outputfile.manifest";
11702           fi'
11703         ;;
11704       *)
11705         # Assume MSVC wrapper
11706         hardcode_libdir_flag_spec=' '
11707         allow_undefined_flag=unsupported
11708         # Tell ltmain to make .lib files, not .a files.
11709         libext=lib
11710         # Tell ltmain to make .dll files, not .so files.
11711         shrext_cmds=".dll"
11712         # FIXME: Setting linknames here is a bad hack.
11713         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11714         # The linker will automatically build a .lib file if we build a DLL.
11715         old_archive_from_new_cmds='true'
11716         # FIXME: Should let the user specify the lib program.
11717         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11718         enable_shared_with_static_runtimes=yes
11719         ;;
11720       esac
11721       ;;
11722
11723     darwin* | rhapsody*)
11724
11725
11726   archive_cmds_need_lc=no
11727   hardcode_direct=no
11728   hardcode_automatic=yes
11729   hardcode_shlibpath_var=unsupported
11730   if test "$lt_cv_ld_force_load" = "yes"; then
11731     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\"`'
11732
11733   else
11734     whole_archive_flag_spec=''
11735   fi
11736   link_all_deplibs=yes
11737   allow_undefined_flag="$_lt_dar_allow_undefined"
11738   case $cc_basename in
11739      ifort*) _lt_dar_can_shared=yes ;;
11740      *) _lt_dar_can_shared=$GCC ;;
11741   esac
11742   if test "$_lt_dar_can_shared" = "yes"; then
11743     output_verbose_link_cmd=func_echo_all
11744     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11745     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11746     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}"
11747     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}"
11748
11749   else
11750   ld_shlibs=no
11751   fi
11752
11753       ;;
11754
11755     dgux*)
11756       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11757       hardcode_libdir_flag_spec='-L$libdir'
11758       hardcode_shlibpath_var=no
11759       ;;
11760
11761     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11762     # support.  Future versions do this automatically, but an explicit c++rt0.o
11763     # does not break anything, and helps significantly (at the cost of a little
11764     # extra space).
11765     freebsd2.2*)
11766       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11767       hardcode_libdir_flag_spec='-R$libdir'
11768       hardcode_direct=yes
11769       hardcode_shlibpath_var=no
11770       ;;
11771
11772     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11773     freebsd2.*)
11774       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11775       hardcode_direct=yes
11776       hardcode_minus_L=yes
11777       hardcode_shlibpath_var=no
11778       ;;
11779
11780     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11781     freebsd* | dragonfly*)
11782       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11783       hardcode_libdir_flag_spec='-R$libdir'
11784       hardcode_direct=yes
11785       hardcode_shlibpath_var=no
11786       ;;
11787
11788     hpux9*)
11789       if test "$GCC" = yes; then
11790         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'
11791       else
11792         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'
11793       fi
11794       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11795       hardcode_libdir_separator=:
11796       hardcode_direct=yes
11797
11798       # hardcode_minus_L: Not really in the search PATH,
11799       # but as the default location of the library.
11800       hardcode_minus_L=yes
11801       export_dynamic_flag_spec='${wl}-E'
11802       ;;
11803
11804     hpux10*)
11805       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11806         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11807       else
11808         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11809       fi
11810       if test "$with_gnu_ld" = no; then
11811         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11812         hardcode_libdir_separator=:
11813         hardcode_direct=yes
11814         hardcode_direct_absolute=yes
11815         export_dynamic_flag_spec='${wl}-E'
11816         # hardcode_minus_L: Not really in the search PATH,
11817         # but as the default location of the library.
11818         hardcode_minus_L=yes
11819       fi
11820       ;;
11821
11822     hpux11*)
11823       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11824         case $host_cpu in
11825         hppa*64*)
11826           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11827           ;;
11828         ia64*)
11829           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11830           ;;
11831         *)
11832           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11833           ;;
11834         esac
11835       else
11836         case $host_cpu in
11837         hppa*64*)
11838           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11839           ;;
11840         ia64*)
11841           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11842           ;;
11843         *)
11844
11845           # Older versions of the 11.00 compiler do not understand -b yet
11846           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11847           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11848 $as_echo_n "checking if $CC understands -b... " >&6; }
11849 if ${lt_cv_prog_compiler__b+:} false; then :
11850   $as_echo_n "(cached) " >&6
11851 else
11852   lt_cv_prog_compiler__b=no
11853    save_LDFLAGS="$LDFLAGS"
11854    LDFLAGS="$LDFLAGS -b"
11855    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11856    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11857      # The linker can only warn and ignore the option if not recognized
11858      # So say no if there are warnings
11859      if test -s conftest.err; then
11860        # Append any errors to the config.log.
11861        cat conftest.err 1>&5
11862        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11863        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11864        if diff conftest.exp conftest.er2 >/dev/null; then
11865          lt_cv_prog_compiler__b=yes
11866        fi
11867      else
11868        lt_cv_prog_compiler__b=yes
11869      fi
11870    fi
11871    $RM -r conftest*
11872    LDFLAGS="$save_LDFLAGS"
11873
11874 fi
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11876 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11877
11878 if test x"$lt_cv_prog_compiler__b" = xyes; then
11879     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11880 else
11881     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11882 fi
11883
11884           ;;
11885         esac
11886       fi
11887       if test "$with_gnu_ld" = no; then
11888         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11889         hardcode_libdir_separator=:
11890
11891         case $host_cpu in
11892         hppa*64*|ia64*)
11893           hardcode_direct=no
11894           hardcode_shlibpath_var=no
11895           ;;
11896         *)
11897           hardcode_direct=yes
11898           hardcode_direct_absolute=yes
11899           export_dynamic_flag_spec='${wl}-E'
11900
11901           # hardcode_minus_L: Not really in the search PATH,
11902           # but as the default location of the library.
11903           hardcode_minus_L=yes
11904           ;;
11905         esac
11906       fi
11907       ;;
11908
11909     irix5* | irix6* | nonstopux*)
11910       if test "$GCC" = yes; then
11911         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'
11912         # Try to use the -exported_symbol ld option, if it does not
11913         # work, assume that -exports_file does not work either and
11914         # implicitly export all symbols.
11915         # This should be the same for all languages, so no per-tag cache variable.
11916         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11917 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11918 if ${lt_cv_irix_exported_symbol+:} false; then :
11919   $as_echo_n "(cached) " >&6
11920 else
11921   save_LDFLAGS="$LDFLAGS"
11922            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11923            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11924 /* end confdefs.h.  */
11925 int foo (void) { return 0; }
11926 _ACEOF
11927 if ac_fn_c_try_link "$LINENO"; then :
11928   lt_cv_irix_exported_symbol=yes
11929 else
11930   lt_cv_irix_exported_symbol=no
11931 fi
11932 rm -f core conftest.err conftest.$ac_objext \
11933     conftest$ac_exeext conftest.$ac_ext
11934            LDFLAGS="$save_LDFLAGS"
11935 fi
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11937 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11938         if test "$lt_cv_irix_exported_symbol" = yes; then
11939           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'
11940         fi
11941       else
11942         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'
11943         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'
11944       fi
11945       archive_cmds_need_lc='no'
11946       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11947       hardcode_libdir_separator=:
11948       inherit_rpath=yes
11949       link_all_deplibs=yes
11950       ;;
11951
11952     netbsd* | netbsdelf*-gnu)
11953       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11954         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11955       else
11956         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11957       fi
11958       hardcode_libdir_flag_spec='-R$libdir'
11959       hardcode_direct=yes
11960       hardcode_shlibpath_var=no
11961       ;;
11962
11963     newsos6)
11964       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11965       hardcode_direct=yes
11966       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11967       hardcode_libdir_separator=:
11968       hardcode_shlibpath_var=no
11969       ;;
11970
11971     *nto* | *qnx*)
11972       ;;
11973
11974     openbsd*)
11975       if test -f /usr/libexec/ld.so; then
11976         hardcode_direct=yes
11977         hardcode_shlibpath_var=no
11978         hardcode_direct_absolute=yes
11979         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11980           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11981           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11982           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11983           export_dynamic_flag_spec='${wl}-E'
11984         else
11985           case $host_os in
11986            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11987              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11988              hardcode_libdir_flag_spec='-R$libdir'
11989              ;;
11990            *)
11991              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11992              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11993              ;;
11994           esac
11995         fi
11996       else
11997         ld_shlibs=no
11998       fi
11999       ;;
12000
12001     os2*)
12002       hardcode_libdir_flag_spec='-L$libdir'
12003       hardcode_minus_L=yes
12004       allow_undefined_flag=unsupported
12005       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'
12006       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12007       ;;
12008
12009     osf3*)
12010       if test "$GCC" = yes; then
12011         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12012         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'
12013       else
12014         allow_undefined_flag=' -expect_unresolved \*'
12015         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'
12016       fi
12017       archive_cmds_need_lc='no'
12018       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12019       hardcode_libdir_separator=:
12020       ;;
12021
12022     osf4* | osf5*)      # as osf3* with the addition of -msym flag
12023       if test "$GCC" = yes; then
12024         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12025         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'
12026         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12027       else
12028         allow_undefined_flag=' -expect_unresolved \*'
12029         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'
12030         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~
12031         $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'
12032
12033         # Both c and cxx compiler support -rpath directly
12034         hardcode_libdir_flag_spec='-rpath $libdir'
12035       fi
12036       archive_cmds_need_lc='no'
12037       hardcode_libdir_separator=:
12038       ;;
12039
12040     solaris*)
12041       no_undefined_flag=' -z defs'
12042       if test "$GCC" = yes; then
12043         wlarc='${wl}'
12044         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12045         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12046           $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'
12047       else
12048         case `$CC -V 2>&1` in
12049         *"Compilers 5.0"*)
12050           wlarc=''
12051           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12052           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12053           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12054           ;;
12055         *)
12056           wlarc='${wl}'
12057           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12058           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12059           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12060           ;;
12061         esac
12062       fi
12063       hardcode_libdir_flag_spec='-R$libdir'
12064       hardcode_shlibpath_var=no
12065       case $host_os in
12066       solaris2.[0-5] | solaris2.[0-5].*) ;;
12067       *)
12068         # The compiler driver will combine and reorder linker options,
12069         # but understands `-z linker_flag'.  GCC discards it without `$wl',
12070         # but is careful enough not to reorder.
12071         # Supported since Solaris 2.6 (maybe 2.5.1?)
12072         if test "$GCC" = yes; then
12073           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12074         else
12075           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12076         fi
12077         ;;
12078       esac
12079       link_all_deplibs=yes
12080       ;;
12081
12082     sunos4*)
12083       if test "x$host_vendor" = xsequent; then
12084         # Use $CC to link under sequent, because it throws in some extra .o
12085         # files that make .init and .fini sections work.
12086         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12087       else
12088         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12089       fi
12090       hardcode_libdir_flag_spec='-L$libdir'
12091       hardcode_direct=yes
12092       hardcode_minus_L=yes
12093       hardcode_shlibpath_var=no
12094       ;;
12095
12096     sysv4)
12097       case $host_vendor in
12098         sni)
12099           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12100           hardcode_direct=yes # is this really true???
12101         ;;
12102         siemens)
12103           ## LD is ld it makes a PLAMLIB
12104           ## CC just makes a GrossModule.
12105           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12106           reload_cmds='$CC -r -o $output$reload_objs'
12107           hardcode_direct=no
12108         ;;
12109         motorola)
12110           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12111           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12112         ;;
12113       esac
12114       runpath_var='LD_RUN_PATH'
12115       hardcode_shlibpath_var=no
12116       ;;
12117
12118     sysv4.3*)
12119       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12120       hardcode_shlibpath_var=no
12121       export_dynamic_flag_spec='-Bexport'
12122       ;;
12123
12124     sysv4*MP*)
12125       if test -d /usr/nec; then
12126         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12127         hardcode_shlibpath_var=no
12128         runpath_var=LD_RUN_PATH
12129         hardcode_runpath_var=yes
12130         ld_shlibs=yes
12131       fi
12132       ;;
12133
12134     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12135       no_undefined_flag='${wl}-z,text'
12136       archive_cmds_need_lc=no
12137       hardcode_shlibpath_var=no
12138       runpath_var='LD_RUN_PATH'
12139
12140       if test "$GCC" = yes; then
12141         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12142         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12143       else
12144         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12145         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12146       fi
12147       ;;
12148
12149     sysv5* | sco3.2v5* | sco5v6*)
12150       # Note: We can NOT use -z defs as we might desire, because we do not
12151       # link with -lc, and that would cause any symbols used from libc to
12152       # always be unresolved, which means just about no library would
12153       # ever link correctly.  If we're not using GNU ld we use -z text
12154       # though, which does catch some bad symbols but isn't as heavy-handed
12155       # as -z defs.
12156       no_undefined_flag='${wl}-z,text'
12157       allow_undefined_flag='${wl}-z,nodefs'
12158       archive_cmds_need_lc=no
12159       hardcode_shlibpath_var=no
12160       hardcode_libdir_flag_spec='${wl}-R,$libdir'
12161       hardcode_libdir_separator=':'
12162       link_all_deplibs=yes
12163       export_dynamic_flag_spec='${wl}-Bexport'
12164       runpath_var='LD_RUN_PATH'
12165
12166       if test "$GCC" = yes; then
12167         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12168         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12169       else
12170         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12171         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12172       fi
12173       ;;
12174
12175     uts4*)
12176       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12177       hardcode_libdir_flag_spec='-L$libdir'
12178       hardcode_shlibpath_var=no
12179       ;;
12180
12181     *)
12182       ld_shlibs=no
12183       ;;
12184     esac
12185
12186     if test x$host_vendor = xsni; then
12187       case $host in
12188       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12189         export_dynamic_flag_spec='${wl}-Blargedynsym'
12190         ;;
12191       esac
12192     fi
12193   fi
12194
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12196 $as_echo "$ld_shlibs" >&6; }
12197 test "$ld_shlibs" = no && can_build_shared=no
12198
12199 with_gnu_ld=$with_gnu_ld
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215 #
12216 # Do we need to explicitly link libc?
12217 #
12218 case "x$archive_cmds_need_lc" in
12219 x|xyes)
12220   # Assume -lc should be added
12221   archive_cmds_need_lc=yes
12222
12223   if test "$enable_shared" = yes && test "$GCC" = yes; then
12224     case $archive_cmds in
12225     *'~'*)
12226       # FIXME: we may have to deal with multi-command sequences.
12227       ;;
12228     '$CC '*)
12229       # Test whether the compiler implicitly links with -lc since on some
12230       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12231       # to ld, don't add -lc before -lgcc.
12232       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12233 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12234 if ${lt_cv_archive_cmds_need_lc+:} false; then :
12235   $as_echo_n "(cached) " >&6
12236 else
12237   $RM conftest*
12238         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12239
12240         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12241   (eval $ac_compile) 2>&5
12242   ac_status=$?
12243   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12244   test $ac_status = 0; } 2>conftest.err; then
12245           soname=conftest
12246           lib=conftest
12247           libobjs=conftest.$ac_objext
12248           deplibs=
12249           wl=$lt_prog_compiler_wl
12250           pic_flag=$lt_prog_compiler_pic
12251           compiler_flags=-v
12252           linker_flags=-v
12253           verstring=
12254           output_objdir=.
12255           libname=conftest
12256           lt_save_allow_undefined_flag=$allow_undefined_flag
12257           allow_undefined_flag=
12258           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12259   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12260   ac_status=$?
12261   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12262   test $ac_status = 0; }
12263           then
12264             lt_cv_archive_cmds_need_lc=no
12265           else
12266             lt_cv_archive_cmds_need_lc=yes
12267           fi
12268           allow_undefined_flag=$lt_save_allow_undefined_flag
12269         else
12270           cat conftest.err 1>&5
12271         fi
12272         $RM conftest*
12273
12274 fi
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12276 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12277       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12278       ;;
12279     esac
12280   fi
12281   ;;
12282 esac
12283
12284
12285
12286
12287
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12436 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12437
12438 if test "$GCC" = yes; then
12439   case $host_os in
12440     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12441     *) lt_awk_arg="/^libraries:/" ;;
12442   esac
12443   case $host_os in
12444     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12445     *) lt_sed_strip_eq="s,=/,/,g" ;;
12446   esac
12447   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12448   case $lt_search_path_spec in
12449   *\;*)
12450     # if the path contains ";" then we assume it to be the separator
12451     # otherwise default to the standard path separator (i.e. ":") - it is
12452     # assumed that no part of a normal pathname contains ";" but that should
12453     # okay in the real world where ";" in dirpaths is itself problematic.
12454     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12455     ;;
12456   *)
12457     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12458     ;;
12459   esac
12460   # Ok, now we have the path, separated by spaces, we can step through it
12461   # and add multilib dir if necessary.
12462   lt_tmp_lt_search_path_spec=
12463   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12464   for lt_sys_path in $lt_search_path_spec; do
12465     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12466       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12467     else
12468       test -d "$lt_sys_path" && \
12469         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12470     fi
12471   done
12472   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12473 BEGIN {RS=" "; FS="/|\n";} {
12474   lt_foo="";
12475   lt_count=0;
12476   for (lt_i = NF; lt_i > 0; lt_i--) {
12477     if ($lt_i != "" && $lt_i != ".") {
12478       if ($lt_i == "..") {
12479         lt_count++;
12480       } else {
12481         if (lt_count == 0) {
12482           lt_foo="/" $lt_i lt_foo;
12483         } else {
12484           lt_count--;
12485         }
12486       }
12487     }
12488   }
12489   if (lt_foo != "") { lt_freq[lt_foo]++; }
12490   if (lt_freq[lt_foo] == 1) { print lt_foo; }
12491 }'`
12492   # AWK program above erroneously prepends '/' to C:/dos/paths
12493   # for these hosts.
12494   case $host_os in
12495     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12496       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12497   esac
12498   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12499 else
12500   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12501 fi
12502 library_names_spec=
12503 libname_spec='lib$name'
12504 soname_spec=
12505 shrext_cmds=".so"
12506 postinstall_cmds=
12507 postuninstall_cmds=
12508 finish_cmds=
12509 finish_eval=
12510 shlibpath_var=
12511 shlibpath_overrides_runpath=unknown
12512 version_type=none
12513 dynamic_linker="$host_os ld.so"
12514 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12515 need_lib_prefix=unknown
12516 hardcode_into_libs=no
12517
12518 # when you set need_version to no, make sure it does not cause -set_version
12519 # flags to be left without arguments
12520 need_version=unknown
12521
12522 case $host_os in
12523 aix3*)
12524   version_type=linux # correct to gnu/linux during the next big refactor
12525   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12526   shlibpath_var=LIBPATH
12527
12528   # AIX 3 has no versioning support, so we append a major version to the name.
12529   soname_spec='${libname}${release}${shared_ext}$major'
12530   ;;
12531
12532 aix[4-9]*)
12533   version_type=linux # correct to gnu/linux during the next big refactor
12534   need_lib_prefix=no
12535   need_version=no
12536   hardcode_into_libs=yes
12537   if test "$host_cpu" = ia64; then
12538     # AIX 5 supports IA64
12539     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12540     shlibpath_var=LD_LIBRARY_PATH
12541   else
12542     # With GCC up to 2.95.x, collect2 would create an import file
12543     # for dependence libraries.  The import file would start with
12544     # the line `#! .'.  This would cause the generated library to
12545     # depend on `.', always an invalid library.  This was fixed in
12546     # development snapshots of GCC prior to 3.0.
12547     case $host_os in
12548       aix4 | aix4.[01] | aix4.[01].*)
12549       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12550            echo ' yes '
12551            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12552         :
12553       else
12554         can_build_shared=no
12555       fi
12556       ;;
12557     esac
12558     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12559     # soname into executable. Probably we can add versioning support to
12560     # collect2, so additional links can be useful in future.
12561     if test "$aix_use_runtimelinking" = yes; then
12562       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12563       # instead of lib<name>.a to let people know that these are not
12564       # typical AIX shared libraries.
12565       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12566     else
12567       # We preserve .a as extension for shared libraries through AIX4.2
12568       # and later when we are not doing run time linking.
12569       library_names_spec='${libname}${release}.a $libname.a'
12570       soname_spec='${libname}${release}${shared_ext}$major'
12571     fi
12572     shlibpath_var=LIBPATH
12573   fi
12574   ;;
12575
12576 amigaos*)
12577   case $host_cpu in
12578   powerpc)
12579     # Since July 2007 AmigaOS4 officially supports .so libraries.
12580     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12581     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12582     ;;
12583   m68k)
12584     library_names_spec='$libname.ixlibrary $libname.a'
12585     # Create ${libname}_ixlibrary.a entries in /sys/libs.
12586     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'
12587     ;;
12588   esac
12589   ;;
12590
12591 beos*)
12592   library_names_spec='${libname}${shared_ext}'
12593   dynamic_linker="$host_os ld.so"
12594   shlibpath_var=LIBRARY_PATH
12595   ;;
12596
12597 bsdi[45]*)
12598   version_type=linux # correct to gnu/linux during the next big refactor
12599   need_version=no
12600   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12601   soname_spec='${libname}${release}${shared_ext}$major'
12602   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12603   shlibpath_var=LD_LIBRARY_PATH
12604   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12605   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12606   # the default ld.so.conf also contains /usr/contrib/lib and
12607   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12608   # libtool to hard-code these into programs
12609   ;;
12610
12611 cygwin* | mingw* | pw32* | cegcc*)
12612   version_type=windows
12613   shrext_cmds=".dll"
12614   need_version=no
12615   need_lib_prefix=no
12616
12617   case $GCC,$cc_basename in
12618   yes,*)
12619     # gcc
12620     library_names_spec='$libname.dll.a'
12621     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12622     postinstall_cmds='base_file=`basename \${file}`~
12623       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12624       dldir=$destdir/`dirname \$dlpath`~
12625       test -d \$dldir || mkdir -p \$dldir~
12626       $install_prog $dir/$dlname \$dldir/$dlname~
12627       chmod a+x \$dldir/$dlname~
12628       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12629         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12630       fi'
12631     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12632       dlpath=$dir/\$dldll~
12633        $RM \$dlpath'
12634     shlibpath_overrides_runpath=yes
12635
12636     case $host_os in
12637     cygwin*)
12638       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12639       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12640
12641       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12642       ;;
12643     mingw* | cegcc*)
12644       # MinGW DLLs use traditional 'lib' prefix
12645       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12646       ;;
12647     pw32*)
12648       # pw32 DLLs use 'pw' prefix rather than 'lib'
12649       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12650       ;;
12651     esac
12652     dynamic_linker='Win32 ld.exe'
12653     ;;
12654
12655   *,cl*)
12656     # Native MSVC
12657     libname_spec='$name'
12658     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12659     library_names_spec='${libname}.dll.lib'
12660
12661     case $build_os in
12662     mingw*)
12663       sys_lib_search_path_spec=
12664       lt_save_ifs=$IFS
12665       IFS=';'
12666       for lt_path in $LIB
12667       do
12668         IFS=$lt_save_ifs
12669         # Let DOS variable expansion print the short 8.3 style file name.
12670         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12671         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12672       done
12673       IFS=$lt_save_ifs
12674       # Convert to MSYS style.
12675       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12676       ;;
12677     cygwin*)
12678       # Convert to unix form, then to dos form, then back to unix form
12679       # but this time dos style (no spaces!) so that the unix form looks
12680       # like /cygdrive/c/PROGRA~1:/cygdr...
12681       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12682       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12683       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12684       ;;
12685     *)
12686       sys_lib_search_path_spec="$LIB"
12687       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12688         # It is most probably a Windows format PATH.
12689         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12690       else
12691         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12692       fi
12693       # FIXME: find the short name or the path components, as spaces are
12694       # common. (e.g. "Program Files" -> "PROGRA~1")
12695       ;;
12696     esac
12697
12698     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12699     postinstall_cmds='base_file=`basename \${file}`~
12700       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12701       dldir=$destdir/`dirname \$dlpath`~
12702       test -d \$dldir || mkdir -p \$dldir~
12703       $install_prog $dir/$dlname \$dldir/$dlname'
12704     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12705       dlpath=$dir/\$dldll~
12706        $RM \$dlpath'
12707     shlibpath_overrides_runpath=yes
12708     dynamic_linker='Win32 link.exe'
12709     ;;
12710
12711   *)
12712     # Assume MSVC wrapper
12713     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12714     dynamic_linker='Win32 ld.exe'
12715     ;;
12716   esac
12717   # FIXME: first we should search . and the directory the executable is in
12718   shlibpath_var=PATH
12719   ;;
12720
12721 darwin* | rhapsody*)
12722   dynamic_linker="$host_os dyld"
12723   version_type=darwin
12724   need_lib_prefix=no
12725   need_version=no
12726   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12727   soname_spec='${libname}${release}${major}$shared_ext'
12728   shlibpath_overrides_runpath=yes
12729   shlibpath_var=DYLD_LIBRARY_PATH
12730   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12731
12732   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12733   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12734   ;;
12735
12736 dgux*)
12737   version_type=linux # correct to gnu/linux during the next big refactor
12738   need_lib_prefix=no
12739   need_version=no
12740   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12741   soname_spec='${libname}${release}${shared_ext}$major'
12742   shlibpath_var=LD_LIBRARY_PATH
12743   ;;
12744
12745 freebsd* | dragonfly*)
12746   # DragonFly does not have aout.  When/if they implement a new
12747   # versioning mechanism, adjust this.
12748   if test -x /usr/bin/objformat; then
12749     objformat=`/usr/bin/objformat`
12750   else
12751     case $host_os in
12752     freebsd[23].*) objformat=aout ;;
12753     *) objformat=elf ;;
12754     esac
12755   fi
12756   version_type=freebsd-$objformat
12757   case $version_type in
12758     freebsd-elf*)
12759       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12760       need_version=no
12761       need_lib_prefix=no
12762       ;;
12763     freebsd-*)
12764       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12765       need_version=yes
12766       ;;
12767   esac
12768   shlibpath_var=LD_LIBRARY_PATH
12769   case $host_os in
12770   freebsd2.*)
12771     shlibpath_overrides_runpath=yes
12772     ;;
12773   freebsd3.[01]* | freebsdelf3.[01]*)
12774     shlibpath_overrides_runpath=yes
12775     hardcode_into_libs=yes
12776     ;;
12777   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12778   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12779     shlibpath_overrides_runpath=no
12780     hardcode_into_libs=yes
12781     ;;
12782   *) # from 4.6 on, and DragonFly
12783     shlibpath_overrides_runpath=yes
12784     hardcode_into_libs=yes
12785     ;;
12786   esac
12787   ;;
12788
12789 gnu*)
12790   version_type=linux # correct to gnu/linux during the next big refactor
12791   need_lib_prefix=no
12792   need_version=no
12793   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12794   soname_spec='${libname}${release}${shared_ext}$major'
12795   shlibpath_var=LD_LIBRARY_PATH
12796   shlibpath_overrides_runpath=no
12797   hardcode_into_libs=yes
12798   ;;
12799
12800 haiku*)
12801   version_type=linux # correct to gnu/linux during the next big refactor
12802   need_lib_prefix=no
12803   need_version=no
12804   dynamic_linker="$host_os runtime_loader"
12805   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12806   soname_spec='${libname}${release}${shared_ext}$major'
12807   shlibpath_var=LIBRARY_PATH
12808   shlibpath_overrides_runpath=yes
12809   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12810   hardcode_into_libs=yes
12811   ;;
12812
12813 hpux9* | hpux10* | hpux11*)
12814   # Give a soname corresponding to the major version so that dld.sl refuses to
12815   # link against other versions.
12816   version_type=sunos
12817   need_lib_prefix=no
12818   need_version=no
12819   case $host_cpu in
12820   ia64*)
12821     shrext_cmds='.so'
12822     hardcode_into_libs=yes
12823     dynamic_linker="$host_os dld.so"
12824     shlibpath_var=LD_LIBRARY_PATH
12825     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12826     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12827     soname_spec='${libname}${release}${shared_ext}$major'
12828     if test "X$HPUX_IA64_MODE" = X32; then
12829       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12830     else
12831       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12832     fi
12833     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12834     ;;
12835   hppa*64*)
12836     shrext_cmds='.sl'
12837     hardcode_into_libs=yes
12838     dynamic_linker="$host_os dld.sl"
12839     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12840     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12841     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12842     soname_spec='${libname}${release}${shared_ext}$major'
12843     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12844     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12845     ;;
12846   *)
12847     shrext_cmds='.sl'
12848     dynamic_linker="$host_os dld.sl"
12849     shlibpath_var=SHLIB_PATH
12850     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12851     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12852     soname_spec='${libname}${release}${shared_ext}$major'
12853     ;;
12854   esac
12855   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12856   postinstall_cmds='chmod 555 $lib'
12857   # or fails outright, so override atomically:
12858   install_override_mode=555
12859   ;;
12860
12861 interix[3-9]*)
12862   version_type=linux # correct to gnu/linux during the next big refactor
12863   need_lib_prefix=no
12864   need_version=no
12865   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12866   soname_spec='${libname}${release}${shared_ext}$major'
12867   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12868   shlibpath_var=LD_LIBRARY_PATH
12869   shlibpath_overrides_runpath=no
12870   hardcode_into_libs=yes
12871   ;;
12872
12873 irix5* | irix6* | nonstopux*)
12874   case $host_os in
12875     nonstopux*) version_type=nonstopux ;;
12876     *)
12877         if test "$lt_cv_prog_gnu_ld" = yes; then
12878                 version_type=linux # correct to gnu/linux during the next big refactor
12879         else
12880                 version_type=irix
12881         fi ;;
12882   esac
12883   need_lib_prefix=no
12884   need_version=no
12885   soname_spec='${libname}${release}${shared_ext}$major'
12886   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12887   case $host_os in
12888   irix5* | nonstopux*)
12889     libsuff= shlibsuff=
12890     ;;
12891   *)
12892     case $LD in # libtool.m4 will add one of these switches to LD
12893     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12894       libsuff= shlibsuff= libmagic=32-bit;;
12895     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12896       libsuff=32 shlibsuff=N32 libmagic=N32;;
12897     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12898       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12899     *) libsuff= shlibsuff= libmagic=never-match;;
12900     esac
12901     ;;
12902   esac
12903   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12904   shlibpath_overrides_runpath=no
12905   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12906   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12907   hardcode_into_libs=yes
12908   ;;
12909
12910 # No shared lib support for Linux oldld, aout, or coff.
12911 linux*oldld* | linux*aout* | linux*coff*)
12912   dynamic_linker=no
12913   ;;
12914
12915 linux*android*)
12916   version_type=none # Android doesn't support versioned libraries.
12917   need_lib_prefix=no
12918   need_version=no
12919   library_names_spec='$libname$release$shared_ext'
12920   soname_spec='$libname$release$shared_ext'
12921   finish_cmds=
12922   shlibpath_var=LD_LIBRARY_PATH
12923   shlibpath_overrides_runpath=yes
12924
12925   # This implies no fast_install, which is unacceptable.
12926   # Some rework will be needed to allow for fast_install
12927   # before this can be enabled.
12928   hardcode_into_libs=yes
12929
12930   dynamic_linker='Android linker'
12931   # Don't embed -rpath directories since the linker doesn't support them.
12932   hardcode_libdir_flag_spec='-L$libdir'
12933   ;;
12934
12935 # This must be glibc/ELF.
12936 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12937   version_type=linux # correct to gnu/linux during the next big refactor
12938   need_lib_prefix=no
12939   need_version=no
12940   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12941   soname_spec='${libname}${release}${shared_ext}$major'
12942   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12943   shlibpath_var=LD_LIBRARY_PATH
12944   shlibpath_overrides_runpath=no
12945
12946   # Some binutils ld are patched to set DT_RUNPATH
12947   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12948   $as_echo_n "(cached) " >&6
12949 else
12950   lt_cv_shlibpath_overrides_runpath=no
12951     save_LDFLAGS=$LDFLAGS
12952     save_libdir=$libdir
12953     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12954          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12955     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12956 /* end confdefs.h.  */
12957
12958 int
12959 main ()
12960 {
12961
12962   ;
12963   return 0;
12964 }
12965 _ACEOF
12966 if ac_fn_c_try_link "$LINENO"; then :
12967   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12968   lt_cv_shlibpath_overrides_runpath=yes
12969 fi
12970 fi
12971 rm -f core conftest.err conftest.$ac_objext \
12972     conftest$ac_exeext conftest.$ac_ext
12973     LDFLAGS=$save_LDFLAGS
12974     libdir=$save_libdir
12975
12976 fi
12977
12978   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12979
12980   # This implies no fast_install, which is unacceptable.
12981   # Some rework will be needed to allow for fast_install
12982   # before this can be enabled.
12983   hardcode_into_libs=yes
12984
12985   # Append ld.so.conf contents to the search path
12986   if test -f /etc/ld.so.conf; then
12987     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' ' '`
12988     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12989   fi
12990
12991   # We used to test for /lib/ld.so.1 and disable shared libraries on
12992   # powerpc, because MkLinux only supported shared libraries with the
12993   # GNU dynamic linker.  Since this was broken with cross compilers,
12994   # most powerpc-linux boxes support dynamic linking these days and
12995   # people can always --disable-shared, the test was removed, and we
12996   # assume the GNU/Linux dynamic linker is in use.
12997   dynamic_linker='GNU/Linux ld.so'
12998   ;;
12999
13000 netbsdelf*-gnu)
13001   version_type=linux
13002   need_lib_prefix=no
13003   need_version=no
13004   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13005   soname_spec='${libname}${release}${shared_ext}$major'
13006   shlibpath_var=LD_LIBRARY_PATH
13007   shlibpath_overrides_runpath=no
13008   hardcode_into_libs=yes
13009   dynamic_linker='NetBSD ld.elf_so'
13010   ;;
13011
13012 netbsd*)
13013   version_type=sunos
13014   need_lib_prefix=no
13015   need_version=no
13016   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13017     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13018     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13019     dynamic_linker='NetBSD (a.out) ld.so'
13020   else
13021     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13022     soname_spec='${libname}${release}${shared_ext}$major'
13023     dynamic_linker='NetBSD ld.elf_so'
13024   fi
13025   shlibpath_var=LD_LIBRARY_PATH
13026   shlibpath_overrides_runpath=yes
13027   hardcode_into_libs=yes
13028   ;;
13029
13030 newsos6)
13031   version_type=linux # correct to gnu/linux during the next big refactor
13032   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13033   shlibpath_var=LD_LIBRARY_PATH
13034   shlibpath_overrides_runpath=yes
13035   ;;
13036
13037 *nto* | *qnx*)
13038   version_type=qnx
13039   need_lib_prefix=no
13040   need_version=no
13041   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13042   soname_spec='${libname}${release}${shared_ext}$major'
13043   shlibpath_var=LD_LIBRARY_PATH
13044   shlibpath_overrides_runpath=no
13045   hardcode_into_libs=yes
13046   dynamic_linker='ldqnx.so'
13047   ;;
13048
13049 openbsd*)
13050   version_type=sunos
13051   sys_lib_dlsearch_path_spec="/usr/lib"
13052   need_lib_prefix=no
13053   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13054   case $host_os in
13055     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
13056     *)                          need_version=no  ;;
13057   esac
13058   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13059   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13060   shlibpath_var=LD_LIBRARY_PATH
13061   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13062     case $host_os in
13063       openbsd2.[89] | openbsd2.[89].*)
13064         shlibpath_overrides_runpath=no
13065         ;;
13066       *)
13067         shlibpath_overrides_runpath=yes
13068         ;;
13069       esac
13070   else
13071     shlibpath_overrides_runpath=yes
13072   fi
13073   ;;
13074
13075 os2*)
13076   libname_spec='$name'
13077   shrext_cmds=".dll"
13078   need_lib_prefix=no
13079   library_names_spec='$libname${shared_ext} $libname.a'
13080   dynamic_linker='OS/2 ld.exe'
13081   shlibpath_var=LIBPATH
13082   ;;
13083
13084 osf3* | osf4* | osf5*)
13085   version_type=osf
13086   need_lib_prefix=no
13087   need_version=no
13088   soname_spec='${libname}${release}${shared_ext}$major'
13089   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13090   shlibpath_var=LD_LIBRARY_PATH
13091   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13092   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13093   ;;
13094
13095 rdos*)
13096   dynamic_linker=no
13097   ;;
13098
13099 solaris*)
13100   version_type=linux # correct to gnu/linux during the next big refactor
13101   need_lib_prefix=no
13102   need_version=no
13103   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13104   soname_spec='${libname}${release}${shared_ext}$major'
13105   shlibpath_var=LD_LIBRARY_PATH
13106   shlibpath_overrides_runpath=yes
13107   hardcode_into_libs=yes
13108   # ldd complains unless libraries are executable
13109   postinstall_cmds='chmod +x $lib'
13110   ;;
13111
13112 sunos4*)
13113   version_type=sunos
13114   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13115   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13116   shlibpath_var=LD_LIBRARY_PATH
13117   shlibpath_overrides_runpath=yes
13118   if test "$with_gnu_ld" = yes; then
13119     need_lib_prefix=no
13120   fi
13121   need_version=yes
13122   ;;
13123
13124 sysv4 | sysv4.3*)
13125   version_type=linux # correct to gnu/linux during the next big refactor
13126   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13127   soname_spec='${libname}${release}${shared_ext}$major'
13128   shlibpath_var=LD_LIBRARY_PATH
13129   case $host_vendor in
13130     sni)
13131       shlibpath_overrides_runpath=no
13132       need_lib_prefix=no
13133       runpath_var=LD_RUN_PATH
13134       ;;
13135     siemens)
13136       need_lib_prefix=no
13137       ;;
13138     motorola)
13139       need_lib_prefix=no
13140       need_version=no
13141       shlibpath_overrides_runpath=no
13142       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13143       ;;
13144   esac
13145   ;;
13146
13147 sysv4*MP*)
13148   if test -d /usr/nec ;then
13149     version_type=linux # correct to gnu/linux during the next big refactor
13150     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13151     soname_spec='$libname${shared_ext}.$major'
13152     shlibpath_var=LD_LIBRARY_PATH
13153   fi
13154   ;;
13155
13156 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13157   version_type=freebsd-elf
13158   need_lib_prefix=no
13159   need_version=no
13160   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13161   soname_spec='${libname}${release}${shared_ext}$major'
13162   shlibpath_var=LD_LIBRARY_PATH
13163   shlibpath_overrides_runpath=yes
13164   hardcode_into_libs=yes
13165   if test "$with_gnu_ld" = yes; then
13166     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13167   else
13168     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13169     case $host_os in
13170       sco3.2v5*)
13171         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13172         ;;
13173     esac
13174   fi
13175   sys_lib_dlsearch_path_spec='/usr/lib'
13176   ;;
13177
13178 tpf*)
13179   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
13180   version_type=linux # correct to gnu/linux during the next big refactor
13181   need_lib_prefix=no
13182   need_version=no
13183   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13184   shlibpath_var=LD_LIBRARY_PATH
13185   shlibpath_overrides_runpath=no
13186   hardcode_into_libs=yes
13187   ;;
13188
13189 uts4*)
13190   version_type=linux # correct to gnu/linux during the next big refactor
13191   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13192   soname_spec='${libname}${release}${shared_ext}$major'
13193   shlibpath_var=LD_LIBRARY_PATH
13194   ;;
13195
13196 *)
13197   dynamic_linker=no
13198   ;;
13199 esac
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13201 $as_echo "$dynamic_linker" >&6; }
13202 test "$dynamic_linker" = no && can_build_shared=no
13203
13204 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13205 if test "$GCC" = yes; then
13206   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13207 fi
13208
13209 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13210   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13211 fi
13212 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13213   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13214 fi
13215
13216
13217
13218
13219
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13308 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13309 hardcode_action=
13310 if test -n "$hardcode_libdir_flag_spec" ||
13311    test -n "$runpath_var" ||
13312    test "X$hardcode_automatic" = "Xyes" ; then
13313
13314   # We can hardcode non-existent directories.
13315   if test "$hardcode_direct" != no &&
13316      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13317      # have to relink, otherwise we might link with an installed library
13318      # when we should be linking with a yet-to-be-installed one
13319      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13320      test "$hardcode_minus_L" != no; then
13321     # Linking always hardcodes the temporary library directory.
13322     hardcode_action=relink
13323   else
13324     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13325     hardcode_action=immediate
13326   fi
13327 else
13328   # We cannot hardcode anything, or else we can only hardcode existing
13329   # directories.
13330   hardcode_action=unsupported
13331 fi
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13333 $as_echo "$hardcode_action" >&6; }
13334
13335 if test "$hardcode_action" = relink ||
13336    test "$inherit_rpath" = yes; then
13337   # Fast installation is not supported
13338   enable_fast_install=no
13339 elif test "$shlibpath_overrides_runpath" = yes ||
13340      test "$enable_shared" = no; then
13341   # Fast installation is not necessary
13342   enable_fast_install=needless
13343 fi
13344
13345
13346
13347
13348
13349
13350   if test "x$enable_dlopen" != xyes; then
13351   enable_dlopen=unknown
13352   enable_dlopen_self=unknown
13353   enable_dlopen_self_static=unknown
13354 else
13355   lt_cv_dlopen=no
13356   lt_cv_dlopen_libs=
13357
13358   case $host_os in
13359   beos*)
13360     lt_cv_dlopen="load_add_on"
13361     lt_cv_dlopen_libs=
13362     lt_cv_dlopen_self=yes
13363     ;;
13364
13365   mingw* | pw32* | cegcc*)
13366     lt_cv_dlopen="LoadLibrary"
13367     lt_cv_dlopen_libs=
13368     ;;
13369
13370   cygwin*)
13371     lt_cv_dlopen="dlopen"
13372     lt_cv_dlopen_libs=
13373     ;;
13374
13375   darwin*)
13376   # if libdl is installed we need to link against it
13377     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13378 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13379 if ${ac_cv_lib_dl_dlopen+:} false; then :
13380   $as_echo_n "(cached) " >&6
13381 else
13382   ac_check_lib_save_LIBS=$LIBS
13383 LIBS="-ldl  $LIBS"
13384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13385 /* end confdefs.h.  */
13386
13387 /* Override any GCC internal prototype to avoid an error.
13388    Use char because int might match the return type of a GCC
13389    builtin and then its argument prototype would still apply.  */
13390 #ifdef __cplusplus
13391 extern "C"
13392 #endif
13393 char dlopen ();
13394 int
13395 main ()
13396 {
13397 return dlopen ();
13398   ;
13399   return 0;
13400 }
13401 _ACEOF
13402 if ac_fn_c_try_link "$LINENO"; then :
13403   ac_cv_lib_dl_dlopen=yes
13404 else
13405   ac_cv_lib_dl_dlopen=no
13406 fi
13407 rm -f core conftest.err conftest.$ac_objext \
13408     conftest$ac_exeext conftest.$ac_ext
13409 LIBS=$ac_check_lib_save_LIBS
13410 fi
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13412 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13413 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13414   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13415 else
13416
13417     lt_cv_dlopen="dyld"
13418     lt_cv_dlopen_libs=
13419     lt_cv_dlopen_self=yes
13420
13421 fi
13422
13423     ;;
13424
13425   *)
13426     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13427 if test "x$ac_cv_func_shl_load" = xyes; then :
13428   lt_cv_dlopen="shl_load"
13429 else
13430   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13431 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13432 if ${ac_cv_lib_dld_shl_load+:} false; then :
13433   $as_echo_n "(cached) " >&6
13434 else
13435   ac_check_lib_save_LIBS=$LIBS
13436 LIBS="-ldld  $LIBS"
13437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13438 /* end confdefs.h.  */
13439
13440 /* Override any GCC internal prototype to avoid an error.
13441    Use char because int might match the return type of a GCC
13442    builtin and then its argument prototype would still apply.  */
13443 #ifdef __cplusplus
13444 extern "C"
13445 #endif
13446 char shl_load ();
13447 int
13448 main ()
13449 {
13450 return shl_load ();
13451   ;
13452   return 0;
13453 }
13454 _ACEOF
13455 if ac_fn_c_try_link "$LINENO"; then :
13456   ac_cv_lib_dld_shl_load=yes
13457 else
13458   ac_cv_lib_dld_shl_load=no
13459 fi
13460 rm -f core conftest.err conftest.$ac_objext \
13461     conftest$ac_exeext conftest.$ac_ext
13462 LIBS=$ac_check_lib_save_LIBS
13463 fi
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13465 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13466 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13467   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13468 else
13469   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13470 if test "x$ac_cv_func_dlopen" = xyes; then :
13471   lt_cv_dlopen="dlopen"
13472 else
13473   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13474 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13475 if ${ac_cv_lib_dl_dlopen+:} false; then :
13476   $as_echo_n "(cached) " >&6
13477 else
13478   ac_check_lib_save_LIBS=$LIBS
13479 LIBS="-ldl  $LIBS"
13480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13481 /* end confdefs.h.  */
13482
13483 /* Override any GCC internal prototype to avoid an error.
13484    Use char because int might match the return type of a GCC
13485    builtin and then its argument prototype would still apply.  */
13486 #ifdef __cplusplus
13487 extern "C"
13488 #endif
13489 char dlopen ();
13490 int
13491 main ()
13492 {
13493 return dlopen ();
13494   ;
13495   return 0;
13496 }
13497 _ACEOF
13498 if ac_fn_c_try_link "$LINENO"; then :
13499   ac_cv_lib_dl_dlopen=yes
13500 else
13501   ac_cv_lib_dl_dlopen=no
13502 fi
13503 rm -f core conftest.err conftest.$ac_objext \
13504     conftest$ac_exeext conftest.$ac_ext
13505 LIBS=$ac_check_lib_save_LIBS
13506 fi
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13508 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13509 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13510   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13511 else
13512   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13513 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13514 if ${ac_cv_lib_svld_dlopen+:} false; then :
13515   $as_echo_n "(cached) " >&6
13516 else
13517   ac_check_lib_save_LIBS=$LIBS
13518 LIBS="-lsvld  $LIBS"
13519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13520 /* end confdefs.h.  */
13521
13522 /* Override any GCC internal prototype to avoid an error.
13523    Use char because int might match the return type of a GCC
13524    builtin and then its argument prototype would still apply.  */
13525 #ifdef __cplusplus
13526 extern "C"
13527 #endif
13528 char dlopen ();
13529 int
13530 main ()
13531 {
13532 return dlopen ();
13533   ;
13534   return 0;
13535 }
13536 _ACEOF
13537 if ac_fn_c_try_link "$LINENO"; then :
13538   ac_cv_lib_svld_dlopen=yes
13539 else
13540   ac_cv_lib_svld_dlopen=no
13541 fi
13542 rm -f core conftest.err conftest.$ac_objext \
13543     conftest$ac_exeext conftest.$ac_ext
13544 LIBS=$ac_check_lib_save_LIBS
13545 fi
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13547 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13548 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13549   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13550 else
13551   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13552 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13553 if ${ac_cv_lib_dld_dld_link+:} false; then :
13554   $as_echo_n "(cached) " >&6
13555 else
13556   ac_check_lib_save_LIBS=$LIBS
13557 LIBS="-ldld  $LIBS"
13558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13559 /* end confdefs.h.  */
13560
13561 /* Override any GCC internal prototype to avoid an error.
13562    Use char because int might match the return type of a GCC
13563    builtin and then its argument prototype would still apply.  */
13564 #ifdef __cplusplus
13565 extern "C"
13566 #endif
13567 char dld_link ();
13568 int
13569 main ()
13570 {
13571 return dld_link ();
13572   ;
13573   return 0;
13574 }
13575 _ACEOF
13576 if ac_fn_c_try_link "$LINENO"; then :
13577   ac_cv_lib_dld_dld_link=yes
13578 else
13579   ac_cv_lib_dld_dld_link=no
13580 fi
13581 rm -f core conftest.err conftest.$ac_objext \
13582     conftest$ac_exeext conftest.$ac_ext
13583 LIBS=$ac_check_lib_save_LIBS
13584 fi
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13586 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13587 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13588   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13589 fi
13590
13591
13592 fi
13593
13594
13595 fi
13596
13597
13598 fi
13599
13600
13601 fi
13602
13603
13604 fi
13605
13606     ;;
13607   esac
13608
13609   if test "x$lt_cv_dlopen" != xno; then
13610     enable_dlopen=yes
13611   else
13612     enable_dlopen=no
13613   fi
13614
13615   case $lt_cv_dlopen in
13616   dlopen)
13617     save_CPPFLAGS="$CPPFLAGS"
13618     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13619
13620     save_LDFLAGS="$LDFLAGS"
13621     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13622
13623     save_LIBS="$LIBS"
13624     LIBS="$lt_cv_dlopen_libs $LIBS"
13625
13626     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13627 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13628 if ${lt_cv_dlopen_self+:} false; then :
13629   $as_echo_n "(cached) " >&6
13630 else
13631           if test "$cross_compiling" = yes; then :
13632   lt_cv_dlopen_self=cross
13633 else
13634   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13635   lt_status=$lt_dlunknown
13636   cat > conftest.$ac_ext <<_LT_EOF
13637 #line $LINENO "configure"
13638 #include "confdefs.h"
13639
13640 #if HAVE_DLFCN_H
13641 #include <dlfcn.h>
13642 #endif
13643
13644 #include <stdio.h>
13645
13646 #ifdef RTLD_GLOBAL
13647 #  define LT_DLGLOBAL           RTLD_GLOBAL
13648 #else
13649 #  ifdef DL_GLOBAL
13650 #    define LT_DLGLOBAL         DL_GLOBAL
13651 #  else
13652 #    define LT_DLGLOBAL         0
13653 #  endif
13654 #endif
13655
13656 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13657    find out it does not work in some platform. */
13658 #ifndef LT_DLLAZY_OR_NOW
13659 #  ifdef RTLD_LAZY
13660 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13661 #  else
13662 #    ifdef DL_LAZY
13663 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13664 #    else
13665 #      ifdef RTLD_NOW
13666 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13667 #      else
13668 #        ifdef DL_NOW
13669 #          define LT_DLLAZY_OR_NOW      DL_NOW
13670 #        else
13671 #          define LT_DLLAZY_OR_NOW      0
13672 #        endif
13673 #      endif
13674 #    endif
13675 #  endif
13676 #endif
13677
13678 /* When -fvisbility=hidden is used, assume the code has been annotated
13679    correspondingly for the symbols needed.  */
13680 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13681 int fnord () __attribute__((visibility("default")));
13682 #endif
13683
13684 int fnord () { return 42; }
13685 int main ()
13686 {
13687   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13688   int status = $lt_dlunknown;
13689
13690   if (self)
13691     {
13692       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13693       else
13694         {
13695           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13696           else puts (dlerror ());
13697         }
13698       /* dlclose (self); */
13699     }
13700   else
13701     puts (dlerror ());
13702
13703   return status;
13704 }
13705 _LT_EOF
13706   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13707   (eval $ac_link) 2>&5
13708   ac_status=$?
13709   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13710   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13711     (./conftest; exit; ) >&5 2>/dev/null
13712     lt_status=$?
13713     case x$lt_status in
13714       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13715       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13716       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13717     esac
13718   else :
13719     # compilation failed
13720     lt_cv_dlopen_self=no
13721   fi
13722 fi
13723 rm -fr conftest*
13724
13725
13726 fi
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13728 $as_echo "$lt_cv_dlopen_self" >&6; }
13729
13730     if test "x$lt_cv_dlopen_self" = xyes; then
13731       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13732       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13733 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13734 if ${lt_cv_dlopen_self_static+:} false; then :
13735   $as_echo_n "(cached) " >&6
13736 else
13737           if test "$cross_compiling" = yes; then :
13738   lt_cv_dlopen_self_static=cross
13739 else
13740   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13741   lt_status=$lt_dlunknown
13742   cat > conftest.$ac_ext <<_LT_EOF
13743 #line $LINENO "configure"
13744 #include "confdefs.h"
13745
13746 #if HAVE_DLFCN_H
13747 #include <dlfcn.h>
13748 #endif
13749
13750 #include <stdio.h>
13751
13752 #ifdef RTLD_GLOBAL
13753 #  define LT_DLGLOBAL           RTLD_GLOBAL
13754 #else
13755 #  ifdef DL_GLOBAL
13756 #    define LT_DLGLOBAL         DL_GLOBAL
13757 #  else
13758 #    define LT_DLGLOBAL         0
13759 #  endif
13760 #endif
13761
13762 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13763    find out it does not work in some platform. */
13764 #ifndef LT_DLLAZY_OR_NOW
13765 #  ifdef RTLD_LAZY
13766 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13767 #  else
13768 #    ifdef DL_LAZY
13769 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13770 #    else
13771 #      ifdef RTLD_NOW
13772 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13773 #      else
13774 #        ifdef DL_NOW
13775 #          define LT_DLLAZY_OR_NOW      DL_NOW
13776 #        else
13777 #          define LT_DLLAZY_OR_NOW      0
13778 #        endif
13779 #      endif
13780 #    endif
13781 #  endif
13782 #endif
13783
13784 /* When -fvisbility=hidden is used, assume the code has been annotated
13785    correspondingly for the symbols needed.  */
13786 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13787 int fnord () __attribute__((visibility("default")));
13788 #endif
13789
13790 int fnord () { return 42; }
13791 int main ()
13792 {
13793   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13794   int status = $lt_dlunknown;
13795
13796   if (self)
13797     {
13798       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13799       else
13800         {
13801           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13802           else puts (dlerror ());
13803         }
13804       /* dlclose (self); */
13805     }
13806   else
13807     puts (dlerror ());
13808
13809   return status;
13810 }
13811 _LT_EOF
13812   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13813   (eval $ac_link) 2>&5
13814   ac_status=$?
13815   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13816   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13817     (./conftest; exit; ) >&5 2>/dev/null
13818     lt_status=$?
13819     case x$lt_status in
13820       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13821       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13822       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13823     esac
13824   else :
13825     # compilation failed
13826     lt_cv_dlopen_self_static=no
13827   fi
13828 fi
13829 rm -fr conftest*
13830
13831
13832 fi
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13834 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13835     fi
13836
13837     CPPFLAGS="$save_CPPFLAGS"
13838     LDFLAGS="$save_LDFLAGS"
13839     LIBS="$save_LIBS"
13840     ;;
13841   esac
13842
13843   case $lt_cv_dlopen_self in
13844   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13845   *) enable_dlopen_self=unknown ;;
13846   esac
13847
13848   case $lt_cv_dlopen_self_static in
13849   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13850   *) enable_dlopen_self_static=unknown ;;
13851   esac
13852 fi
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870 striplib=
13871 old_striplib=
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13873 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13874 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13875   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13876   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13878 $as_echo "yes" >&6; }
13879 else
13880 # FIXME - insert some real tests, host_os isn't really good enough
13881   case $host_os in
13882   darwin*)
13883     if test -n "$STRIP" ; then
13884       striplib="$STRIP -x"
13885       old_striplib="$STRIP -S"
13886       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13887 $as_echo "yes" >&6; }
13888     else
13889       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13890 $as_echo "no" >&6; }
13891     fi
13892     ;;
13893   *)
13894     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13895 $as_echo "no" >&6; }
13896     ;;
13897   esac
13898 fi
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911   # Report which library types will actually be built
13912   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13913 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13915 $as_echo "$can_build_shared" >&6; }
13916
13917   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13918 $as_echo_n "checking whether to build shared libraries... " >&6; }
13919   test "$can_build_shared" = "no" && enable_shared=no
13920
13921   # On AIX, shared libraries and static libraries use the same namespace, and
13922   # are all built from PIC.
13923   case $host_os in
13924   aix3*)
13925     test "$enable_shared" = yes && enable_static=no
13926     if test -n "$RANLIB"; then
13927       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13928       postinstall_cmds='$RANLIB $lib'
13929     fi
13930     ;;
13931
13932   aix[4-9]*)
13933     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13934       test "$enable_shared" = yes && enable_static=no
13935     fi
13936     ;;
13937   esac
13938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13939 $as_echo "$enable_shared" >&6; }
13940
13941   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13942 $as_echo_n "checking whether to build static libraries... " >&6; }
13943   # Make sure either enable_shared or enable_static is yes.
13944   test "$enable_shared" = yes || enable_static=yes
13945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13946 $as_echo "$enable_static" >&6; }
13947
13948
13949
13950
13951 fi
13952 ac_ext=c
13953 ac_cpp='$CPP $CPPFLAGS'
13954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13957
13958 CC="$lt_save_CC"
13959
13960       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13961     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13962     (test "X$CXX" != "Xg++"))) ; then
13963   ac_ext=cpp
13964 ac_cpp='$CXXCPP $CPPFLAGS'
13965 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13966 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13967 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13969 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13970 if test -z "$CXXCPP"; then
13971   if ${ac_cv_prog_CXXCPP+:} false; then :
13972   $as_echo_n "(cached) " >&6
13973 else
13974       # Double quotes because CXXCPP needs to be expanded
13975     for CXXCPP in "$CXX -E" "/lib/cpp"
13976     do
13977       ac_preproc_ok=false
13978 for ac_cxx_preproc_warn_flag in '' yes
13979 do
13980   # Use a header file that comes with gcc, so configuring glibc
13981   # with a fresh cross-compiler works.
13982   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13983   # <limits.h> exists even on freestanding compilers.
13984   # On the NeXT, cc -E runs the code through the compiler's parser,
13985   # not just through cpp. "Syntax error" is here to catch this case.
13986   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13987 /* end confdefs.h.  */
13988 #ifdef __STDC__
13989 # include <limits.h>
13990 #else
13991 # include <assert.h>
13992 #endif
13993                      Syntax error
13994 _ACEOF
13995 if ac_fn_cxx_try_cpp "$LINENO"; then :
13996
13997 else
13998   # Broken: fails on valid input.
13999 continue
14000 fi
14001 rm -f conftest.err conftest.i conftest.$ac_ext
14002
14003   # OK, works on sane cases.  Now check whether nonexistent headers
14004   # can be detected and how.
14005   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14006 /* end confdefs.h.  */
14007 #include <ac_nonexistent.h>
14008 _ACEOF
14009 if ac_fn_cxx_try_cpp "$LINENO"; then :
14010   # Broken: success on invalid input.
14011 continue
14012 else
14013   # Passes both tests.
14014 ac_preproc_ok=:
14015 break
14016 fi
14017 rm -f conftest.err conftest.i conftest.$ac_ext
14018
14019 done
14020 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14021 rm -f conftest.i conftest.err conftest.$ac_ext
14022 if $ac_preproc_ok; then :
14023   break
14024 fi
14025
14026     done
14027     ac_cv_prog_CXXCPP=$CXXCPP
14028
14029 fi
14030   CXXCPP=$ac_cv_prog_CXXCPP
14031 else
14032   ac_cv_prog_CXXCPP=$CXXCPP
14033 fi
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14035 $as_echo "$CXXCPP" >&6; }
14036 ac_preproc_ok=false
14037 for ac_cxx_preproc_warn_flag in '' yes
14038 do
14039   # Use a header file that comes with gcc, so configuring glibc
14040   # with a fresh cross-compiler works.
14041   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14042   # <limits.h> exists even on freestanding compilers.
14043   # On the NeXT, cc -E runs the code through the compiler's parser,
14044   # not just through cpp. "Syntax error" is here to catch this case.
14045   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14046 /* end confdefs.h.  */
14047 #ifdef __STDC__
14048 # include <limits.h>
14049 #else
14050 # include <assert.h>
14051 #endif
14052                      Syntax error
14053 _ACEOF
14054 if ac_fn_cxx_try_cpp "$LINENO"; then :
14055
14056 else
14057   # Broken: fails on valid input.
14058 continue
14059 fi
14060 rm -f conftest.err conftest.i conftest.$ac_ext
14061
14062   # OK, works on sane cases.  Now check whether nonexistent headers
14063   # can be detected and how.
14064   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14065 /* end confdefs.h.  */
14066 #include <ac_nonexistent.h>
14067 _ACEOF
14068 if ac_fn_cxx_try_cpp "$LINENO"; then :
14069   # Broken: success on invalid input.
14070 continue
14071 else
14072   # Passes both tests.
14073 ac_preproc_ok=:
14074 break
14075 fi
14076 rm -f conftest.err conftest.i conftest.$ac_ext
14077
14078 done
14079 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14080 rm -f conftest.i conftest.err conftest.$ac_ext
14081 if $ac_preproc_ok; then :
14082
14083 else
14084   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14085 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14086 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14087 See \`config.log' for more details" "$LINENO" 5; }
14088 fi
14089
14090 ac_ext=c
14091 ac_cpp='$CPP $CPPFLAGS'
14092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14095
14096 else
14097   _lt_caught_CXX_error=yes
14098 fi
14099
14100 ac_ext=cpp
14101 ac_cpp='$CXXCPP $CPPFLAGS'
14102 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14103 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14104 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14105
14106 archive_cmds_need_lc_CXX=no
14107 allow_undefined_flag_CXX=
14108 always_export_symbols_CXX=no
14109 archive_expsym_cmds_CXX=
14110 compiler_needs_object_CXX=no
14111 export_dynamic_flag_spec_CXX=
14112 hardcode_direct_CXX=no
14113 hardcode_direct_absolute_CXX=no
14114 hardcode_libdir_flag_spec_CXX=
14115 hardcode_libdir_separator_CXX=
14116 hardcode_minus_L_CXX=no
14117 hardcode_shlibpath_var_CXX=unsupported
14118 hardcode_automatic_CXX=no
14119 inherit_rpath_CXX=no
14120 module_cmds_CXX=
14121 module_expsym_cmds_CXX=
14122 link_all_deplibs_CXX=unknown
14123 old_archive_cmds_CXX=$old_archive_cmds
14124 reload_flag_CXX=$reload_flag
14125 reload_cmds_CXX=$reload_cmds
14126 no_undefined_flag_CXX=
14127 whole_archive_flag_spec_CXX=
14128 enable_shared_with_static_runtimes_CXX=no
14129
14130 # Source file extension for C++ test sources.
14131 ac_ext=cpp
14132
14133 # Object file extension for compiled C++ test sources.
14134 objext=o
14135 objext_CXX=$objext
14136
14137 # No sense in running all these tests if we already determined that
14138 # the CXX compiler isn't working.  Some variables (like enable_shared)
14139 # are currently assumed to apply to all compilers on this platform,
14140 # and will be corrupted by setting them based on a non-working compiler.
14141 if test "$_lt_caught_CXX_error" != yes; then
14142   # Code to be used in simple compile tests
14143   lt_simple_compile_test_code="int some_variable = 0;"
14144
14145   # Code to be used in simple link tests
14146   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14147
14148   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14149
14150
14151
14152
14153
14154
14155 # If no C compiler was specified, use CC.
14156 LTCC=${LTCC-"$CC"}
14157
14158 # If no C compiler flags were specified, use CFLAGS.
14159 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14160
14161 # Allow CC to be a program name with arguments.
14162 compiler=$CC
14163
14164
14165   # save warnings/boilerplate of simple test code
14166   ac_outfile=conftest.$ac_objext
14167 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14168 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14169 _lt_compiler_boilerplate=`cat conftest.err`
14170 $RM conftest*
14171
14172   ac_outfile=conftest.$ac_objext
14173 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14174 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14175 _lt_linker_boilerplate=`cat conftest.err`
14176 $RM -r conftest*
14177
14178
14179   # Allow CC to be a program name with arguments.
14180   lt_save_CC=$CC
14181   lt_save_CFLAGS=$CFLAGS
14182   lt_save_LD=$LD
14183   lt_save_GCC=$GCC
14184   GCC=$GXX
14185   lt_save_with_gnu_ld=$with_gnu_ld
14186   lt_save_path_LD=$lt_cv_path_LD
14187   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14188     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14189   else
14190     $as_unset lt_cv_prog_gnu_ld
14191   fi
14192   if test -n "${lt_cv_path_LDCXX+set}"; then
14193     lt_cv_path_LD=$lt_cv_path_LDCXX
14194   else
14195     $as_unset lt_cv_path_LD
14196   fi
14197   test -z "${LDCXX+set}" || LD=$LDCXX
14198   CC=${CXX-"c++"}
14199   CFLAGS=$CXXFLAGS
14200   compiler=$CC
14201   compiler_CXX=$CC
14202   for cc_temp in $compiler""; do
14203   case $cc_temp in
14204     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14205     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14206     \-*) ;;
14207     *) break;;
14208   esac
14209 done
14210 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14211
14212
14213   if test -n "$compiler"; then
14214     # We don't want -fno-exception when compiling C++ code, so set the
14215     # no_builtin_flag separately
14216     if test "$GXX" = yes; then
14217       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14218     else
14219       lt_prog_compiler_no_builtin_flag_CXX=
14220     fi
14221
14222     if test "$GXX" = yes; then
14223       # Set up default GNU C++ configuration
14224
14225
14226
14227 # Check whether --with-gnu-ld was given.
14228 if test "${with_gnu_ld+set}" = set; then :
14229   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14230 else
14231   with_gnu_ld=no
14232 fi
14233
14234 ac_prog=ld
14235 if test "$GCC" = yes; then
14236   # Check if gcc -print-prog-name=ld gives a path.
14237   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14238 $as_echo_n "checking for ld used by $CC... " >&6; }
14239   case $host in
14240   *-*-mingw*)
14241     # gcc leaves a trailing carriage return which upsets mingw
14242     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14243   *)
14244     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14245   esac
14246   case $ac_prog in
14247     # Accept absolute paths.
14248     [\\/]* | ?:[\\/]*)
14249       re_direlt='/[^/][^/]*/\.\./'
14250       # Canonicalize the pathname of ld
14251       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14252       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14253         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14254       done
14255       test -z "$LD" && LD="$ac_prog"
14256       ;;
14257   "")
14258     # If it fails, then pretend we aren't using GCC.
14259     ac_prog=ld
14260     ;;
14261   *)
14262     # If it is relative, then search for the first ld in PATH.
14263     with_gnu_ld=unknown
14264     ;;
14265   esac
14266 elif test "$with_gnu_ld" = yes; then
14267   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14268 $as_echo_n "checking for GNU ld... " >&6; }
14269 else
14270   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14271 $as_echo_n "checking for non-GNU ld... " >&6; }
14272 fi
14273 if ${lt_cv_path_LD+:} false; then :
14274   $as_echo_n "(cached) " >&6
14275 else
14276   if test -z "$LD"; then
14277   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14278   for ac_dir in $PATH; do
14279     IFS="$lt_save_ifs"
14280     test -z "$ac_dir" && ac_dir=.
14281     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14282       lt_cv_path_LD="$ac_dir/$ac_prog"
14283       # Check to see if the program is GNU ld.  I'd rather use --version,
14284       # but apparently some variants of GNU ld only accept -v.
14285       # Break only if it was the GNU/non-GNU ld that we prefer.
14286       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14287       *GNU* | *'with BFD'*)
14288         test "$with_gnu_ld" != no && break
14289         ;;
14290       *)
14291         test "$with_gnu_ld" != yes && break
14292         ;;
14293       esac
14294     fi
14295   done
14296   IFS="$lt_save_ifs"
14297 else
14298   lt_cv_path_LD="$LD" # Let the user override the test with a path.
14299 fi
14300 fi
14301
14302 LD="$lt_cv_path_LD"
14303 if test -n "$LD"; then
14304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14305 $as_echo "$LD" >&6; }
14306 else
14307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14308 $as_echo "no" >&6; }
14309 fi
14310 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14312 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14313 if ${lt_cv_prog_gnu_ld+:} false; then :
14314   $as_echo_n "(cached) " >&6
14315 else
14316   # I'd rather use --version here, but apparently some GNU lds only accept -v.
14317 case `$LD -v 2>&1 </dev/null` in
14318 *GNU* | *'with BFD'*)
14319   lt_cv_prog_gnu_ld=yes
14320   ;;
14321 *)
14322   lt_cv_prog_gnu_ld=no
14323   ;;
14324 esac
14325 fi
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14327 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14328 with_gnu_ld=$lt_cv_prog_gnu_ld
14329
14330
14331
14332
14333
14334
14335
14336       # Check if GNU C++ uses GNU ld as the underlying linker, since the
14337       # archiving commands below assume that GNU ld is being used.
14338       if test "$with_gnu_ld" = yes; then
14339         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14340         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'
14341
14342         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14343         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14344
14345         # If archive_cmds runs LD, not CC, wlarc should be empty
14346         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14347         #     investigate it a little bit more. (MM)
14348         wlarc='${wl}'
14349
14350         # ancient GNU ld didn't support --whole-archive et. al.
14351         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14352           $GREP 'no-whole-archive' > /dev/null; then
14353           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14354         else
14355           whole_archive_flag_spec_CXX=
14356         fi
14357       else
14358         with_gnu_ld=no
14359         wlarc=
14360
14361         # A generic and very simple default shared library creation
14362         # command for GNU C++ for the case where it uses the native
14363         # linker, instead of GNU ld.  If possible, this setting should
14364         # overridden to take advantage of the native linker features on
14365         # the platform it is being used on.
14366         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14367       fi
14368
14369       # Commands to make compiler produce verbose output that lists
14370       # what "hidden" libraries, object files and flags are used when
14371       # linking a shared library.
14372       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14373
14374     else
14375       GXX=no
14376       with_gnu_ld=no
14377       wlarc=
14378     fi
14379
14380     # PORTME: fill in a description of your system's C++ link characteristics
14381     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14382 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14383     ld_shlibs_CXX=yes
14384     case $host_os in
14385       aix3*)
14386         # FIXME: insert proper C++ library support
14387         ld_shlibs_CXX=no
14388         ;;
14389       aix[4-9]*)
14390         if test "$host_cpu" = ia64; then
14391           # On IA64, the linker does run time linking by default, so we don't
14392           # have to do anything special.
14393           aix_use_runtimelinking=no
14394           exp_sym_flag='-Bexport'
14395           no_entry_flag=""
14396         else
14397           aix_use_runtimelinking=no
14398
14399           # Test if we are trying to use run time linking or normal
14400           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14401           # need to do runtime linking.
14402           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14403             for ld_flag in $LDFLAGS; do
14404               case $ld_flag in
14405               *-brtl*)
14406                 aix_use_runtimelinking=yes
14407                 break
14408                 ;;
14409               esac
14410             done
14411             ;;
14412           esac
14413
14414           exp_sym_flag='-bexport'
14415           no_entry_flag='-bnoentry'
14416         fi
14417
14418         # When large executables or shared objects are built, AIX ld can
14419         # have problems creating the table of contents.  If linking a library
14420         # or program results in "error TOC overflow" add -mminimal-toc to
14421         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14422         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14423
14424         archive_cmds_CXX=''
14425         hardcode_direct_CXX=yes
14426         hardcode_direct_absolute_CXX=yes
14427         hardcode_libdir_separator_CXX=':'
14428         link_all_deplibs_CXX=yes
14429         file_list_spec_CXX='${wl}-f,'
14430
14431         if test "$GXX" = yes; then
14432           case $host_os in aix4.[012]|aix4.[012].*)
14433           # We only want to do this on AIX 4.2 and lower, the check
14434           # below for broken collect2 doesn't work under 4.3+
14435           collect2name=`${CC} -print-prog-name=collect2`
14436           if test -f "$collect2name" &&
14437              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14438           then
14439             # We have reworked collect2
14440             :
14441           else
14442             # We have old collect2
14443             hardcode_direct_CXX=unsupported
14444             # It fails to find uninstalled libraries when the uninstalled
14445             # path is not listed in the libpath.  Setting hardcode_minus_L
14446             # to unsupported forces relinking
14447             hardcode_minus_L_CXX=yes
14448             hardcode_libdir_flag_spec_CXX='-L$libdir'
14449             hardcode_libdir_separator_CXX=
14450           fi
14451           esac
14452           shared_flag='-shared'
14453           if test "$aix_use_runtimelinking" = yes; then
14454             shared_flag="$shared_flag "'${wl}-G'
14455           fi
14456         else
14457           # not using gcc
14458           if test "$host_cpu" = ia64; then
14459           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14460           # chokes on -Wl,-G. The following line is correct:
14461           shared_flag='-G'
14462           else
14463             if test "$aix_use_runtimelinking" = yes; then
14464               shared_flag='${wl}-G'
14465             else
14466               shared_flag='${wl}-bM:SRE'
14467             fi
14468           fi
14469         fi
14470
14471         export_dynamic_flag_spec_CXX='${wl}-bexpall'
14472         # It seems that -bexpall does not export symbols beginning with
14473         # underscore (_), so it is better to generate a list of symbols to
14474         # export.
14475         always_export_symbols_CXX=yes
14476         if test "$aix_use_runtimelinking" = yes; then
14477           # Warning - without using the other runtime loading flags (-brtl),
14478           # -berok will link without error, but may produce a broken library.
14479           allow_undefined_flag_CXX='-berok'
14480           # Determine the default libpath from the value encoded in an empty
14481           # executable.
14482           if test "${lt_cv_aix_libpath+set}" = set; then
14483   aix_libpath=$lt_cv_aix_libpath
14484 else
14485   if ${lt_cv_aix_libpath__CXX+:} false; then :
14486   $as_echo_n "(cached) " >&6
14487 else
14488   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14489 /* end confdefs.h.  */
14490
14491 int
14492 main ()
14493 {
14494
14495   ;
14496   return 0;
14497 }
14498 _ACEOF
14499 if ac_fn_cxx_try_link "$LINENO"; then :
14500
14501   lt_aix_libpath_sed='
14502       /Import File Strings/,/^$/ {
14503           /^0/ {
14504               s/^0  *\([^ ]*\) *$/\1/
14505               p
14506           }
14507       }'
14508   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14509   # Check for a 64-bit object if we didn't find anything.
14510   if test -z "$lt_cv_aix_libpath__CXX"; then
14511     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14512   fi
14513 fi
14514 rm -f core conftest.err conftest.$ac_objext \
14515     conftest$ac_exeext conftest.$ac_ext
14516   if test -z "$lt_cv_aix_libpath__CXX"; then
14517     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14518   fi
14519
14520 fi
14521
14522   aix_libpath=$lt_cv_aix_libpath__CXX
14523 fi
14524
14525           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14526
14527           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"
14528         else
14529           if test "$host_cpu" = ia64; then
14530             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14531             allow_undefined_flag_CXX="-z nodefs"
14532             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"
14533           else
14534             # Determine the default libpath from the value encoded in an
14535             # empty executable.
14536             if test "${lt_cv_aix_libpath+set}" = set; then
14537   aix_libpath=$lt_cv_aix_libpath
14538 else
14539   if ${lt_cv_aix_libpath__CXX+:} false; then :
14540   $as_echo_n "(cached) " >&6
14541 else
14542   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14543 /* end confdefs.h.  */
14544
14545 int
14546 main ()
14547 {
14548
14549   ;
14550   return 0;
14551 }
14552 _ACEOF
14553 if ac_fn_cxx_try_link "$LINENO"; then :
14554
14555   lt_aix_libpath_sed='
14556       /Import File Strings/,/^$/ {
14557           /^0/ {
14558               s/^0  *\([^ ]*\) *$/\1/
14559               p
14560           }
14561       }'
14562   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14563   # Check for a 64-bit object if we didn't find anything.
14564   if test -z "$lt_cv_aix_libpath__CXX"; then
14565     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14566   fi
14567 fi
14568 rm -f core conftest.err conftest.$ac_objext \
14569     conftest$ac_exeext conftest.$ac_ext
14570   if test -z "$lt_cv_aix_libpath__CXX"; then
14571     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14572   fi
14573
14574 fi
14575
14576   aix_libpath=$lt_cv_aix_libpath__CXX
14577 fi
14578
14579             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14580             # Warning - without using the other run time loading flags,
14581             # -berok will link without error, but may produce a broken library.
14582             no_undefined_flag_CXX=' ${wl}-bernotok'
14583             allow_undefined_flag_CXX=' ${wl}-berok'
14584             if test "$with_gnu_ld" = yes; then
14585               # We only use this code for GNU lds that support --whole-archive.
14586               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14587             else
14588               # Exported symbols can be pulled into shared objects from archives
14589               whole_archive_flag_spec_CXX='$convenience'
14590             fi
14591             archive_cmds_need_lc_CXX=yes
14592             # This is similar to how AIX traditionally builds its shared
14593             # libraries.
14594             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'
14595           fi
14596         fi
14597         ;;
14598
14599       beos*)
14600         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14601           allow_undefined_flag_CXX=unsupported
14602           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14603           # support --undefined.  This deserves some investigation.  FIXME
14604           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14605         else
14606           ld_shlibs_CXX=no
14607         fi
14608         ;;
14609
14610       chorus*)
14611         case $cc_basename in
14612           *)
14613           # FIXME: insert proper C++ library support
14614           ld_shlibs_CXX=no
14615           ;;
14616         esac
14617         ;;
14618
14619       cygwin* | mingw* | pw32* | cegcc*)
14620         case $GXX,$cc_basename in
14621         ,cl* | no,cl*)
14622           # Native MSVC
14623           # hardcode_libdir_flag_spec is actually meaningless, as there is
14624           # no search path for DLLs.
14625           hardcode_libdir_flag_spec_CXX=' '
14626           allow_undefined_flag_CXX=unsupported
14627           always_export_symbols_CXX=yes
14628           file_list_spec_CXX='@'
14629           # Tell ltmain to make .lib files, not .a files.
14630           libext=lib
14631           # Tell ltmain to make .dll files, not .so files.
14632           shrext_cmds=".dll"
14633           # FIXME: Setting linknames here is a bad hack.
14634           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14635           archive_expsym_cmds_CXX='if test "x`$SED \"$sed_uncomment_deffile\" $export_symbols | $SED 1q`" = xEXPORTS; then
14636               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14637             else
14638               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14639             fi~
14640             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14641             linknames='
14642           # The linker will not automatically build a static lib if we build a DLL.
14643           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14644           enable_shared_with_static_runtimes_CXX=yes
14645           # Don't use ranlib
14646           old_postinstall_cmds_CXX='chmod 644 $oldlib'
14647           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14648             lt_tool_outputfile="@TOOL_OUTPUT@"~
14649             case $lt_outputfile in
14650               *.exe|*.EXE) ;;
14651               *)
14652                 lt_outputfile="$lt_outputfile.exe"
14653                 lt_tool_outputfile="$lt_tool_outputfile.exe"
14654                 ;;
14655             esac~
14656             func_to_tool_file "$lt_outputfile"~
14657             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14658               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14659               $RM "$lt_outputfile.manifest";
14660             fi'
14661           ;;
14662         *)
14663           # g++
14664           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14665           # as there is no search path for DLLs.
14666           hardcode_libdir_flag_spec_CXX='-L$libdir'
14667           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
14668           allow_undefined_flag_CXX=unsupported
14669           always_export_symbols_CXX=no
14670           enable_shared_with_static_runtimes_CXX=yes
14671
14672           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14673             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'
14674             # If the export-symbols file already is a .def file (1st line
14675             # is EXPORTS), use it as is; otherwise, prepend...
14676             archive_expsym_cmds_CXX='if test "x`$SED \"$sed_uncomment_deffile\" $export_symbols | $SED 1q`" = xEXPORTS; then
14677               cp $export_symbols $output_objdir/$soname.def;
14678             else
14679               echo EXPORTS > $output_objdir/$soname.def;
14680               cat $export_symbols >> $output_objdir/$soname.def;
14681             fi~
14682             $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'
14683           else
14684             ld_shlibs_CXX=no
14685           fi
14686           ;;
14687         esac
14688         ;;
14689       darwin* | rhapsody*)
14690
14691
14692   archive_cmds_need_lc_CXX=no
14693   hardcode_direct_CXX=no
14694   hardcode_automatic_CXX=yes
14695   hardcode_shlibpath_var_CXX=unsupported
14696   if test "$lt_cv_ld_force_load" = "yes"; then
14697     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\"`'
14698
14699   else
14700     whole_archive_flag_spec_CXX=''
14701   fi
14702   link_all_deplibs_CXX=yes
14703   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14704   case $cc_basename in
14705      ifort*) _lt_dar_can_shared=yes ;;
14706      *) _lt_dar_can_shared=$GCC ;;
14707   esac
14708   if test "$_lt_dar_can_shared" = "yes"; then
14709     output_verbose_link_cmd=func_echo_all
14710     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}"
14711     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14712     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}"
14713     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}"
14714        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14715       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}"
14716       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}"
14717     fi
14718
14719   else
14720   ld_shlibs_CXX=no
14721   fi
14722
14723         ;;
14724
14725       dgux*)
14726         case $cc_basename in
14727           ec++*)
14728             # FIXME: insert proper C++ library support
14729             ld_shlibs_CXX=no
14730             ;;
14731           ghcx*)
14732             # Green Hills C++ Compiler
14733             # FIXME: insert proper C++ library support
14734             ld_shlibs_CXX=no
14735             ;;
14736           *)
14737             # FIXME: insert proper C++ library support
14738             ld_shlibs_CXX=no
14739             ;;
14740         esac
14741         ;;
14742
14743       freebsd2.*)
14744         # C++ shared libraries reported to be fairly broken before
14745         # switch to ELF
14746         ld_shlibs_CXX=no
14747         ;;
14748
14749       freebsd-elf*)
14750         archive_cmds_need_lc_CXX=no
14751         ;;
14752
14753       freebsd* | dragonfly*)
14754         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14755         # conventions
14756         ld_shlibs_CXX=yes
14757         ;;
14758
14759       gnu*)
14760         ;;
14761
14762       haiku*)
14763         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14764         link_all_deplibs_CXX=yes
14765         ;;
14766
14767       hpux9*)
14768         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14769         hardcode_libdir_separator_CXX=:
14770         export_dynamic_flag_spec_CXX='${wl}-E'
14771         hardcode_direct_CXX=yes
14772         hardcode_minus_L_CXX=yes # Not in the search PATH,
14773                                              # but as the default
14774                                              # location of the library.
14775
14776         case $cc_basename in
14777           CC*)
14778             # FIXME: insert proper C++ library support
14779             ld_shlibs_CXX=no
14780             ;;
14781           aCC*)
14782             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'
14783             # Commands to make compiler produce verbose output that lists
14784             # what "hidden" libraries, object files and flags are used when
14785             # linking a shared library.
14786             #
14787             # There doesn't appear to be a way to prevent this compiler from
14788             # explicitly linking system object files so we need to strip them
14789             # from the output so that they don't get included in the library
14790             # dependencies.
14791             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"'
14792             ;;
14793           *)
14794             if test "$GXX" = yes; then
14795               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'
14796             else
14797               # FIXME: insert proper C++ library support
14798               ld_shlibs_CXX=no
14799             fi
14800             ;;
14801         esac
14802         ;;
14803
14804       hpux10*|hpux11*)
14805         if test $with_gnu_ld = no; then
14806           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14807           hardcode_libdir_separator_CXX=:
14808
14809           case $host_cpu in
14810             hppa*64*|ia64*)
14811               ;;
14812             *)
14813               export_dynamic_flag_spec_CXX='${wl}-E'
14814               ;;
14815           esac
14816         fi
14817         case $host_cpu in
14818           hppa*64*|ia64*)
14819             hardcode_direct_CXX=no
14820             hardcode_shlibpath_var_CXX=no
14821             ;;
14822           *)
14823             hardcode_direct_CXX=yes
14824             hardcode_direct_absolute_CXX=yes
14825             hardcode_minus_L_CXX=yes # Not in the search PATH,
14826                                                  # but as the default
14827                                                  # location of the library.
14828             ;;
14829         esac
14830
14831         case $cc_basename in
14832           CC*)
14833             # FIXME: insert proper C++ library support
14834             ld_shlibs_CXX=no
14835             ;;
14836           aCC*)
14837             case $host_cpu in
14838               hppa*64*)
14839                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14840                 ;;
14841               ia64*)
14842                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14843                 ;;
14844               *)
14845                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14846                 ;;
14847             esac
14848             # Commands to make compiler produce verbose output that lists
14849             # what "hidden" libraries, object files and flags are used when
14850             # linking a shared library.
14851             #
14852             # There doesn't appear to be a way to prevent this compiler from
14853             # explicitly linking system object files so we need to strip them
14854             # from the output so that they don't get included in the library
14855             # dependencies.
14856             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"'
14857             ;;
14858           *)
14859             if test "$GXX" = yes; then
14860               if test $with_gnu_ld = no; then
14861                 case $host_cpu in
14862                   hppa*64*)
14863                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14864                     ;;
14865                   ia64*)
14866                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14867                     ;;
14868                   *)
14869                     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'
14870                     ;;
14871                 esac
14872               fi
14873             else
14874               # FIXME: insert proper C++ library support
14875               ld_shlibs_CXX=no
14876             fi
14877             ;;
14878         esac
14879         ;;
14880
14881       interix[3-9]*)
14882         hardcode_direct_CXX=no
14883         hardcode_shlibpath_var_CXX=no
14884         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14885         export_dynamic_flag_spec_CXX='${wl}-E'
14886         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14887         # Instead, shared libraries are loaded at an image base (0x10000000 by
14888         # default) and relocated if they conflict, which is a slow very memory
14889         # consuming and fragmenting process.  To avoid this, we pick a random,
14890         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14891         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14892         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'
14893         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'
14894         ;;
14895       irix5* | irix6*)
14896         case $cc_basename in
14897           CC*)
14898             # SGI C++
14899             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'
14900
14901             # Archives containing C++ object files must be created using
14902             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14903             # necessary to make sure instantiated templates are included
14904             # in the archive.
14905             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14906             ;;
14907           *)
14908             if test "$GXX" = yes; then
14909               if test "$with_gnu_ld" = no; then
14910                 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'
14911               else
14912                 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'
14913               fi
14914             fi
14915             link_all_deplibs_CXX=yes
14916             ;;
14917         esac
14918         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14919         hardcode_libdir_separator_CXX=:
14920         inherit_rpath_CXX=yes
14921         ;;
14922
14923       linux* | k*bsd*-gnu | kopensolaris*-gnu)
14924         case $cc_basename in
14925           KCC*)
14926             # Kuck and Associates, Inc. (KAI) C++ Compiler
14927
14928             # KCC will only create a shared library if the output file
14929             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14930             # to its proper name (with version) after linking.
14931             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'
14932             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'
14933             # Commands to make compiler produce verbose output that lists
14934             # what "hidden" libraries, object files and flags are used when
14935             # linking a shared library.
14936             #
14937             # There doesn't appear to be a way to prevent this compiler from
14938             # explicitly linking system object files so we need to strip them
14939             # from the output so that they don't get included in the library
14940             # dependencies.
14941             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"'
14942
14943             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14944             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14945
14946             # Archives containing C++ object files must be created using
14947             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14948             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14949             ;;
14950           icpc* | ecpc* )
14951             # Intel C++
14952             with_gnu_ld=yes
14953             # version 8.0 and above of icpc choke on multiply defined symbols
14954             # if we add $predep_objects and $postdep_objects, however 7.1 and
14955             # earlier do not add the objects themselves.
14956             case `$CC -V 2>&1` in
14957               *"Version 7."*)
14958                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14959                 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'
14960                 ;;
14961               *)  # Version 8.0 or newer
14962                 tmp_idyn=
14963                 case $host_cpu in
14964                   ia64*) tmp_idyn=' -i_dynamic';;
14965                 esac
14966                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14967                 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'
14968                 ;;
14969             esac
14970             archive_cmds_need_lc_CXX=no
14971             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14972             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14973             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14974             ;;
14975           pgCC* | pgcpp*)
14976             # Portland Group C++ compiler
14977             case `$CC -V` in
14978             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14979               prelink_cmds_CXX='tpldir=Template.dir~
14980                 rm -rf $tpldir~
14981                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14982                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14983               old_archive_cmds_CXX='tpldir=Template.dir~
14984                 rm -rf $tpldir~
14985                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14986                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14987                 $RANLIB $oldlib'
14988               archive_cmds_CXX='tpldir=Template.dir~
14989                 rm -rf $tpldir~
14990                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14991                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14992               archive_expsym_cmds_CXX='tpldir=Template.dir~
14993                 rm -rf $tpldir~
14994                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14995                 $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'
14996               ;;
14997             *) # Version 6 and above use weak symbols
14998               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14999               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'
15000               ;;
15001             esac
15002
15003             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15004             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15005             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'
15006             ;;
15007           cxx*)
15008             # Compaq C++
15009             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15010             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'
15011
15012             runpath_var=LD_RUN_PATH
15013             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15014             hardcode_libdir_separator_CXX=:
15015
15016             # Commands to make compiler produce verbose output that lists
15017             # what "hidden" libraries, object files and flags are used when
15018             # linking a shared library.
15019             #
15020             # There doesn't appear to be a way to prevent this compiler from
15021             # explicitly linking system object files so we need to strip them
15022             # from the output so that they don't get included in the library
15023             # dependencies.
15024             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'
15025             ;;
15026           xl* | mpixl* | bgxl*)
15027             # IBM XL 8.0 on PPC, with GNU ld
15028             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15029             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15030             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15031             if test "x$supports_anon_versioning" = xyes; then
15032               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15033                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15034                 echo "local: *; };" >> $output_objdir/$libname.ver~
15035                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15036             fi
15037             ;;
15038           *)
15039             case `$CC -V 2>&1 | sed 5q` in
15040             *Sun\ C*)
15041               # Sun C++ 5.9
15042               no_undefined_flag_CXX=' -zdefs'
15043               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15044               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'
15045               hardcode_libdir_flag_spec_CXX='-R$libdir'
15046               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'
15047               compiler_needs_object_CXX=yes
15048
15049               # Not sure whether something based on
15050               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15051               # would be better.
15052               output_verbose_link_cmd='func_echo_all'
15053
15054               # Archives containing C++ object files must be created using
15055               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15056               # necessary to make sure instantiated templates are included
15057               # in the archive.
15058               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15059               ;;
15060             esac
15061             ;;
15062         esac
15063         ;;
15064
15065       lynxos*)
15066         # FIXME: insert proper C++ library support
15067         ld_shlibs_CXX=no
15068         ;;
15069
15070       m88k*)
15071         # FIXME: insert proper C++ library support
15072         ld_shlibs_CXX=no
15073         ;;
15074
15075       mvs*)
15076         case $cc_basename in
15077           cxx*)
15078             # FIXME: insert proper C++ library support
15079             ld_shlibs_CXX=no
15080             ;;
15081           *)
15082             # FIXME: insert proper C++ library support
15083             ld_shlibs_CXX=no
15084             ;;
15085         esac
15086         ;;
15087
15088       netbsd*)
15089         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15090           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15091           wlarc=
15092           hardcode_libdir_flag_spec_CXX='-R$libdir'
15093           hardcode_direct_CXX=yes
15094           hardcode_shlibpath_var_CXX=no
15095         fi
15096         # Workaround some broken pre-1.5 toolchains
15097         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15098         ;;
15099
15100       *nto* | *qnx*)
15101         ld_shlibs_CXX=yes
15102         ;;
15103
15104       openbsd2*)
15105         # C++ shared libraries are fairly broken
15106         ld_shlibs_CXX=no
15107         ;;
15108
15109       openbsd*)
15110         if test -f /usr/libexec/ld.so; then
15111           hardcode_direct_CXX=yes
15112           hardcode_shlibpath_var_CXX=no
15113           hardcode_direct_absolute_CXX=yes
15114           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15115           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15116           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15117             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15118             export_dynamic_flag_spec_CXX='${wl}-E'
15119             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15120           fi
15121           output_verbose_link_cmd=func_echo_all
15122         else
15123           ld_shlibs_CXX=no
15124         fi
15125         ;;
15126
15127       osf3* | osf4* | osf5*)
15128         case $cc_basename in
15129           KCC*)
15130             # Kuck and Associates, Inc. (KAI) C++ Compiler
15131
15132             # KCC will only create a shared library if the output file
15133             # ends with ".so" (or ".sl" for HP-UX), so rename the library
15134             # to its proper name (with version) after linking.
15135             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'
15136
15137             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15138             hardcode_libdir_separator_CXX=:
15139
15140             # Archives containing C++ object files must be created using
15141             # the KAI C++ compiler.
15142             case $host in
15143               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15144               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15145             esac
15146             ;;
15147           RCC*)
15148             # Rational C++ 2.4.1
15149             # FIXME: insert proper C++ library support
15150             ld_shlibs_CXX=no
15151             ;;
15152           cxx*)
15153             case $host in
15154               osf3*)
15155                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15156                 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'
15157                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15158                 ;;
15159               *)
15160                 allow_undefined_flag_CXX=' -expect_unresolved \*'
15161                 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'
15162                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15163                   echo "-hidden">> $lib.exp~
15164                   $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~
15165                   $RM $lib.exp'
15166                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15167                 ;;
15168             esac
15169
15170             hardcode_libdir_separator_CXX=:
15171
15172             # Commands to make compiler produce verbose output that lists
15173             # what "hidden" libraries, object files and flags are used when
15174             # linking a shared library.
15175             #
15176             # There doesn't appear to be a way to prevent this compiler from
15177             # explicitly linking system object files so we need to strip them
15178             # from the output so that they don't get included in the library
15179             # dependencies.
15180             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"'
15181             ;;
15182           *)
15183             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15184               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15185               case $host in
15186                 osf3*)
15187                   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'
15188                   ;;
15189                 *)
15190                   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'
15191                   ;;
15192               esac
15193
15194               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15195               hardcode_libdir_separator_CXX=:
15196
15197               # Commands to make compiler produce verbose output that lists
15198               # what "hidden" libraries, object files and flags are used when
15199               # linking a shared library.
15200               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15201
15202             else
15203               # FIXME: insert proper C++ library support
15204               ld_shlibs_CXX=no
15205             fi
15206             ;;
15207         esac
15208         ;;
15209
15210       psos*)
15211         # FIXME: insert proper C++ library support
15212         ld_shlibs_CXX=no
15213         ;;
15214
15215       sunos4*)
15216         case $cc_basename in
15217           CC*)
15218             # Sun C++ 4.x
15219             # FIXME: insert proper C++ library support
15220             ld_shlibs_CXX=no
15221             ;;
15222           lcc*)
15223             # Lucid
15224             # FIXME: insert proper C++ library support
15225             ld_shlibs_CXX=no
15226             ;;
15227           *)
15228             # FIXME: insert proper C++ library support
15229             ld_shlibs_CXX=no
15230             ;;
15231         esac
15232         ;;
15233
15234       solaris*)
15235         case $cc_basename in
15236           CC* | sunCC*)
15237             # Sun C++ 4.2, 5.x and Centerline C++
15238             archive_cmds_need_lc_CXX=yes
15239             no_undefined_flag_CXX=' -zdefs'
15240             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15241             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15242               $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'
15243
15244             hardcode_libdir_flag_spec_CXX='-R$libdir'
15245             hardcode_shlibpath_var_CXX=no
15246             case $host_os in
15247               solaris2.[0-5] | solaris2.[0-5].*) ;;
15248               *)
15249                 # The compiler driver will combine and reorder linker options,
15250                 # but understands `-z linker_flag'.
15251                 # Supported since Solaris 2.6 (maybe 2.5.1?)
15252                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15253                 ;;
15254             esac
15255             link_all_deplibs_CXX=yes
15256
15257             output_verbose_link_cmd='func_echo_all'
15258
15259             # Archives containing C++ object files must be created using
15260             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15261             # necessary to make sure instantiated templates are included
15262             # in the archive.
15263             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15264             ;;
15265           gcx*)
15266             # Green Hills C++ Compiler
15267             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15268
15269             # The C++ compiler must be used to create the archive.
15270             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15271             ;;
15272           *)
15273             # GNU C++ compiler with Solaris linker
15274             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15275               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15276               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15277                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15278                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15279                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15280
15281                 # Commands to make compiler produce verbose output that lists
15282                 # what "hidden" libraries, object files and flags are used when
15283                 # linking a shared library.
15284                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15285               else
15286                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
15287                 # platform.
15288                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15289                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15290                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15291
15292                 # Commands to make compiler produce verbose output that lists
15293                 # what "hidden" libraries, object files and flags are used when
15294                 # linking a shared library.
15295                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15296               fi
15297
15298               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15299               case $host_os in
15300                 solaris2.[0-5] | solaris2.[0-5].*) ;;
15301                 *)
15302                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15303                   ;;
15304               esac
15305             fi
15306             ;;
15307         esac
15308         ;;
15309
15310     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15311       no_undefined_flag_CXX='${wl}-z,text'
15312       archive_cmds_need_lc_CXX=no
15313       hardcode_shlibpath_var_CXX=no
15314       runpath_var='LD_RUN_PATH'
15315
15316       case $cc_basename in
15317         CC*)
15318           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15319           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15320           ;;
15321         *)
15322           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15323           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15324           ;;
15325       esac
15326       ;;
15327
15328       sysv5* | sco3.2v5* | sco5v6*)
15329         # Note: We can NOT use -z defs as we might desire, because we do not
15330         # link with -lc, and that would cause any symbols used from libc to
15331         # always be unresolved, which means just about no library would
15332         # ever link correctly.  If we're not using GNU ld we use -z text
15333         # though, which does catch some bad symbols but isn't as heavy-handed
15334         # as -z defs.
15335         no_undefined_flag_CXX='${wl}-z,text'
15336         allow_undefined_flag_CXX='${wl}-z,nodefs'
15337         archive_cmds_need_lc_CXX=no
15338         hardcode_shlibpath_var_CXX=no
15339         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
15340         hardcode_libdir_separator_CXX=':'
15341         link_all_deplibs_CXX=yes
15342         export_dynamic_flag_spec_CXX='${wl}-Bexport'
15343         runpath_var='LD_RUN_PATH'
15344
15345         case $cc_basename in
15346           CC*)
15347             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15348             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15349             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15350               '"$old_archive_cmds_CXX"
15351             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15352               '"$reload_cmds_CXX"
15353             ;;
15354           *)
15355             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15356             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15357             ;;
15358         esac
15359       ;;
15360
15361       tandem*)
15362         case $cc_basename in
15363           NCC*)
15364             # NonStop-UX NCC 3.20
15365             # FIXME: insert proper C++ library support
15366             ld_shlibs_CXX=no
15367             ;;
15368           *)
15369             # FIXME: insert proper C++ library support
15370             ld_shlibs_CXX=no
15371             ;;
15372         esac
15373         ;;
15374
15375       vxworks*)
15376         # FIXME: insert proper C++ library support
15377         ld_shlibs_CXX=no
15378         ;;
15379
15380       *)
15381         # FIXME: insert proper C++ library support
15382         ld_shlibs_CXX=no
15383         ;;
15384     esac
15385
15386     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15387 $as_echo "$ld_shlibs_CXX" >&6; }
15388     test "$ld_shlibs_CXX" = no && can_build_shared=no
15389
15390     GCC_CXX="$GXX"
15391     LD_CXX="$LD"
15392
15393     ## CAVEAT EMPTOR:
15394     ## There is no encapsulation within the following macros, do not change
15395     ## the running order or otherwise move them around unless you know exactly
15396     ## what you are doing...
15397     # Dependencies to place before and after the object being linked:
15398 predep_objects_CXX=
15399 postdep_objects_CXX=
15400 predeps_CXX=
15401 postdeps_CXX=
15402 compiler_lib_search_path_CXX=
15403
15404 cat > conftest.$ac_ext <<_LT_EOF
15405 class Foo
15406 {
15407 public:
15408   Foo (void) { a = 0; }
15409 private:
15410   int a;
15411 };
15412 _LT_EOF
15413
15414
15415 _lt_libdeps_save_CFLAGS=$CFLAGS
15416 case "$CC $CFLAGS " in #(
15417 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15418 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15419 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15420 esac
15421
15422 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15423   (eval $ac_compile) 2>&5
15424   ac_status=$?
15425   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15426   test $ac_status = 0; }; then
15427   # Parse the compiler output and extract the necessary
15428   # objects, libraries and library flags.
15429
15430   # Sentinel used to keep track of whether or not we are before
15431   # the conftest object file.
15432   pre_test_object_deps_done=no
15433
15434   for p in `eval "$output_verbose_link_cmd"`; do
15435     case ${prev}${p} in
15436
15437     -L* | -R* | -l*)
15438        # Some compilers place space between "-{L,R}" and the path.
15439        # Remove the space.
15440        if test $p = "-L" ||
15441           test $p = "-R"; then
15442          prev=$p
15443          continue
15444        fi
15445
15446        # Expand the sysroot to ease extracting the directories later.
15447        if test -z "$prev"; then
15448          case $p in
15449          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15450          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15451          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15452          esac
15453        fi
15454        case $p in
15455        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15456        esac
15457        if test "$pre_test_object_deps_done" = no; then
15458          case ${prev} in
15459          -L | -R)
15460            # Internal compiler library paths should come after those
15461            # provided the user.  The postdeps already come after the
15462            # user supplied libs so there is no need to process them.
15463            if test -z "$compiler_lib_search_path_CXX"; then
15464              compiler_lib_search_path_CXX="${prev}${p}"
15465            else
15466              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15467            fi
15468            ;;
15469          # The "-l" case would never come before the object being
15470          # linked, so don't bother handling this case.
15471          esac
15472        else
15473          if test -z "$postdeps_CXX"; then
15474            postdeps_CXX="${prev}${p}"
15475          else
15476            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15477          fi
15478        fi
15479        prev=
15480        ;;
15481
15482     *.lto.$objext) ;; # Ignore GCC LTO objects
15483     *.$objext)
15484        # This assumes that the test object file only shows up
15485        # once in the compiler output.
15486        if test "$p" = "conftest.$objext"; then
15487          pre_test_object_deps_done=yes
15488          continue
15489        fi
15490
15491        if test "$pre_test_object_deps_done" = no; then
15492          if test -z "$predep_objects_CXX"; then
15493            predep_objects_CXX="$p"
15494          else
15495            predep_objects_CXX="$predep_objects_CXX $p"
15496          fi
15497        else
15498          if test -z "$postdep_objects_CXX"; then
15499            postdep_objects_CXX="$p"
15500          else
15501            postdep_objects_CXX="$postdep_objects_CXX $p"
15502          fi
15503        fi
15504        ;;
15505
15506     *) ;; # Ignore the rest.
15507
15508     esac
15509   done
15510
15511   # Clean up.
15512   rm -f a.out a.exe
15513 else
15514   echo "libtool.m4: error: problem compiling CXX test program"
15515 fi
15516
15517 $RM -f confest.$objext
15518 CFLAGS=$_lt_libdeps_save_CFLAGS
15519
15520 # PORTME: override above test on systems where it is broken
15521 case $host_os in
15522 interix[3-9]*)
15523   # Interix 3.5 installs completely hosed .la files for C++, so rather than
15524   # hack all around it, let's just trust "g++" to DTRT.
15525   predep_objects_CXX=
15526   postdep_objects_CXX=
15527   postdeps_CXX=
15528   ;;
15529
15530 linux*)
15531   case `$CC -V 2>&1 | sed 5q` in
15532   *Sun\ C*)
15533     # Sun C++ 5.9
15534
15535     # The more standards-conforming stlport4 library is
15536     # incompatible with the Cstd library. Avoid specifying
15537     # it if it's in CXXFLAGS. Ignore libCrun as
15538     # -library=stlport4 depends on it.
15539     case " $CXX $CXXFLAGS " in
15540     *" -library=stlport4 "*)
15541       solaris_use_stlport4=yes
15542       ;;
15543     esac
15544
15545     if test "$solaris_use_stlport4" != yes; then
15546       postdeps_CXX='-library=Cstd -library=Crun'
15547     fi
15548     ;;
15549   esac
15550   ;;
15551
15552 solaris*)
15553   case $cc_basename in
15554   CC* | sunCC*)
15555     # The more standards-conforming stlport4 library is
15556     # incompatible with the Cstd library. Avoid specifying
15557     # it if it's in CXXFLAGS. Ignore libCrun as
15558     # -library=stlport4 depends on it.
15559     case " $CXX $CXXFLAGS " in
15560     *" -library=stlport4 "*)
15561       solaris_use_stlport4=yes
15562       ;;
15563     esac
15564
15565     # Adding this requires a known-good setup of shared libraries for
15566     # Sun compiler versions before 5.6, else PIC objects from an old
15567     # archive will be linked into the output, leading to subtle bugs.
15568     if test "$solaris_use_stlport4" != yes; then
15569       postdeps_CXX='-library=Cstd -library=Crun'
15570     fi
15571     ;;
15572   esac
15573   ;;
15574 esac
15575
15576
15577 case " $postdeps_CXX " in
15578 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15579 esac
15580  compiler_lib_search_dirs_CXX=
15581 if test -n "${compiler_lib_search_path_CXX}"; then
15582  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15583 fi
15584
15585
15586
15587
15588
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     lt_prog_compiler_wl_CXX=
15616 lt_prog_compiler_pic_CXX=
15617 lt_prog_compiler_static_CXX=
15618
15619
15620   # C++ specific cases for pic, static, wl, etc.
15621   if test "$GXX" = yes; then
15622     lt_prog_compiler_wl_CXX='-Wl,'
15623     lt_prog_compiler_static_CXX='-static'
15624
15625     case $host_os in
15626     aix*)
15627       # All AIX code is PIC.
15628       if test "$host_cpu" = ia64; then
15629         # AIX 5 now supports IA64 processor
15630         lt_prog_compiler_static_CXX='-Bstatic'
15631       fi
15632       ;;
15633
15634     amigaos*)
15635       case $host_cpu in
15636       powerpc)
15637             # see comment about AmigaOS4 .so support
15638             lt_prog_compiler_pic_CXX='-fPIC'
15639         ;;
15640       m68k)
15641             # FIXME: we need at least 68020 code to build shared libraries, but
15642             # adding the `-m68020' flag to GCC prevents building anything better,
15643             # like `-m68040'.
15644             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15645         ;;
15646       esac
15647       ;;
15648
15649     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15650       # PIC is the default for these OSes.
15651       ;;
15652     mingw* | cygwin* | os2* | pw32* | cegcc*)
15653       # This hack is so that the source file can tell whether it is being
15654       # built for inclusion in a dll (and should export symbols for example).
15655       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15656       # (--disable-auto-import) libraries
15657       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15658       ;;
15659     darwin* | rhapsody*)
15660       # PIC is the default on this platform
15661       # Common symbols not allowed in MH_DYLIB files
15662       lt_prog_compiler_pic_CXX='-fno-common'
15663       ;;
15664     *djgpp*)
15665       # DJGPP does not support shared libraries at all
15666       lt_prog_compiler_pic_CXX=
15667       ;;
15668     haiku*)
15669       # PIC is the default for Haiku.
15670       # The "-static" flag exists, but is broken.
15671       lt_prog_compiler_static_CXX=
15672       ;;
15673     interix[3-9]*)
15674       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15675       # Instead, we relocate shared libraries at runtime.
15676       ;;
15677     sysv4*MP*)
15678       if test -d /usr/nec; then
15679         lt_prog_compiler_pic_CXX=-Kconform_pic
15680       fi
15681       ;;
15682     hpux*)
15683       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15684       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15685       # sets the default TLS model and affects inlining.
15686       case $host_cpu in
15687       hppa*64*)
15688         ;;
15689       *)
15690         lt_prog_compiler_pic_CXX='-fPIC'
15691         ;;
15692       esac
15693       ;;
15694     *qnx* | *nto*)
15695       # QNX uses GNU C++, but need to define -shared option too, otherwise
15696       # it will coredump.
15697       lt_prog_compiler_pic_CXX='-fPIC -shared'
15698       ;;
15699     *)
15700       lt_prog_compiler_pic_CXX='-fPIC'
15701       ;;
15702     esac
15703   else
15704     case $host_os in
15705       aix[4-9]*)
15706         # All AIX code is PIC.
15707         if test "$host_cpu" = ia64; then
15708           # AIX 5 now supports IA64 processor
15709           lt_prog_compiler_static_CXX='-Bstatic'
15710         else
15711           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15712         fi
15713         ;;
15714       chorus*)
15715         case $cc_basename in
15716         cxch68*)
15717           # Green Hills C++ Compiler
15718           # _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"
15719           ;;
15720         esac
15721         ;;
15722       mingw* | cygwin* | os2* | pw32* | cegcc*)
15723         # This hack is so that the source file can tell whether it is being
15724         # built for inclusion in a dll (and should export symbols for example).
15725         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15726         ;;
15727       dgux*)
15728         case $cc_basename in
15729           ec++*)
15730             lt_prog_compiler_pic_CXX='-KPIC'
15731             ;;
15732           ghcx*)
15733             # Green Hills C++ Compiler
15734             lt_prog_compiler_pic_CXX='-pic'
15735             ;;
15736           *)
15737             ;;
15738         esac
15739         ;;
15740       freebsd* | dragonfly*)
15741         # FreeBSD uses GNU C++
15742         ;;
15743       hpux9* | hpux10* | hpux11*)
15744         case $cc_basename in
15745           CC*)
15746             lt_prog_compiler_wl_CXX='-Wl,'
15747             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15748             if test "$host_cpu" != ia64; then
15749               lt_prog_compiler_pic_CXX='+Z'
15750             fi
15751             ;;
15752           aCC*)
15753             lt_prog_compiler_wl_CXX='-Wl,'
15754             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15755             case $host_cpu in
15756             hppa*64*|ia64*)
15757               # +Z the default
15758               ;;
15759             *)
15760               lt_prog_compiler_pic_CXX='+Z'
15761               ;;
15762             esac
15763             ;;
15764           *)
15765             ;;
15766         esac
15767         ;;
15768       interix*)
15769         # This is c89, which is MS Visual C++ (no shared libs)
15770         # Anyone wants to do a port?
15771         ;;
15772       irix5* | irix6* | nonstopux*)
15773         case $cc_basename in
15774           CC*)
15775             lt_prog_compiler_wl_CXX='-Wl,'
15776             lt_prog_compiler_static_CXX='-non_shared'
15777             # CC pic flag -KPIC is the default.
15778             ;;
15779           *)
15780             ;;
15781         esac
15782         ;;
15783       linux* | k*bsd*-gnu | kopensolaris*-gnu)
15784         case $cc_basename in
15785           KCC*)
15786             # KAI C++ Compiler
15787             lt_prog_compiler_wl_CXX='--backend -Wl,'
15788             lt_prog_compiler_pic_CXX='-fPIC'
15789             ;;
15790           ecpc* )
15791             # old Intel C++ for x86_64 which still supported -KPIC.
15792             lt_prog_compiler_wl_CXX='-Wl,'
15793             lt_prog_compiler_pic_CXX='-KPIC'
15794             lt_prog_compiler_static_CXX='-static'
15795             ;;
15796           icpc* )
15797             # Intel C++, used to be incompatible with GCC.
15798             # ICC 10 doesn't accept -KPIC any more.
15799             lt_prog_compiler_wl_CXX='-Wl,'
15800             lt_prog_compiler_pic_CXX='-fPIC'
15801             lt_prog_compiler_static_CXX='-static'
15802             ;;
15803           pgCC* | pgcpp*)
15804             # Portland Group C++ compiler
15805             lt_prog_compiler_wl_CXX='-Wl,'
15806             lt_prog_compiler_pic_CXX='-fpic'
15807             lt_prog_compiler_static_CXX='-Bstatic'
15808             ;;
15809           cxx*)
15810             # Compaq C++
15811             # Make sure the PIC flag is empty.  It appears that all Alpha
15812             # Linux and Compaq Tru64 Unix objects are PIC.
15813             lt_prog_compiler_pic_CXX=
15814             lt_prog_compiler_static_CXX='-non_shared'
15815             ;;
15816           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15817             # IBM XL 8.0, 9.0 on PPC and BlueGene
15818             lt_prog_compiler_wl_CXX='-Wl,'
15819             lt_prog_compiler_pic_CXX='-qpic'
15820             lt_prog_compiler_static_CXX='-qstaticlink'
15821             ;;
15822           *)
15823             case `$CC -V 2>&1 | sed 5q` in
15824             *Sun\ C*)
15825               # Sun C++ 5.9
15826               lt_prog_compiler_pic_CXX='-KPIC'
15827               lt_prog_compiler_static_CXX='-Bstatic'
15828               lt_prog_compiler_wl_CXX='-Qoption ld '
15829               ;;
15830             esac
15831             ;;
15832         esac
15833         ;;
15834       lynxos*)
15835         ;;
15836       m88k*)
15837         ;;
15838       mvs*)
15839         case $cc_basename in
15840           cxx*)
15841             lt_prog_compiler_pic_CXX='-W c,exportall'
15842             ;;
15843           *)
15844             ;;
15845         esac
15846         ;;
15847       netbsd* | netbsdelf*-gnu)
15848         ;;
15849       *qnx* | *nto*)
15850         # QNX uses GNU C++, but need to define -shared option too, otherwise
15851         # it will coredump.
15852         lt_prog_compiler_pic_CXX='-fPIC -shared'
15853         ;;
15854       osf3* | osf4* | osf5*)
15855         case $cc_basename in
15856           KCC*)
15857             lt_prog_compiler_wl_CXX='--backend -Wl,'
15858             ;;
15859           RCC*)
15860             # Rational C++ 2.4.1
15861             lt_prog_compiler_pic_CXX='-pic'
15862             ;;
15863           cxx*)
15864             # Digital/Compaq C++
15865             lt_prog_compiler_wl_CXX='-Wl,'
15866             # Make sure the PIC flag is empty.  It appears that all Alpha
15867             # Linux and Compaq Tru64 Unix objects are PIC.
15868             lt_prog_compiler_pic_CXX=
15869             lt_prog_compiler_static_CXX='-non_shared'
15870             ;;
15871           *)
15872             ;;
15873         esac
15874         ;;
15875       psos*)
15876         ;;
15877       solaris*)
15878         case $cc_basename in
15879           CC* | sunCC*)
15880             # Sun C++ 4.2, 5.x and Centerline C++
15881             lt_prog_compiler_pic_CXX='-KPIC'
15882             lt_prog_compiler_static_CXX='-Bstatic'
15883             lt_prog_compiler_wl_CXX='-Qoption ld '
15884             ;;
15885           gcx*)
15886             # Green Hills C++ Compiler
15887             lt_prog_compiler_pic_CXX='-PIC'
15888             ;;
15889           *)
15890             ;;
15891         esac
15892         ;;
15893       sunos4*)
15894         case $cc_basename in
15895           CC*)
15896             # Sun C++ 4.x
15897             lt_prog_compiler_pic_CXX='-pic'
15898             lt_prog_compiler_static_CXX='-Bstatic'
15899             ;;
15900           lcc*)
15901             # Lucid
15902             lt_prog_compiler_pic_CXX='-pic'
15903             ;;
15904           *)
15905             ;;
15906         esac
15907         ;;
15908       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15909         case $cc_basename in
15910           CC*)
15911             lt_prog_compiler_wl_CXX='-Wl,'
15912             lt_prog_compiler_pic_CXX='-KPIC'
15913             lt_prog_compiler_static_CXX='-Bstatic'
15914             ;;
15915         esac
15916         ;;
15917       tandem*)
15918         case $cc_basename in
15919           NCC*)
15920             # NonStop-UX NCC 3.20
15921             lt_prog_compiler_pic_CXX='-KPIC'
15922             ;;
15923           *)
15924             ;;
15925         esac
15926         ;;
15927       vxworks*)
15928         ;;
15929       *)
15930         lt_prog_compiler_can_build_shared_CXX=no
15931         ;;
15932     esac
15933   fi
15934
15935 case $host_os in
15936   # For platforms which do not support PIC, -DPIC is meaningless:
15937   *djgpp*)
15938     lt_prog_compiler_pic_CXX=
15939     ;;
15940   *)
15941     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15942     ;;
15943 esac
15944
15945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15946 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15947 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15948   $as_echo_n "(cached) " >&6
15949 else
15950   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15951 fi
15952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15953 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15954 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15955
15956 #
15957 # Check to make sure the PIC flag actually works.
15958 #
15959 if test -n "$lt_prog_compiler_pic_CXX"; then
15960   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15961 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15962 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15963   $as_echo_n "(cached) " >&6
15964 else
15965   lt_cv_prog_compiler_pic_works_CXX=no
15966    ac_outfile=conftest.$ac_objext
15967    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15968    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15969    # Insert the option either (1) after the last *FLAGS variable, or
15970    # (2) before a word containing "conftest.", or (3) at the end.
15971    # Note that $ac_compile itself does not contain backslashes and begins
15972    # with a dollar sign (not a hyphen), so the echo should work correctly.
15973    # The option is referenced via a variable to avoid confusing sed.
15974    lt_compile=`echo "$ac_compile" | $SED \
15975    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15976    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15977    -e 's:$: $lt_compiler_flag:'`
15978    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15979    (eval "$lt_compile" 2>conftest.err)
15980    ac_status=$?
15981    cat conftest.err >&5
15982    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15983    if (exit $ac_status) && test -s "$ac_outfile"; then
15984      # The compiler can only warn and ignore the option if not recognized
15985      # So say no if there are warnings other than the usual output.
15986      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15987      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15988      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15989        lt_cv_prog_compiler_pic_works_CXX=yes
15990      fi
15991    fi
15992    $RM conftest*
15993
15994 fi
15995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15996 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15997
15998 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15999     case $lt_prog_compiler_pic_CXX in
16000      "" | " "*) ;;
16001      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16002      esac
16003 else
16004     lt_prog_compiler_pic_CXX=
16005      lt_prog_compiler_can_build_shared_CXX=no
16006 fi
16007
16008 fi
16009
16010
16011
16012
16013
16014 #
16015 # Check to make sure the static flag actually works.
16016 #
16017 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16019 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16020 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
16021   $as_echo_n "(cached) " >&6
16022 else
16023   lt_cv_prog_compiler_static_works_CXX=no
16024    save_LDFLAGS="$LDFLAGS"
16025    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16026    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16027    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16028      # The linker can only warn and ignore the option if not recognized
16029      # So say no if there are warnings
16030      if test -s conftest.err; then
16031        # Append any errors to the config.log.
16032        cat conftest.err 1>&5
16033        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16034        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16035        if diff conftest.exp conftest.er2 >/dev/null; then
16036          lt_cv_prog_compiler_static_works_CXX=yes
16037        fi
16038      else
16039        lt_cv_prog_compiler_static_works_CXX=yes
16040      fi
16041    fi
16042    $RM -r conftest*
16043    LDFLAGS="$save_LDFLAGS"
16044
16045 fi
16046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16047 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16048
16049 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
16050     :
16051 else
16052     lt_prog_compiler_static_CXX=
16053 fi
16054
16055
16056
16057
16058     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16059 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16060 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16061   $as_echo_n "(cached) " >&6
16062 else
16063   lt_cv_prog_compiler_c_o_CXX=no
16064    $RM -r conftest 2>/dev/null
16065    mkdir conftest
16066    cd conftest
16067    mkdir out
16068    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16069
16070    lt_compiler_flag="-o out/conftest2.$ac_objext"
16071    # Insert the option either (1) after the last *FLAGS variable, or
16072    # (2) before a word containing "conftest.", or (3) at the end.
16073    # Note that $ac_compile itself does not contain backslashes and begins
16074    # with a dollar sign (not a hyphen), so the echo should work correctly.
16075    lt_compile=`echo "$ac_compile" | $SED \
16076    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16077    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16078    -e 's:$: $lt_compiler_flag:'`
16079    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16080    (eval "$lt_compile" 2>out/conftest.err)
16081    ac_status=$?
16082    cat out/conftest.err >&5
16083    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16084    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16085    then
16086      # The compiler can only warn and ignore the option if not recognized
16087      # So say no if there are warnings
16088      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16089      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16090      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16091        lt_cv_prog_compiler_c_o_CXX=yes
16092      fi
16093    fi
16094    chmod u+w . 2>&5
16095    $RM conftest*
16096    # SGI C++ compiler will create directory out/ii_files/ for
16097    # template instantiation
16098    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16099    $RM out/* && rmdir out
16100    cd ..
16101    $RM -r conftest
16102    $RM conftest*
16103
16104 fi
16105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16106 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16107
16108
16109
16110     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16111 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16112 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16113   $as_echo_n "(cached) " >&6
16114 else
16115   lt_cv_prog_compiler_c_o_CXX=no
16116    $RM -r conftest 2>/dev/null
16117    mkdir conftest
16118    cd conftest
16119    mkdir out
16120    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16121
16122    lt_compiler_flag="-o out/conftest2.$ac_objext"
16123    # Insert the option either (1) after the last *FLAGS variable, or
16124    # (2) before a word containing "conftest.", or (3) at the end.
16125    # Note that $ac_compile itself does not contain backslashes and begins
16126    # with a dollar sign (not a hyphen), so the echo should work correctly.
16127    lt_compile=`echo "$ac_compile" | $SED \
16128    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16129    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16130    -e 's:$: $lt_compiler_flag:'`
16131    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16132    (eval "$lt_compile" 2>out/conftest.err)
16133    ac_status=$?
16134    cat out/conftest.err >&5
16135    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16136    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16137    then
16138      # The compiler can only warn and ignore the option if not recognized
16139      # So say no if there are warnings
16140      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16141      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16142      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16143        lt_cv_prog_compiler_c_o_CXX=yes
16144      fi
16145    fi
16146    chmod u+w . 2>&5
16147    $RM conftest*
16148    # SGI C++ compiler will create directory out/ii_files/ for
16149    # template instantiation
16150    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16151    $RM out/* && rmdir out
16152    cd ..
16153    $RM -r conftest
16154    $RM conftest*
16155
16156 fi
16157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16158 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16159
16160
16161
16162
16163 hard_links="nottested"
16164 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16165   # do not overwrite the value of need_locks provided by the user
16166   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16167 $as_echo_n "checking if we can lock with hard links... " >&6; }
16168   hard_links=yes
16169   $RM conftest*
16170   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16171   touch conftest.a
16172   ln conftest.a conftest.b 2>&5 || hard_links=no
16173   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16175 $as_echo "$hard_links" >&6; }
16176   if test "$hard_links" = no; then
16177     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16178 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16179     need_locks=warn
16180   fi
16181 else
16182   need_locks=no
16183 fi
16184
16185
16186
16187     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16188 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16189
16190   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16191   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16192   case $host_os in
16193   aix[4-9]*)
16194     # If we're using GNU nm, then we don't want the "-C" option.
16195     # -C means demangle to AIX nm, but means don't demangle with GNU nm
16196     # Also, AIX nm treats weak defined symbols like other global defined
16197     # symbols, whereas GNU nm marks them as "W".
16198     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16199       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'
16200     else
16201       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'
16202     fi
16203     ;;
16204   pw32*)
16205     export_symbols_cmds_CXX="$ltdll_cmds"
16206     ;;
16207   cygwin* | mingw* | cegcc*)
16208     case $cc_basename in
16209     cl*)
16210       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16211       ;;
16212     *)
16213       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'
16214       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16215       ;;
16216     esac
16217     ;;
16218   linux* | k*bsd*-gnu | gnu*)
16219     link_all_deplibs_CXX=no
16220     ;;
16221   *)
16222     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16223     ;;
16224   esac
16225
16226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16227 $as_echo "$ld_shlibs_CXX" >&6; }
16228 test "$ld_shlibs_CXX" = no && can_build_shared=no
16229
16230 with_gnu_ld_CXX=$with_gnu_ld
16231
16232
16233
16234
16235
16236
16237 #
16238 # Do we need to explicitly link libc?
16239 #
16240 case "x$archive_cmds_need_lc_CXX" in
16241 x|xyes)
16242   # Assume -lc should be added
16243   archive_cmds_need_lc_CXX=yes
16244
16245   if test "$enable_shared" = yes && test "$GCC" = yes; then
16246     case $archive_cmds_CXX in
16247     *'~'*)
16248       # FIXME: we may have to deal with multi-command sequences.
16249       ;;
16250     '$CC '*)
16251       # Test whether the compiler implicitly links with -lc since on some
16252       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16253       # to ld, don't add -lc before -lgcc.
16254       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16255 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16256 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
16257   $as_echo_n "(cached) " >&6
16258 else
16259   $RM conftest*
16260         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16261
16262         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16263   (eval $ac_compile) 2>&5
16264   ac_status=$?
16265   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16266   test $ac_status = 0; } 2>conftest.err; then
16267           soname=conftest
16268           lib=conftest
16269           libobjs=conftest.$ac_objext
16270           deplibs=
16271           wl=$lt_prog_compiler_wl_CXX
16272           pic_flag=$lt_prog_compiler_pic_CXX
16273           compiler_flags=-v
16274           linker_flags=-v
16275           verstring=
16276           output_objdir=.
16277           libname=conftest
16278           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16279           allow_undefined_flag_CXX=
16280           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16281   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16282   ac_status=$?
16283   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16284   test $ac_status = 0; }
16285           then
16286             lt_cv_archive_cmds_need_lc_CXX=no
16287           else
16288             lt_cv_archive_cmds_need_lc_CXX=yes
16289           fi
16290           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16291         else
16292           cat conftest.err 1>&5
16293         fi
16294         $RM conftest*
16295
16296 fi
16297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16298 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
16299       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
16300       ;;
16301     esac
16302   fi
16303   ;;
16304 esac
16305
16306
16307
16308
16309
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     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16368 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16369
16370 library_names_spec=
16371 libname_spec='lib$name'
16372 soname_spec=
16373 shrext_cmds=".so"
16374 postinstall_cmds=
16375 postuninstall_cmds=
16376 finish_cmds=
16377 finish_eval=
16378 shlibpath_var=
16379 shlibpath_overrides_runpath=unknown
16380 version_type=none
16381 dynamic_linker="$host_os ld.so"
16382 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16383 need_lib_prefix=unknown
16384 hardcode_into_libs=no
16385
16386 # when you set need_version to no, make sure it does not cause -set_version
16387 # flags to be left without arguments
16388 need_version=unknown
16389
16390 case $host_os in
16391 aix3*)
16392   version_type=linux # correct to gnu/linux during the next big refactor
16393   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16394   shlibpath_var=LIBPATH
16395
16396   # AIX 3 has no versioning support, so we append a major version to the name.
16397   soname_spec='${libname}${release}${shared_ext}$major'
16398   ;;
16399
16400 aix[4-9]*)
16401   version_type=linux # correct to gnu/linux during the next big refactor
16402   need_lib_prefix=no
16403   need_version=no
16404   hardcode_into_libs=yes
16405   if test "$host_cpu" = ia64; then
16406     # AIX 5 supports IA64
16407     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16408     shlibpath_var=LD_LIBRARY_PATH
16409   else
16410     # With GCC up to 2.95.x, collect2 would create an import file
16411     # for dependence libraries.  The import file would start with
16412     # the line `#! .'.  This would cause the generated library to
16413     # depend on `.', always an invalid library.  This was fixed in
16414     # development snapshots of GCC prior to 3.0.
16415     case $host_os in
16416       aix4 | aix4.[01] | aix4.[01].*)
16417       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16418            echo ' yes '
16419            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16420         :
16421       else
16422         can_build_shared=no
16423       fi
16424       ;;
16425     esac
16426     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16427     # soname into executable. Probably we can add versioning support to
16428     # collect2, so additional links can be useful in future.
16429     if test "$aix_use_runtimelinking" = yes; then
16430       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16431       # instead of lib<name>.a to let people know that these are not
16432       # typical AIX shared libraries.
16433       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16434     else
16435       # We preserve .a as extension for shared libraries through AIX4.2
16436       # and later when we are not doing run time linking.
16437       library_names_spec='${libname}${release}.a $libname.a'
16438       soname_spec='${libname}${release}${shared_ext}$major'
16439     fi
16440     shlibpath_var=LIBPATH
16441   fi
16442   ;;
16443
16444 amigaos*)
16445   case $host_cpu in
16446   powerpc)
16447     # Since July 2007 AmigaOS4 officially supports .so libraries.
16448     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16449     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16450     ;;
16451   m68k)
16452     library_names_spec='$libname.ixlibrary $libname.a'
16453     # Create ${libname}_ixlibrary.a entries in /sys/libs.
16454     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'
16455     ;;
16456   esac
16457   ;;
16458
16459 beos*)
16460   library_names_spec='${libname}${shared_ext}'
16461   dynamic_linker="$host_os ld.so"
16462   shlibpath_var=LIBRARY_PATH
16463   ;;
16464
16465 bsdi[45]*)
16466   version_type=linux # correct to gnu/linux during the next big refactor
16467   need_version=no
16468   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16469   soname_spec='${libname}${release}${shared_ext}$major'
16470   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16471   shlibpath_var=LD_LIBRARY_PATH
16472   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16473   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16474   # the default ld.so.conf also contains /usr/contrib/lib and
16475   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16476   # libtool to hard-code these into programs
16477   ;;
16478
16479 cygwin* | mingw* | pw32* | cegcc*)
16480   version_type=windows
16481   shrext_cmds=".dll"
16482   need_version=no
16483   need_lib_prefix=no
16484
16485   case $GCC,$cc_basename in
16486   yes,*)
16487     # gcc
16488     library_names_spec='$libname.dll.a'
16489     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16490     postinstall_cmds='base_file=`basename \${file}`~
16491       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16492       dldir=$destdir/`dirname \$dlpath`~
16493       test -d \$dldir || mkdir -p \$dldir~
16494       $install_prog $dir/$dlname \$dldir/$dlname~
16495       chmod a+x \$dldir/$dlname~
16496       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16497         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16498       fi'
16499     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16500       dlpath=$dir/\$dldll~
16501        $RM \$dlpath'
16502     shlibpath_overrides_runpath=yes
16503
16504     case $host_os in
16505     cygwin*)
16506       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16507       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16508
16509       ;;
16510     mingw* | cegcc*)
16511       # MinGW DLLs use traditional 'lib' prefix
16512       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16513       ;;
16514     pw32*)
16515       # pw32 DLLs use 'pw' prefix rather than 'lib'
16516       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16517       ;;
16518     esac
16519     dynamic_linker='Win32 ld.exe'
16520     ;;
16521
16522   *,cl*)
16523     # Native MSVC
16524     libname_spec='$name'
16525     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16526     library_names_spec='${libname}.dll.lib'
16527
16528     case $build_os in
16529     mingw*)
16530       sys_lib_search_path_spec=
16531       lt_save_ifs=$IFS
16532       IFS=';'
16533       for lt_path in $LIB
16534       do
16535         IFS=$lt_save_ifs
16536         # Let DOS variable expansion print the short 8.3 style file name.
16537         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16538         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16539       done
16540       IFS=$lt_save_ifs
16541       # Convert to MSYS style.
16542       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16543       ;;
16544     cygwin*)
16545       # Convert to unix form, then to dos form, then back to unix form
16546       # but this time dos style (no spaces!) so that the unix form looks
16547       # like /cygdrive/c/PROGRA~1:/cygdr...
16548       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16549       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16550       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16551       ;;
16552     *)
16553       sys_lib_search_path_spec="$LIB"
16554       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16555         # It is most probably a Windows format PATH.
16556         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16557       else
16558         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16559       fi
16560       # FIXME: find the short name or the path components, as spaces are
16561       # common. (e.g. "Program Files" -> "PROGRA~1")
16562       ;;
16563     esac
16564
16565     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16566     postinstall_cmds='base_file=`basename \${file}`~
16567       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16568       dldir=$destdir/`dirname \$dlpath`~
16569       test -d \$dldir || mkdir -p \$dldir~
16570       $install_prog $dir/$dlname \$dldir/$dlname'
16571     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16572       dlpath=$dir/\$dldll~
16573        $RM \$dlpath'
16574     shlibpath_overrides_runpath=yes
16575     dynamic_linker='Win32 link.exe'
16576     ;;
16577
16578   *)
16579     # Assume MSVC wrapper
16580     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16581     dynamic_linker='Win32 ld.exe'
16582     ;;
16583   esac
16584   # FIXME: first we should search . and the directory the executable is in
16585   shlibpath_var=PATH
16586   ;;
16587
16588 darwin* | rhapsody*)
16589   dynamic_linker="$host_os dyld"
16590   version_type=darwin
16591   need_lib_prefix=no
16592   need_version=no
16593   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16594   soname_spec='${libname}${release}${major}$shared_ext'
16595   shlibpath_overrides_runpath=yes
16596   shlibpath_var=DYLD_LIBRARY_PATH
16597   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16598
16599   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16600   ;;
16601
16602 dgux*)
16603   version_type=linux # correct to gnu/linux during the next big refactor
16604   need_lib_prefix=no
16605   need_version=no
16606   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16607   soname_spec='${libname}${release}${shared_ext}$major'
16608   shlibpath_var=LD_LIBRARY_PATH
16609   ;;
16610
16611 freebsd* | dragonfly*)
16612   # DragonFly does not have aout.  When/if they implement a new
16613   # versioning mechanism, adjust this.
16614   if test -x /usr/bin/objformat; then
16615     objformat=`/usr/bin/objformat`
16616   else
16617     case $host_os in
16618     freebsd[23].*) objformat=aout ;;
16619     *) objformat=elf ;;
16620     esac
16621   fi
16622   version_type=freebsd-$objformat
16623   case $version_type in
16624     freebsd-elf*)
16625       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16626       need_version=no
16627       need_lib_prefix=no
16628       ;;
16629     freebsd-*)
16630       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16631       need_version=yes
16632       ;;
16633   esac
16634   shlibpath_var=LD_LIBRARY_PATH
16635   case $host_os in
16636   freebsd2.*)
16637     shlibpath_overrides_runpath=yes
16638     ;;
16639   freebsd3.[01]* | freebsdelf3.[01]*)
16640     shlibpath_overrides_runpath=yes
16641     hardcode_into_libs=yes
16642     ;;
16643   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16644   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16645     shlibpath_overrides_runpath=no
16646     hardcode_into_libs=yes
16647     ;;
16648   *) # from 4.6 on, and DragonFly
16649     shlibpath_overrides_runpath=yes
16650     hardcode_into_libs=yes
16651     ;;
16652   esac
16653   ;;
16654
16655 gnu*)
16656   version_type=linux # correct to gnu/linux during the next big refactor
16657   need_lib_prefix=no
16658   need_version=no
16659   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16660   soname_spec='${libname}${release}${shared_ext}$major'
16661   shlibpath_var=LD_LIBRARY_PATH
16662   shlibpath_overrides_runpath=no
16663   hardcode_into_libs=yes
16664   ;;
16665
16666 haiku*)
16667   version_type=linux # correct to gnu/linux during the next big refactor
16668   need_lib_prefix=no
16669   need_version=no
16670   dynamic_linker="$host_os runtime_loader"
16671   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16672   soname_spec='${libname}${release}${shared_ext}$major'
16673   shlibpath_var=LIBRARY_PATH
16674   shlibpath_overrides_runpath=yes
16675   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16676   hardcode_into_libs=yes
16677   ;;
16678
16679 hpux9* | hpux10* | hpux11*)
16680   # Give a soname corresponding to the major version so that dld.sl refuses to
16681   # link against other versions.
16682   version_type=sunos
16683   need_lib_prefix=no
16684   need_version=no
16685   case $host_cpu in
16686   ia64*)
16687     shrext_cmds='.so'
16688     hardcode_into_libs=yes
16689     dynamic_linker="$host_os dld.so"
16690     shlibpath_var=LD_LIBRARY_PATH
16691     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16692     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16693     soname_spec='${libname}${release}${shared_ext}$major'
16694     if test "X$HPUX_IA64_MODE" = X32; then
16695       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16696     else
16697       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16698     fi
16699     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16700     ;;
16701   hppa*64*)
16702     shrext_cmds='.sl'
16703     hardcode_into_libs=yes
16704     dynamic_linker="$host_os dld.sl"
16705     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16706     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16707     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16708     soname_spec='${libname}${release}${shared_ext}$major'
16709     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16710     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16711     ;;
16712   *)
16713     shrext_cmds='.sl'
16714     dynamic_linker="$host_os dld.sl"
16715     shlibpath_var=SHLIB_PATH
16716     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16717     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16718     soname_spec='${libname}${release}${shared_ext}$major'
16719     ;;
16720   esac
16721   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16722   postinstall_cmds='chmod 555 $lib'
16723   # or fails outright, so override atomically:
16724   install_override_mode=555
16725   ;;
16726
16727 interix[3-9]*)
16728   version_type=linux # correct to gnu/linux during the next big refactor
16729   need_lib_prefix=no
16730   need_version=no
16731   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16732   soname_spec='${libname}${release}${shared_ext}$major'
16733   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16734   shlibpath_var=LD_LIBRARY_PATH
16735   shlibpath_overrides_runpath=no
16736   hardcode_into_libs=yes
16737   ;;
16738
16739 irix5* | irix6* | nonstopux*)
16740   case $host_os in
16741     nonstopux*) version_type=nonstopux ;;
16742     *)
16743         if test "$lt_cv_prog_gnu_ld" = yes; then
16744                 version_type=linux # correct to gnu/linux during the next big refactor
16745         else
16746                 version_type=irix
16747         fi ;;
16748   esac
16749   need_lib_prefix=no
16750   need_version=no
16751   soname_spec='${libname}${release}${shared_ext}$major'
16752   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16753   case $host_os in
16754   irix5* | nonstopux*)
16755     libsuff= shlibsuff=
16756     ;;
16757   *)
16758     case $LD in # libtool.m4 will add one of these switches to LD
16759     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16760       libsuff= shlibsuff= libmagic=32-bit;;
16761     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16762       libsuff=32 shlibsuff=N32 libmagic=N32;;
16763     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16764       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16765     *) libsuff= shlibsuff= libmagic=never-match;;
16766     esac
16767     ;;
16768   esac
16769   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16770   shlibpath_overrides_runpath=no
16771   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16772   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16773   hardcode_into_libs=yes
16774   ;;
16775
16776 # No shared lib support for Linux oldld, aout, or coff.
16777 linux*oldld* | linux*aout* | linux*coff*)
16778   dynamic_linker=no
16779   ;;
16780
16781 linux*android*)
16782   version_type=none # Android doesn't support versioned libraries.
16783   need_lib_prefix=no
16784   need_version=no
16785   library_names_spec='$libname$release$shared_ext'
16786   soname_spec='$libname$release$shared_ext'
16787   finish_cmds=
16788   shlibpath_var=LD_LIBRARY_PATH
16789   shlibpath_overrides_runpath=yes
16790
16791   # This implies no fast_install, which is unacceptable.
16792   # Some rework will be needed to allow for fast_install
16793   # before this can be enabled.
16794   hardcode_into_libs=yes
16795
16796   dynamic_linker='Android linker'
16797   # Don't embed -rpath directories since the linker doesn't support them.
16798   hardcode_libdir_flag_spec_CXX='-L$libdir'
16799   ;;
16800
16801 # This must be glibc/ELF.
16802 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16803   version_type=linux # correct to gnu/linux during the next big refactor
16804   need_lib_prefix=no
16805   need_version=no
16806   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16807   soname_spec='${libname}${release}${shared_ext}$major'
16808   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16809   shlibpath_var=LD_LIBRARY_PATH
16810   shlibpath_overrides_runpath=no
16811
16812   # Some binutils ld are patched to set DT_RUNPATH
16813   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16814   $as_echo_n "(cached) " >&6
16815 else
16816   lt_cv_shlibpath_overrides_runpath=no
16817     save_LDFLAGS=$LDFLAGS
16818     save_libdir=$libdir
16819     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16820          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16821     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16822 /* end confdefs.h.  */
16823
16824 int
16825 main ()
16826 {
16827
16828   ;
16829   return 0;
16830 }
16831 _ACEOF
16832 if ac_fn_cxx_try_link "$LINENO"; then :
16833   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16834   lt_cv_shlibpath_overrides_runpath=yes
16835 fi
16836 fi
16837 rm -f core conftest.err conftest.$ac_objext \
16838     conftest$ac_exeext conftest.$ac_ext
16839     LDFLAGS=$save_LDFLAGS
16840     libdir=$save_libdir
16841
16842 fi
16843
16844   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16845
16846   # This implies no fast_install, which is unacceptable.
16847   # Some rework will be needed to allow for fast_install
16848   # before this can be enabled.
16849   hardcode_into_libs=yes
16850
16851   # Append ld.so.conf contents to the search path
16852   if test -f /etc/ld.so.conf; then
16853     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' ' '`
16854     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16855   fi
16856
16857   # We used to test for /lib/ld.so.1 and disable shared libraries on
16858   # powerpc, because MkLinux only supported shared libraries with the
16859   # GNU dynamic linker.  Since this was broken with cross compilers,
16860   # most powerpc-linux boxes support dynamic linking these days and
16861   # people can always --disable-shared, the test was removed, and we
16862   # assume the GNU/Linux dynamic linker is in use.
16863   dynamic_linker='GNU/Linux ld.so'
16864   ;;
16865
16866 netbsdelf*-gnu)
16867   version_type=linux
16868   need_lib_prefix=no
16869   need_version=no
16870   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16871   soname_spec='${libname}${release}${shared_ext}$major'
16872   shlibpath_var=LD_LIBRARY_PATH
16873   shlibpath_overrides_runpath=no
16874   hardcode_into_libs=yes
16875   dynamic_linker='NetBSD ld.elf_so'
16876   ;;
16877
16878 netbsd*)
16879   version_type=sunos
16880   need_lib_prefix=no
16881   need_version=no
16882   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16883     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16884     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16885     dynamic_linker='NetBSD (a.out) ld.so'
16886   else
16887     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16888     soname_spec='${libname}${release}${shared_ext}$major'
16889     dynamic_linker='NetBSD ld.elf_so'
16890   fi
16891   shlibpath_var=LD_LIBRARY_PATH
16892   shlibpath_overrides_runpath=yes
16893   hardcode_into_libs=yes
16894   ;;
16895
16896 newsos6)
16897   version_type=linux # correct to gnu/linux during the next big refactor
16898   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16899   shlibpath_var=LD_LIBRARY_PATH
16900   shlibpath_overrides_runpath=yes
16901   ;;
16902
16903 *nto* | *qnx*)
16904   version_type=qnx
16905   need_lib_prefix=no
16906   need_version=no
16907   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16908   soname_spec='${libname}${release}${shared_ext}$major'
16909   shlibpath_var=LD_LIBRARY_PATH
16910   shlibpath_overrides_runpath=no
16911   hardcode_into_libs=yes
16912   dynamic_linker='ldqnx.so'
16913   ;;
16914
16915 openbsd*)
16916   version_type=sunos
16917   sys_lib_dlsearch_path_spec="/usr/lib"
16918   need_lib_prefix=no
16919   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16920   case $host_os in
16921     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16922     *)                          need_version=no  ;;
16923   esac
16924   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16925   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16926   shlibpath_var=LD_LIBRARY_PATH
16927   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16928     case $host_os in
16929       openbsd2.[89] | openbsd2.[89].*)
16930         shlibpath_overrides_runpath=no
16931         ;;
16932       *)
16933         shlibpath_overrides_runpath=yes
16934         ;;
16935       esac
16936   else
16937     shlibpath_overrides_runpath=yes
16938   fi
16939   ;;
16940
16941 os2*)
16942   libname_spec='$name'
16943   shrext_cmds=".dll"
16944   need_lib_prefix=no
16945   library_names_spec='$libname${shared_ext} $libname.a'
16946   dynamic_linker='OS/2 ld.exe'
16947   shlibpath_var=LIBPATH
16948   ;;
16949
16950 osf3* | osf4* | osf5*)
16951   version_type=osf
16952   need_lib_prefix=no
16953   need_version=no
16954   soname_spec='${libname}${release}${shared_ext}$major'
16955   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16956   shlibpath_var=LD_LIBRARY_PATH
16957   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16958   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16959   ;;
16960
16961 rdos*)
16962   dynamic_linker=no
16963   ;;
16964
16965 solaris*)
16966   version_type=linux # correct to gnu/linux during the next big refactor
16967   need_lib_prefix=no
16968   need_version=no
16969   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16970   soname_spec='${libname}${release}${shared_ext}$major'
16971   shlibpath_var=LD_LIBRARY_PATH
16972   shlibpath_overrides_runpath=yes
16973   hardcode_into_libs=yes
16974   # ldd complains unless libraries are executable
16975   postinstall_cmds='chmod +x $lib'
16976   ;;
16977
16978 sunos4*)
16979   version_type=sunos
16980   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16981   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16982   shlibpath_var=LD_LIBRARY_PATH
16983   shlibpath_overrides_runpath=yes
16984   if test "$with_gnu_ld" = yes; then
16985     need_lib_prefix=no
16986   fi
16987   need_version=yes
16988   ;;
16989
16990 sysv4 | sysv4.3*)
16991   version_type=linux # correct to gnu/linux during the next big refactor
16992   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16993   soname_spec='${libname}${release}${shared_ext}$major'
16994   shlibpath_var=LD_LIBRARY_PATH
16995   case $host_vendor in
16996     sni)
16997       shlibpath_overrides_runpath=no
16998       need_lib_prefix=no
16999       runpath_var=LD_RUN_PATH
17000       ;;
17001     siemens)
17002       need_lib_prefix=no
17003       ;;
17004     motorola)
17005       need_lib_prefix=no
17006       need_version=no
17007       shlibpath_overrides_runpath=no
17008       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17009       ;;
17010   esac
17011   ;;
17012
17013 sysv4*MP*)
17014   if test -d /usr/nec ;then
17015     version_type=linux # correct to gnu/linux during the next big refactor
17016     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17017     soname_spec='$libname${shared_ext}.$major'
17018     shlibpath_var=LD_LIBRARY_PATH
17019   fi
17020   ;;
17021
17022 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17023   version_type=freebsd-elf
17024   need_lib_prefix=no
17025   need_version=no
17026   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17027   soname_spec='${libname}${release}${shared_ext}$major'
17028   shlibpath_var=LD_LIBRARY_PATH
17029   shlibpath_overrides_runpath=yes
17030   hardcode_into_libs=yes
17031   if test "$with_gnu_ld" = yes; then
17032     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17033   else
17034     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17035     case $host_os in
17036       sco3.2v5*)
17037         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17038         ;;
17039     esac
17040   fi
17041   sys_lib_dlsearch_path_spec='/usr/lib'
17042   ;;
17043
17044 tpf*)
17045   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17046   version_type=linux # correct to gnu/linux during the next big refactor
17047   need_lib_prefix=no
17048   need_version=no
17049   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17050   shlibpath_var=LD_LIBRARY_PATH
17051   shlibpath_overrides_runpath=no
17052   hardcode_into_libs=yes
17053   ;;
17054
17055 uts4*)
17056   version_type=linux # correct to gnu/linux during the next big refactor
17057   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17058   soname_spec='${libname}${release}${shared_ext}$major'
17059   shlibpath_var=LD_LIBRARY_PATH
17060   ;;
17061
17062 *)
17063   dynamic_linker=no
17064   ;;
17065 esac
17066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17067 $as_echo "$dynamic_linker" >&6; }
17068 test "$dynamic_linker" = no && can_build_shared=no
17069
17070 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17071 if test "$GCC" = yes; then
17072   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17073 fi
17074
17075 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17076   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17077 fi
17078 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17079   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17080 fi
17081
17082
17083
17084
17085
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     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17120 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17121 hardcode_action_CXX=
17122 if test -n "$hardcode_libdir_flag_spec_CXX" ||
17123    test -n "$runpath_var_CXX" ||
17124    test "X$hardcode_automatic_CXX" = "Xyes" ; then
17125
17126   # We can hardcode non-existent directories.
17127   if test "$hardcode_direct_CXX" != no &&
17128      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17129      # have to relink, otherwise we might link with an installed library
17130      # when we should be linking with a yet-to-be-installed one
17131      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17132      test "$hardcode_minus_L_CXX" != no; then
17133     # Linking always hardcodes the temporary library directory.
17134     hardcode_action_CXX=relink
17135   else
17136     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17137     hardcode_action_CXX=immediate
17138   fi
17139 else
17140   # We cannot hardcode anything, or else we can only hardcode existing
17141   # directories.
17142   hardcode_action_CXX=unsupported
17143 fi
17144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17145 $as_echo "$hardcode_action_CXX" >&6; }
17146
17147 if test "$hardcode_action_CXX" = relink ||
17148    test "$inherit_rpath_CXX" = yes; then
17149   # Fast installation is not supported
17150   enable_fast_install=no
17151 elif test "$shlibpath_overrides_runpath" = yes ||
17152      test "$enable_shared" = no; then
17153   # Fast installation is not necessary
17154   enable_fast_install=needless
17155 fi
17156
17157
17158
17159
17160
17161
17162
17163   fi # test -n "$compiler"
17164
17165   CC=$lt_save_CC
17166   CFLAGS=$lt_save_CFLAGS
17167   LDCXX=$LD
17168   LD=$lt_save_LD
17169   GCC=$lt_save_GCC
17170   with_gnu_ld=$lt_save_with_gnu_ld
17171   lt_cv_path_LDCXX=$lt_cv_path_LD
17172   lt_cv_path_LD=$lt_save_path_LD
17173   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17174   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17175 fi # test "$_lt_caught_CXX_error" != yes
17176
17177 ac_ext=c
17178 ac_cpp='$CPP $CPPFLAGS'
17179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17182
17183
17184
17185
17186
17187
17188
17189
17190
17191
17192
17193
17194
17195
17196
17197         ac_config_commands="$ac_config_commands libtool"
17198
17199
17200
17201
17202 # Only expand once:
17203
17204
17205 if test -n "$ac_tool_prefix"; then
17206   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
17207 set dummy ${ac_tool_prefix}windres; ac_word=$2
17208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17209 $as_echo_n "checking for $ac_word... " >&6; }
17210 if ${ac_cv_prog_RC+:} false; then :
17211   $as_echo_n "(cached) " >&6
17212 else
17213   if test -n "$RC"; then
17214   ac_cv_prog_RC="$RC" # Let the user override the test.
17215 else
17216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17217 for as_dir in $PATH
17218 do
17219   IFS=$as_save_IFS
17220   test -z "$as_dir" && as_dir=.
17221     for ac_exec_ext in '' $ac_executable_extensions; do
17222   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17223     ac_cv_prog_RC="${ac_tool_prefix}windres"
17224     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17225     break 2
17226   fi
17227 done
17228   done
17229 IFS=$as_save_IFS
17230
17231 fi
17232 fi
17233 RC=$ac_cv_prog_RC
17234 if test -n "$RC"; then
17235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
17236 $as_echo "$RC" >&6; }
17237 else
17238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17239 $as_echo "no" >&6; }
17240 fi
17241
17242
17243 fi
17244 if test -z "$ac_cv_prog_RC"; then
17245   ac_ct_RC=$RC
17246   # Extract the first word of "windres", so it can be a program name with args.
17247 set dummy windres; ac_word=$2
17248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17249 $as_echo_n "checking for $ac_word... " >&6; }
17250 if ${ac_cv_prog_ac_ct_RC+:} false; then :
17251   $as_echo_n "(cached) " >&6
17252 else
17253   if test -n "$ac_ct_RC"; then
17254   ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
17255 else
17256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17257 for as_dir in $PATH
17258 do
17259   IFS=$as_save_IFS
17260   test -z "$as_dir" && as_dir=.
17261     for ac_exec_ext in '' $ac_executable_extensions; do
17262   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17263     ac_cv_prog_ac_ct_RC="windres"
17264     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17265     break 2
17266   fi
17267 done
17268   done
17269 IFS=$as_save_IFS
17270
17271 fi
17272 fi
17273 ac_ct_RC=$ac_cv_prog_ac_ct_RC
17274 if test -n "$ac_ct_RC"; then
17275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
17276 $as_echo "$ac_ct_RC" >&6; }
17277 else
17278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17279 $as_echo "no" >&6; }
17280 fi
17281
17282   if test "x$ac_ct_RC" = x; then
17283     RC=""
17284   else
17285     case $cross_compiling:$ac_tool_warned in
17286 yes:)
17287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17288 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17289 ac_tool_warned=yes ;;
17290 esac
17291     RC=$ac_ct_RC
17292   fi
17293 else
17294   RC="$ac_cv_prog_RC"
17295 fi
17296
17297
17298
17299
17300 # Source file extension for RC test sources.
17301 ac_ext=rc
17302
17303 # Object file extension for compiled RC test sources.
17304 objext=o
17305 objext_RC=$objext
17306
17307 # Code to be used in simple compile tests
17308 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
17309
17310 # Code to be used in simple link tests
17311 lt_simple_link_test_code="$lt_simple_compile_test_code"
17312
17313 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17314
17315
17316
17317
17318
17319
17320 # If no C compiler was specified, use CC.
17321 LTCC=${LTCC-"$CC"}
17322
17323 # If no C compiler flags were specified, use CFLAGS.
17324 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17325
17326 # Allow CC to be a program name with arguments.
17327 compiler=$CC
17328
17329
17330 # save warnings/boilerplate of simple test code
17331 ac_outfile=conftest.$ac_objext
17332 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17333 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17334 _lt_compiler_boilerplate=`cat conftest.err`
17335 $RM conftest*
17336
17337 ac_outfile=conftest.$ac_objext
17338 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17339 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17340 _lt_linker_boilerplate=`cat conftest.err`
17341 $RM -r conftest*
17342
17343
17344 # Allow CC to be a program name with arguments.
17345 lt_save_CC="$CC"
17346 lt_save_CFLAGS=$CFLAGS
17347 lt_save_GCC=$GCC
17348 GCC=
17349 CC=${RC-"windres"}
17350 CFLAGS=
17351 compiler=$CC
17352 compiler_RC=$CC
17353 for cc_temp in $compiler""; do
17354   case $cc_temp in
17355     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17356     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17357     \-*) ;;
17358     *) break;;
17359   esac
17360 done
17361 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17362
17363 lt_cv_prog_compiler_c_o_RC=yes
17364
17365 if test -n "$compiler"; then
17366   :
17367
17368
17369
17370 fi
17371
17372 GCC=$lt_save_GCC
17373 ac_ext=c
17374 ac_cpp='$CPP $CPPFLAGS'
17375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17378
17379 CC=$lt_save_CC
17380 CFLAGS=$lt_save_CFLAGS
17381
17382
17383 # For now we hardcode the use of version scripts.  It would be better
17384 # to write a test for this or even implement this within libtool.
17385 have_ld_version_script=no
17386 case "${host}" in
17387     *-*-linux*)
17388         have_ld_version_script=yes
17389         ;;
17390     *-*-gnu*)
17391         have_ld_version_script=yes
17392         ;;
17393     *-apple-darwin*)
17394
17395 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
17396
17397
17398 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
17399
17400         ;;
17401 esac
17402
17403  if test "$have_ld_version_script" = "yes"; then
17404   HAVE_LD_VERSION_SCRIPT_TRUE=
17405   HAVE_LD_VERSION_SCRIPT_FALSE='#'
17406 else
17407   HAVE_LD_VERSION_SCRIPT_TRUE='#'
17408   HAVE_LD_VERSION_SCRIPT_FALSE=
17409 fi
17410
17411
17412 GPG_DEFAULT=no
17413 GPGSM_DEFAULT=no
17414 GPGCONF_DEFAULT=no
17415 G13_DEFAULT=no
17416 component_system=None
17417 have_dosish_system=no
17418 have_android_system=no
17419 have_w32_system=no
17420 have_w64_system=no
17421 have_macos_system=no
17422 build_w32_glib=no
17423 build_w32_qt=no
17424 available_languages="cl cpp python qt"
17425 default_languages="cl cpp python qt"
17426 case "${host}" in
17427     x86_64-*mingw32*)
17428         have_w64_system=yes
17429         ;;
17430     *-linux-androideabi)
17431         have_android_system=yes
17432         ;;
17433     *-apple-darwin*)
17434         have_macos_system=yes
17435         ;;
17436 esac
17437 case "${host}" in
17438     *-mingw32*)
17439         have_dosish_system=yes
17440         have_w32_system=yes
17441         GPG_DEFAULT='c:\\gnupg\\gpg.exe'
17442         GPGSM_DEFAULT='c:\\gnupg\\gpgsm.exe'
17443         GPGCONF_DEFAULT='c:\\gnupg\\gpgconf.exe'
17444         G13_DEFAULT='c:\\gnupg\\g13.exe'
17445         #component_system='COM+'
17446
17447         # Check whether --enable-glibtest was given.
17448 if test "${enable_glibtest+set}" = set; then :
17449   enableval=$enable_glibtest;
17450 else
17451   enable_glibtest=yes
17452 fi
17453
17454
17455   pkg_config_args=glib-2.0
17456   for module in .
17457   do
17458       case "$module" in
17459          gmodule)
17460              pkg_config_args="$pkg_config_args gmodule-2.0"
17461          ;;
17462          gmodule-no-export)
17463              pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
17464          ;;
17465          gobject)
17466              pkg_config_args="$pkg_config_args gobject-2.0"
17467          ;;
17468          gthread)
17469              pkg_config_args="$pkg_config_args gthread-2.0"
17470          ;;
17471       esac
17472   done
17473
17474   # Extract the first word of "pkg-config", so it can be a program name with args.
17475 set dummy pkg-config; ac_word=$2
17476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17477 $as_echo_n "checking for $ac_word... " >&6; }
17478 if ${ac_cv_path_PKG_CONFIG+:} false; then :
17479   $as_echo_n "(cached) " >&6
17480 else
17481   case $PKG_CONFIG in
17482   [\\/]* | ?:[\\/]*)
17483   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17484   ;;
17485   *)
17486   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17487 for as_dir in $PATH
17488 do
17489   IFS=$as_save_IFS
17490   test -z "$as_dir" && as_dir=.
17491     for ac_exec_ext in '' $ac_executable_extensions; do
17492   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17493     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17494     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17495     break 2
17496   fi
17497 done
17498   done
17499 IFS=$as_save_IFS
17500
17501   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
17502   ;;
17503 esac
17504 fi
17505 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17506 if test -n "$PKG_CONFIG"; then
17507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17508 $as_echo "$PKG_CONFIG" >&6; }
17509 else
17510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17511 $as_echo "no" >&6; }
17512 fi
17513
17514
17515
17516   no_glib=""
17517
17518   if test x$PKG_CONFIG != xno ; then
17519     if $PKG_CONFIG --atleast-pkgconfig-version 0.7 ; then
17520       :
17521     else
17522       echo *** pkg-config too old; version 0.7 or better required.
17523       no_glib=yes
17524       PKG_CONFIG=no
17525     fi
17526   else
17527     no_glib=yes
17528   fi
17529
17530   min_glib_version=2.0.0
17531   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5
17532 $as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
17533
17534   if test x$PKG_CONFIG != xno ; then
17535     ## don't try to run the test against uninstalled libtool libs
17536     if $PKG_CONFIG --uninstalled $pkg_config_args; then
17537           echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
17538           enable_glibtest=no
17539     fi
17540
17541     if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
17542           :
17543     else
17544           no_glib=yes
17545     fi
17546   fi
17547
17548   if test x"$no_glib" = x ; then
17549     GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
17550     GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
17551     GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
17552
17553     GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
17554     GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
17555     glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
17556            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
17557     glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
17558            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
17559     glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
17560            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
17561     if test "x$enable_glibtest" = "xyes" ; then
17562       ac_save_CFLAGS="$CFLAGS"
17563       ac_save_LIBS="$LIBS"
17564       CFLAGS="$CFLAGS $GLIB_CFLAGS"
17565       LIBS="$GLIB_LIBS $LIBS"
17566       rm -f conf.glibtest
17567       if test "$cross_compiling" = yes; then :
17568   echo $ac_n "cross compiling; assumed OK... $ac_c"
17569 else
17570   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17571 /* end confdefs.h.  */
17572
17573 #include <glib.h>
17574 #include <stdio.h>
17575 #include <stdlib.h>
17576
17577 int
17578 main ()
17579 {
17580   int major, minor, micro;
17581   char *tmp_version;
17582
17583   system ("touch conf.glibtest");
17584
17585   /* HP/UX 9 (%@#!) writes to sscanf strings */
17586   tmp_version = g_strdup("$min_glib_version");
17587   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
17588      printf("%s, bad version string\n", "$min_glib_version");
17589      exit(1);
17590    }
17591
17592   if ((glib_major_version != $glib_config_major_version) ||
17593       (glib_minor_version != $glib_config_minor_version) ||
17594       (glib_micro_version != $glib_config_micro_version))
17595     {
17596       printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
17597              $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
17598              glib_major_version, glib_minor_version, glib_micro_version);
17599       printf ("*** was found! If pkg-config was correct, then it is best\n");
17600       printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
17601       printf("*** by modifying your LD_LIBRARY_PATH environment variable, or by editing\n");
17602       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
17603       printf("*** required on your system.\n");
17604       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
17605       printf("*** to point to the correct configuration files\n");
17606     }
17607   else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
17608            (glib_minor_version != GLIB_MINOR_VERSION) ||
17609            (glib_micro_version != GLIB_MICRO_VERSION))
17610     {
17611       printf("*** GLIB header files (version %d.%d.%d) do not match\n",
17612              GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
17613       printf("*** library (version %d.%d.%d)\n",
17614              glib_major_version, glib_minor_version, glib_micro_version);
17615     }
17616   else
17617     {
17618       if ((glib_major_version > major) ||
17619         ((glib_major_version == major) && (glib_minor_version > minor)) ||
17620         ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
17621       {
17622         return 0;
17623        }
17624      else
17625       {
17626         printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
17627                glib_major_version, glib_minor_version, glib_micro_version);
17628         printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
17629                major, minor, micro);
17630         printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
17631         printf("***\n");
17632         printf("*** If you have already installed a sufficiently new version, this error\n");
17633         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
17634         printf("*** being found. The easiest way to fix this is to remove the old version\n");
17635         printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
17636         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
17637         printf("*** modify your LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf\n");
17638         printf("*** so that the correct libraries are found at run-time))\n");
17639       }
17640     }
17641   return 1;
17642 }
17643
17644 _ACEOF
17645 if ac_fn_c_try_run "$LINENO"; then :
17646
17647 else
17648   no_glib=yes
17649 fi
17650 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17651   conftest.$ac_objext conftest.beam conftest.$ac_ext
17652 fi
17653
17654        CFLAGS="$ac_save_CFLAGS"
17655        LIBS="$ac_save_LIBS"
17656      fi
17657   fi
17658   if test "x$no_glib" = x ; then
17659      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
17660 $as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
17661      :
17662   else
17663      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17664 $as_echo "no" >&6; }
17665      if test "$PKG_CONFIG" = "no" ; then
17666        echo "*** A new enough version of pkg-config was not found."
17667        echo "*** See https://www.freedesktop.org/software/pkgconfig/"
17668      else
17669        if test -f conf.glibtest ; then
17670         :
17671        else
17672           echo "*** Could not run GLIB test program, checking why..."
17673           ac_save_CFLAGS="$CFLAGS"
17674           ac_save_LIBS="$LIBS"
17675           CFLAGS="$CFLAGS $GLIB_CFLAGS"
17676           LIBS="$LIBS $GLIB_LIBS"
17677           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17678 /* end confdefs.h.  */
17679
17680 #include <glib.h>
17681 #include <stdio.h>
17682
17683 int
17684 main ()
17685 {
17686  return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
17687   ;
17688   return 0;
17689 }
17690 _ACEOF
17691 if ac_fn_c_try_link "$LINENO"; then :
17692    echo "*** The test program compiled, but did not run. This usually means"
17693           echo "*** that the run-time linker is not finding GLIB or finding the wrong"
17694           echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
17695           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
17696           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
17697           echo "*** is required on your system"
17698           echo "***"
17699           echo "*** If you have an old version installed, it is best to remove it, although"
17700           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
17701 else
17702    echo "*** The test program failed to compile or link. See the file config.log for the"
17703           echo "*** exact error that occurred. This usually means GLIB is incorrectly installed."
17704 fi
17705 rm -f core conftest.err conftest.$ac_objext \
17706     conftest$ac_exeext conftest.$ac_ext
17707           CFLAGS="$ac_save_CFLAGS"
17708           LIBS="$ac_save_LIBS"
17709        fi
17710      fi
17711      GLIB_CFLAGS=""
17712      GLIB_LIBS=""
17713      GLIB_GENMARSHAL=""
17714      GOBJECT_QUERY=""
17715      GLIB_MKENUMS=""
17716      :
17717   fi
17718
17719
17720
17721
17722
17723   rm -f conf.glibtest
17724
17725         # Check whether --enable-w32-glib was given.
17726 if test "${enable_w32_glib+set}" = set; then :
17727   enableval=$enable_w32_glib; build_w32_glib=$enableval
17728 fi
17729
17730        ;;
17731     *)
17732
17733         # XXX: Probably use exec-prefix here?
17734 #       GPG_DEFAULT='/usr/bin/gpg'
17735 #       GPGSM_DEFAULT='/usr/bin/gpgsm'
17736 #       GPGCONF_DEFAULT='/usr/bin/gpgconf'
17737 #       G13_DEFAULT='/usr/bin/g13'
17738         ;;
17739 esac
17740
17741 if test "$have_dosish_system" = yes; then
17742
17743 $as_echo "#define HAVE_DOSISH_SYSTEM 1" >>confdefs.h
17744
17745 fi
17746  if test "$have_dosish_system" = yes; then
17747   HAVE_DOSISH_SYSTEM_TRUE=
17748   HAVE_DOSISH_SYSTEM_FALSE='#'
17749 else
17750   HAVE_DOSISH_SYSTEM_TRUE='#'
17751   HAVE_DOSISH_SYSTEM_FALSE=
17752 fi
17753
17754
17755 if test "$have_w32_system" = yes; then
17756
17757 $as_echo "#define HAVE_W32_SYSTEM 1" >>confdefs.h
17758
17759 fi
17760  if test "$have_w32_system" = yes; then
17761   HAVE_W32_SYSTEM_TRUE=
17762   HAVE_W32_SYSTEM_FALSE='#'
17763 else
17764   HAVE_W32_SYSTEM_TRUE='#'
17765   HAVE_W32_SYSTEM_FALSE=
17766 fi
17767
17768
17769 if test "$have_w64_system" = yes; then
17770
17771 $as_echo "#define HAVE_W64_SYSTEM 1" >>confdefs.h
17772
17773 fi
17774  if test "$have_w64_system" = yes; then
17775   HAVE_W64_SYSTEM_TRUE=
17776   HAVE_W64_SYSTEM_FALSE='#'
17777 else
17778   HAVE_W64_SYSTEM_TRUE='#'
17779   HAVE_W64_SYSTEM_FALSE=
17780 fi
17781
17782
17783 if test "$have_android_system" = yes; then
17784
17785 $as_echo "#define HAVE_ANDROID_SYSTEM 1" >>confdefs.h
17786
17787 fi
17788  if test "$have_android_system" = yes; then
17789   HAVE_ANDROID_SYSTEM_TRUE=
17790   HAVE_ANDROID_SYSTEM_FALSE='#'
17791 else
17792   HAVE_ANDROID_SYSTEM_TRUE='#'
17793   HAVE_ANDROID_SYSTEM_FALSE=
17794 fi
17795
17796
17797 if test "$have_macos_system" = yes; then
17798
17799 $as_echo "#define HAVE_MACOS_SYSTEM 1" >>confdefs.h
17800
17801 fi
17802  if test "$have_macos_system" = yes; then
17803   HAVE_MACOS_SYSTEM_TRUE=
17804   HAVE_MACOS_SYSTEM_FALSE='#'
17805 else
17806   HAVE_MACOS_SYSTEM_TRUE='#'
17807   HAVE_MACOS_SYSTEM_FALSE=
17808 fi
17809
17810
17811  if test "$build_w32_glib" = yes; then
17812   BUILD_W32_GLIB_TRUE=
17813   BUILD_W32_GLIB_FALSE='#'
17814 else
17815   BUILD_W32_GLIB_TRUE='#'
17816   BUILD_W32_GLIB_FALSE=
17817 fi
17818
17819
17820
17821 # Check whether --enable-fixed-path was given.
17822 if test "${enable_fixed_path+set}" = set; then :
17823   enableval=$enable_fixed_path; fixed_search_path="$enableval"
17824 else
17825   fixed_search_path=""
17826 fi
17827
17828 if test x$fixed_search_path != x ; then
17829
17830 cat >>confdefs.h <<_ACEOF
17831 #define FIXED_SEARCH_PATH "$fixed_search_path"
17832 _ACEOF
17833
17834 fi
17835
17836
17837 # Note: You need to declare all possible languages also in
17838 #       lang/Makefile.am's DIST_SUBDIRS.
17839 # Check whether --enable-languages was given.
17840 if test "${enable_languages+set}" = set; then :
17841   enableval=$enable_languages; enabled_languages=`echo $enableval | \
17842                              tr ',:' '  ' | tr 'A-Z' 'a-z' | \
17843                              sed 's/c++/cpp/'`
17844 else
17845   enabled_languages="maybe"
17846 fi
17847
17848 if test "x$enabled_languages" = "x" \
17849    -o "$enabled_languages" = "no"; then
17850    enabled_languages=
17851 fi
17852
17853 # If languages are explicitly set missing requirements
17854 # for the languages are treated as errors otherwise
17855 # there will be a warning.
17856 explicit_languages=1
17857 if test "x$enabled_languages" = "xmaybe"; then
17858     explicit_languages=0
17859     enabled_languages="$default_languages"
17860 fi
17861
17862 for language in $enabled_languages; do
17863
17864 name=$language
17865 list=$available_languages
17866 found=0
17867
17868 for n in $list; do
17869   if test "x$name" = "x$n"; then
17870     found=1
17871   fi
17872 done
17873
17874     if test "$found" = "0"; then
17875        as_fn_error $? "unsupported language binding specified" "$LINENO" 5
17876     fi
17877 done
17878
17879
17880
17881 # Enable C++ 11 if cpp language is requested
17882
17883 name="cpp"
17884 list=$enabled_languages
17885 found=0
17886
17887 for n in $list; do
17888   if test "x$name" = "x$n"; then
17889     found=1
17890   fi
17891 done
17892
17893 if test "$found" = "1"; then
17894           ax_cxx_compile_cxx11_required=false
17895   ac_ext=cpp
17896 ac_cpp='$CXXCPP $CPPFLAGS'
17897 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17898 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17899 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17900   ac_success=no
17901   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
17902 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
17903 if ${ax_cv_cxx_compile_cxx11+:} false; then :
17904   $as_echo_n "(cached) " >&6
17905 else
17906   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17907 /* end confdefs.h.  */
17908
17909
17910 // If the compiler admits that it is not ready for C++11, why torture it?
17911 // Hopefully, this will speed up the test.
17912
17913 #ifndef __cplusplus
17914
17915 #error "This is not a C++ compiler"
17916
17917 #elif __cplusplus < 201103L
17918
17919 #error "This is not a C++11 compiler"
17920
17921 #else
17922
17923 namespace cxx11
17924 {
17925
17926   namespace test_static_assert
17927   {
17928
17929     template <typename T>
17930     struct check
17931     {
17932       static_assert(sizeof(int) <= sizeof(T), "not big enough");
17933     };
17934
17935   }
17936
17937   namespace test_final_override
17938   {
17939
17940     struct Base
17941     {
17942       virtual void f() {}
17943     };
17944
17945     struct Derived : public Base
17946     {
17947       virtual void f() override {}
17948     };
17949
17950   }
17951
17952   namespace test_double_right_angle_brackets
17953   {
17954
17955     template < typename T >
17956     struct check {};
17957
17958     typedef check<void> single_type;
17959     typedef check<check<void>> double_type;
17960     typedef check<check<check<void>>> triple_type;
17961     typedef check<check<check<check<void>>>> quadruple_type;
17962
17963   }
17964
17965   namespace test_decltype
17966   {
17967
17968     int
17969     f()
17970     {
17971       int a = 1;
17972       decltype(a) b = 2;
17973       return a + b;
17974     }
17975
17976   }
17977
17978   namespace test_type_deduction
17979   {
17980
17981     template < typename T1, typename T2 >
17982     struct is_same
17983     {
17984       static const bool value = false;
17985     };
17986
17987     template < typename T >
17988     struct is_same<T, T>
17989     {
17990       static const bool value = true;
17991     };
17992
17993     template < typename T1, typename T2 >
17994     auto
17995     add(T1 a1, T2 a2) -> decltype(a1 + a2)
17996     {
17997       return a1 + a2;
17998     }
17999
18000     int
18001     test(const int c, volatile int v)
18002     {
18003       static_assert(is_same<int, decltype(0)>::value == true, "");
18004       static_assert(is_same<int, decltype(c)>::value == false, "");
18005       static_assert(is_same<int, decltype(v)>::value == false, "");
18006       auto ac = c;
18007       auto av = v;
18008       auto sumi = ac + av + 'x';
18009       auto sumf = ac + av + 1.0;
18010       static_assert(is_same<int, decltype(ac)>::value == true, "");
18011       static_assert(is_same<int, decltype(av)>::value == true, "");
18012       static_assert(is_same<int, decltype(sumi)>::value == true, "");
18013       static_assert(is_same<int, decltype(sumf)>::value == false, "");
18014       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
18015       return (sumf > 0.0) ? sumi : add(c, v);
18016     }
18017
18018   }
18019
18020   namespace test_noexcept
18021   {
18022
18023     int f() { return 0; }
18024     int g() noexcept { return 0; }
18025
18026     static_assert(noexcept(f()) == false, "");
18027     static_assert(noexcept(g()) == true, "");
18028
18029   }
18030
18031   namespace test_constexpr
18032   {
18033
18034     template < typename CharT >
18035     unsigned long constexpr
18036     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
18037     {
18038       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
18039     }
18040
18041     template < typename CharT >
18042     unsigned long constexpr
18043     strlen_c(const CharT *const s) noexcept
18044     {
18045       return strlen_c_r(s, 0UL);
18046     }
18047
18048     static_assert(strlen_c("") == 0UL, "");
18049     static_assert(strlen_c("1") == 1UL, "");
18050     static_assert(strlen_c("example") == 7UL, "");
18051     static_assert(strlen_c("another\0example") == 7UL, "");
18052
18053   }
18054
18055   namespace test_rvalue_references
18056   {
18057
18058     template < int N >
18059     struct answer
18060     {
18061       static constexpr int value = N;
18062     };
18063
18064     answer<1> f(int&)       { return answer<1>(); }
18065     answer<2> f(const int&) { return answer<2>(); }
18066     answer<3> f(int&&)      { return answer<3>(); }
18067
18068     void
18069     test()
18070     {
18071       int i = 0;
18072       const int c = 0;
18073       static_assert(decltype(f(i))::value == 1, "");
18074       static_assert(decltype(f(c))::value == 2, "");
18075       static_assert(decltype(f(0))::value == 3, "");
18076     }
18077
18078   }
18079
18080   namespace test_uniform_initialization
18081   {
18082
18083     struct test
18084     {
18085       static const int zero {};
18086       static const int one {1};
18087     };
18088
18089     static_assert(test::zero == 0, "");
18090     static_assert(test::one == 1, "");
18091
18092   }
18093
18094   namespace test_lambdas
18095   {
18096
18097     void
18098     test1()
18099     {
18100       auto lambda1 = [](){};
18101       auto lambda2 = lambda1;
18102       lambda1();
18103       lambda2();
18104     }
18105
18106     int
18107     test2()
18108     {
18109       auto a = [](int i, int j){ return i + j; }(1, 2);
18110       auto b = []() -> int { return '0'; }();
18111       auto c = [=](){ return a + b; }();
18112       auto d = [&](){ return c; }();
18113       auto e = [a, &b](int x) mutable {
18114         const auto identity = [](int y){ return y; };
18115         for (auto i = 0; i < a; ++i)
18116           a += b--;
18117         return x + identity(a + b);
18118       }(0);
18119       return a + b + c + d + e;
18120     }
18121
18122     int
18123     test3()
18124     {
18125       const auto nullary = [](){ return 0; };
18126       const auto unary = [](int x){ return x; };
18127       using nullary_t = decltype(nullary);
18128       using unary_t = decltype(unary);
18129       const auto higher1st = [](nullary_t f){ return f(); };
18130       const auto higher2nd = [unary](nullary_t f1){
18131         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
18132       };
18133       return higher1st(nullary) + higher2nd(nullary)(unary);
18134     }
18135
18136   }
18137
18138   namespace test_variadic_templates
18139   {
18140
18141     template <int...>
18142     struct sum;
18143
18144     template <int N0, int... N1toN>
18145     struct sum<N0, N1toN...>
18146     {
18147       static constexpr auto value = N0 + sum<N1toN...>::value;
18148     };
18149
18150     template <>
18151     struct sum<>
18152     {
18153       static constexpr auto value = 0;
18154     };
18155
18156     static_assert(sum<>::value == 0, "");
18157     static_assert(sum<1>::value == 1, "");
18158     static_assert(sum<23>::value == 23, "");
18159     static_assert(sum<1, 2>::value == 3, "");
18160     static_assert(sum<5, 5, 11>::value == 21, "");
18161     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
18162
18163   }
18164
18165   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
18166   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
18167   // because of this.
18168   namespace test_template_alias_sfinae
18169   {
18170
18171     struct foo {};
18172
18173     template<typename T>
18174     using member = typename T::member_type;
18175
18176     template<typename T>
18177     void func(...) {}
18178
18179     template<typename T>
18180     void func(member<T>*) {}
18181
18182     void test();
18183
18184     void test() { func<foo>(0); }
18185
18186   }
18187
18188 }  // namespace cxx11
18189
18190 #endif  // __cplusplus >= 201103L
18191
18192
18193
18194 _ACEOF
18195 if ac_fn_cxx_try_compile "$LINENO"; then :
18196   ax_cv_cxx_compile_cxx11=yes
18197 else
18198   ax_cv_cxx_compile_cxx11=no
18199 fi
18200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18201 fi
18202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
18203 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
18204   if test x$ax_cv_cxx_compile_cxx11 = xyes; then
18205     ac_success=yes
18206   fi
18207
18208
18209
18210     if test x$ac_success = xno; then
18211                 for switch in -std=c++11 -std=c++0x +std=c++11 "-h std=c++11"; do
18212       cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
18213       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
18214 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
18215 if eval \${$cachevar+:} false; then :
18216   $as_echo_n "(cached) " >&6
18217 else
18218   ac_save_CXX="$CXX"
18219          CXX="$CXX $switch"
18220          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18221 /* end confdefs.h.  */
18222
18223
18224 // If the compiler admits that it is not ready for C++11, why torture it?
18225 // Hopefully, this will speed up the test.
18226
18227 #ifndef __cplusplus
18228
18229 #error "This is not a C++ compiler"
18230
18231 #elif __cplusplus < 201103L
18232
18233 #error "This is not a C++11 compiler"
18234
18235 #else
18236
18237 namespace cxx11
18238 {
18239
18240   namespace test_static_assert
18241   {
18242
18243     template <typename T>
18244     struct check
18245     {
18246       static_assert(sizeof(int) <= sizeof(T), "not big enough");
18247     };
18248
18249   }
18250
18251   namespace test_final_override
18252   {
18253
18254     struct Base
18255     {
18256       virtual void f() {}
18257     };
18258
18259     struct Derived : public Base
18260     {
18261       virtual void f() override {}
18262     };
18263
18264   }
18265
18266   namespace test_double_right_angle_brackets
18267   {
18268
18269     template < typename T >
18270     struct check {};
18271
18272     typedef check<void> single_type;
18273     typedef check<check<void>> double_type;
18274     typedef check<check<check<void>>> triple_type;
18275     typedef check<check<check<check<void>>>> quadruple_type;
18276
18277   }
18278
18279   namespace test_decltype
18280   {
18281
18282     int
18283     f()
18284     {
18285       int a = 1;
18286       decltype(a) b = 2;
18287       return a + b;
18288     }
18289
18290   }
18291
18292   namespace test_type_deduction
18293   {
18294
18295     template < typename T1, typename T2 >
18296     struct is_same
18297     {
18298       static const bool value = false;
18299     };
18300
18301     template < typename T >
18302     struct is_same<T, T>
18303     {
18304       static const bool value = true;
18305     };
18306
18307     template < typename T1, typename T2 >
18308     auto
18309     add(T1 a1, T2 a2) -> decltype(a1 + a2)
18310     {
18311       return a1 + a2;
18312     }
18313
18314     int
18315     test(const int c, volatile int v)
18316     {
18317       static_assert(is_same<int, decltype(0)>::value == true, "");
18318       static_assert(is_same<int, decltype(c)>::value == false, "");
18319       static_assert(is_same<int, decltype(v)>::value == false, "");
18320       auto ac = c;
18321       auto av = v;
18322       auto sumi = ac + av + 'x';
18323       auto sumf = ac + av + 1.0;
18324       static_assert(is_same<int, decltype(ac)>::value == true, "");
18325       static_assert(is_same<int, decltype(av)>::value == true, "");
18326       static_assert(is_same<int, decltype(sumi)>::value == true, "");
18327       static_assert(is_same<int, decltype(sumf)>::value == false, "");
18328       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
18329       return (sumf > 0.0) ? sumi : add(c, v);
18330     }
18331
18332   }
18333
18334   namespace test_noexcept
18335   {
18336
18337     int f() { return 0; }
18338     int g() noexcept { return 0; }
18339
18340     static_assert(noexcept(f()) == false, "");
18341     static_assert(noexcept(g()) == true, "");
18342
18343   }
18344
18345   namespace test_constexpr
18346   {
18347
18348     template < typename CharT >
18349     unsigned long constexpr
18350     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
18351     {
18352       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
18353     }
18354
18355     template < typename CharT >
18356     unsigned long constexpr
18357     strlen_c(const CharT *const s) noexcept
18358     {
18359       return strlen_c_r(s, 0UL);
18360     }
18361
18362     static_assert(strlen_c("") == 0UL, "");
18363     static_assert(strlen_c("1") == 1UL, "");
18364     static_assert(strlen_c("example") == 7UL, "");
18365     static_assert(strlen_c("another\0example") == 7UL, "");
18366
18367   }
18368
18369   namespace test_rvalue_references
18370   {
18371
18372     template < int N >
18373     struct answer
18374     {
18375       static constexpr int value = N;
18376     };
18377
18378     answer<1> f(int&)       { return answer<1>(); }
18379     answer<2> f(const int&) { return answer<2>(); }
18380     answer<3> f(int&&)      { return answer<3>(); }
18381
18382     void
18383     test()
18384     {
18385       int i = 0;
18386       const int c = 0;
18387       static_assert(decltype(f(i))::value == 1, "");
18388       static_assert(decltype(f(c))::value == 2, "");
18389       static_assert(decltype(f(0))::value == 3, "");
18390     }
18391
18392   }
18393
18394   namespace test_uniform_initialization
18395   {
18396
18397     struct test
18398     {
18399       static const int zero {};
18400       static const int one {1};
18401     };
18402
18403     static_assert(test::zero == 0, "");
18404     static_assert(test::one == 1, "");
18405
18406   }
18407
18408   namespace test_lambdas
18409   {
18410
18411     void
18412     test1()
18413     {
18414       auto lambda1 = [](){};
18415       auto lambda2 = lambda1;
18416       lambda1();
18417       lambda2();
18418     }
18419
18420     int
18421     test2()
18422     {
18423       auto a = [](int i, int j){ return i + j; }(1, 2);
18424       auto b = []() -> int { return '0'; }();
18425       auto c = [=](){ return a + b; }();
18426       auto d = [&](){ return c; }();
18427       auto e = [a, &b](int x) mutable {
18428         const auto identity = [](int y){ return y; };
18429         for (auto i = 0; i < a; ++i)
18430           a += b--;
18431         return x + identity(a + b);
18432       }(0);
18433       return a + b + c + d + e;
18434     }
18435
18436     int
18437     test3()
18438     {
18439       const auto nullary = [](){ return 0; };
18440       const auto unary = [](int x){ return x; };
18441       using nullary_t = decltype(nullary);
18442       using unary_t = decltype(unary);
18443       const auto higher1st = [](nullary_t f){ return f(); };
18444       const auto higher2nd = [unary](nullary_t f1){
18445         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
18446       };
18447       return higher1st(nullary) + higher2nd(nullary)(unary);
18448     }
18449
18450   }
18451
18452   namespace test_variadic_templates
18453   {
18454
18455     template <int...>
18456     struct sum;
18457
18458     template <int N0, int... N1toN>
18459     struct sum<N0, N1toN...>
18460     {
18461       static constexpr auto value = N0 + sum<N1toN...>::value;
18462     };
18463
18464     template <>
18465     struct sum<>
18466     {
18467       static constexpr auto value = 0;
18468     };
18469
18470     static_assert(sum<>::value == 0, "");
18471     static_assert(sum<1>::value == 1, "");
18472     static_assert(sum<23>::value == 23, "");
18473     static_assert(sum<1, 2>::value == 3, "");
18474     static_assert(sum<5, 5, 11>::value == 21, "");
18475     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
18476
18477   }
18478
18479   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
18480   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
18481   // because of this.
18482   namespace test_template_alias_sfinae
18483   {
18484
18485     struct foo {};
18486
18487     template<typename T>
18488     using member = typename T::member_type;
18489
18490     template<typename T>
18491     void func(...) {}
18492
18493     template<typename T>
18494     void func(member<T>*) {}
18495
18496     void test();
18497
18498     void test() { func<foo>(0); }
18499
18500   }
18501
18502 }  // namespace cxx11
18503
18504 #endif  // __cplusplus >= 201103L
18505
18506
18507
18508 _ACEOF
18509 if ac_fn_cxx_try_compile "$LINENO"; then :
18510   eval $cachevar=yes
18511 else
18512   eval $cachevar=no
18513 fi
18514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18515          CXX="$ac_save_CXX"
18516 fi
18517 eval ac_res=\$$cachevar
18518                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18519 $as_echo "$ac_res" >&6; }
18520       if eval test x\$$cachevar = xyes; then
18521         CXX="$CXX $switch"
18522         CXXCPP="$CXXCPP $switch"
18523         ac_success=yes
18524         break
18525       fi
18526     done
18527   fi
18528   ac_ext=c
18529 ac_cpp='$CPP $CPPFLAGS'
18530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18533
18534   if test x$ax_cxx_compile_cxx11_required = xtrue; then
18535     if test x$ac_success = xno; then
18536       as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
18537     fi
18538   fi
18539   if test x$ac_success = xno; then
18540     HAVE_CXX11=0
18541     { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
18542 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
18543   else
18544     HAVE_CXX11=1
18545
18546 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
18547
18548   fi
18549
18550
18551     if test "$HAVE_CXX11" != "1"; then
18552         if test "$explicit_languages" = "1"; then
18553             as_fn_error $? "
18554 ***
18555 *** A compiler with c++11 support is required for the c++ binding.
18556 ***" "$LINENO" 5
18557         else
18558             enabled_languages=$(echo $enabled_languages | sed 's/cpp//')
18559             enabled_languages=$(echo $enabled_languages | sed 's/qt//')
18560             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18561 ***
18562 *** No c++11 support detected. C++ and Qt bindings will be disabled.
18563 ***" >&5
18564 $as_echo "$as_me: WARNING:
18565 ***
18566 *** No c++11 support detected. C++ and Qt bindings will be disabled.
18567 ***" >&2;}
18568         fi
18569     fi
18570 fi
18571
18572 # Check that if qt is enabled cpp also is enabled
18573
18574 name="qt"
18575 list=$enabled_languages
18576 found=0
18577
18578 for n in $list; do
18579   if test "x$name" = "x$n"; then
18580     found=1
18581   fi
18582 done
18583
18584 if test "$found" = "1"; then
18585     # We need to ensure that in the language order qt comes after cpp
18586     # so we remove qt first and explicitly add it as last list member.
18587     enabled_languages=$(echo $enabled_languages | sed 's/qt//')
18588
18589 name="cpp"
18590 list=$enabled_languages
18591 found=0
18592
18593 for n in $list; do
18594   if test "x$name" = "x$n"; then
18595     found=1
18596   fi
18597 done
18598
18599     if test "$found" = "0"; then
18600         as_fn_error $? "
18601 ***
18602 *** Qt language binding depends on cpp binding.
18603 ***" "$LINENO" 5
18604     fi
18605
18606
18607 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18608         if test -n "$ac_tool_prefix"; then
18609   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18610 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18612 $as_echo_n "checking for $ac_word... " >&6; }
18613 if ${ac_cv_path_PKG_CONFIG+:} false; then :
18614   $as_echo_n "(cached) " >&6
18615 else
18616   case $PKG_CONFIG in
18617   [\\/]* | ?:[\\/]*)
18618   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18619   ;;
18620   *)
18621   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18622 for as_dir in $PATH
18623 do
18624   IFS=$as_save_IFS
18625   test -z "$as_dir" && as_dir=.
18626     for ac_exec_ext in '' $ac_executable_extensions; do
18627   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18628     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18629     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18630     break 2
18631   fi
18632 done
18633   done
18634 IFS=$as_save_IFS
18635
18636   ;;
18637 esac
18638 fi
18639 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18640 if test -n "$PKG_CONFIG"; then
18641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18642 $as_echo "$PKG_CONFIG" >&6; }
18643 else
18644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18645 $as_echo "no" >&6; }
18646 fi
18647
18648
18649 fi
18650 if test -z "$ac_cv_path_PKG_CONFIG"; then
18651   ac_pt_PKG_CONFIG=$PKG_CONFIG
18652   # Extract the first word of "pkg-config", so it can be a program name with args.
18653 set dummy pkg-config; ac_word=$2
18654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18655 $as_echo_n "checking for $ac_word... " >&6; }
18656 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
18657   $as_echo_n "(cached) " >&6
18658 else
18659   case $ac_pt_PKG_CONFIG in
18660   [\\/]* | ?:[\\/]*)
18661   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
18662   ;;
18663   *)
18664   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18665 for as_dir in $PATH
18666 do
18667   IFS=$as_save_IFS
18668   test -z "$as_dir" && as_dir=.
18669     for ac_exec_ext in '' $ac_executable_extensions; do
18670   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18671     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18672     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18673     break 2
18674   fi
18675 done
18676   done
18677 IFS=$as_save_IFS
18678
18679   ;;
18680 esac
18681 fi
18682 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18683 if test -n "$ac_pt_PKG_CONFIG"; then
18684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
18685 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
18686 else
18687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18688 $as_echo "no" >&6; }
18689 fi
18690
18691   if test "x$ac_pt_PKG_CONFIG" = x; then
18692     PKG_CONFIG=""
18693   else
18694     case $cross_compiling:$ac_tool_warned in
18695 yes:)
18696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18697 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18698 ac_tool_warned=yes ;;
18699 esac
18700     PKG_CONFIG=$ac_pt_PKG_CONFIG
18701   fi
18702 else
18703   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18704 fi
18705
18706 fi
18707 if test -n "$PKG_CONFIG"; then
18708         _pkg_min_version=0.9.0
18709         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
18710 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
18711         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
18712                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18713 $as_echo "yes" >&6; }
18714         else
18715                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18716 $as_echo "no" >&6; }
18717                 PKG_CONFIG=""
18718         fi
18719
18720 fi
18721
18722   have_qt5_libs="no";
18723
18724
18725 pkg_failed=no
18726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPGME_QT" >&5
18727 $as_echo_n "checking for GPGME_QT... " >&6; }
18728
18729 if test -n "$PKG_CONFIG"; then
18730     if test -n "$GPGME_QT_CFLAGS"; then
18731         pkg_cv_GPGME_QT_CFLAGS="$GPGME_QT_CFLAGS"
18732     else
18733         if test -n "$PKG_CONFIG" && \
18734     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Core >= 5.0.0\""; } >&5
18735   ($PKG_CONFIG --exists --print-errors "Qt5Core >= 5.0.0") 2>&5
18736   ac_status=$?
18737   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18738   test $ac_status = 0; }; then
18739   pkg_cv_GPGME_QT_CFLAGS=`$PKG_CONFIG --cflags "Qt5Core >= 5.0.0" 2>/dev/null`
18740 else
18741   pkg_failed=yes
18742 fi
18743     fi
18744 else
18745         pkg_failed=untried
18746 fi
18747 if test -n "$PKG_CONFIG"; then
18748     if test -n "$GPGME_QT_LIBS"; then
18749         pkg_cv_GPGME_QT_LIBS="$GPGME_QT_LIBS"
18750     else
18751         if test -n "$PKG_CONFIG" && \
18752     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Core >= 5.0.0\""; } >&5
18753   ($PKG_CONFIG --exists --print-errors "Qt5Core >= 5.0.0") 2>&5
18754   ac_status=$?
18755   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18756   test $ac_status = 0; }; then
18757   pkg_cv_GPGME_QT_LIBS=`$PKG_CONFIG --libs "Qt5Core >= 5.0.0" 2>/dev/null`
18758 else
18759   pkg_failed=yes
18760 fi
18761     fi
18762 else
18763         pkg_failed=untried
18764 fi
18765
18766
18767
18768 if test $pkg_failed = yes; then
18769
18770 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18771         _pkg_short_errors_supported=yes
18772 else
18773         _pkg_short_errors_supported=no
18774 fi
18775         if test $_pkg_short_errors_supported = yes; then
18776                 GPGME_QT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "Qt5Core >= 5.0.0"`
18777         else
18778                 GPGME_QT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "Qt5Core >= 5.0.0"`
18779         fi
18780         # Put the nasty error message in config.log where it belongs
18781         echo "$GPGME_QT_PKG_ERRORS" >&5
18782
18783         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18784 $as_echo "no" >&6; }
18785                 have_qt5_libs="no"
18786 elif test $pkg_failed = untried; then
18787         have_qt5_libs="no"
18788 else
18789         GPGME_QT_CFLAGS=$pkg_cv_GPGME_QT_CFLAGS
18790         GPGME_QT_LIBS=$pkg_cv_GPGME_QT_LIBS
18791         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18792 $as_echo "yes" >&6; }
18793         have_qt5_libs="yes"
18794 fi
18795
18796
18797 pkg_failed=no
18798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPGME_QTTEST" >&5
18799 $as_echo_n "checking for GPGME_QTTEST... " >&6; }
18800
18801 if test -n "$PKG_CONFIG"; then
18802     if test -n "$GPGME_QTTEST_CFLAGS"; then
18803         pkg_cv_GPGME_QTTEST_CFLAGS="$GPGME_QTTEST_CFLAGS"
18804     else
18805         if test -n "$PKG_CONFIG" && \
18806     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Test >= 5.0.0\""; } >&5
18807   ($PKG_CONFIG --exists --print-errors "Qt5Test >= 5.0.0") 2>&5
18808   ac_status=$?
18809   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18810   test $ac_status = 0; }; then
18811   pkg_cv_GPGME_QTTEST_CFLAGS=`$PKG_CONFIG --cflags "Qt5Test >= 5.0.0" 2>/dev/null`
18812 else
18813   pkg_failed=yes
18814 fi
18815     fi
18816 else
18817         pkg_failed=untried
18818 fi
18819 if test -n "$PKG_CONFIG"; then
18820     if test -n "$GPGME_QTTEST_LIBS"; then
18821         pkg_cv_GPGME_QTTEST_LIBS="$GPGME_QTTEST_LIBS"
18822     else
18823         if test -n "$PKG_CONFIG" && \
18824     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Test >= 5.0.0\""; } >&5
18825   ($PKG_CONFIG --exists --print-errors "Qt5Test >= 5.0.0") 2>&5
18826   ac_status=$?
18827   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18828   test $ac_status = 0; }; then
18829   pkg_cv_GPGME_QTTEST_LIBS=`$PKG_CONFIG --libs "Qt5Test >= 5.0.0" 2>/dev/null`
18830 else
18831   pkg_failed=yes
18832 fi
18833     fi
18834 else
18835         pkg_failed=untried
18836 fi
18837
18838
18839
18840 if test $pkg_failed = yes; then
18841
18842 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18843         _pkg_short_errors_supported=yes
18844 else
18845         _pkg_short_errors_supported=no
18846 fi
18847         if test $_pkg_short_errors_supported = yes; then
18848                 GPGME_QTTEST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "Qt5Test >= 5.0.0"`
18849         else
18850                 GPGME_QTTEST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "Qt5Test >= 5.0.0"`
18851         fi
18852         # Put the nasty error message in config.log where it belongs
18853         echo "$GPGME_QTTEST_PKG_ERRORS" >&5
18854
18855         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18856 $as_echo "no" >&6; }
18857                 have_qt5test_libs="no"
18858 elif test $pkg_failed = untried; then
18859         have_qt5test_libs="no"
18860 else
18861         GPGME_QTTEST_CFLAGS=$pkg_cv_GPGME_QTTEST_CFLAGS
18862         GPGME_QTTEST_LIBS=$pkg_cv_GPGME_QTTEST_LIBS
18863         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18864 $as_echo "yes" >&6; }
18865         have_qt5test_libs="yes"
18866 fi
18867
18868   if ! test "$have_w32_system" = yes; then
18869     if "$PKG_CONFIG" --variable qt_config Qt5Core | grep -q "reduce_relocations"; then
18870       GPGME_QT_CFLAGS="$GPGME_QT_CFLAGS -fpic"
18871     fi
18872   fi
18873   if test "$have_qt5_libs" = "yes"; then
18874     if test -n "$ac_tool_prefix"; then
18875   # Extract the first word of "${ac_tool_prefix}moc", so it can be a program name with args.
18876 set dummy ${ac_tool_prefix}moc; ac_word=$2
18877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18878 $as_echo_n "checking for $ac_word... " >&6; }
18879 if ${ac_cv_prog_MOC+:} false; then :
18880   $as_echo_n "(cached) " >&6
18881 else
18882   if test -n "$MOC"; then
18883   ac_cv_prog_MOC="$MOC" # Let the user override the test.
18884 else
18885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18886 for as_dir in $PATH
18887 do
18888   IFS=$as_save_IFS
18889   test -z "$as_dir" && as_dir=.
18890     for ac_exec_ext in '' $ac_executable_extensions; do
18891   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18892     ac_cv_prog_MOC="${ac_tool_prefix}moc"
18893     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18894     break 2
18895   fi
18896 done
18897   done
18898 IFS=$as_save_IFS
18899
18900 fi
18901 fi
18902 MOC=$ac_cv_prog_MOC
18903 if test -n "$MOC"; then
18904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5
18905 $as_echo "$MOC" >&6; }
18906 else
18907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18908 $as_echo "no" >&6; }
18909 fi
18910
18911
18912 fi
18913 if test -z "$ac_cv_prog_MOC"; then
18914   ac_ct_MOC=$MOC
18915   # Extract the first word of "moc", so it can be a program name with args.
18916 set dummy moc; ac_word=$2
18917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18918 $as_echo_n "checking for $ac_word... " >&6; }
18919 if ${ac_cv_prog_ac_ct_MOC+:} false; then :
18920   $as_echo_n "(cached) " >&6
18921 else
18922   if test -n "$ac_ct_MOC"; then
18923   ac_cv_prog_ac_ct_MOC="$ac_ct_MOC" # Let the user override the test.
18924 else
18925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18926 for as_dir in $PATH
18927 do
18928   IFS=$as_save_IFS
18929   test -z "$as_dir" && as_dir=.
18930     for ac_exec_ext in '' $ac_executable_extensions; do
18931   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18932     ac_cv_prog_ac_ct_MOC="moc"
18933     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18934     break 2
18935   fi
18936 done
18937   done
18938 IFS=$as_save_IFS
18939
18940 fi
18941 fi
18942 ac_ct_MOC=$ac_cv_prog_ac_ct_MOC
18943 if test -n "$ac_ct_MOC"; then
18944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MOC" >&5
18945 $as_echo "$ac_ct_MOC" >&6; }
18946 else
18947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18948 $as_echo "no" >&6; }
18949 fi
18950
18951   if test "x$ac_ct_MOC" = x; then
18952     MOC=""
18953   else
18954     case $cross_compiling:$ac_tool_warned in
18955 yes:)
18956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18957 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18958 ac_tool_warned=yes ;;
18959 esac
18960     MOC=$ac_ct_MOC
18961   fi
18962 else
18963   MOC="$ac_cv_prog_MOC"
18964 fi
18965
18966     { $as_echo "$as_me:${as_lineno-$LINENO}: checking moc version" >&5
18967 $as_echo_n "checking moc version... " >&6; }
18968     mocversion=`$MOC -v 2>&1`
18969     mocversiongrep=`echo $mocversion | grep -E "Qt 5|moc 5"`
18970     if test x"$mocversiongrep" != x"$mocversion"; then
18971       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18972 $as_echo "no" >&6; }
18973       # moc was not the qt5 one, try with moc-qt5
18974       if test -n "$ac_tool_prefix"; then
18975   # Extract the first word of "${ac_tool_prefix}moc-qt5", so it can be a program name with args.
18976 set dummy ${ac_tool_prefix}moc-qt5; ac_word=$2
18977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18978 $as_echo_n "checking for $ac_word... " >&6; }
18979 if ${ac_cv_prog_MOC2+:} false; then :
18980   $as_echo_n "(cached) " >&6
18981 else
18982   if test -n "$MOC2"; then
18983   ac_cv_prog_MOC2="$MOC2" # Let the user override the test.
18984 else
18985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18986 for as_dir in $PATH
18987 do
18988   IFS=$as_save_IFS
18989   test -z "$as_dir" && as_dir=.
18990     for ac_exec_ext in '' $ac_executable_extensions; do
18991   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18992     ac_cv_prog_MOC2="${ac_tool_prefix}moc-qt5"
18993     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18994     break 2
18995   fi
18996 done
18997   done
18998 IFS=$as_save_IFS
18999
19000 fi
19001 fi
19002 MOC2=$ac_cv_prog_MOC2
19003 if test -n "$MOC2"; then
19004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC2" >&5
19005 $as_echo "$MOC2" >&6; }
19006 else
19007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19008 $as_echo "no" >&6; }
19009 fi
19010
19011
19012 fi
19013 if test -z "$ac_cv_prog_MOC2"; then
19014   ac_ct_MOC2=$MOC2
19015   # Extract the first word of "moc-qt5", so it can be a program name with args.
19016 set dummy moc-qt5; ac_word=$2
19017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19018 $as_echo_n "checking for $ac_word... " >&6; }
19019 if ${ac_cv_prog_ac_ct_MOC2+:} false; then :
19020   $as_echo_n "(cached) " >&6
19021 else
19022   if test -n "$ac_ct_MOC2"; then
19023   ac_cv_prog_ac_ct_MOC2="$ac_ct_MOC2" # Let the user override the test.
19024 else
19025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19026 for as_dir in $PATH
19027 do
19028   IFS=$as_save_IFS
19029   test -z "$as_dir" && as_dir=.
19030     for ac_exec_ext in '' $ac_executable_extensions; do
19031   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19032     ac_cv_prog_ac_ct_MOC2="moc-qt5"
19033     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19034     break 2
19035   fi
19036 done
19037   done
19038 IFS=$as_save_IFS
19039
19040 fi
19041 fi
19042 ac_ct_MOC2=$ac_cv_prog_ac_ct_MOC2
19043 if test -n "$ac_ct_MOC2"; then
19044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MOC2" >&5
19045 $as_echo "$ac_ct_MOC2" >&6; }
19046 else
19047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19048 $as_echo "no" >&6; }
19049 fi
19050
19051   if test "x$ac_ct_MOC2" = x; then
19052     MOC2=""
19053   else
19054     case $cross_compiling:$ac_tool_warned in
19055 yes:)
19056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19057 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19058 ac_tool_warned=yes ;;
19059 esac
19060     MOC2=$ac_ct_MOC2
19061   fi
19062 else
19063   MOC2="$ac_cv_prog_MOC2"
19064 fi
19065
19066       mocversion=`$MOC2 -v 2>&1`
19067       mocversiongrep=`echo $mocversion | grep -E "Qt 5|moc-qt5 5|moc 5"`
19068       if test x"$mocversiongrep" != x"$mocversion"; then
19069         if test -n "$ac_tool_prefix"; then
19070   # Extract the first word of "${ac_tool_prefix}qtchooser", so it can be a program name with args.
19071 set dummy ${ac_tool_prefix}qtchooser; ac_word=$2
19072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19073 $as_echo_n "checking for $ac_word... " >&6; }
19074 if ${ac_cv_prog_QTCHOOSER+:} false; then :
19075   $as_echo_n "(cached) " >&6
19076 else
19077   if test -n "$QTCHOOSER"; then
19078   ac_cv_prog_QTCHOOSER="$QTCHOOSER" # Let the user override the test.
19079 else
19080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19081 for as_dir in $PATH
19082 do
19083   IFS=$as_save_IFS
19084   test -z "$as_dir" && as_dir=.
19085     for ac_exec_ext in '' $ac_executable_extensions; do
19086   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19087     ac_cv_prog_QTCHOOSER="${ac_tool_prefix}qtchooser"
19088     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19089     break 2
19090   fi
19091 done
19092   done
19093 IFS=$as_save_IFS
19094
19095 fi
19096 fi
19097 QTCHOOSER=$ac_cv_prog_QTCHOOSER
19098 if test -n "$QTCHOOSER"; then
19099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QTCHOOSER" >&5
19100 $as_echo "$QTCHOOSER" >&6; }
19101 else
19102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19103 $as_echo "no" >&6; }
19104 fi
19105
19106
19107 fi
19108 if test -z "$ac_cv_prog_QTCHOOSER"; then
19109   ac_ct_QTCHOOSER=$QTCHOOSER
19110   # Extract the first word of "qtchooser", so it can be a program name with args.
19111 set dummy qtchooser; ac_word=$2
19112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19113 $as_echo_n "checking for $ac_word... " >&6; }
19114 if ${ac_cv_prog_ac_ct_QTCHOOSER+:} false; then :
19115   $as_echo_n "(cached) " >&6
19116 else
19117   if test -n "$ac_ct_QTCHOOSER"; then
19118   ac_cv_prog_ac_ct_QTCHOOSER="$ac_ct_QTCHOOSER" # Let the user override the test.
19119 else
19120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19121 for as_dir in $PATH
19122 do
19123   IFS=$as_save_IFS
19124   test -z "$as_dir" && as_dir=.
19125     for ac_exec_ext in '' $ac_executable_extensions; do
19126   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19127     ac_cv_prog_ac_ct_QTCHOOSER="qtchooser"
19128     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19129     break 2
19130   fi
19131 done
19132   done
19133 IFS=$as_save_IFS
19134
19135 fi
19136 fi
19137 ac_ct_QTCHOOSER=$ac_cv_prog_ac_ct_QTCHOOSER
19138 if test -n "$ac_ct_QTCHOOSER"; then
19139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_QTCHOOSER" >&5
19140 $as_echo "$ac_ct_QTCHOOSER" >&6; }
19141 else
19142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19143 $as_echo "no" >&6; }
19144 fi
19145
19146   if test "x$ac_ct_QTCHOOSER" = x; then
19147     QTCHOOSER=""
19148   else
19149     case $cross_compiling:$ac_tool_warned in
19150 yes:)
19151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19152 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19153 ac_tool_warned=yes ;;
19154 esac
19155     QTCHOOSER=$ac_ct_QTCHOOSER
19156   fi
19157 else
19158   QTCHOOSER="$ac_cv_prog_QTCHOOSER"
19159 fi
19160
19161         qt5tooldir=`QT_SELECT=qt5 qtchooser -print-env | grep QTTOOLDIR | cut -d '=' -f 2 | cut -d \" -f 2`
19162         mocversion=`$qt5tooldir/moc -v 2>&1`
19163         mocversiongrep=`echo $mocversion | grep -E "Qt 5|moc 5"`
19164         if test x"$mocversiongrep" != x"$mocversion"; then
19165           # no valid moc found
19166           have_qt5_libs="no";
19167         else
19168           MOC=$qt5tooldir/moc
19169         fi
19170       else
19171         MOC=$MOC2
19172       fi
19173     fi
19174     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mocversion" >&5
19175 $as_echo "$mocversion" >&6; }
19176                         OLDCPPFLAGS=$CPPFLAGS
19177     CPPFLAGS=$GPGME_QT_CFLAGS
19178     OLDLIBS=$LIBS
19179     LIBS=$GPGME_QT_LIBS
19180     ac_ext=cpp
19181 ac_cpp='$CXXCPP $CPPFLAGS'
19182 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19183 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19184 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19185
19186     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a simple qt program can be built" >&5
19187 $as_echo_n "checking whether a simple qt program can be built... " >&6; }
19188     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19189 /* end confdefs.h.  */
19190
19191     #include <QCoreApplication>
19192     int main (int argc, char **argv) {
19193     QCoreApplication app(argc, argv);
19194     app.exec();
19195     }
19196 _ACEOF
19197 if ac_fn_cxx_try_link "$LINENO"; then :
19198   have_qt5_libs='yes'
19199 else
19200   have_qt5_libs='no'
19201 fi
19202 rm -f core conftest.err conftest.$ac_objext \
19203     conftest$ac_exeext conftest.$ac_ext
19204     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_qt5_libs" >&5
19205 $as_echo "$have_qt5_libs" >&6; }
19206     ac_ext=c
19207 ac_cpp='$CPP $CPPFLAGS'
19208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19211
19212     CPPFLAGS=$OLDCPPFLAGS
19213     LIBS=$OLDLIBS
19214   fi
19215
19216     if test "$have_qt5_libs" != "yes"; then
19217         if test "$explicit_languages" = "1"; then
19218         as_fn_error $? "
19219 ***
19220 *** Qt5 (Qt5Core) is required for Qt binding.
19221 ***" "$LINENO" 5
19222         else
19223            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
19224 ***
19225 *** Qt5 (Qt5Core) not found Qt Binding will be disabled.
19226 ***" >&5
19227 $as_echo "$as_me: WARNING:
19228 ***
19229 *** Qt5 (Qt5Core) not found Qt Binding will be disabled.
19230 ***" >&2;}
19231         fi
19232     else
19233         enabled_languages=`echo $enabled_languages qt`
19234
19235         for ac_prog in doxygen
19236 do
19237   # Extract the first word of "$ac_prog", so it can be a program name with args.
19238 set dummy $ac_prog; ac_word=$2
19239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19240 $as_echo_n "checking for $ac_word... " >&6; }
19241 if ${ac_cv_prog_DOXYGEN+:} false; then :
19242   $as_echo_n "(cached) " >&6
19243 else
19244   if test -n "$DOXYGEN"; then
19245   ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
19246 else
19247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19248 for as_dir in $PATH
19249 do
19250   IFS=$as_save_IFS
19251   test -z "$as_dir" && as_dir=.
19252     for ac_exec_ext in '' $ac_executable_extensions; do
19253   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19254     ac_cv_prog_DOXYGEN="$ac_prog"
19255     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19256     break 2
19257   fi
19258 done
19259   done
19260 IFS=$as_save_IFS
19261
19262 fi
19263 fi
19264 DOXYGEN=$ac_cv_prog_DOXYGEN
19265 if test -n "$DOXYGEN"; then
19266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
19267 $as_echo "$DOXYGEN" >&6; }
19268 else
19269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19270 $as_echo "no" >&6; }
19271 fi
19272
19273
19274   test -n "$DOXYGEN" && break
19275 done
19276
19277         if test -z "$DOXYGEN";
19278             # This is not highlighted because it's not really important.
19279             then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Doxygen not found - Qt binding doc will not be built." >&5
19280 $as_echo "$as_me: WARNING: Doxygen not found - Qt binding doc will not be built." >&2;}
19281         fi
19282         for ac_prog in dot
19283 do
19284   # Extract the first word of "$ac_prog", so it can be a program name with args.
19285 set dummy $ac_prog; ac_word=$2
19286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19287 $as_echo_n "checking for $ac_word... " >&6; }
19288 if ${ac_cv_prog_GRAPHVIZ+:} false; then :
19289   $as_echo_n "(cached) " >&6
19290 else
19291   if test -n "$GRAPHVIZ"; then
19292   ac_cv_prog_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test.
19293 else
19294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19295 for as_dir in $PATH
19296 do
19297   IFS=$as_save_IFS
19298   test -z "$as_dir" && as_dir=.
19299     for ac_exec_ext in '' $ac_executable_extensions; do
19300   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19301     ac_cv_prog_GRAPHVIZ="$ac_prog"
19302     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19303     break 2
19304   fi
19305 done
19306   done
19307 IFS=$as_save_IFS
19308
19309 fi
19310 fi
19311 GRAPHVIZ=$ac_cv_prog_GRAPHVIZ
19312 if test -n "$GRAPHVIZ"; then
19313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GRAPHVIZ" >&5
19314 $as_echo "$GRAPHVIZ" >&6; }
19315 else
19316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19317 $as_echo "no" >&6; }
19318 fi
19319
19320
19321   test -n "$GRAPHVIZ" && break
19322 done
19323
19324         if test -z "$GRAPHVIZ";
19325             then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Graphviz not found - Qt binding doc will not have diagrams." >&5
19326 $as_echo "$as_me: WARNING: Graphviz not found - Qt binding doc will not have diagrams." >&2;}
19327         fi
19328     fi
19329 fi
19330  if test -n "$DOXYGEN"; then
19331   HAVE_DOXYGEN_TRUE=
19332   HAVE_DOXYGEN_FALSE='#'
19333 else
19334   HAVE_DOXYGEN_TRUE='#'
19335   HAVE_DOXYGEN_FALSE=
19336 fi
19337
19338 if test -n "$GRAPHVIZ"; then
19339     HAVE_DOT="YES"
19340 else
19341     HAVE_DOT="NO"
19342 fi
19343
19344
19345 # Python bindings.
19346
19347 name="python"
19348 list=$enabled_languages
19349 found=0
19350
19351 for n in $list; do
19352   if test "x$name" = "x$n"; then
19353     found=1
19354   fi
19355 done
19356
19357 found_py=$found
19358 if test "$found_py" = "1"; then
19359
19360         # Ubuntu has swig 2.0 as /usr/bin/swig2.0
19361         for ac_prog in swig swig2.0
19362 do
19363   # Extract the first word of "$ac_prog", so it can be a program name with args.
19364 set dummy $ac_prog; ac_word=$2
19365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19366 $as_echo_n "checking for $ac_word... " >&6; }
19367 if ${ac_cv_path_SWIG+:} false; then :
19368   $as_echo_n "(cached) " >&6
19369 else
19370   case $SWIG in
19371   [\\/]* | ?:[\\/]*)
19372   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
19373   ;;
19374   *)
19375   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19376 for as_dir in $PATH
19377 do
19378   IFS=$as_save_IFS
19379   test -z "$as_dir" && as_dir=.
19380     for ac_exec_ext in '' $ac_executable_extensions; do
19381   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19382     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
19383     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19384     break 2
19385   fi
19386 done
19387   done
19388 IFS=$as_save_IFS
19389
19390   ;;
19391 esac
19392 fi
19393 SWIG=$ac_cv_path_SWIG
19394 if test -n "$SWIG"; then
19395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
19396 $as_echo "$SWIG" >&6; }
19397 else
19398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19399 $as_echo "no" >&6; }
19400 fi
19401
19402
19403   test -n "$SWIG" && break
19404 done
19405
19406         if test -z "$SWIG" ; then
19407                 :
19408         elif test -n "" ; then
19409                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG version" >&5
19410 $as_echo_n "checking SWIG version... " >&6; }
19411                 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'`
19412                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
19413 $as_echo "$swig_version" >&6; }
19414                 if test -n "$swig_version" ; then
19415                         # Calculate the required version number components
19416                         required=
19417                         required_major=`echo $required | sed 's/[^0-9].*//'`
19418                         if test -z "$required_major" ; then
19419                                 required_major=0
19420                         fi
19421                         required=`echo $required | sed 's/[0-9]*[^0-9]//'`
19422                         required_minor=`echo $required | sed 's/[^0-9].*//'`
19423                         if test -z "$required_minor" ; then
19424                                 required_minor=0
19425                         fi
19426                         required=`echo $required | sed 's/[0-9]*[^0-9]//'`
19427                         required_patch=`echo $required | sed 's/[^0-9].*//'`
19428                         if test -z "$required_patch" ; then
19429                                 required_patch=0
19430                         fi
19431                         # Calculate the available version number components
19432                         available=$swig_version
19433                         available_major=`echo $available | sed 's/[^0-9].*//'`
19434                         if test -z "$available_major" ; then
19435                                 available_major=0
19436                         fi
19437                         available=`echo $available | sed 's/[0-9]*[^0-9]//'`
19438                         available_minor=`echo $available | sed 's/[^0-9].*//'`
19439                         if test -z "$available_minor" ; then
19440                                 available_minor=0
19441                         fi
19442                         available=`echo $available | sed 's/[0-9]*[^0-9]//'`
19443                         available_patch=`echo $available | sed 's/[^0-9].*//'`
19444                         if test -z "$available_patch" ; then
19445                                 available_patch=0
19446                         fi
19447                         # Convert the version tuple into a single number for easier comparison.
19448                         # Using base 100 should be safe since SWIG internally uses BCD values
19449                         # to encode its version number.
19450                         required_swig_vernum=`expr $required_major \* 10000 \
19451                             \+ $required_minor \* 100 \+ $required_patch`
19452                         available_swig_vernum=`expr $available_major \* 10000 \
19453                             \+ $available_minor \* 100 \+ $available_patch`
19454
19455                         if test $available_swig_vernum -lt $required_swig_vernum; then
19456                                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >=  is required.  You have $swig_version." >&5
19457 $as_echo "$as_me: WARNING: SWIG version >=  is required.  You have $swig_version." >&2;}
19458                                 SWIG=''
19459
19460                         else
19461                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG library" >&5
19462 $as_echo_n "checking for SWIG library... " >&6; }
19463                                 SWIG_LIB=`$SWIG -swiglib`
19464                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_LIB" >&5
19465 $as_echo "$SWIG_LIB" >&6; }
19466
19467                         fi
19468                 else
19469                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
19470 $as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
19471                         SWIG=''
19472
19473                 fi
19474         fi
19475
19476
19477     if test -z "$SWIG"; then
19478         if test "$explicit_languages" = "1"; then
19479             as_fn_error $? "
19480 ***
19481 *** You need SWIG to build the Python bindings.
19482 ***" "$LINENO" 5
19483         else
19484             enabled_languages=$(echo $enabled_languages | sed 's/python//')
19485         fi
19486     else
19487         # Reset the version collecting vars.
19488         PYTHONS=
19489         PYTHON_VERSIONS=
19490
19491         if test "$found_py" = "1" -o "$found_py3" = "1"; then
19492           # Reset everything, so that we can look for another Python.
19493           unset PYTHON
19494             unset PYTHON_VERSION
19495             unset PYTHON_CPPFLAGS
19496             unset PYTHON_LDFLAGS
19497             unset PYTHON_SITE_PKG
19498             unset PYTHON_EXTRA_LIBS
19499             unset PYTHON_EXTRA_LDFLAGS
19500             unset ac_cv_path_PYTHON
19501             unset am_cv_pathless_PYTHON
19502             unset am_cv_python_version
19503             unset am_cv_python_platform
19504             unset am_cv_python_pythondir
19505             unset am_cv_python_pyexecdir
19506
19507
19508
19509
19510
19511
19512         if test -n "$PYTHON"; then
19513       # If the user set $PYTHON, use it and don't search something else.
19514       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.7" >&5
19515 $as_echo_n "checking whether $PYTHON version is >= 2.7... " >&6; }
19516       prog="import sys
19517 # split strings by '.' and convert to numeric.  Append some zeros
19518 # because we need at least 4 digits for the hex conversion.
19519 # map returns an iterator in Python 3.0 and a list in 2.x
19520 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
19521 minverhex = 0
19522 # xrange is not present in Python 3.0 and range returns an iterator
19523 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
19524 sys.exit(sys.hexversion < minverhex)"
19525   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
19526    ($PYTHON -c "$prog") >&5 2>&5
19527    ac_status=$?
19528    echo "$as_me:$LINENO: \$? = $ac_status" >&5
19529    (exit $ac_status); }; then :
19530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19531 $as_echo "yes" >&6; }
19532 else
19533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19534 $as_echo "no" >&6; }
19535                                as_fn_error $? "Python interpreter is too old" "$LINENO" 5
19536 fi
19537       am_display_PYTHON=$PYTHON
19538     else
19539       # Otherwise, try each interpreter until we find one that satisfies
19540       # VERSION.
19541       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.7" >&5
19542 $as_echo_n "checking for a Python interpreter with version >= 2.7... " >&6; }
19543 if ${am_cv_pathless_PYTHON+:} false; then :
19544   $as_echo_n "(cached) " >&6
19545 else
19546
19547         for am_cv_pathless_PYTHON           in python2.7 none; do
19548           test "$am_cv_pathless_PYTHON" = none && break
19549           prog="import sys
19550 # split strings by '.' and convert to numeric.  Append some zeros
19551 # because we need at least 4 digits for the hex conversion.
19552 # map returns an iterator in Python 3.0 and a list in 2.x
19553 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
19554 minverhex = 0
19555 # xrange is not present in Python 3.0 and range returns an iterator
19556 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
19557 sys.exit(sys.hexversion < minverhex)"
19558   if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
19559    ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
19560    ac_status=$?
19561    echo "$as_me:$LINENO: \$? = $ac_status" >&5
19562    (exit $ac_status); }; then :
19563   break
19564 fi
19565         done
19566 fi
19567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
19568 $as_echo "$am_cv_pathless_PYTHON" >&6; }
19569       # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
19570       if test "$am_cv_pathless_PYTHON" = none; then
19571         PYTHON=:
19572       else
19573         # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
19574 set dummy $am_cv_pathless_PYTHON; ac_word=$2
19575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19576 $as_echo_n "checking for $ac_word... " >&6; }
19577 if ${ac_cv_path_PYTHON+:} false; then :
19578   $as_echo_n "(cached) " >&6
19579 else
19580   case $PYTHON in
19581   [\\/]* | ?:[\\/]*)
19582   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
19583   ;;
19584   *)
19585   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19586 for as_dir in $PATH
19587 do
19588   IFS=$as_save_IFS
19589   test -z "$as_dir" && as_dir=.
19590     for ac_exec_ext in '' $ac_executable_extensions; do
19591   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19592     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
19593     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19594     break 2
19595   fi
19596 done
19597   done
19598 IFS=$as_save_IFS
19599
19600   ;;
19601 esac
19602 fi
19603 PYTHON=$ac_cv_path_PYTHON
19604 if test -n "$PYTHON"; then
19605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
19606 $as_echo "$PYTHON" >&6; }
19607 else
19608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19609 $as_echo "no" >&6; }
19610 fi
19611
19612
19613       fi
19614       am_display_PYTHON=$am_cv_pathless_PYTHON
19615     fi
19616
19617
19618   if test "$PYTHON" = :; then
19619       :
19620   else
19621
19622
19623   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
19624 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
19625 if ${am_cv_python_version+:} false; then :
19626   $as_echo_n "(cached) " >&6
19627 else
19628   am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
19629 fi
19630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
19631 $as_echo "$am_cv_python_version" >&6; }
19632   PYTHON_VERSION=$am_cv_python_version
19633
19634
19635
19636   PYTHON_PREFIX='${prefix}'
19637
19638   PYTHON_EXEC_PREFIX='${exec_prefix}'
19639
19640
19641
19642   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
19643 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
19644 if ${am_cv_python_platform+:} false; then :
19645   $as_echo_n "(cached) " >&6
19646 else
19647   am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
19648 fi
19649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
19650 $as_echo "$am_cv_python_platform" >&6; }
19651   PYTHON_PLATFORM=$am_cv_python_platform
19652
19653
19654   # Just factor out some code duplication.
19655   am_python_setup_sysconfig="\
19656 import sys
19657 # Prefer sysconfig over distutils.sysconfig, for better compatibility
19658 # with python 3.x.  See automake bug#10227.
19659 try:
19660     import sysconfig
19661 except ImportError:
19662     can_use_sysconfig = 0
19663 else:
19664     can_use_sysconfig = 1
19665 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
19666 # <https://github.com/pypa/virtualenv/issues/118>
19667 try:
19668     from platform import python_implementation
19669     if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
19670         can_use_sysconfig = 0
19671 except ImportError:
19672     pass"
19673
19674
19675             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
19676 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
19677 if ${am_cv_python_pythondir+:} false; then :
19678   $as_echo_n "(cached) " >&6
19679 else
19680   if test "x$prefix" = xNONE
19681      then
19682        am_py_prefix=$ac_default_prefix
19683      else
19684        am_py_prefix=$prefix
19685      fi
19686      am_cv_python_pythondir=`$PYTHON -c "
19687 $am_python_setup_sysconfig
19688 if can_use_sysconfig:
19689     sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
19690 else:
19691     from distutils import sysconfig
19692     sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
19693 sys.stdout.write(sitedir)"`
19694      case $am_cv_python_pythondir in
19695      $am_py_prefix*)
19696        am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
19697        am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
19698        ;;
19699      *)
19700        case $am_py_prefix in
19701          /usr|/System*) ;;
19702          *)
19703           am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
19704           ;;
19705        esac
19706        ;;
19707      esac
19708
19709 fi
19710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
19711 $as_echo "$am_cv_python_pythondir" >&6; }
19712   pythondir=$am_cv_python_pythondir
19713
19714
19715
19716   pkgpythondir=\${pythondir}/$PACKAGE
19717
19718
19719         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
19720 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
19721 if ${am_cv_python_pyexecdir+:} false; then :
19722   $as_echo_n "(cached) " >&6
19723 else
19724   if test "x$exec_prefix" = xNONE
19725      then
19726        am_py_exec_prefix=$am_py_prefix
19727      else
19728        am_py_exec_prefix=$exec_prefix
19729      fi
19730      am_cv_python_pyexecdir=`$PYTHON -c "
19731 $am_python_setup_sysconfig
19732 if can_use_sysconfig:
19733     sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
19734 else:
19735     from distutils import sysconfig
19736     sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
19737 sys.stdout.write(sitedir)"`
19738      case $am_cv_python_pyexecdir in
19739      $am_py_exec_prefix*)
19740        am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
19741        am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
19742        ;;
19743      *)
19744        case $am_py_exec_prefix in
19745          /usr|/System*) ;;
19746          *)
19747            am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
19748            ;;
19749        esac
19750        ;;
19751      esac
19752
19753 fi
19754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
19755 $as_echo "$am_cv_python_pyexecdir" >&6; }
19756   pyexecdir=$am_cv_python_pyexecdir
19757
19758
19759
19760   pkgpyexecdir=\${pyexecdir}/$PACKAGE
19761
19762
19763
19764
19765         #
19766         # Allow the use of a (user set) custom python version
19767         #
19768
19769
19770         # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
19771 set dummy python$PYTHON_VERSION; ac_word=$2
19772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19773 $as_echo_n "checking for $ac_word... " >&6; }
19774 if ${ac_cv_path_PYTHON+:} false; then :
19775   $as_echo_n "(cached) " >&6
19776 else
19777   case $PYTHON in
19778   [\\/]* | ?:[\\/]*)
19779   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
19780   ;;
19781   *)
19782   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19783 for as_dir in $PATH
19784 do
19785   IFS=$as_save_IFS
19786   test -z "$as_dir" && as_dir=.
19787     for ac_exec_ext in '' $ac_executable_extensions; do
19788   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19789     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
19790     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19791     break 2
19792   fi
19793 done
19794   done
19795 IFS=$as_save_IFS
19796
19797   ;;
19798 esac
19799 fi
19800 PYTHON=$ac_cv_path_PYTHON
19801 if test -n "$PYTHON"; then
19802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
19803 $as_echo "$PYTHON" >&6; }
19804 else
19805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19806 $as_echo "no" >&6; }
19807 fi
19808
19809
19810         if test -z "$PYTHON"; then
19811            as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
19812            PYTHON_VERSION=""
19813         fi
19814
19815         #
19816         # Check for a version of Python >= 2.1.0
19817         #
19818         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
19819 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
19820         ac_supports_python_ver=`$PYTHON -c "import sys; \
19821                 ver = sys.version.split ()[0]; \
19822                 print (ver >= '2.1.0')"`
19823         if test "$ac_supports_python_ver" != "True"; then
19824                 if test -z "$PYTHON_NOVERSIONCHECK"; then
19825                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19826 $as_echo "no" >&6; }
19827                         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19828 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19829 as_fn_error $? "
19830 This version of the AC_PYTHON_DEVEL macro
19831 doesn't work properly with versions of Python before
19832 2.1.0. You may need to re-run configure, setting the
19833 variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
19834 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
19835 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
19836 to something else than an empty string.
19837
19838 See \`config.log' for more details" "$LINENO" 5; }
19839                 else
19840                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
19841 $as_echo "skip at user request" >&6; }
19842                 fi
19843         else
19844                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19845 $as_echo "yes" >&6; }
19846         fi
19847
19848         #
19849         # if the macro parameter ``version'' is set, honour it
19850         #
19851         if test -n ""; then
19852                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
19853 $as_echo_n "checking for a version of Python ... " >&6; }
19854                 ac_supports_python_ver=`$PYTHON -c "import sys; \
19855                         ver = sys.version.split ()[0]; \
19856                         print (ver )"`
19857                 if test "$ac_supports_python_ver" = "True"; then
19858                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19859 $as_echo "yes" >&6; }
19860                 else
19861                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19862 $as_echo "no" >&6; }
19863                         as_fn_error $? "this package requires Python .
19864 If you have it installed, but it isn't the default Python
19865 interpreter in your system path, please pass the PYTHON_VERSION
19866 variable to configure. See \`\`configure --help'' for reference.
19867 " "$LINENO" 5
19868                         PYTHON_VERSION=""
19869                 fi
19870         fi
19871
19872         #
19873         # Check if you have distutils, else fail
19874         #
19875         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
19876 $as_echo_n "checking for the distutils Python package... " >&6; }
19877         ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
19878         if test -z "$ac_distutils_result"; then
19879                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19880 $as_echo "yes" >&6; }
19881         else
19882                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19883 $as_echo "no" >&6; }
19884                 as_fn_error $? "cannot import Python module \"distutils\".
19885 Please check your Python installation. The error was:
19886 $ac_distutils_result" "$LINENO" 5
19887                 PYTHON_VERSION=""
19888         fi
19889
19890         #
19891         # Check for Python include path
19892         #
19893         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
19894 $as_echo_n "checking for Python include path... " >&6; }
19895         if test -z "$PYTHON_CPPFLAGS"; then
19896                 python_path=`$PYTHON -c "import distutils.sysconfig; \
19897                         print (distutils.sysconfig.get_python_inc ());"`
19898                 plat_python_path=`$PYTHON -c "import distutils.sysconfig; \
19899                         print (distutils.sysconfig.get_python_inc (plat_specific=1));"`
19900                 if test -n "${python_path}"; then
19901                         if test "${plat_python_path}" != "${python_path}"; then
19902                                 python_path="-I$python_path -I$plat_python_path"
19903                         else
19904                                 python_path="-I$python_path"
19905                         fi
19906                 fi
19907                 PYTHON_CPPFLAGS=$python_path
19908         fi
19909         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
19910 $as_echo "$PYTHON_CPPFLAGS" >&6; }
19911
19912
19913         #
19914         # Check for Python library path
19915         #
19916         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
19917 $as_echo_n "checking for Python library path... " >&6; }
19918         if test -z "$PYTHON_LDFLAGS"; then
19919                 # (makes two attempts to ensure we've got a version number
19920                 # from the interpreter)
19921                 ac_python_version=`cat<<EOD | $PYTHON -
19922
19923 # join all versioning strings, on some systems
19924 # major/minor numbers could be in different list elements
19925 from distutils.sysconfig import *
19926 e = get_config_var('VERSION')
19927 if e is not None:
19928         print(e)
19929 EOD`
19930
19931                 if test -z "$ac_python_version"; then
19932                         if test -n "$PYTHON_VERSION"; then
19933                                 ac_python_version=$PYTHON_VERSION
19934                         else
19935                                 ac_python_version=`$PYTHON -c "import sys; \
19936                                         print (sys.version[:3])"`
19937                         fi
19938                 fi
19939
19940                 # Make the versioning information available to the compiler
19941
19942                 # JW: We don't need it and it interferes with the hack
19943                 # to detect multiple Pyhton versions
19944                 #AC_DEFINE_UNQUOTED([HAVE_PYTHON], ["$ac_python_version"],
19945                 #                  [If available, contains the Python version number currently in use.])
19946
19947                 # First, the library directory:
19948                 ac_python_libdir=`cat<<EOD | $PYTHON -
19949
19950 # There should be only one
19951 import distutils.sysconfig
19952 e = distutils.sysconfig.get_config_var('LIBDIR')
19953 if e is not None:
19954         print (e)
19955 EOD`
19956
19957                 # Now, for the library:
19958                 ac_python_library=`cat<<EOD | $PYTHON -
19959
19960 import distutils.sysconfig
19961 c = distutils.sysconfig.get_config_vars()
19962 if 'LDVERSION' in c:
19963         print ('python'+c['LDVERSION'])
19964 else:
19965         print ('python'+c['VERSION'])
19966 EOD`
19967
19968                 # This small piece shamelessly adapted from PostgreSQL python macro;
19969                 # credits goes to momjian, I think. I'd like to put the right name
19970                 # in the credits, if someone can point me in the right direction... ?
19971                 #
19972                 if test -n "$ac_python_libdir" -a -n "$ac_python_library"
19973                 then
19974                         # use the official shared library
19975                         ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
19976                         PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library"
19977                 else
19978                         # old way: use libpython from python_configdir
19979                         ac_python_libdir=`$PYTHON -c \
19980                           "from distutils.sysconfig import get_python_lib as f; \
19981                           import os; \
19982                           print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
19983                         PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version"
19984                 fi
19985
19986                 if test -z "PYTHON_LDFLAGS"; then
19987                         as_fn_error $? "
19988   Cannot determine location of your Python DSO. Please check it was installed with
19989   dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
19990                         " "$LINENO" 5
19991                 fi
19992         fi
19993         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
19994 $as_echo "$PYTHON_LDFLAGS" >&6; }
19995
19996
19997         #
19998         # Check for site packages
19999         #
20000         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
20001 $as_echo_n "checking for Python site-packages path... " >&6; }
20002         if test -z "$PYTHON_SITE_PKG"; then
20003                 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
20004                         print (distutils.sysconfig.get_python_lib(0,0));"`
20005         fi
20006         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
20007 $as_echo "$PYTHON_SITE_PKG" >&6; }
20008
20009
20010         #
20011         # libraries which must be linked in when embedding
20012         #
20013         { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
20014 $as_echo_n "checking python extra libraries... " >&6; }
20015         if test -z "$PYTHON_EXTRA_LIBS"; then
20016            PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
20017                 conf = distutils.sysconfig.get_config_var; \
20018                 print (conf('LIBS') + ' ' + conf('SYSLIBS'))"`
20019         fi
20020         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
20021 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
20022
20023
20024         #
20025         # linking flags needed when embedding
20026         #
20027         { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
20028 $as_echo_n "checking python extra linking flags... " >&6; }
20029         if test -z "$PYTHON_EXTRA_LDFLAGS"; then
20030                 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
20031                         conf = distutils.sysconfig.get_config_var; \
20032                         print (conf('LINKFORSHARED'))"`
20033         fi
20034         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
20035 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
20036
20037
20038         #
20039         # final check to see if everything compiles alright
20040         #
20041         { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
20042 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
20043         # save current global flags
20044         ac_save_LIBS="$LIBS"
20045         ac_save_CPPFLAGS="$CPPFLAGS"
20046         LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
20047         CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
20048         ac_ext=c
20049 ac_cpp='$CPP $CPPFLAGS'
20050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20053
20054         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20055 /* end confdefs.h.  */
20056
20057                 #include <Python.h>
20058 int
20059 main ()
20060 {
20061 Py_Initialize();
20062   ;
20063   return 0;
20064 }
20065
20066 _ACEOF
20067 if ac_fn_c_try_link "$LINENO"; then :
20068   pythonexists=yes
20069 else
20070   pythonexists=no
20071 fi
20072 rm -f core conftest.err conftest.$ac_objext \
20073     conftest$ac_exeext conftest.$ac_ext
20074         ac_ext=c
20075 ac_cpp='$CPP $CPPFLAGS'
20076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20079
20080         # turn back to default flags
20081         CPPFLAGS="$ac_save_CPPFLAGS"
20082         LIBS="$ac_save_LIBS"
20083
20084         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
20085 $as_echo "$pythonexists" >&6; }
20086
20087         if test ! "x$pythonexists" = "xyes"; then
20088            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
20089   Could not link test program to Python. Maybe the main Python library has been
20090   installed in some non-standard library path. If so, pass it to configure,
20091   via the LDFLAGS environment variable.
20092   Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
20093   ============================================================================
20094    You probably have to install the development version of the Python package
20095    for your distribution.  The exact name of this package varies among them.
20096   ============================================================================
20097            " >&5
20098 $as_echo "$as_me: WARNING:
20099   Could not link test program to Python. Maybe the main Python library has been
20100   installed in some non-standard library path. If so, pass it to configure,
20101   via the LDFLAGS environment variable.
20102   Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
20103   ============================================================================
20104    You probably have to install the development version of the Python package
20105    for your distribution.  The exact name of this package varies among them.
20106   ============================================================================
20107            " >&2;}
20108           PYTHON_VERSION=""
20109         fi
20110
20111         #
20112         # all done!
20113         #
20114
20115                 if test "$PYTHON_VERSION"; then
20116                         PYTHONS="$(echo $PYTHONS $PYTHON)"
20117                         PYTHON_VERSIONS="$(echo $PYTHON_VERSIONS $PYTHON_VERSION)"
20118                 fi
20119
20120   fi
20121
20122
20123            unset PYTHON
20124             unset PYTHON_VERSION
20125             unset PYTHON_CPPFLAGS
20126             unset PYTHON_LDFLAGS
20127             unset PYTHON_SITE_PKG
20128             unset PYTHON_EXTRA_LIBS
20129             unset PYTHON_EXTRA_LDFLAGS
20130             unset ac_cv_path_PYTHON
20131             unset am_cv_pathless_PYTHON
20132             unset am_cv_python_version
20133             unset am_cv_python_platform
20134             unset am_cv_python_pythondir
20135             unset am_cv_python_pyexecdir
20136
20137
20138
20139
20140
20141
20142         if test -n "$PYTHON"; then
20143       # If the user set $PYTHON, use it and don't search something else.
20144       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.4" >&5
20145 $as_echo_n "checking whether $PYTHON version is >= 3.4... " >&6; }
20146       prog="import sys
20147 # split strings by '.' and convert to numeric.  Append some zeros
20148 # because we need at least 4 digits for the hex conversion.
20149 # map returns an iterator in Python 3.0 and a list in 2.x
20150 minver = list(map(int, '3.4'.split('.'))) + [0, 0, 0]
20151 minverhex = 0
20152 # xrange is not present in Python 3.0 and range returns an iterator
20153 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
20154 sys.exit(sys.hexversion < minverhex)"
20155   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
20156    ($PYTHON -c "$prog") >&5 2>&5
20157    ac_status=$?
20158    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20159    (exit $ac_status); }; then :
20160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20161 $as_echo "yes" >&6; }
20162 else
20163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20164 $as_echo "no" >&6; }
20165                                as_fn_error $? "Python interpreter is too old" "$LINENO" 5
20166 fi
20167       am_display_PYTHON=$PYTHON
20168     else
20169       # Otherwise, try each interpreter until we find one that satisfies
20170       # VERSION.
20171       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.4" >&5
20172 $as_echo_n "checking for a Python interpreter with version >= 3.4... " >&6; }
20173 if ${am_cv_pathless_PYTHON+:} false; then :
20174   $as_echo_n "(cached) " >&6
20175 else
20176
20177         for am_cv_pathless_PYTHON           in python3.4 none; do
20178           test "$am_cv_pathless_PYTHON" = none && break
20179           prog="import sys
20180 # split strings by '.' and convert to numeric.  Append some zeros
20181 # because we need at least 4 digits for the hex conversion.
20182 # map returns an iterator in Python 3.0 and a list in 2.x
20183 minver = list(map(int, '3.4'.split('.'))) + [0, 0, 0]
20184 minverhex = 0
20185 # xrange is not present in Python 3.0 and range returns an iterator
20186 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
20187 sys.exit(sys.hexversion < minverhex)"
20188   if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
20189    ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
20190    ac_status=$?
20191    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20192    (exit $ac_status); }; then :
20193   break
20194 fi
20195         done
20196 fi
20197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
20198 $as_echo "$am_cv_pathless_PYTHON" >&6; }
20199       # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
20200       if test "$am_cv_pathless_PYTHON" = none; then
20201         PYTHON=:
20202       else
20203         # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
20204 set dummy $am_cv_pathless_PYTHON; ac_word=$2
20205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20206 $as_echo_n "checking for $ac_word... " >&6; }
20207 if ${ac_cv_path_PYTHON+:} false; then :
20208   $as_echo_n "(cached) " >&6
20209 else
20210   case $PYTHON in
20211   [\\/]* | ?:[\\/]*)
20212   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
20213   ;;
20214   *)
20215   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20216 for as_dir in $PATH
20217 do
20218   IFS=$as_save_IFS
20219   test -z "$as_dir" && as_dir=.
20220     for ac_exec_ext in '' $ac_executable_extensions; do
20221   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20222     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
20223     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20224     break 2
20225   fi
20226 done
20227   done
20228 IFS=$as_save_IFS
20229
20230   ;;
20231 esac
20232 fi
20233 PYTHON=$ac_cv_path_PYTHON
20234 if test -n "$PYTHON"; then
20235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
20236 $as_echo "$PYTHON" >&6; }
20237 else
20238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20239 $as_echo "no" >&6; }
20240 fi
20241
20242
20243       fi
20244       am_display_PYTHON=$am_cv_pathless_PYTHON
20245     fi
20246
20247
20248   if test "$PYTHON" = :; then
20249       :
20250   else
20251
20252
20253   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
20254 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
20255 if ${am_cv_python_version+:} false; then :
20256   $as_echo_n "(cached) " >&6
20257 else
20258   am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
20259 fi
20260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
20261 $as_echo "$am_cv_python_version" >&6; }
20262   PYTHON_VERSION=$am_cv_python_version
20263
20264
20265
20266   PYTHON_PREFIX='${prefix}'
20267
20268   PYTHON_EXEC_PREFIX='${exec_prefix}'
20269
20270
20271
20272   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
20273 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
20274 if ${am_cv_python_platform+:} false; then :
20275   $as_echo_n "(cached) " >&6
20276 else
20277   am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
20278 fi
20279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
20280 $as_echo "$am_cv_python_platform" >&6; }
20281   PYTHON_PLATFORM=$am_cv_python_platform
20282
20283
20284   # Just factor out some code duplication.
20285   am_python_setup_sysconfig="\
20286 import sys
20287 # Prefer sysconfig over distutils.sysconfig, for better compatibility
20288 # with python 3.x.  See automake bug#10227.
20289 try:
20290     import sysconfig
20291 except ImportError:
20292     can_use_sysconfig = 0
20293 else:
20294     can_use_sysconfig = 1
20295 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
20296 # <https://github.com/pypa/virtualenv/issues/118>
20297 try:
20298     from platform import python_implementation
20299     if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
20300         can_use_sysconfig = 0
20301 except ImportError:
20302     pass"
20303
20304
20305             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
20306 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
20307 if ${am_cv_python_pythondir+:} false; then :
20308   $as_echo_n "(cached) " >&6
20309 else
20310   if test "x$prefix" = xNONE
20311      then
20312        am_py_prefix=$ac_default_prefix
20313      else
20314        am_py_prefix=$prefix
20315      fi
20316      am_cv_python_pythondir=`$PYTHON -c "
20317 $am_python_setup_sysconfig
20318 if can_use_sysconfig:
20319     sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
20320 else:
20321     from distutils import sysconfig
20322     sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
20323 sys.stdout.write(sitedir)"`
20324      case $am_cv_python_pythondir in
20325      $am_py_prefix*)
20326        am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
20327        am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
20328        ;;
20329      *)
20330        case $am_py_prefix in
20331          /usr|/System*) ;;
20332          *)
20333           am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
20334           ;;
20335        esac
20336        ;;
20337      esac
20338
20339 fi
20340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
20341 $as_echo "$am_cv_python_pythondir" >&6; }
20342   pythondir=$am_cv_python_pythondir
20343
20344
20345
20346   pkgpythondir=\${pythondir}/$PACKAGE
20347
20348
20349         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
20350 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
20351 if ${am_cv_python_pyexecdir+:} false; then :
20352   $as_echo_n "(cached) " >&6
20353 else
20354   if test "x$exec_prefix" = xNONE
20355      then
20356        am_py_exec_prefix=$am_py_prefix
20357      else
20358        am_py_exec_prefix=$exec_prefix
20359      fi
20360      am_cv_python_pyexecdir=`$PYTHON -c "
20361 $am_python_setup_sysconfig
20362 if can_use_sysconfig:
20363     sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
20364 else:
20365     from distutils import sysconfig
20366     sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
20367 sys.stdout.write(sitedir)"`
20368      case $am_cv_python_pyexecdir in
20369      $am_py_exec_prefix*)
20370        am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
20371        am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
20372        ;;
20373      *)
20374        case $am_py_exec_prefix in
20375          /usr|/System*) ;;
20376          *)
20377            am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
20378            ;;
20379        esac
20380        ;;
20381      esac
20382
20383 fi
20384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
20385 $as_echo "$am_cv_python_pyexecdir" >&6; }
20386   pyexecdir=$am_cv_python_pyexecdir
20387
20388
20389
20390   pkgpyexecdir=\${pyexecdir}/$PACKAGE
20391
20392
20393
20394
20395         #
20396         # Allow the use of a (user set) custom python version
20397         #
20398
20399
20400         # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
20401 set dummy python$PYTHON_VERSION; ac_word=$2
20402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20403 $as_echo_n "checking for $ac_word... " >&6; }
20404 if ${ac_cv_path_PYTHON+:} false; then :
20405   $as_echo_n "(cached) " >&6
20406 else
20407   case $PYTHON in
20408   [\\/]* | ?:[\\/]*)
20409   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
20410   ;;
20411   *)
20412   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20413 for as_dir in $PATH
20414 do
20415   IFS=$as_save_IFS
20416   test -z "$as_dir" && as_dir=.
20417     for ac_exec_ext in '' $ac_executable_extensions; do
20418   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20419     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
20420     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20421     break 2
20422   fi
20423 done
20424   done
20425 IFS=$as_save_IFS
20426
20427   ;;
20428 esac
20429 fi
20430 PYTHON=$ac_cv_path_PYTHON
20431 if test -n "$PYTHON"; then
20432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
20433 $as_echo "$PYTHON" >&6; }
20434 else
20435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20436 $as_echo "no" >&6; }
20437 fi
20438
20439
20440         if test -z "$PYTHON"; then
20441            as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
20442            PYTHON_VERSION=""
20443         fi
20444
20445         #
20446         # Check for a version of Python >= 2.1.0
20447         #
20448         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
20449 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
20450         ac_supports_python_ver=`$PYTHON -c "import sys; \
20451                 ver = sys.version.split ()[0]; \
20452                 print (ver >= '2.1.0')"`
20453         if test "$ac_supports_python_ver" != "True"; then
20454                 if test -z "$PYTHON_NOVERSIONCHECK"; then
20455                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20456 $as_echo "no" >&6; }
20457                         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20458 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20459 as_fn_error $? "
20460 This version of the AC_PYTHON_DEVEL macro
20461 doesn't work properly with versions of Python before
20462 2.1.0. You may need to re-run configure, setting the
20463 variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
20464 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
20465 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
20466 to something else than an empty string.
20467
20468 See \`config.log' for more details" "$LINENO" 5; }
20469                 else
20470                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
20471 $as_echo "skip at user request" >&6; }
20472                 fi
20473         else
20474                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20475 $as_echo "yes" >&6; }
20476         fi
20477
20478         #
20479         # if the macro parameter ``version'' is set, honour it
20480         #
20481         if test -n ""; then
20482                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
20483 $as_echo_n "checking for a version of Python ... " >&6; }
20484                 ac_supports_python_ver=`$PYTHON -c "import sys; \
20485                         ver = sys.version.split ()[0]; \
20486                         print (ver )"`
20487                 if test "$ac_supports_python_ver" = "True"; then
20488                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20489 $as_echo "yes" >&6; }
20490                 else
20491                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20492 $as_echo "no" >&6; }
20493                         as_fn_error $? "this package requires Python .
20494 If you have it installed, but it isn't the default Python
20495 interpreter in your system path, please pass the PYTHON_VERSION
20496 variable to configure. See \`\`configure --help'' for reference.
20497 " "$LINENO" 5
20498                         PYTHON_VERSION=""
20499                 fi
20500         fi
20501
20502         #
20503         # Check if you have distutils, else fail
20504         #
20505         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
20506 $as_echo_n "checking for the distutils Python package... " >&6; }
20507         ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
20508         if test -z "$ac_distutils_result"; then
20509                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20510 $as_echo "yes" >&6; }
20511         else
20512                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20513 $as_echo "no" >&6; }
20514                 as_fn_error $? "cannot import Python module \"distutils\".
20515 Please check your Python installation. The error was:
20516 $ac_distutils_result" "$LINENO" 5
20517                 PYTHON_VERSION=""
20518         fi
20519
20520         #
20521         # Check for Python include path
20522         #
20523         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
20524 $as_echo_n "checking for Python include path... " >&6; }
20525         if test -z "$PYTHON_CPPFLAGS"; then
20526                 python_path=`$PYTHON -c "import distutils.sysconfig; \
20527                         print (distutils.sysconfig.get_python_inc ());"`
20528                 plat_python_path=`$PYTHON -c "import distutils.sysconfig; \
20529                         print (distutils.sysconfig.get_python_inc (plat_specific=1));"`
20530                 if test -n "${python_path}"; then
20531                         if test "${plat_python_path}" != "${python_path}"; then
20532                                 python_path="-I$python_path -I$plat_python_path"
20533                         else
20534                                 python_path="-I$python_path"
20535                         fi
20536                 fi
20537                 PYTHON_CPPFLAGS=$python_path
20538         fi
20539         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
20540 $as_echo "$PYTHON_CPPFLAGS" >&6; }
20541
20542
20543         #
20544         # Check for Python library path
20545         #
20546         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
20547 $as_echo_n "checking for Python library path... " >&6; }
20548         if test -z "$PYTHON_LDFLAGS"; then
20549                 # (makes two attempts to ensure we've got a version number
20550                 # from the interpreter)
20551                 ac_python_version=`cat<<EOD | $PYTHON -
20552
20553 # join all versioning strings, on some systems
20554 # major/minor numbers could be in different list elements
20555 from distutils.sysconfig import *
20556 e = get_config_var('VERSION')
20557 if e is not None:
20558         print(e)
20559 EOD`
20560
20561                 if test -z "$ac_python_version"; then
20562                         if test -n "$PYTHON_VERSION"; then
20563                                 ac_python_version=$PYTHON_VERSION
20564                         else
20565                                 ac_python_version=`$PYTHON -c "import sys; \
20566                                         print (sys.version[:3])"`
20567                         fi
20568                 fi
20569
20570                 # Make the versioning information available to the compiler
20571
20572                 # JW: We don't need it and it interferes with the hack
20573                 # to detect multiple Pyhton versions
20574                 #AC_DEFINE_UNQUOTED([HAVE_PYTHON], ["$ac_python_version"],
20575                 #                  [If available, contains the Python version number currently in use.])
20576
20577                 # First, the library directory:
20578                 ac_python_libdir=`cat<<EOD | $PYTHON -
20579
20580 # There should be only one
20581 import distutils.sysconfig
20582 e = distutils.sysconfig.get_config_var('LIBDIR')
20583 if e is not None:
20584         print (e)
20585 EOD`
20586
20587                 # Now, for the library:
20588                 ac_python_library=`cat<<EOD | $PYTHON -
20589
20590 import distutils.sysconfig
20591 c = distutils.sysconfig.get_config_vars()
20592 if 'LDVERSION' in c:
20593         print ('python'+c['LDVERSION'])
20594 else:
20595         print ('python'+c['VERSION'])
20596 EOD`
20597
20598                 # This small piece shamelessly adapted from PostgreSQL python macro;
20599                 # credits goes to momjian, I think. I'd like to put the right name
20600                 # in the credits, if someone can point me in the right direction... ?
20601                 #
20602                 if test -n "$ac_python_libdir" -a -n "$ac_python_library"
20603                 then
20604                         # use the official shared library
20605                         ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
20606                         PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library"
20607                 else
20608                         # old way: use libpython from python_configdir
20609                         ac_python_libdir=`$PYTHON -c \
20610                           "from distutils.sysconfig import get_python_lib as f; \
20611                           import os; \
20612                           print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
20613                         PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version"
20614                 fi
20615
20616                 if test -z "PYTHON_LDFLAGS"; then
20617                         as_fn_error $? "
20618   Cannot determine location of your Python DSO. Please check it was installed with
20619   dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
20620                         " "$LINENO" 5
20621                 fi
20622         fi
20623         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
20624 $as_echo "$PYTHON_LDFLAGS" >&6; }
20625
20626
20627         #
20628         # Check for site packages
20629         #
20630         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
20631 $as_echo_n "checking for Python site-packages path... " >&6; }
20632         if test -z "$PYTHON_SITE_PKG"; then
20633                 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
20634                         print (distutils.sysconfig.get_python_lib(0,0));"`
20635         fi
20636         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
20637 $as_echo "$PYTHON_SITE_PKG" >&6; }
20638
20639
20640         #
20641         # libraries which must be linked in when embedding
20642         #
20643         { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
20644 $as_echo_n "checking python extra libraries... " >&6; }
20645         if test -z "$PYTHON_EXTRA_LIBS"; then
20646            PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
20647                 conf = distutils.sysconfig.get_config_var; \
20648                 print (conf('LIBS') + ' ' + conf('SYSLIBS'))"`
20649         fi
20650         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
20651 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
20652
20653
20654         #
20655         # linking flags needed when embedding
20656         #
20657         { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
20658 $as_echo_n "checking python extra linking flags... " >&6; }
20659         if test -z "$PYTHON_EXTRA_LDFLAGS"; then
20660                 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
20661                         conf = distutils.sysconfig.get_config_var; \
20662                         print (conf('LINKFORSHARED'))"`
20663         fi
20664         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
20665 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
20666
20667
20668         #
20669         # final check to see if everything compiles alright
20670         #
20671         { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
20672 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
20673         # save current global flags
20674         ac_save_LIBS="$LIBS"
20675         ac_save_CPPFLAGS="$CPPFLAGS"
20676         LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
20677         CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
20678         ac_ext=c
20679 ac_cpp='$CPP $CPPFLAGS'
20680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20683
20684         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20685 /* end confdefs.h.  */
20686
20687                 #include <Python.h>
20688 int
20689 main ()
20690 {
20691 Py_Initialize();
20692   ;
20693   return 0;
20694 }
20695
20696 _ACEOF
20697 if ac_fn_c_try_link "$LINENO"; then :
20698   pythonexists=yes
20699 else
20700   pythonexists=no
20701 fi
20702 rm -f core conftest.err conftest.$ac_objext \
20703     conftest$ac_exeext conftest.$ac_ext
20704         ac_ext=c
20705 ac_cpp='$CPP $CPPFLAGS'
20706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20709
20710         # turn back to default flags
20711         CPPFLAGS="$ac_save_CPPFLAGS"
20712         LIBS="$ac_save_LIBS"
20713
20714         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
20715 $as_echo "$pythonexists" >&6; }
20716
20717         if test ! "x$pythonexists" = "xyes"; then
20718            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
20719   Could not link test program to Python. Maybe the main Python library has been
20720   installed in some non-standard library path. If so, pass it to configure,
20721   via the LDFLAGS environment variable.
20722   Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
20723   ============================================================================
20724    You probably have to install the development version of the Python package
20725    for your distribution.  The exact name of this package varies among them.
20726   ============================================================================
20727            " >&5
20728 $as_echo "$as_me: WARNING:
20729   Could not link test program to Python. Maybe the main Python library has been
20730   installed in some non-standard library path. If so, pass it to configure,
20731   via the LDFLAGS environment variable.
20732   Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
20733   ============================================================================
20734    You probably have to install the development version of the Python package
20735    for your distribution.  The exact name of this package varies among them.
20736   ============================================================================
20737            " >&2;}
20738           PYTHON_VERSION=""
20739         fi
20740
20741         #
20742         # all done!
20743         #
20744
20745                 if test "$PYTHON_VERSION"; then
20746                         PYTHONS="$(echo $PYTHONS $PYTHON)"
20747                         PYTHON_VERSIONS="$(echo $PYTHON_VERSIONS $PYTHON_VERSION)"
20748                 fi
20749
20750   fi
20751
20752
20753            unset PYTHON
20754             unset PYTHON_VERSION
20755             unset PYTHON_CPPFLAGS
20756             unset PYTHON_LDFLAGS
20757             unset PYTHON_SITE_PKG
20758             unset PYTHON_EXTRA_LIBS
20759             unset PYTHON_EXTRA_LDFLAGS
20760             unset ac_cv_path_PYTHON
20761             unset am_cv_pathless_PYTHON
20762             unset am_cv_python_version
20763             unset am_cv_python_platform
20764             unset am_cv_python_pythondir
20765             unset am_cv_python_pyexecdir
20766
20767
20768
20769
20770
20771
20772         if test -n "$PYTHON"; then
20773       # If the user set $PYTHON, use it and don't search something else.
20774       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.5" >&5
20775 $as_echo_n "checking whether $PYTHON version is >= 3.5... " >&6; }
20776       prog="import sys
20777 # split strings by '.' and convert to numeric.  Append some zeros
20778 # because we need at least 4 digits for the hex conversion.
20779 # map returns an iterator in Python 3.0 and a list in 2.x
20780 minver = list(map(int, '3.5'.split('.'))) + [0, 0, 0]
20781 minverhex = 0
20782 # xrange is not present in Python 3.0 and range returns an iterator
20783 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
20784 sys.exit(sys.hexversion < minverhex)"
20785   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
20786    ($PYTHON -c "$prog") >&5 2>&5
20787    ac_status=$?
20788    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20789    (exit $ac_status); }; then :
20790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20791 $as_echo "yes" >&6; }
20792 else
20793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20794 $as_echo "no" >&6; }
20795                                as_fn_error $? "Python interpreter is too old" "$LINENO" 5
20796 fi
20797       am_display_PYTHON=$PYTHON
20798     else
20799       # Otherwise, try each interpreter until we find one that satisfies
20800       # VERSION.
20801       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.5" >&5
20802 $as_echo_n "checking for a Python interpreter with version >= 3.5... " >&6; }
20803 if ${am_cv_pathless_PYTHON+:} false; then :
20804   $as_echo_n "(cached) " >&6
20805 else
20806
20807         for am_cv_pathless_PYTHON           in python3.5 none; do
20808           test "$am_cv_pathless_PYTHON" = none && break
20809           prog="import sys
20810 # split strings by '.' and convert to numeric.  Append some zeros
20811 # because we need at least 4 digits for the hex conversion.
20812 # map returns an iterator in Python 3.0 and a list in 2.x
20813 minver = list(map(int, '3.5'.split('.'))) + [0, 0, 0]
20814 minverhex = 0
20815 # xrange is not present in Python 3.0 and range returns an iterator
20816 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
20817 sys.exit(sys.hexversion < minverhex)"
20818   if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
20819    ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
20820    ac_status=$?
20821    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20822    (exit $ac_status); }; then :
20823   break
20824 fi
20825         done
20826 fi
20827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
20828 $as_echo "$am_cv_pathless_PYTHON" >&6; }
20829       # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
20830       if test "$am_cv_pathless_PYTHON" = none; then
20831         PYTHON=:
20832       else
20833         # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
20834 set dummy $am_cv_pathless_PYTHON; ac_word=$2
20835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20836 $as_echo_n "checking for $ac_word... " >&6; }
20837 if ${ac_cv_path_PYTHON+:} false; then :
20838   $as_echo_n "(cached) " >&6
20839 else
20840   case $PYTHON in
20841   [\\/]* | ?:[\\/]*)
20842   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
20843   ;;
20844   *)
20845   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20846 for as_dir in $PATH
20847 do
20848   IFS=$as_save_IFS
20849   test -z "$as_dir" && as_dir=.
20850     for ac_exec_ext in '' $ac_executable_extensions; do
20851   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20852     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
20853     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20854     break 2
20855   fi
20856 done
20857   done
20858 IFS=$as_save_IFS
20859
20860   ;;
20861 esac
20862 fi
20863 PYTHON=$ac_cv_path_PYTHON
20864 if test -n "$PYTHON"; then
20865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
20866 $as_echo "$PYTHON" >&6; }
20867 else
20868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20869 $as_echo "no" >&6; }
20870 fi
20871
20872
20873       fi
20874       am_display_PYTHON=$am_cv_pathless_PYTHON
20875     fi
20876
20877
20878   if test "$PYTHON" = :; then
20879       :
20880   else
20881
20882
20883   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
20884 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
20885 if ${am_cv_python_version+:} false; then :
20886   $as_echo_n "(cached) " >&6
20887 else
20888   am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
20889 fi
20890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
20891 $as_echo "$am_cv_python_version" >&6; }
20892   PYTHON_VERSION=$am_cv_python_version
20893
20894
20895
20896   PYTHON_PREFIX='${prefix}'
20897
20898   PYTHON_EXEC_PREFIX='${exec_prefix}'
20899
20900
20901
20902   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
20903 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
20904 if ${am_cv_python_platform+:} false; then :
20905   $as_echo_n "(cached) " >&6
20906 else
20907   am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
20908 fi
20909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
20910 $as_echo "$am_cv_python_platform" >&6; }
20911   PYTHON_PLATFORM=$am_cv_python_platform
20912
20913
20914   # Just factor out some code duplication.
20915   am_python_setup_sysconfig="\
20916 import sys
20917 # Prefer sysconfig over distutils.sysconfig, for better compatibility
20918 # with python 3.x.  See automake bug#10227.
20919 try:
20920     import sysconfig
20921 except ImportError:
20922     can_use_sysconfig = 0
20923 else:
20924     can_use_sysconfig = 1
20925 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
20926 # <https://github.com/pypa/virtualenv/issues/118>
20927 try:
20928     from platform import python_implementation
20929     if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
20930         can_use_sysconfig = 0
20931 except ImportError:
20932     pass"
20933
20934
20935             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
20936 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
20937 if ${am_cv_python_pythondir+:} false; then :
20938   $as_echo_n "(cached) " >&6
20939 else
20940   if test "x$prefix" = xNONE
20941      then
20942        am_py_prefix=$ac_default_prefix
20943      else
20944        am_py_prefix=$prefix
20945      fi
20946      am_cv_python_pythondir=`$PYTHON -c "
20947 $am_python_setup_sysconfig
20948 if can_use_sysconfig:
20949     sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
20950 else:
20951     from distutils import sysconfig
20952     sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
20953 sys.stdout.write(sitedir)"`
20954      case $am_cv_python_pythondir in
20955      $am_py_prefix*)
20956        am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
20957        am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
20958        ;;
20959      *)
20960        case $am_py_prefix in
20961          /usr|/System*) ;;
20962          *)
20963           am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
20964           ;;
20965        esac
20966        ;;
20967      esac
20968
20969 fi
20970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
20971 $as_echo "$am_cv_python_pythondir" >&6; }
20972   pythondir=$am_cv_python_pythondir
20973
20974
20975
20976   pkgpythondir=\${pythondir}/$PACKAGE
20977
20978
20979         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
20980 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
20981 if ${am_cv_python_pyexecdir+:} false; then :
20982   $as_echo_n "(cached) " >&6
20983 else
20984   if test "x$exec_prefix" = xNONE
20985      then
20986        am_py_exec_prefix=$am_py_prefix
20987      else
20988        am_py_exec_prefix=$exec_prefix
20989      fi
20990      am_cv_python_pyexecdir=`$PYTHON -c "
20991 $am_python_setup_sysconfig
20992 if can_use_sysconfig:
20993     sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
20994 else:
20995     from distutils import sysconfig
20996     sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
20997 sys.stdout.write(sitedir)"`
20998      case $am_cv_python_pyexecdir in
20999      $am_py_exec_prefix*)
21000        am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
21001        am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
21002        ;;
21003      *)
21004        case $am_py_exec_prefix in
21005          /usr|/System*) ;;
21006          *)
21007            am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
21008            ;;
21009        esac
21010        ;;
21011      esac
21012
21013 fi
21014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
21015 $as_echo "$am_cv_python_pyexecdir" >&6; }
21016   pyexecdir=$am_cv_python_pyexecdir
21017
21018
21019
21020   pkgpyexecdir=\${pyexecdir}/$PACKAGE
21021
21022
21023
21024
21025         #
21026         # Allow the use of a (user set) custom python version
21027         #
21028
21029
21030         # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
21031 set dummy python$PYTHON_VERSION; ac_word=$2
21032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21033 $as_echo_n "checking for $ac_word... " >&6; }
21034 if ${ac_cv_path_PYTHON+:} false; then :
21035   $as_echo_n "(cached) " >&6
21036 else
21037   case $PYTHON in
21038   [\\/]* | ?:[\\/]*)
21039   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
21040   ;;
21041   *)
21042   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21043 for as_dir in $PATH
21044 do
21045   IFS=$as_save_IFS
21046   test -z "$as_dir" && as_dir=.
21047     for ac_exec_ext in '' $ac_executable_extensions; do
21048   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21049     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
21050     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21051     break 2
21052   fi
21053 done
21054   done
21055 IFS=$as_save_IFS
21056
21057   ;;
21058 esac
21059 fi
21060 PYTHON=$ac_cv_path_PYTHON
21061 if test -n "$PYTHON"; then
21062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
21063 $as_echo "$PYTHON" >&6; }
21064 else
21065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21066 $as_echo "no" >&6; }
21067 fi
21068
21069
21070         if test -z "$PYTHON"; then
21071            as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
21072            PYTHON_VERSION=""
21073         fi
21074
21075         #
21076         # Check for a version of Python >= 2.1.0
21077         #
21078         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
21079 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
21080         ac_supports_python_ver=`$PYTHON -c "import sys; \
21081                 ver = sys.version.split ()[0]; \
21082                 print (ver >= '2.1.0')"`
21083         if test "$ac_supports_python_ver" != "True"; then
21084                 if test -z "$PYTHON_NOVERSIONCHECK"; then
21085                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21086 $as_echo "no" >&6; }
21087                         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21088 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21089 as_fn_error $? "
21090 This version of the AC_PYTHON_DEVEL macro
21091 doesn't work properly with versions of Python before
21092 2.1.0. You may need to re-run configure, setting the
21093 variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
21094 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
21095 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
21096 to something else than an empty string.
21097
21098 See \`config.log' for more details" "$LINENO" 5; }
21099                 else
21100                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
21101 $as_echo "skip at user request" >&6; }
21102                 fi
21103         else
21104                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21105 $as_echo "yes" >&6; }
21106         fi
21107
21108         #
21109         # if the macro parameter ``version'' is set, honour it
21110         #
21111         if test -n ""; then
21112                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
21113 $as_echo_n "checking for a version of Python ... " >&6; }
21114                 ac_supports_python_ver=`$PYTHON -c "import sys; \
21115                         ver = sys.version.split ()[0]; \
21116                         print (ver )"`
21117                 if test "$ac_supports_python_ver" = "True"; then
21118                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21119 $as_echo "yes" >&6; }
21120                 else
21121                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21122 $as_echo "no" >&6; }
21123                         as_fn_error $? "this package requires Python .
21124 If you have it installed, but it isn't the default Python
21125 interpreter in your system path, please pass the PYTHON_VERSION
21126 variable to configure. See \`\`configure --help'' for reference.
21127 " "$LINENO" 5
21128                         PYTHON_VERSION=""
21129                 fi
21130         fi
21131
21132         #
21133         # Check if you have distutils, else fail
21134         #
21135         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
21136 $as_echo_n "checking for the distutils Python package... " >&6; }
21137         ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
21138         if test -z "$ac_distutils_result"; then
21139                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21140 $as_echo "yes" >&6; }
21141         else
21142                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21143 $as_echo "no" >&6; }
21144                 as_fn_error $? "cannot import Python module \"distutils\".
21145 Please check your Python installation. The error was:
21146 $ac_distutils_result" "$LINENO" 5
21147                 PYTHON_VERSION=""
21148         fi
21149
21150         #
21151         # Check for Python include path
21152         #
21153         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
21154 $as_echo_n "checking for Python include path... " >&6; }
21155         if test -z "$PYTHON_CPPFLAGS"; then
21156                 python_path=`$PYTHON -c "import distutils.sysconfig; \
21157                         print (distutils.sysconfig.get_python_inc ());"`
21158                 plat_python_path=`$PYTHON -c "import distutils.sysconfig; \
21159                         print (distutils.sysconfig.get_python_inc (plat_specific=1));"`
21160                 if test -n "${python_path}"; then
21161                         if test "${plat_python_path}" != "${python_path}"; then
21162                                 python_path="-I$python_path -I$plat_python_path"
21163                         else
21164                                 python_path="-I$python_path"
21165                         fi
21166                 fi
21167                 PYTHON_CPPFLAGS=$python_path
21168         fi
21169         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
21170 $as_echo "$PYTHON_CPPFLAGS" >&6; }
21171
21172
21173         #
21174         # Check for Python library path
21175         #
21176         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
21177 $as_echo_n "checking for Python library path... " >&6; }
21178         if test -z "$PYTHON_LDFLAGS"; then
21179                 # (makes two attempts to ensure we've got a version number
21180                 # from the interpreter)
21181                 ac_python_version=`cat<<EOD | $PYTHON -
21182
21183 # join all versioning strings, on some systems
21184 # major/minor numbers could be in different list elements
21185 from distutils.sysconfig import *
21186 e = get_config_var('VERSION')
21187 if e is not None:
21188         print(e)
21189 EOD`
21190
21191                 if test -z "$ac_python_version"; then
21192                         if test -n "$PYTHON_VERSION"; then
21193                                 ac_python_version=$PYTHON_VERSION
21194                         else
21195                                 ac_python_version=`$PYTHON -c "import sys; \
21196                                         print (sys.version[:3])"`
21197                         fi
21198                 fi
21199
21200                 # Make the versioning information available to the compiler
21201
21202                 # JW: We don't need it and it interferes with the hack
21203                 # to detect multiple Pyhton versions
21204                 #AC_DEFINE_UNQUOTED([HAVE_PYTHON], ["$ac_python_version"],
21205                 #                  [If available, contains the Python version number currently in use.])
21206
21207                 # First, the library directory:
21208                 ac_python_libdir=`cat<<EOD | $PYTHON -
21209
21210 # There should be only one
21211 import distutils.sysconfig
21212 e = distutils.sysconfig.get_config_var('LIBDIR')
21213 if e is not None:
21214         print (e)
21215 EOD`
21216
21217                 # Now, for the library:
21218                 ac_python_library=`cat<<EOD | $PYTHON -
21219
21220 import distutils.sysconfig
21221 c = distutils.sysconfig.get_config_vars()
21222 if 'LDVERSION' in c:
21223         print ('python'+c['LDVERSION'])
21224 else:
21225         print ('python'+c['VERSION'])
21226 EOD`
21227
21228                 # This small piece shamelessly adapted from PostgreSQL python macro;
21229                 # credits goes to momjian, I think. I'd like to put the right name
21230                 # in the credits, if someone can point me in the right direction... ?
21231                 #
21232                 if test -n "$ac_python_libdir" -a -n "$ac_python_library"
21233                 then
21234                         # use the official shared library
21235                         ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
21236                         PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library"
21237                 else
21238                         # old way: use libpython from python_configdir
21239                         ac_python_libdir=`$PYTHON -c \
21240                           "from distutils.sysconfig import get_python_lib as f; \
21241                           import os; \
21242                           print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
21243                         PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version"
21244                 fi
21245
21246                 if test -z "PYTHON_LDFLAGS"; then
21247                         as_fn_error $? "
21248   Cannot determine location of your Python DSO. Please check it was installed with
21249   dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
21250                         " "$LINENO" 5
21251                 fi
21252         fi
21253         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
21254 $as_echo "$PYTHON_LDFLAGS" >&6; }
21255
21256
21257         #
21258         # Check for site packages
21259         #
21260         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
21261 $as_echo_n "checking for Python site-packages path... " >&6; }
21262         if test -z "$PYTHON_SITE_PKG"; then
21263                 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
21264                         print (distutils.sysconfig.get_python_lib(0,0));"`
21265         fi
21266         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
21267 $as_echo "$PYTHON_SITE_PKG" >&6; }
21268
21269
21270         #
21271         # libraries which must be linked in when embedding
21272         #
21273         { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
21274 $as_echo_n "checking python extra libraries... " >&6; }
21275         if test -z "$PYTHON_EXTRA_LIBS"; then
21276            PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
21277                 conf = distutils.sysconfig.get_config_var; \
21278                 print (conf('LIBS') + ' ' + conf('SYSLIBS'))"`
21279         fi
21280         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
21281 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
21282
21283
21284         #
21285         # linking flags needed when embedding
21286         #
21287         { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
21288 $as_echo_n "checking python extra linking flags... " >&6; }
21289         if test -z "$PYTHON_EXTRA_LDFLAGS"; then
21290                 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
21291                         conf = distutils.sysconfig.get_config_var; \
21292                         print (conf('LINKFORSHARED'))"`
21293         fi
21294         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
21295 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
21296
21297
21298         #
21299         # final check to see if everything compiles alright
21300         #
21301         { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
21302 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
21303         # save current global flags
21304         ac_save_LIBS="$LIBS"
21305         ac_save_CPPFLAGS="$CPPFLAGS"
21306         LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
21307         CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
21308         ac_ext=c
21309 ac_cpp='$CPP $CPPFLAGS'
21310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21313
21314         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21315 /* end confdefs.h.  */
21316
21317                 #include <Python.h>
21318 int
21319 main ()
21320 {
21321 Py_Initialize();
21322   ;
21323   return 0;
21324 }
21325
21326 _ACEOF
21327 if ac_fn_c_try_link "$LINENO"; then :
21328   pythonexists=yes
21329 else
21330   pythonexists=no
21331 fi
21332 rm -f core conftest.err conftest.$ac_objext \
21333     conftest$ac_exeext conftest.$ac_ext
21334         ac_ext=c
21335 ac_cpp='$CPP $CPPFLAGS'
21336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21339
21340         # turn back to default flags
21341         CPPFLAGS="$ac_save_CPPFLAGS"
21342         LIBS="$ac_save_LIBS"
21343
21344         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
21345 $as_echo "$pythonexists" >&6; }
21346
21347         if test ! "x$pythonexists" = "xyes"; then
21348            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
21349   Could not link test program to Python. Maybe the main Python library has been
21350   installed in some non-standard library path. If so, pass it to configure,
21351   via the LDFLAGS environment variable.
21352   Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
21353   ============================================================================
21354    You probably have to install the development version of the Python package
21355    for your distribution.  The exact name of this package varies among them.
21356   ============================================================================
21357            " >&5
21358 $as_echo "$as_me: WARNING:
21359   Could not link test program to Python. Maybe the main Python library has been
21360   installed in some non-standard library path. If so, pass it to configure,
21361   via the LDFLAGS environment variable.
21362   Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
21363   ============================================================================
21364    You probably have to install the development version of the Python package
21365    for your distribution.  The exact name of this package varies among them.
21366   ============================================================================
21367            " >&2;}
21368           PYTHON_VERSION=""
21369         fi
21370
21371         #
21372         # all done!
21373         #
21374
21375                 if test "$PYTHON_VERSION"; then
21376                         PYTHONS="$(echo $PYTHONS $PYTHON)"
21377                         PYTHON_VERSIONS="$(echo $PYTHON_VERSIONS $PYTHON_VERSION)"
21378                 fi
21379
21380   fi
21381
21382
21383            unset PYTHON
21384             unset PYTHON_VERSION
21385             unset PYTHON_CPPFLAGS
21386             unset PYTHON_LDFLAGS
21387             unset PYTHON_SITE_PKG
21388             unset PYTHON_EXTRA_LIBS
21389             unset PYTHON_EXTRA_LDFLAGS
21390             unset ac_cv_path_PYTHON
21391             unset am_cv_pathless_PYTHON
21392             unset am_cv_python_version
21393             unset am_cv_python_platform
21394             unset am_cv_python_pythondir
21395             unset am_cv_python_pyexecdir
21396
21397
21398
21399
21400
21401
21402         if test -n "$PYTHON"; then
21403       # If the user set $PYTHON, use it and don't search something else.
21404       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.6" >&5
21405 $as_echo_n "checking whether $PYTHON version is >= 3.6... " >&6; }
21406       prog="import sys
21407 # split strings by '.' and convert to numeric.  Append some zeros
21408 # because we need at least 4 digits for the hex conversion.
21409 # map returns an iterator in Python 3.0 and a list in 2.x
21410 minver = list(map(int, '3.6'.split('.'))) + [0, 0, 0]
21411 minverhex = 0
21412 # xrange is not present in Python 3.0 and range returns an iterator
21413 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
21414 sys.exit(sys.hexversion < minverhex)"
21415   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
21416    ($PYTHON -c "$prog") >&5 2>&5
21417    ac_status=$?
21418    echo "$as_me:$LINENO: \$? = $ac_status" >&5
21419    (exit $ac_status); }; then :
21420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21421 $as_echo "yes" >&6; }
21422 else
21423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21424 $as_echo "no" >&6; }
21425                                as_fn_error $? "Python interpreter is too old" "$LINENO" 5
21426 fi
21427       am_display_PYTHON=$PYTHON
21428     else
21429       # Otherwise, try each interpreter until we find one that satisfies
21430       # VERSION.
21431       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.6" >&5
21432 $as_echo_n "checking for a Python interpreter with version >= 3.6... " >&6; }
21433 if ${am_cv_pathless_PYTHON+:} false; then :
21434   $as_echo_n "(cached) " >&6
21435 else
21436
21437         for am_cv_pathless_PYTHON           in python3.6 none; do
21438           test "$am_cv_pathless_PYTHON" = none && break
21439           prog="import sys
21440 # split strings by '.' and convert to numeric.  Append some zeros
21441 # because we need at least 4 digits for the hex conversion.
21442 # map returns an iterator in Python 3.0 and a list in 2.x
21443 minver = list(map(int, '3.6'.split('.'))) + [0, 0, 0]
21444 minverhex = 0
21445 # xrange is not present in Python 3.0 and range returns an iterator
21446 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
21447 sys.exit(sys.hexversion < minverhex)"
21448   if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
21449    ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
21450    ac_status=$?
21451    echo "$as_me:$LINENO: \$? = $ac_status" >&5
21452    (exit $ac_status); }; then :
21453   break
21454 fi
21455         done
21456 fi
21457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
21458 $as_echo "$am_cv_pathless_PYTHON" >&6; }
21459       # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
21460       if test "$am_cv_pathless_PYTHON" = none; then
21461         PYTHON=:
21462       else
21463         # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
21464 set dummy $am_cv_pathless_PYTHON; ac_word=$2
21465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21466 $as_echo_n "checking for $ac_word... " >&6; }
21467 if ${ac_cv_path_PYTHON+:} false; then :
21468   $as_echo_n "(cached) " >&6
21469 else
21470   case $PYTHON in
21471   [\\/]* | ?:[\\/]*)
21472   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
21473   ;;
21474   *)
21475   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21476 for as_dir in $PATH
21477 do
21478   IFS=$as_save_IFS
21479   test -z "$as_dir" && as_dir=.
21480     for ac_exec_ext in '' $ac_executable_extensions; do
21481   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21482     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
21483     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21484     break 2
21485   fi
21486 done
21487   done
21488 IFS=$as_save_IFS
21489
21490   ;;
21491 esac
21492 fi
21493 PYTHON=$ac_cv_path_PYTHON
21494 if test -n "$PYTHON"; then
21495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
21496 $as_echo "$PYTHON" >&6; }
21497 else
21498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21499 $as_echo "no" >&6; }
21500 fi
21501
21502
21503       fi
21504       am_display_PYTHON=$am_cv_pathless_PYTHON
21505     fi
21506
21507
21508   if test "$PYTHON" = :; then
21509       :
21510   else
21511
21512
21513   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
21514 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
21515 if ${am_cv_python_version+:} false; then :
21516   $as_echo_n "(cached) " >&6
21517 else
21518   am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
21519 fi
21520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
21521 $as_echo "$am_cv_python_version" >&6; }
21522   PYTHON_VERSION=$am_cv_python_version
21523
21524
21525
21526   PYTHON_PREFIX='${prefix}'
21527
21528   PYTHON_EXEC_PREFIX='${exec_prefix}'
21529
21530
21531
21532   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
21533 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
21534 if ${am_cv_python_platform+:} false; then :
21535   $as_echo_n "(cached) " >&6
21536 else
21537   am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
21538 fi
21539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
21540 $as_echo "$am_cv_python_platform" >&6; }
21541   PYTHON_PLATFORM=$am_cv_python_platform
21542
21543
21544   # Just factor out some code duplication.
21545   am_python_setup_sysconfig="\
21546 import sys
21547 # Prefer sysconfig over distutils.sysconfig, for better compatibility
21548 # with python 3.x.  See automake bug#10227.
21549 try:
21550     import sysconfig
21551 except ImportError:
21552     can_use_sysconfig = 0
21553 else:
21554     can_use_sysconfig = 1
21555 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
21556 # <https://github.com/pypa/virtualenv/issues/118>
21557 try:
21558     from platform import python_implementation
21559     if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
21560         can_use_sysconfig = 0
21561 except ImportError:
21562     pass"
21563
21564
21565             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
21566 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
21567 if ${am_cv_python_pythondir+:} false; then :
21568   $as_echo_n "(cached) " >&6
21569 else
21570   if test "x$prefix" = xNONE
21571      then
21572        am_py_prefix=$ac_default_prefix
21573      else
21574        am_py_prefix=$prefix
21575      fi
21576      am_cv_python_pythondir=`$PYTHON -c "
21577 $am_python_setup_sysconfig
21578 if can_use_sysconfig:
21579     sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
21580 else:
21581     from distutils import sysconfig
21582     sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
21583 sys.stdout.write(sitedir)"`
21584      case $am_cv_python_pythondir in
21585      $am_py_prefix*)
21586        am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
21587        am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
21588        ;;
21589      *)
21590        case $am_py_prefix in
21591          /usr|/System*) ;;
21592          *)
21593           am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
21594           ;;
21595        esac
21596        ;;
21597      esac
21598
21599 fi
21600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
21601 $as_echo "$am_cv_python_pythondir" >&6; }
21602   pythondir=$am_cv_python_pythondir
21603
21604
21605
21606   pkgpythondir=\${pythondir}/$PACKAGE
21607
21608
21609         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
21610 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
21611 if ${am_cv_python_pyexecdir+:} false; then :
21612   $as_echo_n "(cached) " >&6
21613 else
21614   if test "x$exec_prefix" = xNONE
21615      then
21616        am_py_exec_prefix=$am_py_prefix
21617      else
21618        am_py_exec_prefix=$exec_prefix
21619      fi
21620      am_cv_python_pyexecdir=`$PYTHON -c "
21621 $am_python_setup_sysconfig
21622 if can_use_sysconfig:
21623     sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
21624 else:
21625     from distutils import sysconfig
21626     sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
21627 sys.stdout.write(sitedir)"`
21628      case $am_cv_python_pyexecdir in
21629      $am_py_exec_prefix*)
21630        am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
21631        am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
21632        ;;
21633      *)
21634        case $am_py_exec_prefix in
21635          /usr|/System*) ;;
21636          *)
21637            am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
21638            ;;
21639        esac
21640        ;;
21641      esac
21642
21643 fi
21644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
21645 $as_echo "$am_cv_python_pyexecdir" >&6; }
21646   pyexecdir=$am_cv_python_pyexecdir
21647
21648
21649
21650   pkgpyexecdir=\${pyexecdir}/$PACKAGE
21651
21652
21653
21654
21655         #
21656         # Allow the use of a (user set) custom python version
21657         #
21658
21659
21660         # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
21661 set dummy python$PYTHON_VERSION; ac_word=$2
21662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21663 $as_echo_n "checking for $ac_word... " >&6; }
21664 if ${ac_cv_path_PYTHON+:} false; then :
21665   $as_echo_n "(cached) " >&6
21666 else
21667   case $PYTHON in
21668   [\\/]* | ?:[\\/]*)
21669   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
21670   ;;
21671   *)
21672   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21673 for as_dir in $PATH
21674 do
21675   IFS=$as_save_IFS
21676   test -z "$as_dir" && as_dir=.
21677     for ac_exec_ext in '' $ac_executable_extensions; do
21678   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21679     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
21680     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21681     break 2
21682   fi
21683 done
21684   done
21685 IFS=$as_save_IFS
21686
21687   ;;
21688 esac
21689 fi
21690 PYTHON=$ac_cv_path_PYTHON
21691 if test -n "$PYTHON"; then
21692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
21693 $as_echo "$PYTHON" >&6; }
21694 else
21695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21696 $as_echo "no" >&6; }
21697 fi
21698
21699
21700         if test -z "$PYTHON"; then
21701            as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
21702            PYTHON_VERSION=""
21703         fi
21704
21705         #
21706         # Check for a version of Python >= 2.1.0
21707         #
21708         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
21709 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
21710         ac_supports_python_ver=`$PYTHON -c "import sys; \
21711                 ver = sys.version.split ()[0]; \
21712                 print (ver >= '2.1.0')"`
21713         if test "$ac_supports_python_ver" != "True"; then
21714                 if test -z "$PYTHON_NOVERSIONCHECK"; then
21715                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21716 $as_echo "no" >&6; }
21717                         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21718 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21719 as_fn_error $? "
21720 This version of the AC_PYTHON_DEVEL macro
21721 doesn't work properly with versions of Python before
21722 2.1.0. You may need to re-run configure, setting the
21723 variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
21724 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
21725 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
21726 to something else than an empty string.
21727
21728 See \`config.log' for more details" "$LINENO" 5; }
21729                 else
21730                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
21731 $as_echo "skip at user request" >&6; }
21732                 fi
21733         else
21734                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21735 $as_echo "yes" >&6; }
21736         fi
21737
21738         #
21739         # if the macro parameter ``version'' is set, honour it
21740         #
21741         if test -n ""; then
21742                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
21743 $as_echo_n "checking for a version of Python ... " >&6; }
21744                 ac_supports_python_ver=`$PYTHON -c "import sys; \
21745                         ver = sys.version.split ()[0]; \
21746                         print (ver )"`
21747                 if test "$ac_supports_python_ver" = "True"; then
21748                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21749 $as_echo "yes" >&6; }
21750                 else
21751                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21752 $as_echo "no" >&6; }
21753                         as_fn_error $? "this package requires Python .
21754 If you have it installed, but it isn't the default Python
21755 interpreter in your system path, please pass the PYTHON_VERSION
21756 variable to configure. See \`\`configure --help'' for reference.
21757 " "$LINENO" 5
21758                         PYTHON_VERSION=""
21759                 fi
21760         fi
21761
21762         #
21763         # Check if you have distutils, else fail
21764         #
21765         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
21766 $as_echo_n "checking for the distutils Python package... " >&6; }
21767         ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
21768         if test -z "$ac_distutils_result"; then
21769                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21770 $as_echo "yes" >&6; }
21771         else
21772                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21773 $as_echo "no" >&6; }
21774                 as_fn_error $? "cannot import Python module \"distutils\".
21775 Please check your Python installation. The error was:
21776 $ac_distutils_result" "$LINENO" 5
21777                 PYTHON_VERSION=""
21778         fi
21779
21780         #
21781         # Check for Python include path
21782         #
21783         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
21784 $as_echo_n "checking for Python include path... " >&6; }
21785         if test -z "$PYTHON_CPPFLAGS"; then
21786                 python_path=`$PYTHON -c "import distutils.sysconfig; \
21787                         print (distutils.sysconfig.get_python_inc ());"`
21788                 plat_python_path=`$PYTHON -c "import distutils.sysconfig; \
21789                         print (distutils.sysconfig.get_python_inc (plat_specific=1));"`
21790                 if test -n "${python_path}"; then
21791                         if test "${plat_python_path}" != "${python_path}"; then
21792                                 python_path="-I$python_path -I$plat_python_path"
21793                         else
21794                                 python_path="-I$python_path"
21795                         fi
21796                 fi
21797                 PYTHON_CPPFLAGS=$python_path
21798         fi
21799         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
21800 $as_echo "$PYTHON_CPPFLAGS" >&6; }
21801
21802
21803         #
21804         # Check for Python library path
21805         #
21806         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
21807 $as_echo_n "checking for Python library path... " >&6; }
21808         if test -z "$PYTHON_LDFLAGS"; then
21809                 # (makes two attempts to ensure we've got a version number
21810                 # from the interpreter)
21811                 ac_python_version=`cat<<EOD | $PYTHON -
21812
21813 # join all versioning strings, on some systems
21814 # major/minor numbers could be in different list elements
21815 from distutils.sysconfig import *
21816 e = get_config_var('VERSION')
21817 if e is not None:
21818         print(e)
21819 EOD`
21820
21821                 if test -z "$ac_python_version"; then
21822                         if test -n "$PYTHON_VERSION"; then
21823                                 ac_python_version=$PYTHON_VERSION
21824                         else
21825                                 ac_python_version=`$PYTHON -c "import sys; \
21826                                         print (sys.version[:3])"`
21827                         fi
21828                 fi
21829
21830                 # Make the versioning information available to the compiler
21831
21832                 # JW: We don't need it and it interferes with the hack
21833                 # to detect multiple Pyhton versions
21834                 #AC_DEFINE_UNQUOTED([HAVE_PYTHON], ["$ac_python_version"],
21835                 #                  [If available, contains the Python version number currently in use.])
21836
21837                 # First, the library directory:
21838                 ac_python_libdir=`cat<<EOD | $PYTHON -
21839
21840 # There should be only one
21841 import distutils.sysconfig
21842 e = distutils.sysconfig.get_config_var('LIBDIR')
21843 if e is not None:
21844         print (e)
21845 EOD`
21846
21847                 # Now, for the library:
21848                 ac_python_library=`cat<<EOD | $PYTHON -
21849
21850 import distutils.sysconfig
21851 c = distutils.sysconfig.get_config_vars()
21852 if 'LDVERSION' in c:
21853         print ('python'+c['LDVERSION'])
21854 else:
21855         print ('python'+c['VERSION'])
21856 EOD`
21857
21858                 # This small piece shamelessly adapted from PostgreSQL python macro;
21859                 # credits goes to momjian, I think. I'd like to put the right name
21860                 # in the credits, if someone can point me in the right direction... ?
21861                 #
21862                 if test -n "$ac_python_libdir" -a -n "$ac_python_library"
21863                 then
21864                         # use the official shared library
21865                         ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
21866                         PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library"
21867                 else
21868                         # old way: use libpython from python_configdir
21869                         ac_python_libdir=`$PYTHON -c \
21870                           "from distutils.sysconfig import get_python_lib as f; \
21871                           import os; \
21872                           print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
21873                         PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version"
21874                 fi
21875
21876                 if test -z "PYTHON_LDFLAGS"; then
21877                         as_fn_error $? "
21878   Cannot determine location of your Python DSO. Please check it was installed with
21879   dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
21880                         " "$LINENO" 5
21881                 fi
21882         fi
21883         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
21884 $as_echo "$PYTHON_LDFLAGS" >&6; }
21885
21886
21887         #
21888         # Check for site packages
21889         #
21890         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
21891 $as_echo_n "checking for Python site-packages path... " >&6; }
21892         if test -z "$PYTHON_SITE_PKG"; then
21893                 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
21894                         print (distutils.sysconfig.get_python_lib(0,0));"`
21895         fi
21896         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
21897 $as_echo "$PYTHON_SITE_PKG" >&6; }
21898
21899
21900         #
21901         # libraries which must be linked in when embedding
21902         #
21903         { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
21904 $as_echo_n "checking python extra libraries... " >&6; }
21905         if test -z "$PYTHON_EXTRA_LIBS"; then
21906            PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
21907                 conf = distutils.sysconfig.get_config_var; \
21908                 print (conf('LIBS') + ' ' + conf('SYSLIBS'))"`
21909         fi
21910         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
21911 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
21912
21913
21914         #
21915         # linking flags needed when embedding
21916         #
21917         { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
21918 $as_echo_n "checking python extra linking flags... " >&6; }
21919         if test -z "$PYTHON_EXTRA_LDFLAGS"; then
21920                 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
21921                         conf = distutils.sysconfig.get_config_var; \
21922                         print (conf('LINKFORSHARED'))"`
21923         fi
21924         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
21925 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
21926
21927
21928         #
21929         # final check to see if everything compiles alright
21930         #
21931         { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
21932 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
21933         # save current global flags
21934         ac_save_LIBS="$LIBS"
21935         ac_save_CPPFLAGS="$CPPFLAGS"
21936         LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
21937         CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
21938         ac_ext=c
21939 ac_cpp='$CPP $CPPFLAGS'
21940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21943
21944         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21945 /* end confdefs.h.  */
21946
21947                 #include <Python.h>
21948 int
21949 main ()
21950 {
21951 Py_Initialize();
21952   ;
21953   return 0;
21954 }
21955
21956 _ACEOF
21957 if ac_fn_c_try_link "$LINENO"; then :
21958   pythonexists=yes
21959 else
21960   pythonexists=no
21961 fi
21962 rm -f core conftest.err conftest.$ac_objext \
21963     conftest$ac_exeext conftest.$ac_ext
21964         ac_ext=c
21965 ac_cpp='$CPP $CPPFLAGS'
21966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21969
21970         # turn back to default flags
21971         CPPFLAGS="$ac_save_CPPFLAGS"
21972         LIBS="$ac_save_LIBS"
21973
21974         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
21975 $as_echo "$pythonexists" >&6; }
21976
21977         if test ! "x$pythonexists" = "xyes"; then
21978            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
21979   Could not link test program to Python. Maybe the main Python library has been
21980   installed in some non-standard library path. If so, pass it to configure,
21981   via the LDFLAGS environment variable.
21982   Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
21983   ============================================================================
21984    You probably have to install the development version of the Python package
21985    for your distribution.  The exact name of this package varies among them.
21986   ============================================================================
21987            " >&5
21988 $as_echo "$as_me: WARNING:
21989   Could not link test program to Python. Maybe the main Python library has been
21990   installed in some non-standard library path. If so, pass it to configure,
21991   via the LDFLAGS environment variable.
21992   Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
21993   ============================================================================
21994    You probably have to install the development version of the Python package
21995    for your distribution.  The exact name of this package varies among them.
21996   ============================================================================
21997            " >&2;}
21998           PYTHON_VERSION=""
21999         fi
22000
22001         #
22002         # all done!
22003         #
22004
22005                 if test "$PYTHON_VERSION"; then
22006                         PYTHONS="$(echo $PYTHONS $PYTHON)"
22007                         PYTHON_VERSIONS="$(echo $PYTHON_VERSIONS $PYTHON_VERSION)"
22008                 fi
22009
22010   fi
22011
22012
22013            unset PYTHON
22014             unset PYTHON_VERSION
22015             unset PYTHON_CPPFLAGS
22016             unset PYTHON_LDFLAGS
22017             unset PYTHON_SITE_PKG
22018             unset PYTHON_EXTRA_LIBS
22019             unset PYTHON_EXTRA_LDFLAGS
22020             unset ac_cv_path_PYTHON
22021             unset am_cv_pathless_PYTHON
22022             unset am_cv_python_version
22023             unset am_cv_python_platform
22024             unset am_cv_python_pythondir
22025             unset am_cv_python_pyexecdir
22026
22027
22028
22029
22030
22031
22032         if test -n "$PYTHON"; then
22033       # If the user set $PYTHON, use it and don't search something else.
22034       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.7" >&5
22035 $as_echo_n "checking whether $PYTHON version is >= 3.7... " >&6; }
22036       prog="import sys
22037 # split strings by '.' and convert to numeric.  Append some zeros
22038 # because we need at least 4 digits for the hex conversion.
22039 # map returns an iterator in Python 3.0 and a list in 2.x
22040 minver = list(map(int, '3.7'.split('.'))) + [0, 0, 0]
22041 minverhex = 0
22042 # xrange is not present in Python 3.0 and range returns an iterator
22043 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
22044 sys.exit(sys.hexversion < minverhex)"
22045   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
22046    ($PYTHON -c "$prog") >&5 2>&5
22047    ac_status=$?
22048    echo "$as_me:$LINENO: \$? = $ac_status" >&5
22049    (exit $ac_status); }; then :
22050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22051 $as_echo "yes" >&6; }
22052 else
22053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22054 $as_echo "no" >&6; }
22055                                as_fn_error $? "Python interpreter is too old" "$LINENO" 5
22056 fi
22057       am_display_PYTHON=$PYTHON
22058     else
22059       # Otherwise, try each interpreter until we find one that satisfies
22060       # VERSION.
22061       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.7" >&5
22062 $as_echo_n "checking for a Python interpreter with version >= 3.7... " >&6; }
22063 if ${am_cv_pathless_PYTHON+:} false; then :
22064   $as_echo_n "(cached) " >&6
22065 else
22066
22067         for am_cv_pathless_PYTHON           in python3.7 none; do
22068           test "$am_cv_pathless_PYTHON" = none && break
22069           prog="import sys
22070 # split strings by '.' and convert to numeric.  Append some zeros
22071 # because we need at least 4 digits for the hex conversion.
22072 # map returns an iterator in Python 3.0 and a list in 2.x
22073 minver = list(map(int, '3.7'.split('.'))) + [0, 0, 0]
22074 minverhex = 0
22075 # xrange is not present in Python 3.0 and range returns an iterator
22076 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
22077 sys.exit(sys.hexversion < minverhex)"
22078   if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
22079    ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
22080    ac_status=$?
22081    echo "$as_me:$LINENO: \$? = $ac_status" >&5
22082    (exit $ac_status); }; then :
22083   break
22084 fi
22085         done
22086 fi
22087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
22088 $as_echo "$am_cv_pathless_PYTHON" >&6; }
22089       # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
22090       if test "$am_cv_pathless_PYTHON" = none; then
22091         PYTHON=:
22092       else
22093         # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
22094 set dummy $am_cv_pathless_PYTHON; ac_word=$2
22095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22096 $as_echo_n "checking for $ac_word... " >&6; }
22097 if ${ac_cv_path_PYTHON+:} false; then :
22098   $as_echo_n "(cached) " >&6
22099 else
22100   case $PYTHON in
22101   [\\/]* | ?:[\\/]*)
22102   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
22103   ;;
22104   *)
22105   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22106 for as_dir in $PATH
22107 do
22108   IFS=$as_save_IFS
22109   test -z "$as_dir" && as_dir=.
22110     for ac_exec_ext in '' $ac_executable_extensions; do
22111   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22112     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
22113     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22114     break 2
22115   fi
22116 done
22117   done
22118 IFS=$as_save_IFS
22119
22120   ;;
22121 esac
22122 fi
22123 PYTHON=$ac_cv_path_PYTHON
22124 if test -n "$PYTHON"; then
22125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
22126 $as_echo "$PYTHON" >&6; }
22127 else
22128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22129 $as_echo "no" >&6; }
22130 fi
22131
22132
22133       fi
22134       am_display_PYTHON=$am_cv_pathless_PYTHON
22135     fi
22136
22137
22138   if test "$PYTHON" = :; then
22139       :
22140   else
22141
22142
22143   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
22144 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
22145 if ${am_cv_python_version+:} false; then :
22146   $as_echo_n "(cached) " >&6
22147 else
22148   am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
22149 fi
22150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
22151 $as_echo "$am_cv_python_version" >&6; }
22152   PYTHON_VERSION=$am_cv_python_version
22153
22154
22155
22156   PYTHON_PREFIX='${prefix}'
22157
22158   PYTHON_EXEC_PREFIX='${exec_prefix}'
22159
22160
22161
22162   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
22163 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
22164 if ${am_cv_python_platform+:} false; then :
22165   $as_echo_n "(cached) " >&6
22166 else
22167   am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
22168 fi
22169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
22170 $as_echo "$am_cv_python_platform" >&6; }
22171   PYTHON_PLATFORM=$am_cv_python_platform
22172
22173
22174   # Just factor out some code duplication.
22175   am_python_setup_sysconfig="\
22176 import sys
22177 # Prefer sysconfig over distutils.sysconfig, for better compatibility
22178 # with python 3.x.  See automake bug#10227.
22179 try:
22180     import sysconfig
22181 except ImportError:
22182     can_use_sysconfig = 0
22183 else:
22184     can_use_sysconfig = 1
22185 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
22186 # <https://github.com/pypa/virtualenv/issues/118>
22187 try:
22188     from platform import python_implementation
22189     if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
22190         can_use_sysconfig = 0
22191 except ImportError:
22192     pass"
22193
22194
22195             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
22196 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
22197 if ${am_cv_python_pythondir+:} false; then :
22198   $as_echo_n "(cached) " >&6
22199 else
22200   if test "x$prefix" = xNONE
22201      then
22202        am_py_prefix=$ac_default_prefix
22203      else
22204        am_py_prefix=$prefix
22205      fi
22206      am_cv_python_pythondir=`$PYTHON -c "
22207 $am_python_setup_sysconfig
22208 if can_use_sysconfig:
22209     sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
22210 else:
22211     from distutils import sysconfig
22212     sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
22213 sys.stdout.write(sitedir)"`
22214      case $am_cv_python_pythondir in
22215      $am_py_prefix*)
22216        am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
22217        am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
22218        ;;
22219      *)
22220        case $am_py_prefix in
22221          /usr|/System*) ;;
22222          *)
22223           am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
22224           ;;
22225        esac
22226        ;;
22227      esac
22228
22229 fi
22230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
22231 $as_echo "$am_cv_python_pythondir" >&6; }
22232   pythondir=$am_cv_python_pythondir
22233
22234
22235
22236   pkgpythondir=\${pythondir}/$PACKAGE
22237
22238
22239         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
22240 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
22241 if ${am_cv_python_pyexecdir+:} false; then :
22242   $as_echo_n "(cached) " >&6
22243 else
22244   if test "x$exec_prefix" = xNONE
22245      then
22246        am_py_exec_prefix=$am_py_prefix
22247      else
22248        am_py_exec_prefix=$exec_prefix
22249      fi
22250      am_cv_python_pyexecdir=`$PYTHON -c "
22251 $am_python_setup_sysconfig
22252 if can_use_sysconfig:
22253     sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
22254 else:
22255     from distutils import sysconfig
22256     sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
22257 sys.stdout.write(sitedir)"`
22258      case $am_cv_python_pyexecdir in
22259      $am_py_exec_prefix*)
22260        am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
22261        am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
22262        ;;
22263      *)
22264        case $am_py_exec_prefix in
22265          /usr|/System*) ;;
22266          *)
22267            am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
22268            ;;
22269        esac
22270        ;;
22271      esac
22272
22273 fi
22274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
22275 $as_echo "$am_cv_python_pyexecdir" >&6; }
22276   pyexecdir=$am_cv_python_pyexecdir
22277
22278
22279
22280   pkgpyexecdir=\${pyexecdir}/$PACKAGE
22281
22282
22283
22284
22285         #
22286         # Allow the use of a (user set) custom python version
22287         #
22288
22289
22290         # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
22291 set dummy python$PYTHON_VERSION; ac_word=$2
22292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22293 $as_echo_n "checking for $ac_word... " >&6; }
22294 if ${ac_cv_path_PYTHON+:} false; then :
22295   $as_echo_n "(cached) " >&6
22296 else
22297   case $PYTHON in
22298   [\\/]* | ?:[\\/]*)
22299   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
22300   ;;
22301   *)
22302   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22303 for as_dir in $PATH
22304 do
22305   IFS=$as_save_IFS
22306   test -z "$as_dir" && as_dir=.
22307     for ac_exec_ext in '' $ac_executable_extensions; do
22308   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22309     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
22310     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22311     break 2
22312   fi
22313 done
22314   done
22315 IFS=$as_save_IFS
22316
22317   ;;
22318 esac
22319 fi
22320 PYTHON=$ac_cv_path_PYTHON
22321 if test -n "$PYTHON"; then
22322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
22323 $as_echo "$PYTHON" >&6; }
22324 else
22325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22326 $as_echo "no" >&6; }
22327 fi
22328
22329
22330         if test -z "$PYTHON"; then
22331            as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
22332            PYTHON_VERSION=""
22333         fi
22334
22335         #
22336         # Check for a version of Python >= 2.1.0
22337         #
22338         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
22339 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
22340         ac_supports_python_ver=`$PYTHON -c "import sys; \
22341                 ver = sys.version.split ()[0]; \
22342                 print (ver >= '2.1.0')"`
22343         if test "$ac_supports_python_ver" != "True"; then
22344                 if test -z "$PYTHON_NOVERSIONCHECK"; then
22345                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22346 $as_echo "no" >&6; }
22347                         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22348 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22349 as_fn_error $? "
22350 This version of the AC_PYTHON_DEVEL macro
22351 doesn't work properly with versions of Python before
22352 2.1.0. You may need to re-run configure, setting the
22353 variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
22354 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
22355 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
22356 to something else than an empty string.
22357
22358 See \`config.log' for more details" "$LINENO" 5; }
22359                 else
22360                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
22361 $as_echo "skip at user request" >&6; }
22362                 fi
22363         else
22364                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22365 $as_echo "yes" >&6; }
22366         fi
22367
22368         #
22369         # if the macro parameter ``version'' is set, honour it
22370         #
22371         if test -n ""; then
22372                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
22373 $as_echo_n "checking for a version of Python ... " >&6; }
22374                 ac_supports_python_ver=`$PYTHON -c "import sys; \
22375                         ver = sys.version.split ()[0]; \
22376                         print (ver )"`
22377                 if test "$ac_supports_python_ver" = "True"; then
22378                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22379 $as_echo "yes" >&6; }
22380                 else
22381                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22382 $as_echo "no" >&6; }
22383                         as_fn_error $? "this package requires Python .
22384 If you have it installed, but it isn't the default Python
22385 interpreter in your system path, please pass the PYTHON_VERSION
22386 variable to configure. See \`\`configure --help'' for reference.
22387 " "$LINENO" 5
22388                         PYTHON_VERSION=""
22389                 fi
22390         fi
22391
22392         #
22393         # Check if you have distutils, else fail
22394         #
22395         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
22396 $as_echo_n "checking for the distutils Python package... " >&6; }
22397         ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
22398         if test -z "$ac_distutils_result"; then
22399                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22400 $as_echo "yes" >&6; }
22401         else
22402                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22403 $as_echo "no" >&6; }
22404                 as_fn_error $? "cannot import Python module \"distutils\".
22405 Please check your Python installation. The error was:
22406 $ac_distutils_result" "$LINENO" 5
22407                 PYTHON_VERSION=""
22408         fi
22409
22410         #
22411         # Check for Python include path
22412         #
22413         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
22414 $as_echo_n "checking for Python include path... " >&6; }
22415         if test -z "$PYTHON_CPPFLAGS"; then
22416                 python_path=`$PYTHON -c "import distutils.sysconfig; \
22417                         print (distutils.sysconfig.get_python_inc ());"`
22418                 plat_python_path=`$PYTHON -c "import distutils.sysconfig; \
22419                         print (distutils.sysconfig.get_python_inc (plat_specific=1));"`
22420                 if test -n "${python_path}"; then
22421                         if test "${plat_python_path}" != "${python_path}"; then
22422                                 python_path="-I$python_path -I$plat_python_path"
22423                         else
22424                                 python_path="-I$python_path"
22425                         fi
22426                 fi
22427                 PYTHON_CPPFLAGS=$python_path
22428         fi
22429         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
22430 $as_echo "$PYTHON_CPPFLAGS" >&6; }
22431
22432
22433         #
22434         # Check for Python library path
22435         #
22436         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
22437 $as_echo_n "checking for Python library path... " >&6; }
22438         if test -z "$PYTHON_LDFLAGS"; then
22439                 # (makes two attempts to ensure we've got a version number
22440                 # from the interpreter)
22441                 ac_python_version=`cat<<EOD | $PYTHON -
22442
22443 # join all versioning strings, on some systems
22444 # major/minor numbers could be in different list elements
22445 from distutils.sysconfig import *
22446 e = get_config_var('VERSION')
22447 if e is not None:
22448         print(e)
22449 EOD`
22450
22451                 if test -z "$ac_python_version"; then
22452                         if test -n "$PYTHON_VERSION"; then
22453                                 ac_python_version=$PYTHON_VERSION
22454                         else
22455                                 ac_python_version=`$PYTHON -c "import sys; \
22456                                         print (sys.version[:3])"`
22457                         fi
22458                 fi
22459
22460                 # Make the versioning information available to the compiler
22461
22462                 # JW: We don't need it and it interferes with the hack
22463                 # to detect multiple Pyhton versions
22464                 #AC_DEFINE_UNQUOTED([HAVE_PYTHON], ["$ac_python_version"],
22465                 #                  [If available, contains the Python version number currently in use.])
22466
22467                 # First, the library directory:
22468                 ac_python_libdir=`cat<<EOD | $PYTHON -
22469
22470 # There should be only one
22471 import distutils.sysconfig
22472 e = distutils.sysconfig.get_config_var('LIBDIR')
22473 if e is not None:
22474         print (e)
22475 EOD`
22476
22477                 # Now, for the library:
22478                 ac_python_library=`cat<<EOD | $PYTHON -
22479
22480 import distutils.sysconfig
22481 c = distutils.sysconfig.get_config_vars()
22482 if 'LDVERSION' in c:
22483         print ('python'+c['LDVERSION'])
22484 else:
22485         print ('python'+c['VERSION'])
22486 EOD`
22487
22488                 # This small piece shamelessly adapted from PostgreSQL python macro;
22489                 # credits goes to momjian, I think. I'd like to put the right name
22490                 # in the credits, if someone can point me in the right direction... ?
22491                 #
22492                 if test -n "$ac_python_libdir" -a -n "$ac_python_library"
22493                 then
22494                         # use the official shared library
22495                         ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
22496                         PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library"
22497                 else
22498                         # old way: use libpython from python_configdir
22499                         ac_python_libdir=`$PYTHON -c \
22500                           "from distutils.sysconfig import get_python_lib as f; \
22501                           import os; \
22502                           print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
22503                         PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version"
22504                 fi
22505
22506                 if test -z "PYTHON_LDFLAGS"; then
22507                         as_fn_error $? "
22508   Cannot determine location of your Python DSO. Please check it was installed with
22509   dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
22510                         " "$LINENO" 5
22511                 fi
22512         fi
22513         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
22514 $as_echo "$PYTHON_LDFLAGS" >&6; }
22515
22516
22517         #
22518         # Check for site packages
22519         #
22520         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
22521 $as_echo_n "checking for Python site-packages path... " >&6; }
22522         if test -z "$PYTHON_SITE_PKG"; then
22523                 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
22524                         print (distutils.sysconfig.get_python_lib(0,0));"`
22525         fi
22526         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
22527 $as_echo "$PYTHON_SITE_PKG" >&6; }
22528
22529
22530         #
22531         # libraries which must be linked in when embedding
22532         #
22533         { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
22534 $as_echo_n "checking python extra libraries... " >&6; }
22535         if test -z "$PYTHON_EXTRA_LIBS"; then
22536            PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
22537                 conf = distutils.sysconfig.get_config_var; \
22538                 print (conf('LIBS') + ' ' + conf('SYSLIBS'))"`
22539         fi
22540         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
22541 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
22542
22543
22544         #
22545         # linking flags needed when embedding
22546         #
22547         { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
22548 $as_echo_n "checking python extra linking flags... " >&6; }
22549         if test -z "$PYTHON_EXTRA_LDFLAGS"; then
22550                 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
22551                         conf = distutils.sysconfig.get_config_var; \
22552                         print (conf('LINKFORSHARED'))"`
22553         fi
22554         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
22555 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
22556
22557
22558         #
22559         # final check to see if everything compiles alright
22560         #
22561         { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
22562 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
22563         # save current global flags
22564         ac_save_LIBS="$LIBS"
22565         ac_save_CPPFLAGS="$CPPFLAGS"
22566         LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
22567         CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
22568         ac_ext=c
22569 ac_cpp='$CPP $CPPFLAGS'
22570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22573
22574         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22575 /* end confdefs.h.  */
22576
22577                 #include <Python.h>
22578 int
22579 main ()
22580 {
22581 Py_Initialize();
22582   ;
22583   return 0;
22584 }
22585
22586 _ACEOF
22587 if ac_fn_c_try_link "$LINENO"; then :
22588   pythonexists=yes
22589 else
22590   pythonexists=no
22591 fi
22592 rm -f core conftest.err conftest.$ac_objext \
22593     conftest$ac_exeext conftest.$ac_ext
22594         ac_ext=c
22595 ac_cpp='$CPP $CPPFLAGS'
22596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22599
22600         # turn back to default flags
22601         CPPFLAGS="$ac_save_CPPFLAGS"
22602         LIBS="$ac_save_LIBS"
22603
22604         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
22605 $as_echo "$pythonexists" >&6; }
22606
22607         if test ! "x$pythonexists" = "xyes"; then
22608            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
22609   Could not link test program to Python. Maybe the main Python library has been
22610   installed in some non-standard library path. If so, pass it to configure,
22611   via the LDFLAGS environment variable.
22612   Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
22613   ============================================================================
22614    You probably have to install the development version of the Python package
22615    for your distribution.  The exact name of this package varies among them.
22616   ============================================================================
22617            " >&5
22618 $as_echo "$as_me: WARNING:
22619   Could not link test program to Python. Maybe the main Python library has been
22620   installed in some non-standard library path. If so, pass it to configure,
22621   via the LDFLAGS environment variable.
22622   Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
22623   ============================================================================
22624    You probably have to install the development version of the Python package
22625    for your distribution.  The exact name of this package varies among them.
22626   ============================================================================
22627            " >&2;}
22628           PYTHON_VERSION=""
22629         fi
22630
22631         #
22632         # all done!
22633         #
22634
22635                 if test "$PYTHON_VERSION"; then
22636                         PYTHONS="$(echo $PYTHONS $PYTHON)"
22637                         PYTHON_VERSIONS="$(echo $PYTHON_VERSIONS $PYTHON_VERSION)"
22638                 fi
22639
22640   fi
22641
22642
22643            unset PYTHON
22644             unset PYTHON_VERSION
22645             unset PYTHON_CPPFLAGS
22646             unset PYTHON_LDFLAGS
22647             unset PYTHON_SITE_PKG
22648             unset PYTHON_EXTRA_LIBS
22649             unset PYTHON_EXTRA_LDFLAGS
22650             unset ac_cv_path_PYTHON
22651             unset am_cv_pathless_PYTHON
22652             unset am_cv_python_version
22653             unset am_cv_python_platform
22654             unset am_cv_python_pythondir
22655             unset am_cv_python_pyexecdir
22656
22657
22658
22659
22660
22661
22662         if test -n "$PYTHON"; then
22663       # If the user set $PYTHON, use it and don't search something else.
22664       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.8" >&5
22665 $as_echo_n "checking whether $PYTHON version is >= 3.8... " >&6; }
22666       prog="import sys
22667 # split strings by '.' and convert to numeric.  Append some zeros
22668 # because we need at least 4 digits for the hex conversion.
22669 # map returns an iterator in Python 3.0 and a list in 2.x
22670 minver = list(map(int, '3.8'.split('.'))) + [0, 0, 0]
22671 minverhex = 0
22672 # xrange is not present in Python 3.0 and range returns an iterator
22673 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
22674 sys.exit(sys.hexversion < minverhex)"
22675   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
22676    ($PYTHON -c "$prog") >&5 2>&5
22677    ac_status=$?
22678    echo "$as_me:$LINENO: \$? = $ac_status" >&5
22679    (exit $ac_status); }; then :
22680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22681 $as_echo "yes" >&6; }
22682 else
22683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22684 $as_echo "no" >&6; }
22685                                as_fn_error $? "Python interpreter is too old" "$LINENO" 5
22686 fi
22687       am_display_PYTHON=$PYTHON
22688     else
22689       # Otherwise, try each interpreter until we find one that satisfies
22690       # VERSION.
22691       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.8" >&5
22692 $as_echo_n "checking for a Python interpreter with version >= 3.8... " >&6; }
22693 if ${am_cv_pathless_PYTHON+:} false; then :
22694   $as_echo_n "(cached) " >&6
22695 else
22696
22697         for am_cv_pathless_PYTHON           in python3.8 none; do
22698           test "$am_cv_pathless_PYTHON" = none && break
22699           prog="import sys
22700 # split strings by '.' and convert to numeric.  Append some zeros
22701 # because we need at least 4 digits for the hex conversion.
22702 # map returns an iterator in Python 3.0 and a list in 2.x
22703 minver = list(map(int, '3.8'.split('.'))) + [0, 0, 0]
22704 minverhex = 0
22705 # xrange is not present in Python 3.0 and range returns an iterator
22706 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
22707 sys.exit(sys.hexversion < minverhex)"
22708   if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
22709    ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
22710    ac_status=$?
22711    echo "$as_me:$LINENO: \$? = $ac_status" >&5
22712    (exit $ac_status); }; then :
22713   break
22714 fi
22715         done
22716 fi
22717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
22718 $as_echo "$am_cv_pathless_PYTHON" >&6; }
22719       # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
22720       if test "$am_cv_pathless_PYTHON" = none; then
22721         PYTHON=:
22722       else
22723         # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
22724 set dummy $am_cv_pathless_PYTHON; ac_word=$2
22725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22726 $as_echo_n "checking for $ac_word... " >&6; }
22727 if ${ac_cv_path_PYTHON+:} false; then :
22728   $as_echo_n "(cached) " >&6
22729 else
22730   case $PYTHON in
22731   [\\/]* | ?:[\\/]*)
22732   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
22733   ;;
22734   *)
22735   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22736 for as_dir in $PATH
22737 do
22738   IFS=$as_save_IFS
22739   test -z "$as_dir" && as_dir=.
22740     for ac_exec_ext in '' $ac_executable_extensions; do
22741   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22742     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
22743     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22744     break 2
22745   fi
22746 done
22747   done
22748 IFS=$as_save_IFS
22749
22750   ;;
22751 esac
22752 fi
22753 PYTHON=$ac_cv_path_PYTHON
22754 if test -n "$PYTHON"; then
22755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
22756 $as_echo "$PYTHON" >&6; }
22757 else
22758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22759 $as_echo "no" >&6; }
22760 fi
22761
22762
22763       fi
22764       am_display_PYTHON=$am_cv_pathless_PYTHON
22765     fi
22766
22767
22768   if test "$PYTHON" = :; then
22769       :
22770   else
22771
22772
22773   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
22774 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
22775 if ${am_cv_python_version+:} false; then :
22776   $as_echo_n "(cached) " >&6
22777 else
22778   am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
22779 fi
22780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
22781 $as_echo "$am_cv_python_version" >&6; }
22782   PYTHON_VERSION=$am_cv_python_version
22783
22784
22785
22786   PYTHON_PREFIX='${prefix}'
22787
22788   PYTHON_EXEC_PREFIX='${exec_prefix}'
22789
22790
22791
22792   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
22793 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
22794 if ${am_cv_python_platform+:} false; then :
22795   $as_echo_n "(cached) " >&6
22796 else
22797   am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
22798 fi
22799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
22800 $as_echo "$am_cv_python_platform" >&6; }
22801   PYTHON_PLATFORM=$am_cv_python_platform
22802
22803
22804   # Just factor out some code duplication.
22805   am_python_setup_sysconfig="\
22806 import sys
22807 # Prefer sysconfig over distutils.sysconfig, for better compatibility
22808 # with python 3.x.  See automake bug#10227.
22809 try:
22810     import sysconfig
22811 except ImportError:
22812     can_use_sysconfig = 0
22813 else:
22814     can_use_sysconfig = 1
22815 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
22816 # <https://github.com/pypa/virtualenv/issues/118>
22817 try:
22818     from platform import python_implementation
22819     if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
22820         can_use_sysconfig = 0
22821 except ImportError:
22822     pass"
22823
22824
22825             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
22826 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
22827 if ${am_cv_python_pythondir+:} false; then :
22828   $as_echo_n "(cached) " >&6
22829 else
22830   if test "x$prefix" = xNONE
22831      then
22832        am_py_prefix=$ac_default_prefix
22833      else
22834        am_py_prefix=$prefix
22835      fi
22836      am_cv_python_pythondir=`$PYTHON -c "
22837 $am_python_setup_sysconfig
22838 if can_use_sysconfig:
22839     sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
22840 else:
22841     from distutils import sysconfig
22842     sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
22843 sys.stdout.write(sitedir)"`
22844      case $am_cv_python_pythondir in
22845      $am_py_prefix*)
22846        am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
22847        am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
22848        ;;
22849      *)
22850        case $am_py_prefix in
22851          /usr|/System*) ;;
22852          *)
22853           am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
22854           ;;
22855        esac
22856        ;;
22857      esac
22858
22859 fi
22860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
22861 $as_echo "$am_cv_python_pythondir" >&6; }
22862   pythondir=$am_cv_python_pythondir
22863
22864
22865
22866   pkgpythondir=\${pythondir}/$PACKAGE
22867
22868
22869         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
22870 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
22871 if ${am_cv_python_pyexecdir+:} false; then :
22872   $as_echo_n "(cached) " >&6
22873 else
22874   if test "x$exec_prefix" = xNONE
22875      then
22876        am_py_exec_prefix=$am_py_prefix
22877      else
22878        am_py_exec_prefix=$exec_prefix
22879      fi
22880      am_cv_python_pyexecdir=`$PYTHON -c "
22881 $am_python_setup_sysconfig
22882 if can_use_sysconfig:
22883     sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
22884 else:
22885     from distutils import sysconfig
22886     sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
22887 sys.stdout.write(sitedir)"`
22888      case $am_cv_python_pyexecdir in
22889      $am_py_exec_prefix*)
22890        am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
22891        am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
22892        ;;
22893      *)
22894        case $am_py_exec_prefix in
22895          /usr|/System*) ;;
22896          *)
22897            am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
22898            ;;
22899        esac
22900        ;;
22901      esac
22902
22903 fi
22904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
22905 $as_echo "$am_cv_python_pyexecdir" >&6; }
22906   pyexecdir=$am_cv_python_pyexecdir
22907
22908
22909
22910   pkgpyexecdir=\${pyexecdir}/$PACKAGE
22911
22912
22913
22914
22915         #
22916         # Allow the use of a (user set) custom python version
22917         #
22918
22919
22920         # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
22921 set dummy python$PYTHON_VERSION; ac_word=$2
22922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22923 $as_echo_n "checking for $ac_word... " >&6; }
22924 if ${ac_cv_path_PYTHON+:} false; then :
22925   $as_echo_n "(cached) " >&6
22926 else
22927   case $PYTHON in
22928   [\\/]* | ?:[\\/]*)
22929   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
22930   ;;
22931   *)
22932   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22933 for as_dir in $PATH
22934 do
22935   IFS=$as_save_IFS
22936   test -z "$as_dir" && as_dir=.
22937     for ac_exec_ext in '' $ac_executable_extensions; do
22938   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22939     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
22940     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22941     break 2
22942   fi
22943 done
22944   done
22945 IFS=$as_save_IFS
22946
22947   ;;
22948 esac
22949 fi
22950 PYTHON=$ac_cv_path_PYTHON
22951 if test -n "$PYTHON"; then
22952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
22953 $as_echo "$PYTHON" >&6; }
22954 else
22955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22956 $as_echo "no" >&6; }
22957 fi
22958
22959
22960         if test -z "$PYTHON"; then
22961            as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
22962            PYTHON_VERSION=""
22963         fi
22964
22965         #
22966         # Check for a version of Python >= 2.1.0
22967         #
22968         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
22969 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
22970         ac_supports_python_ver=`$PYTHON -c "import sys; \
22971                 ver = sys.version.split ()[0]; \
22972                 print (ver >= '2.1.0')"`
22973         if test "$ac_supports_python_ver" != "True"; then
22974                 if test -z "$PYTHON_NOVERSIONCHECK"; then
22975                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22976 $as_echo "no" >&6; }
22977                         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22978 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22979 as_fn_error $? "
22980 This version of the AC_PYTHON_DEVEL macro
22981 doesn't work properly with versions of Python before
22982 2.1.0. You may need to re-run configure, setting the
22983 variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
22984 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
22985 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
22986 to something else than an empty string.
22987
22988 See \`config.log' for more details" "$LINENO" 5; }
22989                 else
22990                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
22991 $as_echo "skip at user request" >&6; }
22992                 fi
22993         else
22994                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22995 $as_echo "yes" >&6; }
22996         fi
22997
22998         #
22999         # if the macro parameter ``version'' is set, honour it
23000         #
23001         if test -n ""; then
23002                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
23003 $as_echo_n "checking for a version of Python ... " >&6; }
23004                 ac_supports_python_ver=`$PYTHON -c "import sys; \
23005                         ver = sys.version.split ()[0]; \
23006                         print (ver )"`
23007                 if test "$ac_supports_python_ver" = "True"; then
23008                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23009 $as_echo "yes" >&6; }
23010                 else
23011                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23012 $as_echo "no" >&6; }
23013                         as_fn_error $? "this package requires Python .
23014 If you have it installed, but it isn't the default Python
23015 interpreter in your system path, please pass the PYTHON_VERSION
23016 variable to configure. See \`\`configure --help'' for reference.
23017 " "$LINENO" 5
23018                         PYTHON_VERSION=""
23019                 fi
23020         fi
23021
23022         #
23023         # Check if you have distutils, else fail
23024         #
23025         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
23026 $as_echo_n "checking for the distutils Python package... " >&6; }
23027         ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
23028         if test -z "$ac_distutils_result"; then
23029                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23030 $as_echo "yes" >&6; }
23031         else
23032                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23033 $as_echo "no" >&6; }
23034                 as_fn_error $? "cannot import Python module \"distutils\".
23035 Please check your Python installation. The error was:
23036 $ac_distutils_result" "$LINENO" 5
23037                 PYTHON_VERSION=""
23038         fi
23039
23040         #
23041         # Check for Python include path
23042         #
23043         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
23044 $as_echo_n "checking for Python include path... " >&6; }
23045         if test -z "$PYTHON_CPPFLAGS"; then
23046                 python_path=`$PYTHON -c "import distutils.sysconfig; \
23047                         print (distutils.sysconfig.get_python_inc ());"`
23048                 plat_python_path=`$PYTHON -c "import distutils.sysconfig; \
23049                         print (distutils.sysconfig.get_python_inc (plat_specific=1));"`
23050                 if test -n "${python_path}"; then
23051                         if test "${plat_python_path}" != "${python_path}"; then
23052                                 python_path="-I$python_path -I$plat_python_path"
23053                         else
23054                                 python_path="-I$python_path"
23055                         fi
23056                 fi
23057                 PYTHON_CPPFLAGS=$python_path
23058         fi
23059         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
23060 $as_echo "$PYTHON_CPPFLAGS" >&6; }
23061
23062
23063         #
23064         # Check for Python library path
23065         #
23066         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
23067 $as_echo_n "checking for Python library path... " >&6; }
23068         if test -z "$PYTHON_LDFLAGS"; then
23069                 # (makes two attempts to ensure we've got a version number
23070                 # from the interpreter)
23071                 ac_python_version=`cat<<EOD | $PYTHON -
23072
23073 # join all versioning strings, on some systems
23074 # major/minor numbers could be in different list elements
23075 from distutils.sysconfig import *
23076 e = get_config_var('VERSION')
23077 if e is not None:
23078         print(e)
23079 EOD`
23080
23081                 if test -z "$ac_python_version"; then
23082                         if test -n "$PYTHON_VERSION"; then
23083                                 ac_python_version=$PYTHON_VERSION
23084                         else
23085                                 ac_python_version=`$PYTHON -c "import sys; \
23086                                         print (sys.version[:3])"`
23087                         fi
23088                 fi
23089
23090                 # Make the versioning information available to the compiler
23091
23092                 # JW: We don't need it and it interferes with the hack
23093                 # to detect multiple Pyhton versions
23094                 #AC_DEFINE_UNQUOTED([HAVE_PYTHON], ["$ac_python_version"],
23095                 #                  [If available, contains the Python version number currently in use.])
23096
23097                 # First, the library directory:
23098                 ac_python_libdir=`cat<<EOD | $PYTHON -
23099
23100 # There should be only one
23101 import distutils.sysconfig
23102 e = distutils.sysconfig.get_config_var('LIBDIR')
23103 if e is not None:
23104         print (e)
23105 EOD`
23106
23107                 # Now, for the library:
23108                 ac_python_library=`cat<<EOD | $PYTHON -
23109
23110 import distutils.sysconfig
23111 c = distutils.sysconfig.get_config_vars()
23112 if 'LDVERSION' in c:
23113         print ('python'+c['LDVERSION'])
23114 else:
23115         print ('python'+c['VERSION'])
23116 EOD`
23117
23118                 # This small piece shamelessly adapted from PostgreSQL python macro;
23119                 # credits goes to momjian, I think. I'd like to put the right name
23120                 # in the credits, if someone can point me in the right direction... ?
23121                 #
23122                 if test -n "$ac_python_libdir" -a -n "$ac_python_library"
23123                 then
23124                         # use the official shared library
23125                         ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
23126                         PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library"
23127                 else
23128                         # old way: use libpython from python_configdir
23129                         ac_python_libdir=`$PYTHON -c \
23130                           "from distutils.sysconfig import get_python_lib as f; \
23131                           import os; \
23132                           print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
23133                         PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version"
23134                 fi
23135
23136                 if test -z "PYTHON_LDFLAGS"; then
23137                         as_fn_error $? "
23138   Cannot determine location of your Python DSO. Please check it was installed with
23139   dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
23140                         " "$LINENO" 5
23141                 fi
23142         fi
23143         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
23144 $as_echo "$PYTHON_LDFLAGS" >&6; }
23145
23146
23147         #
23148         # Check for site packages
23149         #
23150         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
23151 $as_echo_n "checking for Python site-packages path... " >&6; }
23152         if test -z "$PYTHON_SITE_PKG"; then
23153                 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
23154                         print (distutils.sysconfig.get_python_lib(0,0));"`
23155         fi
23156         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
23157 $as_echo "$PYTHON_SITE_PKG" >&6; }
23158
23159
23160         #
23161         # libraries which must be linked in when embedding
23162         #
23163         { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
23164 $as_echo_n "checking python extra libraries... " >&6; }
23165         if test -z "$PYTHON_EXTRA_LIBS"; then
23166            PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
23167                 conf = distutils.sysconfig.get_config_var; \
23168                 print (conf('LIBS') + ' ' + conf('SYSLIBS'))"`
23169         fi
23170         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
23171 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
23172
23173
23174         #
23175         # linking flags needed when embedding
23176         #
23177         { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
23178 $as_echo_n "checking python extra linking flags... " >&6; }
23179         if test -z "$PYTHON_EXTRA_LDFLAGS"; then
23180                 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
23181                         conf = distutils.sysconfig.get_config_var; \
23182                         print (conf('LINKFORSHARED'))"`
23183         fi
23184         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
23185 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
23186
23187
23188         #
23189         # final check to see if everything compiles alright
23190         #
23191         { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
23192 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
23193         # save current global flags
23194         ac_save_LIBS="$LIBS"
23195         ac_save_CPPFLAGS="$CPPFLAGS"
23196         LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
23197         CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
23198         ac_ext=c
23199 ac_cpp='$CPP $CPPFLAGS'
23200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23203
23204         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23205 /* end confdefs.h.  */
23206
23207                 #include <Python.h>
23208 int
23209 main ()
23210 {
23211 Py_Initialize();
23212   ;
23213   return 0;
23214 }
23215
23216 _ACEOF
23217 if ac_fn_c_try_link "$LINENO"; then :
23218   pythonexists=yes
23219 else
23220   pythonexists=no
23221 fi
23222 rm -f core conftest.err conftest.$ac_objext \
23223     conftest$ac_exeext conftest.$ac_ext
23224         ac_ext=c
23225 ac_cpp='$CPP $CPPFLAGS'
23226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23229
23230         # turn back to default flags
23231         CPPFLAGS="$ac_save_CPPFLAGS"
23232         LIBS="$ac_save_LIBS"
23233
23234         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
23235 $as_echo "$pythonexists" >&6; }
23236
23237         if test ! "x$pythonexists" = "xyes"; then
23238            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
23239   Could not link test program to Python. Maybe the main Python library has been
23240   installed in some non-standard library path. If so, pass it to configure,
23241   via the LDFLAGS environment variable.
23242   Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
23243   ============================================================================
23244    You probably have to install the development version of the Python package
23245    for your distribution.  The exact name of this package varies among them.
23246   ============================================================================
23247            " >&5
23248 $as_echo "$as_me: WARNING:
23249   Could not link test program to Python. Maybe the main Python library has been
23250   installed in some non-standard library path. If so, pass it to configure,
23251   via the LDFLAGS environment variable.
23252   Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
23253   ============================================================================
23254    You probably have to install the development version of the Python package
23255    for your distribution.  The exact name of this package varies among them.
23256   ============================================================================
23257            " >&2;}
23258           PYTHON_VERSION=""
23259         fi
23260
23261         #
23262         # all done!
23263         #
23264
23265                 if test "$PYTHON_VERSION"; then
23266                         PYTHONS="$(echo $PYTHONS $PYTHON)"
23267                         PYTHON_VERSIONS="$(echo $PYTHON_VERSIONS $PYTHON_VERSION)"
23268                 fi
23269
23270   fi
23271
23272
23273            unset PYTHON
23274             unset PYTHON_VERSION
23275             unset PYTHON_CPPFLAGS
23276             unset PYTHON_LDFLAGS
23277             unset PYTHON_SITE_PKG
23278             unset PYTHON_EXTRA_LIBS
23279             unset PYTHON_EXTRA_LDFLAGS
23280             unset ac_cv_path_PYTHON
23281             unset am_cv_pathless_PYTHON
23282             unset am_cv_python_version
23283             unset am_cv_python_platform
23284             unset am_cv_python_pythondir
23285             unset am_cv_python_pyexecdir
23286
23287
23288
23289
23290
23291
23292         if test -n "$PYTHON"; then
23293       # If the user set $PYTHON, use it and don't search something else.
23294       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.9" >&5
23295 $as_echo_n "checking whether $PYTHON version is >= 3.9... " >&6; }
23296       prog="import sys
23297 # split strings by '.' and convert to numeric.  Append some zeros
23298 # because we need at least 4 digits for the hex conversion.
23299 # map returns an iterator in Python 3.0 and a list in 2.x
23300 minver = list(map(int, '3.9'.split('.'))) + [0, 0, 0]
23301 minverhex = 0
23302 # xrange is not present in Python 3.0 and range returns an iterator
23303 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
23304 sys.exit(sys.hexversion < minverhex)"
23305   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
23306    ($PYTHON -c "$prog") >&5 2>&5
23307    ac_status=$?
23308    echo "$as_me:$LINENO: \$? = $ac_status" >&5
23309    (exit $ac_status); }; then :
23310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23311 $as_echo "yes" >&6; }
23312 else
23313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23314 $as_echo "no" >&6; }
23315                                as_fn_error $? "Python interpreter is too old" "$LINENO" 5
23316 fi
23317       am_display_PYTHON=$PYTHON
23318     else
23319       # Otherwise, try each interpreter until we find one that satisfies
23320       # VERSION.
23321       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.9" >&5
23322 $as_echo_n "checking for a Python interpreter with version >= 3.9... " >&6; }
23323 if ${am_cv_pathless_PYTHON+:} false; then :
23324   $as_echo_n "(cached) " >&6
23325 else
23326
23327         for am_cv_pathless_PYTHON           in python3.9 none; do
23328           test "$am_cv_pathless_PYTHON" = none && break
23329           prog="import sys
23330 # split strings by '.' and convert to numeric.  Append some zeros
23331 # because we need at least 4 digits for the hex conversion.
23332 # map returns an iterator in Python 3.0 and a list in 2.x
23333 minver = list(map(int, '3.9'.split('.'))) + [0, 0, 0]
23334 minverhex = 0
23335 # xrange is not present in Python 3.0 and range returns an iterator
23336 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
23337 sys.exit(sys.hexversion < minverhex)"
23338   if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
23339    ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
23340    ac_status=$?
23341    echo "$as_me:$LINENO: \$? = $ac_status" >&5
23342    (exit $ac_status); }; then :
23343   break
23344 fi
23345         done
23346 fi
23347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
23348 $as_echo "$am_cv_pathless_PYTHON" >&6; }
23349       # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
23350       if test "$am_cv_pathless_PYTHON" = none; then
23351         PYTHON=:
23352       else
23353         # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
23354 set dummy $am_cv_pathless_PYTHON; ac_word=$2
23355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23356 $as_echo_n "checking for $ac_word... " >&6; }
23357 if ${ac_cv_path_PYTHON+:} false; then :
23358   $as_echo_n "(cached) " >&6
23359 else
23360   case $PYTHON in
23361   [\\/]* | ?:[\\/]*)
23362   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
23363   ;;
23364   *)
23365   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23366 for as_dir in $PATH
23367 do
23368   IFS=$as_save_IFS
23369   test -z "$as_dir" && as_dir=.
23370     for ac_exec_ext in '' $ac_executable_extensions; do
23371   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23372     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
23373     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23374     break 2
23375   fi
23376 done
23377   done
23378 IFS=$as_save_IFS
23379
23380   ;;
23381 esac
23382 fi
23383 PYTHON=$ac_cv_path_PYTHON
23384 if test -n "$PYTHON"; then
23385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
23386 $as_echo "$PYTHON" >&6; }
23387 else
23388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23389 $as_echo "no" >&6; }
23390 fi
23391
23392
23393       fi
23394       am_display_PYTHON=$am_cv_pathless_PYTHON
23395     fi
23396
23397
23398   if test "$PYTHON" = :; then
23399       :
23400   else
23401
23402
23403   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
23404 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
23405 if ${am_cv_python_version+:} false; then :
23406   $as_echo_n "(cached) " >&6
23407 else
23408   am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
23409 fi
23410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
23411 $as_echo "$am_cv_python_version" >&6; }
23412   PYTHON_VERSION=$am_cv_python_version
23413
23414
23415
23416   PYTHON_PREFIX='${prefix}'
23417
23418   PYTHON_EXEC_PREFIX='${exec_prefix}'
23419
23420
23421
23422   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
23423 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
23424 if ${am_cv_python_platform+:} false; then :
23425   $as_echo_n "(cached) " >&6
23426 else
23427   am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
23428 fi
23429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
23430 $as_echo "$am_cv_python_platform" >&6; }
23431   PYTHON_PLATFORM=$am_cv_python_platform
23432
23433
23434   # Just factor out some code duplication.
23435   am_python_setup_sysconfig="\
23436 import sys
23437 # Prefer sysconfig over distutils.sysconfig, for better compatibility
23438 # with python 3.x.  See automake bug#10227.
23439 try:
23440     import sysconfig
23441 except ImportError:
23442     can_use_sysconfig = 0
23443 else:
23444     can_use_sysconfig = 1
23445 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
23446 # <https://github.com/pypa/virtualenv/issues/118>
23447 try:
23448     from platform import python_implementation
23449     if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
23450         can_use_sysconfig = 0
23451 except ImportError:
23452     pass"
23453
23454
23455             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
23456 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
23457 if ${am_cv_python_pythondir+:} false; then :
23458   $as_echo_n "(cached) " >&6
23459 else
23460   if test "x$prefix" = xNONE
23461      then
23462        am_py_prefix=$ac_default_prefix
23463      else
23464        am_py_prefix=$prefix
23465      fi
23466      am_cv_python_pythondir=`$PYTHON -c "
23467 $am_python_setup_sysconfig
23468 if can_use_sysconfig:
23469     sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
23470 else:
23471     from distutils import sysconfig
23472     sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
23473 sys.stdout.write(sitedir)"`
23474      case $am_cv_python_pythondir in
23475      $am_py_prefix*)
23476        am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
23477        am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
23478        ;;
23479      *)
23480        case $am_py_prefix in
23481          /usr|/System*) ;;
23482          *)
23483           am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
23484           ;;
23485        esac
23486        ;;
23487      esac
23488
23489 fi
23490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
23491 $as_echo "$am_cv_python_pythondir" >&6; }
23492   pythondir=$am_cv_python_pythondir
23493
23494
23495
23496   pkgpythondir=\${pythondir}/$PACKAGE
23497
23498
23499         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
23500 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
23501 if ${am_cv_python_pyexecdir+:} false; then :
23502   $as_echo_n "(cached) " >&6
23503 else
23504   if test "x$exec_prefix" = xNONE
23505      then
23506        am_py_exec_prefix=$am_py_prefix
23507      else
23508        am_py_exec_prefix=$exec_prefix
23509      fi
23510      am_cv_python_pyexecdir=`$PYTHON -c "
23511 $am_python_setup_sysconfig
23512 if can_use_sysconfig:
23513     sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
23514 else:
23515     from distutils import sysconfig
23516     sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
23517 sys.stdout.write(sitedir)"`
23518      case $am_cv_python_pyexecdir in
23519      $am_py_exec_prefix*)
23520        am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
23521        am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
23522        ;;
23523      *)
23524        case $am_py_exec_prefix in
23525          /usr|/System*) ;;
23526          *)
23527            am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
23528            ;;
23529        esac
23530        ;;
23531      esac
23532
23533 fi
23534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
23535 $as_echo "$am_cv_python_pyexecdir" >&6; }
23536   pyexecdir=$am_cv_python_pyexecdir
23537
23538
23539
23540   pkgpyexecdir=\${pyexecdir}/$PACKAGE
23541
23542
23543
23544
23545         #
23546         # Allow the use of a (user set) custom python version
23547         #
23548
23549
23550         # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
23551 set dummy python$PYTHON_VERSION; ac_word=$2
23552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23553 $as_echo_n "checking for $ac_word... " >&6; }
23554 if ${ac_cv_path_PYTHON+:} false; then :
23555   $as_echo_n "(cached) " >&6
23556 else
23557   case $PYTHON in
23558   [\\/]* | ?:[\\/]*)
23559   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
23560   ;;
23561   *)
23562   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23563 for as_dir in $PATH
23564 do
23565   IFS=$as_save_IFS
23566   test -z "$as_dir" && as_dir=.
23567     for ac_exec_ext in '' $ac_executable_extensions; do
23568   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23569     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
23570     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23571     break 2
23572   fi
23573 done
23574   done
23575 IFS=$as_save_IFS
23576
23577   ;;
23578 esac
23579 fi
23580 PYTHON=$ac_cv_path_PYTHON
23581 if test -n "$PYTHON"; then
23582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
23583 $as_echo "$PYTHON" >&6; }
23584 else
23585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23586 $as_echo "no" >&6; }
23587 fi
23588
23589
23590         if test -z "$PYTHON"; then
23591            as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
23592            PYTHON_VERSION=""
23593         fi
23594
23595         #
23596         # Check for a version of Python >= 2.1.0
23597         #
23598         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
23599 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
23600         ac_supports_python_ver=`$PYTHON -c "import sys; \
23601                 ver = sys.version.split ()[0]; \
23602                 print (ver >= '2.1.0')"`
23603         if test "$ac_supports_python_ver" != "True"; then
23604                 if test -z "$PYTHON_NOVERSIONCHECK"; then
23605                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23606 $as_echo "no" >&6; }
23607                         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23608 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23609 as_fn_error $? "
23610 This version of the AC_PYTHON_DEVEL macro
23611 doesn't work properly with versions of Python before
23612 2.1.0. You may need to re-run configure, setting the
23613 variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
23614 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
23615 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
23616 to something else than an empty string.
23617
23618 See \`config.log' for more details" "$LINENO" 5; }
23619                 else
23620                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
23621 $as_echo "skip at user request" >&6; }
23622                 fi
23623         else
23624                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23625 $as_echo "yes" >&6; }
23626         fi
23627
23628         #
23629         # if the macro parameter ``version'' is set, honour it
23630         #
23631         if test -n ""; then
23632                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
23633 $as_echo_n "checking for a version of Python ... " >&6; }
23634                 ac_supports_python_ver=`$PYTHON -c "import sys; \
23635                         ver = sys.version.split ()[0]; \
23636                         print (ver )"`
23637                 if test "$ac_supports_python_ver" = "True"; then
23638                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23639 $as_echo "yes" >&6; }
23640                 else
23641                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23642 $as_echo "no" >&6; }
23643                         as_fn_error $? "this package requires Python .
23644 If you have it installed, but it isn't the default Python
23645 interpreter in your system path, please pass the PYTHON_VERSION
23646 variable to configure. See \`\`configure --help'' for reference.
23647 " "$LINENO" 5
23648                         PYTHON_VERSION=""
23649                 fi
23650         fi
23651
23652         #
23653         # Check if you have distutils, else fail
23654         #
23655         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
23656 $as_echo_n "checking for the distutils Python package... " >&6; }
23657         ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
23658         if test -z "$ac_distutils_result"; then
23659                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23660 $as_echo "yes" >&6; }
23661         else
23662                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23663 $as_echo "no" >&6; }
23664                 as_fn_error $? "cannot import Python module \"distutils\".
23665 Please check your Python installation. The error was:
23666 $ac_distutils_result" "$LINENO" 5
23667                 PYTHON_VERSION=""
23668         fi
23669
23670         #
23671         # Check for Python include path
23672         #
23673         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
23674 $as_echo_n "checking for Python include path... " >&6; }
23675         if test -z "$PYTHON_CPPFLAGS"; then
23676                 python_path=`$PYTHON -c "import distutils.sysconfig; \
23677                         print (distutils.sysconfig.get_python_inc ());"`
23678                 plat_python_path=`$PYTHON -c "import distutils.sysconfig; \
23679                         print (distutils.sysconfig.get_python_inc (plat_specific=1));"`
23680                 if test -n "${python_path}"; then
23681                         if test "${plat_python_path}" != "${python_path}"; then
23682                                 python_path="-I$python_path -I$plat_python_path"
23683                         else
23684                                 python_path="-I$python_path"
23685                         fi
23686                 fi
23687                 PYTHON_CPPFLAGS=$python_path
23688         fi
23689         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
23690 $as_echo "$PYTHON_CPPFLAGS" >&6; }
23691
23692
23693         #
23694         # Check for Python library path
23695         #
23696         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
23697 $as_echo_n "checking for Python library path... " >&6; }
23698         if test -z "$PYTHON_LDFLAGS"; then
23699                 # (makes two attempts to ensure we've got a version number
23700                 # from the interpreter)
23701                 ac_python_version=`cat<<EOD | $PYTHON -
23702
23703 # join all versioning strings, on some systems
23704 # major/minor numbers could be in different list elements
23705 from distutils.sysconfig import *
23706 e = get_config_var('VERSION')
23707 if e is not None:
23708         print(e)
23709 EOD`
23710
23711                 if test -z "$ac_python_version"; then
23712                         if test -n "$PYTHON_VERSION"; then
23713                                 ac_python_version=$PYTHON_VERSION
23714                         else
23715                                 ac_python_version=`$PYTHON -c "import sys; \
23716                                         print (sys.version[:3])"`
23717                         fi
23718                 fi
23719
23720                 # Make the versioning information available to the compiler
23721
23722                 # JW: We don't need it and it interferes with the hack
23723                 # to detect multiple Pyhton versions
23724                 #AC_DEFINE_UNQUOTED([HAVE_PYTHON], ["$ac_python_version"],
23725                 #                  [If available, contains the Python version number currently in use.])
23726
23727                 # First, the library directory:
23728                 ac_python_libdir=`cat<<EOD | $PYTHON -
23729
23730 # There should be only one
23731 import distutils.sysconfig
23732 e = distutils.sysconfig.get_config_var('LIBDIR')
23733 if e is not None:
23734         print (e)
23735 EOD`
23736
23737                 # Now, for the library:
23738                 ac_python_library=`cat<<EOD | $PYTHON -
23739
23740 import distutils.sysconfig
23741 c = distutils.sysconfig.get_config_vars()
23742 if 'LDVERSION' in c:
23743         print ('python'+c['LDVERSION'])
23744 else:
23745         print ('python'+c['VERSION'])
23746 EOD`
23747
23748                 # This small piece shamelessly adapted from PostgreSQL python macro;
23749                 # credits goes to momjian, I think. I'd like to put the right name
23750                 # in the credits, if someone can point me in the right direction... ?
23751                 #
23752                 if test -n "$ac_python_libdir" -a -n "$ac_python_library"
23753                 then
23754                         # use the official shared library
23755                         ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
23756                         PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library"
23757                 else
23758                         # old way: use libpython from python_configdir
23759                         ac_python_libdir=`$PYTHON -c \
23760                           "from distutils.sysconfig import get_python_lib as f; \
23761                           import os; \
23762                           print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
23763                         PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version"
23764                 fi
23765
23766                 if test -z "PYTHON_LDFLAGS"; then
23767                         as_fn_error $? "
23768   Cannot determine location of your Python DSO. Please check it was installed with
23769   dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
23770                         " "$LINENO" 5
23771                 fi
23772         fi
23773         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
23774 $as_echo "$PYTHON_LDFLAGS" >&6; }
23775
23776
23777         #
23778         # Check for site packages
23779         #
23780         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
23781 $as_echo_n "checking for Python site-packages path... " >&6; }
23782         if test -z "$PYTHON_SITE_PKG"; then
23783                 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
23784                         print (distutils.sysconfig.get_python_lib(0,0));"`
23785         fi
23786         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
23787 $as_echo "$PYTHON_SITE_PKG" >&6; }
23788
23789
23790         #
23791         # libraries which must be linked in when embedding
23792         #
23793         { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
23794 $as_echo_n "checking python extra libraries... " >&6; }
23795         if test -z "$PYTHON_EXTRA_LIBS"; then
23796            PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
23797                 conf = distutils.sysconfig.get_config_var; \
23798                 print (conf('LIBS') + ' ' + conf('SYSLIBS'))"`
23799         fi
23800         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
23801 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
23802
23803
23804         #
23805         # linking flags needed when embedding
23806         #
23807         { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
23808 $as_echo_n "checking python extra linking flags... " >&6; }
23809         if test -z "$PYTHON_EXTRA_LDFLAGS"; then
23810                 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
23811                         conf = distutils.sysconfig.get_config_var; \
23812                         print (conf('LINKFORSHARED'))"`
23813         fi
23814         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
23815 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
23816
23817
23818         #
23819         # final check to see if everything compiles alright
23820         #
23821         { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
23822 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
23823         # save current global flags
23824         ac_save_LIBS="$LIBS"
23825         ac_save_CPPFLAGS="$CPPFLAGS"
23826         LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
23827         CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
23828         ac_ext=c
23829 ac_cpp='$CPP $CPPFLAGS'
23830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23833
23834         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23835 /* end confdefs.h.  */
23836
23837                 #include <Python.h>
23838 int
23839 main ()
23840 {
23841 Py_Initialize();
23842   ;
23843   return 0;
23844 }
23845
23846 _ACEOF
23847 if ac_fn_c_try_link "$LINENO"; then :
23848   pythonexists=yes
23849 else
23850   pythonexists=no
23851 fi
23852 rm -f core conftest.err conftest.$ac_objext \
23853     conftest$ac_exeext conftest.$ac_ext
23854         ac_ext=c
23855 ac_cpp='$CPP $CPPFLAGS'
23856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23859
23860         # turn back to default flags
23861         CPPFLAGS="$ac_save_CPPFLAGS"
23862         LIBS="$ac_save_LIBS"
23863
23864         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
23865 $as_echo "$pythonexists" >&6; }
23866
23867         if test ! "x$pythonexists" = "xyes"; then
23868            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
23869   Could not link test program to Python. Maybe the main Python library has been
23870   installed in some non-standard library path. If so, pass it to configure,
23871   via the LDFLAGS environment variable.
23872   Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
23873   ============================================================================
23874    You probably have to install the development version of the Python package
23875    for your distribution.  The exact name of this package varies among them.
23876   ============================================================================
23877            " >&5
23878 $as_echo "$as_me: WARNING:
23879   Could not link test program to Python. Maybe the main Python library has been
23880   installed in some non-standard library path. If so, pass it to configure,
23881   via the LDFLAGS environment variable.
23882   Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
23883   ============================================================================
23884    You probably have to install the development version of the Python package
23885    for your distribution.  The exact name of this package varies among them.
23886   ============================================================================
23887            " >&2;}
23888           PYTHON_VERSION=""
23889         fi
23890
23891         #
23892         # all done!
23893         #
23894
23895                 if test "$PYTHON_VERSION"; then
23896                         PYTHONS="$(echo $PYTHONS $PYTHON)"
23897                         PYTHON_VERSIONS="$(echo $PYTHON_VERSIONS $PYTHON_VERSION)"
23898                 fi
23899
23900   fi
23901
23902
23903            unset PYTHON
23904             unset PYTHON_VERSION
23905             unset PYTHON_CPPFLAGS
23906             unset PYTHON_LDFLAGS
23907             unset PYTHON_SITE_PKG
23908             unset PYTHON_EXTRA_LIBS
23909             unset PYTHON_EXTRA_LDFLAGS
23910             unset ac_cv_path_PYTHON
23911             unset am_cv_pathless_PYTHON
23912             unset am_cv_python_version
23913             unset am_cv_python_platform
23914             unset am_cv_python_pythondir
23915             unset am_cv_python_pyexecdir
23916
23917
23918
23919
23920
23921
23922         if test -n "$PYTHON"; then
23923       # If the user set $PYTHON, use it and don't search something else.
23924       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= all" >&5
23925 $as_echo_n "checking whether $PYTHON version is >= all... " >&6; }
23926       prog="import sys
23927 # split strings by '.' and convert to numeric.  Append some zeros
23928 # because we need at least 4 digits for the hex conversion.
23929 # map returns an iterator in Python 3.0 and a list in 2.x
23930 minver = list(map(int, 'all'.split('.'))) + [0, 0, 0]
23931 minverhex = 0
23932 # xrange is not present in Python 3.0 and range returns an iterator
23933 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
23934 sys.exit(sys.hexversion < minverhex)"
23935   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
23936    ($PYTHON -c "$prog") >&5 2>&5
23937    ac_status=$?
23938    echo "$as_me:$LINENO: \$? = $ac_status" >&5
23939    (exit $ac_status); }; then :
23940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23941 $as_echo "yes" >&6; }
23942 else
23943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23944 $as_echo "no" >&6; }
23945                                as_fn_error $? "Python interpreter is too old" "$LINENO" 5
23946 fi
23947       am_display_PYTHON=$PYTHON
23948     else
23949       # Otherwise, try each interpreter until we find one that satisfies
23950       # VERSION.
23951       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= all" >&5
23952 $as_echo_n "checking for a Python interpreter with version >= all... " >&6; }
23953 if ${am_cv_pathless_PYTHON+:} false; then :
23954   $as_echo_n "(cached) " >&6
23955 else
23956
23957         for am_cv_pathless_PYTHON           in pythonall none; do
23958           test "$am_cv_pathless_PYTHON" = none && break
23959           prog="import sys
23960 # split strings by '.' and convert to numeric.  Append some zeros
23961 # because we need at least 4 digits for the hex conversion.
23962 # map returns an iterator in Python 3.0 and a list in 2.x
23963 minver = list(map(int, 'all'.split('.'))) + [0, 0, 0]
23964 minverhex = 0
23965 # xrange is not present in Python 3.0 and range returns an iterator
23966 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
23967 sys.exit(sys.hexversion < minverhex)"
23968   if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
23969    ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
23970    ac_status=$?
23971    echo "$as_me:$LINENO: \$? = $ac_status" >&5
23972    (exit $ac_status); }; then :
23973   break
23974 fi
23975         done
23976 fi
23977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
23978 $as_echo "$am_cv_pathless_PYTHON" >&6; }
23979       # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
23980       if test "$am_cv_pathless_PYTHON" = none; then
23981         PYTHON=:
23982       else
23983         # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
23984 set dummy $am_cv_pathless_PYTHON; ac_word=$2
23985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23986 $as_echo_n "checking for $ac_word... " >&6; }
23987 if ${ac_cv_path_PYTHON+:} false; then :
23988   $as_echo_n "(cached) " >&6
23989 else
23990   case $PYTHON in
23991   [\\/]* | ?:[\\/]*)
23992   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
23993   ;;
23994   *)
23995   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23996 for as_dir in $PATH
23997 do
23998   IFS=$as_save_IFS
23999   test -z "$as_dir" && as_dir=.
24000     for ac_exec_ext in '' $ac_executable_extensions; do
24001   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24002     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
24003     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24004     break 2
24005   fi
24006 done
24007   done
24008 IFS=$as_save_IFS
24009
24010   ;;
24011 esac
24012 fi
24013 PYTHON=$ac_cv_path_PYTHON
24014 if test -n "$PYTHON"; then
24015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
24016 $as_echo "$PYTHON" >&6; }
24017 else
24018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24019 $as_echo "no" >&6; }
24020 fi
24021
24022
24023       fi
24024       am_display_PYTHON=$am_cv_pathless_PYTHON
24025     fi
24026
24027
24028   if test "$PYTHON" = :; then
24029       :
24030   else
24031
24032
24033   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
24034 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
24035 if ${am_cv_python_version+:} false; then :
24036   $as_echo_n "(cached) " >&6
24037 else
24038   am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
24039 fi
24040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
24041 $as_echo "$am_cv_python_version" >&6; }
24042   PYTHON_VERSION=$am_cv_python_version
24043
24044
24045
24046   PYTHON_PREFIX='${prefix}'
24047
24048   PYTHON_EXEC_PREFIX='${exec_prefix}'
24049
24050
24051
24052   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
24053 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
24054 if ${am_cv_python_platform+:} false; then :
24055   $as_echo_n "(cached) " >&6
24056 else
24057   am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
24058 fi
24059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
24060 $as_echo "$am_cv_python_platform" >&6; }
24061   PYTHON_PLATFORM=$am_cv_python_platform
24062
24063
24064   # Just factor out some code duplication.
24065   am_python_setup_sysconfig="\
24066 import sys
24067 # Prefer sysconfig over distutils.sysconfig, for better compatibility
24068 # with python 3.x.  See automake bug#10227.
24069 try:
24070     import sysconfig
24071 except ImportError:
24072     can_use_sysconfig = 0
24073 else:
24074     can_use_sysconfig = 1
24075 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
24076 # <https://github.com/pypa/virtualenv/issues/118>
24077 try:
24078     from platform import python_implementation
24079     if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
24080         can_use_sysconfig = 0
24081 except ImportError:
24082     pass"
24083
24084
24085             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
24086 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
24087 if ${am_cv_python_pythondir+:} false; then :
24088   $as_echo_n "(cached) " >&6
24089 else
24090   if test "x$prefix" = xNONE
24091      then
24092        am_py_prefix=$ac_default_prefix
24093      else
24094        am_py_prefix=$prefix
24095      fi
24096      am_cv_python_pythondir=`$PYTHON -c "
24097 $am_python_setup_sysconfig
24098 if can_use_sysconfig:
24099     sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
24100 else:
24101     from distutils import sysconfig
24102     sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
24103 sys.stdout.write(sitedir)"`
24104      case $am_cv_python_pythondir in
24105      $am_py_prefix*)
24106        am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
24107        am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
24108        ;;
24109      *)
24110        case $am_py_prefix in
24111          /usr|/System*) ;;
24112          *)
24113           am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
24114           ;;
24115        esac
24116        ;;
24117      esac
24118
24119 fi
24120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
24121 $as_echo "$am_cv_python_pythondir" >&6; }
24122   pythondir=$am_cv_python_pythondir
24123
24124
24125
24126   pkgpythondir=\${pythondir}/$PACKAGE
24127
24128
24129         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
24130 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
24131 if ${am_cv_python_pyexecdir+:} false; then :
24132   $as_echo_n "(cached) " >&6
24133 else
24134   if test "x$exec_prefix" = xNONE
24135      then
24136        am_py_exec_prefix=$am_py_prefix
24137      else
24138        am_py_exec_prefix=$exec_prefix
24139      fi
24140      am_cv_python_pyexecdir=`$PYTHON -c "
24141 $am_python_setup_sysconfig
24142 if can_use_sysconfig:
24143     sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
24144 else:
24145     from distutils import sysconfig
24146     sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
24147 sys.stdout.write(sitedir)"`
24148      case $am_cv_python_pyexecdir in
24149      $am_py_exec_prefix*)
24150        am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
24151        am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
24152        ;;
24153      *)
24154        case $am_py_exec_prefix in
24155          /usr|/System*) ;;
24156          *)
24157            am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
24158            ;;
24159        esac
24160        ;;
24161      esac
24162
24163 fi
24164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
24165 $as_echo "$am_cv_python_pyexecdir" >&6; }
24166   pyexecdir=$am_cv_python_pyexecdir
24167
24168
24169
24170   pkgpyexecdir=\${pyexecdir}/$PACKAGE
24171
24172
24173
24174
24175         #
24176         # Allow the use of a (user set) custom python version
24177         #
24178
24179
24180         # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
24181 set dummy python$PYTHON_VERSION; ac_word=$2
24182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24183 $as_echo_n "checking for $ac_word... " >&6; }
24184 if ${ac_cv_path_PYTHON+:} false; then :
24185   $as_echo_n "(cached) " >&6
24186 else
24187   case $PYTHON in
24188   [\\/]* | ?:[\\/]*)
24189   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
24190   ;;
24191   *)
24192   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24193 for as_dir in $PATH
24194 do
24195   IFS=$as_save_IFS
24196   test -z "$as_dir" && as_dir=.
24197     for ac_exec_ext in '' $ac_executable_extensions; do
24198   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24199     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
24200     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24201     break 2
24202   fi
24203 done
24204   done
24205 IFS=$as_save_IFS
24206
24207   ;;
24208 esac
24209 fi
24210 PYTHON=$ac_cv_path_PYTHON
24211 if test -n "$PYTHON"; then
24212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
24213 $as_echo "$PYTHON" >&6; }
24214 else
24215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24216 $as_echo "no" >&6; }
24217 fi
24218
24219
24220         if test -z "$PYTHON"; then
24221            as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
24222            PYTHON_VERSION=""
24223         fi
24224
24225         #
24226         # Check for a version of Python >= 2.1.0
24227         #
24228         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
24229 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
24230         ac_supports_python_ver=`$PYTHON -c "import sys; \
24231                 ver = sys.version.split ()[0]; \
24232                 print (ver >= '2.1.0')"`
24233         if test "$ac_supports_python_ver" != "True"; then
24234                 if test -z "$PYTHON_NOVERSIONCHECK"; then
24235                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24236 $as_echo "no" >&6; }
24237                         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24238 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24239 as_fn_error $? "
24240 This version of the AC_PYTHON_DEVEL macro
24241 doesn't work properly with versions of Python before
24242 2.1.0. You may need to re-run configure, setting the
24243 variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
24244 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
24245 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
24246 to something else than an empty string.
24247
24248 See \`config.log' for more details" "$LINENO" 5; }
24249                 else
24250                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
24251 $as_echo "skip at user request" >&6; }
24252                 fi
24253         else
24254                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24255 $as_echo "yes" >&6; }
24256         fi
24257
24258         #
24259         # if the macro parameter ``version'' is set, honour it
24260         #
24261         if test -n ""; then
24262                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
24263 $as_echo_n "checking for a version of Python ... " >&6; }
24264                 ac_supports_python_ver=`$PYTHON -c "import sys; \
24265                         ver = sys.version.split ()[0]; \
24266                         print (ver )"`
24267                 if test "$ac_supports_python_ver" = "True"; then
24268                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24269 $as_echo "yes" >&6; }
24270                 else
24271                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24272 $as_echo "no" >&6; }
24273                         as_fn_error $? "this package requires Python .
24274 If you have it installed, but it isn't the default Python
24275 interpreter in your system path, please pass the PYTHON_VERSION
24276 variable to configure. See \`\`configure --help'' for reference.
24277 " "$LINENO" 5
24278                         PYTHON_VERSION=""
24279                 fi
24280         fi
24281
24282         #
24283         # Check if you have distutils, else fail
24284         #
24285         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
24286 $as_echo_n "checking for the distutils Python package... " >&6; }
24287         ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
24288         if test -z "$ac_distutils_result"; then
24289                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24290 $as_echo "yes" >&6; }
24291         else
24292                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24293 $as_echo "no" >&6; }
24294                 as_fn_error $? "cannot import Python module \"distutils\".
24295 Please check your Python installation. The error was:
24296 $ac_distutils_result" "$LINENO" 5
24297                 PYTHON_VERSION=""
24298         fi
24299
24300         #
24301         # Check for Python include path
24302         #
24303         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
24304 $as_echo_n "checking for Python include path... " >&6; }
24305         if test -z "$PYTHON_CPPFLAGS"; then
24306                 python_path=`$PYTHON -c "import distutils.sysconfig; \
24307                         print (distutils.sysconfig.get_python_inc ());"`
24308                 plat_python_path=`$PYTHON -c "import distutils.sysconfig; \
24309                         print (distutils.sysconfig.get_python_inc (plat_specific=1));"`
24310                 if test -n "${python_path}"; then
24311                         if test "${plat_python_path}" != "${python_path}"; then
24312                                 python_path="-I$python_path -I$plat_python_path"
24313                         else
24314                                 python_path="-I$python_path"
24315                         fi
24316                 fi
24317                 PYTHON_CPPFLAGS=$python_path
24318         fi
24319         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
24320 $as_echo "$PYTHON_CPPFLAGS" >&6; }
24321
24322
24323         #
24324         # Check for Python library path
24325         #
24326         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
24327 $as_echo_n "checking for Python library path... " >&6; }
24328         if test -z "$PYTHON_LDFLAGS"; then
24329                 # (makes two attempts to ensure we've got a version number
24330                 # from the interpreter)
24331                 ac_python_version=`cat<<EOD | $PYTHON -
24332
24333 # join all versioning strings, on some systems
24334 # major/minor numbers could be in different list elements
24335 from distutils.sysconfig import *
24336 e = get_config_var('VERSION')
24337 if e is not None:
24338         print(e)
24339 EOD`
24340
24341                 if test -z "$ac_python_version"; then
24342                         if test -n "$PYTHON_VERSION"; then
24343                                 ac_python_version=$PYTHON_VERSION
24344                         else
24345                                 ac_python_version=`$PYTHON -c "import sys; \
24346                                         print (sys.version[:3])"`
24347                         fi
24348                 fi
24349
24350                 # Make the versioning information available to the compiler
24351
24352                 # JW: We don't need it and it interferes with the hack
24353                 # to detect multiple Pyhton versions
24354                 #AC_DEFINE_UNQUOTED([HAVE_PYTHON], ["$ac_python_version"],
24355                 #                  [If available, contains the Python version number currently in use.])
24356
24357                 # First, the library directory:
24358                 ac_python_libdir=`cat<<EOD | $PYTHON -
24359
24360 # There should be only one
24361 import distutils.sysconfig
24362 e = distutils.sysconfig.get_config_var('LIBDIR')
24363 if e is not None:
24364         print (e)
24365 EOD`
24366
24367                 # Now, for the library:
24368                 ac_python_library=`cat<<EOD | $PYTHON -
24369
24370 import distutils.sysconfig
24371 c = distutils.sysconfig.get_config_vars()
24372 if 'LDVERSION' in c:
24373         print ('python'+c['LDVERSION'])
24374 else:
24375         print ('python'+c['VERSION'])
24376 EOD`
24377
24378                 # This small piece shamelessly adapted from PostgreSQL python macro;
24379                 # credits goes to momjian, I think. I'd like to put the right name
24380                 # in the credits, if someone can point me in the right direction... ?
24381                 #
24382                 if test -n "$ac_python_libdir" -a -n "$ac_python_library"
24383                 then
24384                         # use the official shared library
24385                         ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
24386                         PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library"
24387                 else
24388                         # old way: use libpython from python_configdir
24389                         ac_python_libdir=`$PYTHON -c \
24390                           "from distutils.sysconfig import get_python_lib as f; \
24391                           import os; \
24392                           print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
24393                         PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version"
24394                 fi
24395
24396                 if test -z "PYTHON_LDFLAGS"; then
24397                         as_fn_error $? "
24398   Cannot determine location of your Python DSO. Please check it was installed with
24399   dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
24400                         " "$LINENO" 5
24401                 fi
24402         fi
24403         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
24404 $as_echo "$PYTHON_LDFLAGS" >&6; }
24405
24406
24407         #
24408         # Check for site packages
24409         #
24410         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
24411 $as_echo_n "checking for Python site-packages path... " >&6; }
24412         if test -z "$PYTHON_SITE_PKG"; then
24413                 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
24414                         print (distutils.sysconfig.get_python_lib(0,0));"`
24415         fi
24416         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
24417 $as_echo "$PYTHON_SITE_PKG" >&6; }
24418
24419
24420         #
24421         # libraries which must be linked in when embedding
24422         #
24423         { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
24424 $as_echo_n "checking python extra libraries... " >&6; }
24425         if test -z "$PYTHON_EXTRA_LIBS"; then
24426            PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
24427                 conf = distutils.sysconfig.get_config_var; \
24428                 print (conf('LIBS') + ' ' + conf('SYSLIBS'))"`
24429         fi
24430         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
24431 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
24432
24433
24434         #
24435         # linking flags needed when embedding
24436         #
24437         { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
24438 $as_echo_n "checking python extra linking flags... " >&6; }
24439         if test -z "$PYTHON_EXTRA_LDFLAGS"; then
24440                 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
24441                         conf = distutils.sysconfig.get_config_var; \
24442                         print (conf('LINKFORSHARED'))"`
24443         fi
24444         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
24445 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
24446
24447
24448         #
24449         # final check to see if everything compiles alright
24450         #
24451         { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
24452 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
24453         # save current global flags
24454         ac_save_LIBS="$LIBS"
24455         ac_save_CPPFLAGS="$CPPFLAGS"
24456         LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
24457         CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
24458         ac_ext=c
24459 ac_cpp='$CPP $CPPFLAGS'
24460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24463
24464         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24465 /* end confdefs.h.  */
24466
24467                 #include <Python.h>
24468 int
24469 main ()
24470 {
24471 Py_Initialize();
24472   ;
24473   return 0;
24474 }
24475
24476 _ACEOF
24477 if ac_fn_c_try_link "$LINENO"; then :
24478   pythonexists=yes
24479 else
24480   pythonexists=no
24481 fi
24482 rm -f core conftest.err conftest.$ac_objext \
24483     conftest$ac_exeext conftest.$ac_ext
24484         ac_ext=c
24485 ac_cpp='$CPP $CPPFLAGS'
24486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24489
24490         # turn back to default flags
24491         CPPFLAGS="$ac_save_CPPFLAGS"
24492         LIBS="$ac_save_LIBS"
24493
24494         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
24495 $as_echo "$pythonexists" >&6; }
24496
24497         if test ! "x$pythonexists" = "xyes"; then
24498            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
24499   Could not link test program to Python. Maybe the main Python library has been
24500   installed in some non-standard library path. If so, pass it to configure,
24501   via the LDFLAGS environment variable.
24502   Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
24503   ============================================================================
24504    You probably have to install the development version of the Python package
24505    for your distribution.  The exact name of this package varies among them.
24506   ============================================================================
24507            " >&5
24508 $as_echo "$as_me: WARNING:
24509   Could not link test program to Python. Maybe the main Python library has been
24510   installed in some non-standard library path. If so, pass it to configure,
24511   via the LDFLAGS environment variable.
24512   Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
24513   ============================================================================
24514    You probably have to install the development version of the Python package
24515    for your distribution.  The exact name of this package varies among them.
24516   ============================================================================
24517            " >&2;}
24518           PYTHON_VERSION=""
24519         fi
24520
24521         #
24522         # all done!
24523         #
24524
24525                 if test "$PYTHON_VERSION"; then
24526                         PYTHONS="$(echo $PYTHONS $PYTHON)"
24527                         PYTHON_VERSIONS="$(echo $PYTHON_VERSIONS $PYTHON_VERSION)"
24528                 fi
24529
24530   fi
24531
24532
24533
24534         fi
24535
24536         # Recover some values lost in the second attempt to find Python.
24537         PYTHON="$(echo $PYTHONS | cut -d ' ' -f 1)"
24538         PYTHON_VERSION="$(echo $PYTHON_VERSIONS | cut -d ' ' -f 1)"
24539
24540         # Remove duplicates.
24541         PYTHONS="$(echo $PYTHONS | tr '[:space:]' '\n' | sort | uniq | tr '\n' ' ' | sed -e 's/ $//')"
24542         PYTHON_VERSIONS="$(echo $PYTHON_VERSIONS | tr '[:space:]' '\n' | sort | uniq | tr '\n' ' ' | sed -e 's/ $//')"
24543
24544         if test "$PYTHON_VERSIONS"; then
24545            enabled_languages_v=$(echo $enabled_languages | sed -Ee "s/python[23]?/python ($PYTHON_VERSIONS)/")
24546            enabled_languages=$(echo $enabled_languages | sed -Ee "s/python[23]?/python/")
24547         else
24548             if test "$explicit_languages" = "1"; then
24549                 as_fn_error $? "
24550 ***
24551 *** Please install the python development packages.
24552 ***" "$LINENO" 5
24553             else
24554                 enabled_languages=$(echo $enabled_languages | sed 's/python//')
24555             fi
24556         fi
24557
24558         PYTHONS=$PYTHONS
24559
24560     fi
24561 fi
24562
24563 ENABLED_LANGUAGES=$enabled_languages
24564
24565
24566 #
24567 # Provide information about the build.
24568 #
24569 BUILD_REVISION="1021c864"
24570
24571
24572 cat >>confdefs.h <<_ACEOF
24573 #define BUILD_REVISION "$BUILD_REVISION"
24574 _ACEOF
24575
24576
24577 BUILD_VERSION=`echo "$PACKAGE_VERSION" | sed 's/\([0-9.]*\).*/\1./'`
24578 BUILD_VERSION="${BUILD_VERSION}4129"
24579 BUILD_FILEVERSION=`echo "${BUILD_VERSION}" | tr . ,`
24580
24581
24582
24583 # Check whether --enable-build-timestamp was given.
24584 if test "${enable_build_timestamp+set}" = set; then :
24585   enableval=$enable_build_timestamp; if test "$enableval" = "yes"; then
24586         BUILD_TIMESTAMP=`date -u +%Y-%m-%dT%H:%M+0000 2>/dev/null || date`
24587       else
24588         BUILD_TIMESTAMP="$enableval"
24589       fi
24590 else
24591   BUILD_TIMESTAMP="<none>"
24592 fi
24593
24594
24595
24596 cat >>confdefs.h <<_ACEOF
24597 #define BUILD_TIMESTAMP "$BUILD_TIMESTAMP"
24598 _ACEOF
24599
24600
24601
24602 #
24603 # Options to disable some regression tests
24604 #
24605 run_gpgconf_test="yes"
24606 # Check whether --enable-gpgconf-test was given.
24607 if test "${enable_gpgconf_test+set}" = set; then :
24608   enableval=$enable_gpgconf_test; run_gpgconf_test=$enableval
24609 fi
24610
24611  if test "$run_gpgconf_test" = "yes"; then
24612   RUN_GPGCONF_TESTS_TRUE=
24613   RUN_GPGCONF_TESTS_FALSE='#'
24614 else
24615   RUN_GPGCONF_TESTS_TRUE='#'
24616   RUN_GPGCONF_TESTS_FALSE=
24617 fi
24618
24619
24620 run_gpg_test="yes"
24621 # Check whether --enable-gpg-test was given.
24622 if test "${enable_gpg_test+set}" = set; then :
24623   enableval=$enable_gpg_test; run_gpg_test=$enableval
24624 fi
24625
24626  if test "$run_gpg_test" = "yes"; then
24627   RUN_GPG_TESTS_TRUE=
24628   RUN_GPG_TESTS_FALSE='#'
24629 else
24630   RUN_GPG_TESTS_TRUE='#'
24631   RUN_GPG_TESTS_FALSE=
24632 fi
24633
24634
24635 run_gpgsm_test="yes"
24636 # Check whether --enable-gpgsm-test was given.
24637 if test "${enable_gpgsm_test+set}" = set; then :
24638   enableval=$enable_gpgsm_test; run_gpgsm_test=$enableval
24639 fi
24640
24641  if test "$run_gpgsm_test" = "yes"; then
24642   RUN_GPGSM_TESTS_TRUE=
24643   RUN_GPGSM_TESTS_FALSE='#'
24644 else
24645   RUN_GPGSM_TESTS_TRUE='#'
24646   RUN_GPGSM_TESTS_FALSE=
24647 fi
24648
24649
24650 run_g13_test="yes"
24651 # Check whether --enable-g13-test was given.
24652 if test "${enable_g13_test+set}" = set; then :
24653   enableval=$enable_g13_test; run_g13_test=$enableval
24654 fi
24655
24656  if test "$run_g13_test" = "yes"; then
24657   RUN_G13_TESTS_TRUE=
24658   RUN_G13_TESTS_FALSE='#'
24659 else
24660   RUN_G13_TESTS_TRUE='#'
24661   RUN_G13_TESTS_FALSE=
24662 fi
24663
24664
24665
24666 # Checks for header files.
24667
24668
24669
24670   for ac_header in $ac_header_list
24671 do :
24672   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24673 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24674 "
24675 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24676   cat >>confdefs.h <<_ACEOF
24677 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24678 _ACEOF
24679
24680 fi
24681
24682 done
24683
24684
24685
24686
24687
24688
24689
24690
24691
24692
24693
24694
24695
24696
24697
24698
24699
24700
24701
24702
24703
24704
24705 # Type checks.
24706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
24707 $as_echo_n "checking for inline... " >&6; }
24708 if ${ac_cv_c_inline+:} false; then :
24709   $as_echo_n "(cached) " >&6
24710 else
24711   ac_cv_c_inline=no
24712 for ac_kw in inline __inline__ __inline; do
24713   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24714 /* end confdefs.h.  */
24715 #ifndef __cplusplus
24716 typedef int foo_t;
24717 static $ac_kw foo_t static_foo () {return 0; }
24718 $ac_kw foo_t foo () {return 0; }
24719 #endif
24720
24721 _ACEOF
24722 if ac_fn_c_try_compile "$LINENO"; then :
24723   ac_cv_c_inline=$ac_kw
24724 fi
24725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24726   test "$ac_cv_c_inline" != no && break
24727 done
24728
24729 fi
24730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
24731 $as_echo "$ac_cv_c_inline" >&6; }
24732
24733 case $ac_cv_c_inline in
24734   inline | yes) ;;
24735   *)
24736     case $ac_cv_c_inline in
24737       no) ac_val=;;
24738       *) ac_val=$ac_cv_c_inline;;
24739     esac
24740     cat >>confdefs.h <<_ACEOF
24741 #ifndef __cplusplus
24742 #define inline $ac_val
24743 #endif
24744 _ACEOF
24745     ;;
24746 esac
24747
24748 # The cast to long int works around a bug in the HP C Compiler
24749 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24750 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24751 # This bug is HP SR number 8606223364.
24752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
24753 $as_echo_n "checking size of unsigned int... " >&6; }
24754 if ${ac_cv_sizeof_unsigned_int+:} false; then :
24755   $as_echo_n "(cached) " >&6
24756 else
24757   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "$ac_includes_default"; then :
24758
24759 else
24760   if test "$ac_cv_type_unsigned_int" = yes; then
24761      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24762 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24763 as_fn_error 77 "cannot compute sizeof (unsigned int)
24764 See \`config.log' for more details" "$LINENO" 5; }
24765    else
24766      ac_cv_sizeof_unsigned_int=0
24767    fi
24768 fi
24769
24770 fi
24771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
24772 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
24773
24774
24775
24776 cat >>confdefs.h <<_ACEOF
24777 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
24778 _ACEOF
24779
24780
24781 # Check whether --enable-largefile was given.
24782 if test "${enable_largefile+set}" = set; then :
24783   enableval=$enable_largefile;
24784 fi
24785
24786 if test "$enable_largefile" != no; then
24787
24788   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
24789 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
24790 if ${ac_cv_sys_largefile_CC+:} false; then :
24791   $as_echo_n "(cached) " >&6
24792 else
24793   ac_cv_sys_largefile_CC=no
24794      if test "$GCC" != yes; then
24795        ac_save_CC=$CC
24796        while :; do
24797          # IRIX 6.2 and later do not support large files by default,
24798          # so use the C compiler's -n32 option if that helps.
24799          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24800 /* end confdefs.h.  */
24801 #include <sys/types.h>
24802  /* Check that off_t can represent 2**63 - 1 correctly.
24803     We can't simply define LARGE_OFF_T to be 9223372036854775807,
24804     since some C++ compilers masquerading as C compilers
24805     incorrectly reject 9223372036854775807.  */
24806 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
24807   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24808                        && LARGE_OFF_T % 2147483647 == 1)
24809                       ? 1 : -1];
24810 int
24811 main ()
24812 {
24813
24814   ;
24815   return 0;
24816 }
24817 _ACEOF
24818          if ac_fn_c_try_compile "$LINENO"; then :
24819   break
24820 fi
24821 rm -f core conftest.err conftest.$ac_objext
24822          CC="$CC -n32"
24823          if ac_fn_c_try_compile "$LINENO"; then :
24824   ac_cv_sys_largefile_CC=' -n32'; break
24825 fi
24826 rm -f core conftest.err conftest.$ac_objext
24827          break
24828        done
24829        CC=$ac_save_CC
24830        rm -f conftest.$ac_ext
24831     fi
24832 fi
24833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
24834 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
24835   if test "$ac_cv_sys_largefile_CC" != no; then
24836     CC=$CC$ac_cv_sys_largefile_CC
24837   fi
24838
24839   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
24840 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
24841 if ${ac_cv_sys_file_offset_bits+:} false; then :
24842   $as_echo_n "(cached) " >&6
24843 else
24844   while :; do
24845   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24846 /* end confdefs.h.  */
24847 #include <sys/types.h>
24848  /* Check that off_t can represent 2**63 - 1 correctly.
24849     We can't simply define LARGE_OFF_T to be 9223372036854775807,
24850     since some C++ compilers masquerading as C compilers
24851     incorrectly reject 9223372036854775807.  */
24852 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
24853   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24854                        && LARGE_OFF_T % 2147483647 == 1)
24855                       ? 1 : -1];
24856 int
24857 main ()
24858 {
24859
24860   ;
24861   return 0;
24862 }
24863 _ACEOF
24864 if ac_fn_c_try_compile "$LINENO"; then :
24865   ac_cv_sys_file_offset_bits=no; break
24866 fi
24867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24868   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24869 /* end confdefs.h.  */
24870 #define _FILE_OFFSET_BITS 64
24871 #include <sys/types.h>
24872  /* Check that off_t can represent 2**63 - 1 correctly.
24873     We can't simply define LARGE_OFF_T to be 9223372036854775807,
24874     since some C++ compilers masquerading as C compilers
24875     incorrectly reject 9223372036854775807.  */
24876 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
24877   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24878                        && LARGE_OFF_T % 2147483647 == 1)
24879                       ? 1 : -1];
24880 int
24881 main ()
24882 {
24883
24884   ;
24885   return 0;
24886 }
24887 _ACEOF
24888 if ac_fn_c_try_compile "$LINENO"; then :
24889   ac_cv_sys_file_offset_bits=64; break
24890 fi
24891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24892   ac_cv_sys_file_offset_bits=unknown
24893   break
24894 done
24895 fi
24896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
24897 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
24898 case $ac_cv_sys_file_offset_bits in #(
24899   no | unknown) ;;
24900   *)
24901 cat >>confdefs.h <<_ACEOF
24902 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24903 _ACEOF
24904 ;;
24905 esac
24906 rm -rf conftest*
24907   if test $ac_cv_sys_file_offset_bits = unknown; then
24908     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
24909 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
24910 if ${ac_cv_sys_large_files+:} false; then :
24911   $as_echo_n "(cached) " >&6
24912 else
24913   while :; do
24914   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24915 /* end confdefs.h.  */
24916 #include <sys/types.h>
24917  /* Check that off_t can represent 2**63 - 1 correctly.
24918     We can't simply define LARGE_OFF_T to be 9223372036854775807,
24919     since some C++ compilers masquerading as C compilers
24920     incorrectly reject 9223372036854775807.  */
24921 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
24922   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24923                        && LARGE_OFF_T % 2147483647 == 1)
24924                       ? 1 : -1];
24925 int
24926 main ()
24927 {
24928
24929   ;
24930   return 0;
24931 }
24932 _ACEOF
24933 if ac_fn_c_try_compile "$LINENO"; then :
24934   ac_cv_sys_large_files=no; break
24935 fi
24936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24937   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24938 /* end confdefs.h.  */
24939 #define _LARGE_FILES 1
24940 #include <sys/types.h>
24941  /* Check that off_t can represent 2**63 - 1 correctly.
24942     We can't simply define LARGE_OFF_T to be 9223372036854775807,
24943     since some C++ compilers masquerading as C compilers
24944     incorrectly reject 9223372036854775807.  */
24945 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
24946   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24947                        && LARGE_OFF_T % 2147483647 == 1)
24948                       ? 1 : -1];
24949 int
24950 main ()
24951 {
24952
24953   ;
24954   return 0;
24955 }
24956 _ACEOF
24957 if ac_fn_c_try_compile "$LINENO"; then :
24958   ac_cv_sys_large_files=1; break
24959 fi
24960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24961   ac_cv_sys_large_files=unknown
24962   break
24963 done
24964 fi
24965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
24966 $as_echo "$ac_cv_sys_large_files" >&6; }
24967 case $ac_cv_sys_large_files in #(
24968   no | unknown) ;;
24969   *)
24970 cat >>confdefs.h <<_ACEOF
24971 #define _LARGE_FILES $ac_cv_sys_large_files
24972 _ACEOF
24973 ;;
24974 esac
24975 rm -rf conftest*
24976   fi
24977
24978
24979 fi
24980
24981 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
24982 if test "x$ac_cv_type_off_t" = xyes; then :
24983
24984 else
24985
24986 cat >>confdefs.h <<_ACEOF
24987 #define off_t long int
24988 _ACEOF
24989
24990 fi
24991
24992
24993   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
24994 if test "x$ac_cv_type_uintptr_t" = xyes; then :
24995
24996 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
24997
24998 else
24999   for ac_type in 'unsigned int' 'unsigned long int' \
25000         'unsigned long long int'; do
25001        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25002 /* end confdefs.h.  */
25003 $ac_includes_default
25004 int
25005 main ()
25006 {
25007 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
25008 test_array [0] = 0;
25009 return test_array [0];
25010
25011   ;
25012   return 0;
25013 }
25014 _ACEOF
25015 if ac_fn_c_try_compile "$LINENO"; then :
25016
25017 cat >>confdefs.h <<_ACEOF
25018 #define uintptr_t $ac_type
25019 _ACEOF
25020
25021           ac_type=
25022 fi
25023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25024        test -z "$ac_type" && break
25025      done
25026 fi
25027
25028
25029
25030 # We require uint64_t
25031 if test "$ac_cv_header_stdint_h" != yes; then
25032    as_fn_error $? "
25033 ***
25034 *** No stdint.h and thus no uint64_t type.  Can't build this library.
25035 ***" "$LINENO" 5
25036 fi
25037
25038
25039 # A simple compile time check in gpgme.h for GNU/Linux systems that
25040 # prevents a file offset bits mismatch between gpgme and the application.
25041 NEED__FILE_OFFSET_BITS=0
25042 if test "$have_w32_system" != yes; then
25043   case "$ac_cv_sys_file_offset_bits" in
25044     "" | no | unknown) ;;
25045     *)
25046     NEED__FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits
25047     ;;
25048   esac
25049 fi
25050
25051
25052 # Figure out platform dependent typedefs for gpgme.h
25053 if test "$have_w32_system" = yes; then
25054     INSERT__TYPEDEFS_FOR_GPGME_H="
25055 #ifdef _WIN64
25056 # include <stdint.h>
25057   typedef int64_t gpgme_off_t;
25058   typedef int64_t gpgme_ssize_t;
25059 #else /* _WIN32 */
25060   typedef long gpgme_off_t;
25061   typedef long gpgme_ssize_t;
25062 #endif /* _WIN32 */"
25063     API__OFF_T="gpgme_off_t"
25064     API__SSIZE_T="gpgme_ssize_t"
25065 else
25066     INSERT__TYPEDEFS_FOR_GPGME_H="
25067 #include <sys/types.h>
25068 typedef off_t   gpgme_off_t;
25069 typedef ssize_t gpgme_ssize_t;"
25070     API__OFF_T="off_t"
25071     API__SSIZE_T="ssize_t"
25072 fi
25073
25074
25075
25076
25077
25078
25079
25080 # Checks for compiler features.
25081 if test "$GCC" = yes; then
25082     CFLAGS="$CFLAGS -Wall -Wcast-align -Wshadow -Wstrict-prototypes"
25083     CFLAGS="$CFLAGS -Wno-format-y2k"
25084
25085     # If -Wno-missing-field-initializers is supported we can expect a
25086     # a larger set of warning options.
25087     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wno-missing-field-initializers" >&5
25088 $as_echo_n "checking if gcc supports -Wno-missing-field-initializers... " >&6; }
25089     _gcc_cflags_save=$CFLAGS
25090     CFLAGS="-Wno-missing-field-initializers"
25091     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25092 /* end confdefs.h.  */
25093
25094 int
25095 main ()
25096 {
25097
25098   ;
25099   return 0;
25100 }
25101 _ACEOF
25102 if ac_fn_c_try_compile "$LINENO"; then :
25103   _gcc_wopt=yes
25104 else
25105   _gcc_wopt=no
25106 fi
25107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25108     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
25109 $as_echo "$_gcc_wopt" >&6; }
25110     CFLAGS=$_gcc_cflags_save;
25111     if test x"$_gcc_wopt" = xyes ; then
25112       CFLAGS="$CFLAGS -Wno-missing-field-initializers"
25113       CFLAGS="$CFLAGS -Wno-sign-compare"
25114       CFLAGS="$CFLAGS -Wno-format-zero-length"
25115       CFLAGS="$CFLAGS -Wno-format-truncation"
25116       CFLAGS="$CFLAGS -Wno-sizeof-pointer-div"
25117     fi
25118     if test "$USE_MAINTAINER_MODE" = "yes"; then
25119         if test x"$_gcc_wopt" = xyes ; then
25120           CFLAGS="$CFLAGS -W -Wextra -Wbad-function-cast"
25121           CFLAGS="$CFLAGS -Wwrite-strings"
25122           CFLAGS="$CFLAGS -Wdeclaration-after-statement"
25123         fi
25124         CFLAGS="$CFLAGS -Wformat -Wformat-security"
25125         CXXFLAGS="$CXXFLAGS -Wall -Wextra -Wno-shadow"
25126
25127         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wpointer-arith" >&5
25128 $as_echo_n "checking if gcc supports -Wpointer-arith... " >&6; }
25129         _gcc_cflags_save=$CFLAGS
25130         CFLAGS="-Wpointer-arith"
25131         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25132 /* end confdefs.h.  */
25133
25134 int
25135 main ()
25136 {
25137
25138   ;
25139   return 0;
25140 }
25141 _ACEOF
25142 if ac_fn_c_try_compile "$LINENO"; then :
25143   _gcc_wopt=yes
25144 else
25145   _gcc_wopt=no
25146 fi
25147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25148         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
25149 $as_echo "$_gcc_wopt" >&6; }
25150         CFLAGS=$_gcc_cflags_save;
25151         if test x"$_gcc_wopt" = xyes ; then
25152           CFLAGS="$CFLAGS -Wpointer-arith"
25153         fi
25154     fi
25155     if test "$have_w32_system" = yes; then
25156        CFLAGS="$CFLAGS -mms-bitfields"
25157     fi
25158 fi
25159
25160 # Only used for debugging, so no serious test needed (for actual
25161 # functionality you have to test libc as well, this only tests the
25162 # compiler).
25163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __thread" >&5
25164 $as_echo_n "checking for __thread... " >&6; }
25165 if ${gpgme_cv_tls_works+:} false; then :
25166   $as_echo_n "(cached) " >&6
25167 else
25168   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25169 /* end confdefs.h.  */
25170 __thread int foo;
25171 int
25172 main ()
25173 {
25174
25175   ;
25176   return 0;
25177 }
25178 _ACEOF
25179 if ac_fn_c_try_compile "$LINENO"; then :
25180   gpgme_cv_tls_works=yes
25181 else
25182   gpgme_cv_tls_works=no
25183 fi
25184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25185 fi
25186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gpgme_cv_tls_works" >&5
25187 $as_echo "$gpgme_cv_tls_works" >&6; }
25188 if test "$gpgme_cv_tls_works" = yes; then
25189
25190 $as_echo "#define HAVE_TLS 1" >>confdefs.h
25191
25192 fi
25193
25194
25195 # Checks for library functions.
25196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraries" >&5
25197 $as_echo "$as_me: checking for libraries" >&6;}
25198
25199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
25200 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
25201 if ${ac_cv_sys_largefile_source+:} false; then :
25202   $as_echo_n "(cached) " >&6
25203 else
25204   while :; do
25205   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25206 /* end confdefs.h.  */
25207 #include <sys/types.h> /* for off_t */
25208      #include <stdio.h>
25209 int
25210 main ()
25211 {
25212 int (*fp) (FILE *, off_t, int) = fseeko;
25213      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
25214   ;
25215   return 0;
25216 }
25217 _ACEOF
25218 if ac_fn_c_try_link "$LINENO"; then :
25219   ac_cv_sys_largefile_source=no; break
25220 fi
25221 rm -f core conftest.err conftest.$ac_objext \
25222     conftest$ac_exeext conftest.$ac_ext
25223   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25224 /* end confdefs.h.  */
25225 #define _LARGEFILE_SOURCE 1
25226 #include <sys/types.h> /* for off_t */
25227      #include <stdio.h>
25228 int
25229 main ()
25230 {
25231 int (*fp) (FILE *, off_t, int) = fseeko;
25232      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
25233   ;
25234   return 0;
25235 }
25236 _ACEOF
25237 if ac_fn_c_try_link "$LINENO"; then :
25238   ac_cv_sys_largefile_source=1; break
25239 fi
25240 rm -f core conftest.err conftest.$ac_objext \
25241     conftest$ac_exeext conftest.$ac_ext
25242   ac_cv_sys_largefile_source=unknown
25243   break
25244 done
25245 fi
25246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
25247 $as_echo "$ac_cv_sys_largefile_source" >&6; }
25248 case $ac_cv_sys_largefile_source in #(
25249   no | unknown) ;;
25250   *)
25251 cat >>confdefs.h <<_ACEOF
25252 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
25253 _ACEOF
25254 ;;
25255 esac
25256 rm -rf conftest*
25257
25258 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
25259 # in glibc 2.1.3, but that breaks too many other things.
25260 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
25261 if test $ac_cv_sys_largefile_source != unknown; then
25262
25263 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
25264
25265 fi
25266
25267
25268 # Try to find a thread-safe version of ttyname().
25269 ac_fn_c_check_decl "$LINENO" "ttyname_r" "ac_cv_have_decl_ttyname_r" "$ac_includes_default"
25270 if test "x$ac_cv_have_decl_ttyname_r" = xyes; then :
25271   ac_have_decl=1
25272 else
25273   ac_have_decl=0
25274 fi
25275
25276 cat >>confdefs.h <<_ACEOF
25277 #define HAVE_DECL_TTYNAME_R $ac_have_decl
25278 _ACEOF
25279
25280
25281   for ac_header in unistd.h
25282 do :
25283   ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
25284 if test "x$ac_cv_header_unistd_h" = xyes; then :
25285   cat >>confdefs.h <<_ACEOF
25286 #define HAVE_UNISTD_H 1
25287 _ACEOF
25288
25289 fi
25290
25291 done
25292
25293
25294
25295   if test $ac_cv_have_decl_ttyname_r = no; then
25296     HAVE_DECL_TTYNAME_R=0
25297   fi
25298
25299   for ac_func in ttyname_r
25300 do :
25301   ac_fn_c_check_func "$LINENO" "ttyname_r" "ac_cv_func_ttyname_r"
25302 if test "x$ac_cv_func_ttyname_r" = xyes; then :
25303   cat >>confdefs.h <<_ACEOF
25304 #define HAVE_TTYNAME_R 1
25305 _ACEOF
25306
25307 fi
25308 done
25309
25310   if test $ac_cv_func_ttyname_r = no; then
25311     HAVE_TTYNAME_R=0
25312     case " $LIBOBJS " in
25313   *" ttyname_r.$ac_objext "* ) ;;
25314   *) LIBOBJS="$LIBOBJS ttyname_r.$ac_objext"
25315  ;;
25316 esac
25317
25318
25319 $as_echo "#define REPLACE_TTYNAME_R 1" >>confdefs.h
25320
25321   else
25322     HAVE_TTYNAME_R=1
25323             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ttyname_r is compatible with its POSIX signature" >&5
25324 $as_echo_n "checking whether ttyname_r is compatible with its POSIX signature... " >&6; }
25325 if ${gnupg_cv_func_ttyname_r_posix+:} false; then :
25326   $as_echo_n "(cached) " >&6
25327 else
25328   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25329 /* end confdefs.h.  */
25330 #include <stddef.h>
25331               #include <unistd.h>
25332 int
25333 main ()
25334 {
25335 *ttyname_r (0, NULL, 0);
25336   ;
25337   return 0;
25338 }
25339
25340 _ACEOF
25341 if ac_fn_c_try_compile "$LINENO"; then :
25342   gnupg_cv_func_ttyname_r_posix=no
25343 else
25344   gnupg_cv_func_ttyname_r_posix=yes
25345 fi
25346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25347
25348 fi
25349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ttyname_r_posix" >&5
25350 $as_echo "$gnupg_cv_func_ttyname_r_posix" >&6; }
25351     if test $gnupg_cv_func_ttyname_r_posix = no; then
25352       case " $LIBOBJS " in
25353   *" ttyname_r.$ac_objext "* ) ;;
25354   *) LIBOBJS="$LIBOBJS ttyname_r.$ac_objext"
25355  ;;
25356 esac
25357
25358       $as_echo "#define REPLACE_TTYNAME_R 1" >>confdefs.h
25359
25360     elif test "$have_android_system" = yes; then
25361       # Android has ttyname and ttyname_r but they are only stubs and
25362       # print an annoying warning message.  Thus we need to replace
25363       # ttyname_r with our own dummy function.
25364       case " $LIBOBJS " in
25365   *" ttyname_r.$ac_objext "* ) ;;
25366   *) LIBOBJS="$LIBOBJS ttyname_r.$ac_objext"
25367  ;;
25368 esac
25369
25370       $as_echo "#define REPLACE_TTYNAME_R 1" >>confdefs.h
25371
25372     else
25373
25374 $as_echo "#define HAVE_POSIXDECL_TTYNAME_R 1" >>confdefs.h
25375
25376
25377       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ttyname_r works with small buffers" >&5
25378 $as_echo_n "checking whether ttyname_r works with small buffers... " >&6; }
25379 if ${gnupg_cv_func_ttyname_r_works+:} false; then :
25380   $as_echo_n "(cached) " >&6
25381 else
25382
25383                               case "$host_os" in
25384                       # Guess no on Solaris.
25385             solaris*) gnupg_cv_func_ttyname_r_works="guessing no" ;;
25386                       # Guess no on OSF/1.
25387             osf*)     gnupg_cv_func_ttyname_r_works="guessing no" ;;
25388                       # Guess yes otherwise.
25389             *)        gnupg_cv_func_ttyname_r_works="guessing yes" ;;
25390           esac
25391           if test "$cross_compiling" = yes; then :
25392   :
25393 else
25394   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25395 /* end confdefs.h.  */
25396
25397 #include <fcntl.h>
25398 #include <unistd.h>
25399 int
25400 main (void)
25401 {
25402   int result = 0;
25403   int fd;
25404   char buf[31]; /* use any size < 128 here */
25405
25406   fd = open ("/dev/tty", O_RDONLY);
25407   if (fd < 0)
25408     result |= 16;
25409   else if (ttyname_r (fd, buf, sizeof (buf)) != 0)
25410     result |= 17;
25411   else if (ttyname_r (fd, buf, 1) == 0)
25412     result |= 18;
25413   return result;
25414 }
25415 _ACEOF
25416 if ac_fn_c_try_run "$LINENO"; then :
25417   gnupg_cv_func_ttyname_r_works=yes
25418 else
25419   case $? in
25420                17 | 18) gnupg_cv_func_ttyname_r_works=no ;;
25421              esac
25422 fi
25423 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25424   conftest.$ac_objext conftest.beam conftest.$ac_ext
25425 fi
25426
25427
25428 fi
25429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ttyname_r_works" >&5
25430 $as_echo "$gnupg_cv_func_ttyname_r_works" >&6; }
25431       case "$gnupg_cv_func_ttyname_r_works" in
25432         *yes) ;;
25433         *) case " $LIBOBJS " in
25434   *" ttyname_r.$ac_objext "* ) ;;
25435   *) LIBOBJS="$LIBOBJS ttyname_r.$ac_objext"
25436  ;;
25437 esac
25438
25439            $as_echo "#define REPLACE_TTYNAME_R 1" >>confdefs.h
25440
25441
25442 $as_echo "#define HAVE_BROKEN_TTYNAME_R 1" >>confdefs.h
25443
25444            ;;
25445       esac
25446     fi
25447   fi
25448
25449 if test "$ac_cv_func_ttyname_r" != yes; then
25450   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
25451 ***
25452 *** ttyname() is not thread-safe and ttyname_r() does not exist
25453 ***" >&5
25454 $as_echo "$as_me: WARNING:
25455 ***
25456 *** ttyname() is not thread-safe and ttyname_r() does not exist
25457 ***" >&2;}
25458 fi
25459
25460 # Try to find a thread-safe version of getenv().
25461 have_thread_safe_getenv=no
25462
25463     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
25464 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
25465 if ${ac_cv_gnu_library_2_1+:} false; then :
25466   $as_echo_n "(cached) " >&6
25467 else
25468   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25469 /* end confdefs.h.  */
25470
25471 #include <features.h>
25472 #ifdef __GNU_LIBRARY__
25473  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
25474   Lucky GNU user
25475  #endif
25476 #endif
25477
25478 _ACEOF
25479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25480   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
25481   ac_cv_gnu_library_2_1=yes
25482 else
25483   ac_cv_gnu_library_2_1=no
25484 fi
25485 rm -f conftest*
25486
25487
25488
25489 fi
25490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
25491 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
25492
25493     GLIBC21="$ac_cv_gnu_library_2_1"
25494
25495
25496 if test $GLIBC21 = yes -o $have_w32_system = yes; then
25497   have_thread_safe_getenv=yes
25498 fi
25499 if test $have_thread_safe_getenv = yes; then
25500
25501 $as_echo "#define HAVE_THREAD_SAFE_GETENV 1" >>confdefs.h
25502
25503 fi
25504 have_getenv_r=no
25505 for ac_func in getenv_r
25506 do :
25507   ac_fn_c_check_func "$LINENO" "getenv_r" "ac_cv_func_getenv_r"
25508 if test "x$ac_cv_func_getenv_r" = xyes; then :
25509   cat >>confdefs.h <<_ACEOF
25510 #define HAVE_GETENV_R 1
25511 _ACEOF
25512  have_getenv_r=yes
25513 fi
25514 done
25515
25516 if test $have_getenv_r = no && test $have_thread_safe_getenv = no; then
25517   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
25518 ***
25519 *** getenv() is not thread-safe and getenv_r() does not exist
25520 ***" >&5
25521 $as_echo "$as_me: WARNING:
25522 ***
25523 *** getenv() is not thread-safe and getenv_r() does not exist
25524 ***" >&2;}
25525 fi
25526
25527 # For converting time strings to seconds since Epoch, we need the timegm
25528 # function.
25529 for ac_func in timegm
25530 do :
25531   ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
25532 if test "x$ac_cv_func_timegm" = xyes; then :
25533   cat >>confdefs.h <<_ACEOF
25534 #define HAVE_TIMEGM 1
25535 _ACEOF
25536
25537 fi
25538 done
25539
25540 if test "$ac_cv_func_timegm" != yes; then
25541   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
25542 ***
25543 *** timegm() not available - a non-thread-safe kludge will be used
25544 *** and the TZ variable might be changed at runtime.
25545 ***" >&5
25546 $as_echo "$as_me: 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 ***" >&2;}
25551 fi
25552
25553 for ac_func in setlocale
25554 do :
25555   ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
25556 if test "x$ac_cv_func_setlocale" = xyes; then :
25557   cat >>confdefs.h <<_ACEOF
25558 #define HAVE_SETLOCALE 1
25559 _ACEOF
25560
25561 fi
25562 done
25563
25564
25565 # Checking for libgpg-error.
25566 have_gpg_error=no
25567
25568   gpg_error_config_prefix=""
25569
25570 # Check whether --with-libgpg-error-prefix was given.
25571 if test "${with_libgpg_error_prefix+set}" = set; then :
25572   withval=$with_libgpg_error_prefix; gpg_error_config_prefix="$withval"
25573 fi
25574
25575
25576
25577 # Check whether --with-gpg-error-prefix was given.
25578 if test "${with_gpg_error_prefix+set}" = set; then :
25579   withval=$with_gpg_error_prefix; gpg_error_config_prefix="$withval"
25580 fi
25581
25582
25583   if test x"${GPG_ERROR_CONFIG}" = x ; then
25584      if test x"${gpg_error_config_prefix}" != x ; then
25585         GPG_ERROR_CONFIG="${gpg_error_config_prefix}/bin/gpg-error-config"
25586      else
25587        case "${SYSROOT}" in
25588          /*)
25589            if test -x "${SYSROOT}/bin/gpg-error-config" ; then
25590              GPG_ERROR_CONFIG="${SYSROOT}/bin/gpg-error-config"
25591            fi
25592            ;;
25593          '')
25594            ;;
25595           *)
25596            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
25597 $as_echo "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
25598            ;;
25599        esac
25600      fi
25601   fi
25602
25603   # Extract the first word of "gpg-error-config", so it can be a program name with args.
25604 set dummy gpg-error-config; ac_word=$2
25605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25606 $as_echo_n "checking for $ac_word... " >&6; }
25607 if ${ac_cv_path_GPG_ERROR_CONFIG+:} false; then :
25608   $as_echo_n "(cached) " >&6
25609 else
25610   case $GPG_ERROR_CONFIG in
25611   [\\/]* | ?:[\\/]*)
25612   ac_cv_path_GPG_ERROR_CONFIG="$GPG_ERROR_CONFIG" # Let the user override the test with a path.
25613   ;;
25614   *)
25615   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25616 for as_dir in $PATH
25617 do
25618   IFS=$as_save_IFS
25619   test -z "$as_dir" && as_dir=.
25620     for ac_exec_ext in '' $ac_executable_extensions; do
25621   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25622     ac_cv_path_GPG_ERROR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25623     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25624     break 2
25625   fi
25626 done
25627   done
25628 IFS=$as_save_IFS
25629
25630   test -z "$ac_cv_path_GPG_ERROR_CONFIG" && ac_cv_path_GPG_ERROR_CONFIG="no"
25631   ;;
25632 esac
25633 fi
25634 GPG_ERROR_CONFIG=$ac_cv_path_GPG_ERROR_CONFIG
25635 if test -n "$GPG_ERROR_CONFIG"; then
25636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPG_ERROR_CONFIG" >&5
25637 $as_echo "$GPG_ERROR_CONFIG" >&6; }
25638 else
25639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25640 $as_echo "no" >&6; }
25641 fi
25642
25643
25644   min_gpg_error_version="$NEED_GPG_ERROR_VERSION"
25645   ok=no
25646
25647   # Extract the first word of "gpgrt-config", so it can be a program name with args.
25648 set dummy gpgrt-config; ac_word=$2
25649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25650 $as_echo_n "checking for $ac_word... " >&6; }
25651 if ${ac_cv_path_GPGRT_CONFIG+:} false; then :
25652   $as_echo_n "(cached) " >&6
25653 else
25654   case $GPGRT_CONFIG in
25655   [\\/]* | ?:[\\/]*)
25656   ac_cv_path_GPGRT_CONFIG="$GPGRT_CONFIG" # Let the user override the test with a path.
25657   ;;
25658   *)
25659   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25660 as_dummy="$prefix/bin:$PATH"
25661 for as_dir in $as_dummy
25662 do
25663   IFS=$as_save_IFS
25664   test -z "$as_dir" && as_dir=.
25665     for ac_exec_ext in '' $ac_executable_extensions; do
25666   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25667     ac_cv_path_GPGRT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25668     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25669     break 2
25670   fi
25671 done
25672   done
25673 IFS=$as_save_IFS
25674
25675   test -z "$ac_cv_path_GPGRT_CONFIG" && ac_cv_path_GPGRT_CONFIG="no"
25676   ;;
25677 esac
25678 fi
25679 GPGRT_CONFIG=$ac_cv_path_GPGRT_CONFIG
25680 if test -n "$GPGRT_CONFIG"; then
25681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPGRT_CONFIG" >&5
25682 $as_echo "$GPGRT_CONFIG" >&6; }
25683 else
25684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25685 $as_echo "no" >&6; }
25686 fi
25687
25688
25689   if test "$GPGRT_CONFIG" != "no"; then
25690     # Determine gpgrt_libdir
25691     #
25692     # Get the prefix of gpgrt-config assuming it's something like:
25693     #   <PREFIX>/bin/gpgrt-config
25694     gpgrt_prefix=${GPGRT_CONFIG%/*/*}
25695     possible_libdir1=${gpgrt_prefix}/lib
25696     # Determine by using system libdir-format with CC, it's like:
25697     #   Normal style: /usr/lib
25698     #   GNU cross style: /usr/<triplet>/lib
25699     #   Debian style: /usr/lib/<multiarch-name>
25700     #   Fedora/openSUSE style: /usr/lib, /usr/lib32 or /usr/lib64
25701     # It is assumed that CC is specified to the one of host on cross build.
25702     if libdir_candidates=$(${CC:-cc} -print-search-dirs | \
25703           sed -n -e "/^libraries/{s/libraries: =//;s/:/\\
25704 /g;p;}"); then
25705       # From the output of -print-search-dirs, select valid pkgconfig dirs.
25706       libdir_candidates=$(for dir in $libdir_candidates; do
25707         if p=$(cd $dir 2>/dev/null && pwd); then
25708           test -d "$p/pkgconfig" && echo $p;
25709         fi
25710       done)
25711
25712       for possible_libdir0 in $libdir_candidates; do
25713         # possible_libdir0:
25714         #   Fallback candidate, the one of system-installed (by $CC)
25715         #   (/usr/<triplet>/lib, /usr/lib/<multiarch-name> or /usr/lib32)
25716         # possible_libdir1:
25717         #   Another candidate, user-locally-installed
25718         #   (<gpgrt_prefix>/lib)
25719         # possible_libdir2
25720         #   Most preferred
25721         #   (<gpgrt_prefix>/<triplet>/lib,
25722         #    <gpgrt_prefix>/lib/<multiarch-name> or <gpgrt_prefix>/lib32)
25723         if test "${possible_libdir0##*/}" = "lib"; then
25724           possible_prefix0=${possible_libdir0%/lib}
25725           possible_prefix0_triplet=${possible_prefix0##*/}
25726           if test -z "$possible_prefix0_triplet"; then
25727             continue
25728           fi
25729           possible_libdir2=${gpgrt_prefix}/$possible_prefix0_triplet/lib
25730         else
25731           possible_prefix0=${possible_libdir0%%/lib*}
25732           possible_libdir2=${gpgrt_prefix}${possible_libdir0#$possible_prefix0}
25733         fi
25734         if test -f ${possible_libdir2}/pkgconfig/gpg-error.pc; then
25735           gpgrt_libdir=${possible_libdir2}
25736         elif test -f ${possible_libdir1}/pkgconfig/gpg-error.pc; then
25737           gpgrt_libdir=${possible_libdir1}
25738         elif test -f ${possible_libdir0}/pkgconfig/gpg-error.pc; then
25739           gpgrt_libdir=${possible_libdir0}
25740         fi
25741         if test -n "$gpgrt_libdir"; then break; fi
25742       done
25743     else
25744       # When we cannot determine system libdir-format, use this:
25745       gpgrt_libdir=${possible_libdir1}
25746     fi
25747   else
25748     unset GPGRT_CONFIG
25749   fi
25750
25751   if test -n "$gpgrt_libdir"; then
25752     GPGRT_CONFIG="$GPGRT_CONFIG --libdir=$gpgrt_libdir"
25753     if $GPGRT_CONFIG gpg-error >/dev/null 2>&1; then
25754       GPG_ERROR_CONFIG="$GPGRT_CONFIG gpg-error"
25755       { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config with $gpgrt_libdir as gpg-error-config" >&5
25756 $as_echo "$as_me: Use gpgrt-config with $gpgrt_libdir as gpg-error-config" >&6;}
25757       gpg_error_config_version=`$GPG_ERROR_CONFIG --modversion`
25758     else
25759       unset GPGRT_CONFIG
25760     fi
25761   elif test "$GPG_ERROR_CONFIG" != "no"; then
25762     gpg_error_config_version=`$GPG_ERROR_CONFIG --version`
25763   fi
25764   if test "$GPG_ERROR_CONFIG" != "no"; then
25765     req_major=`echo $min_gpg_error_version | \
25766                sed 's/\([0-9]*\)\.\([0-9]*\)/\1/'`
25767     req_minor=`echo $min_gpg_error_version | \
25768                sed 's/\([0-9]*\)\.\([0-9]*\)/\2/'`
25769     major=`echo $gpg_error_config_version | \
25770                sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
25771     minor=`echo $gpg_error_config_version | \
25772                sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
25773     if test "$major" -gt "$req_major"; then
25774         ok=yes
25775     else
25776         if test "$major" -eq "$req_major"; then
25777             if test "$minor" -ge "$req_minor"; then
25778                ok=yes
25779             fi
25780         fi
25781     fi
25782   fi
25783   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPG Error - version >= $min_gpg_error_version" >&5
25784 $as_echo_n "checking for GPG Error - version >= $min_gpg_error_version... " >&6; }
25785   if test $ok = yes; then
25786     GPG_ERROR_CFLAGS=`$GPG_ERROR_CONFIG --cflags`
25787     GPG_ERROR_LIBS=`$GPG_ERROR_CONFIG --libs`
25788     if test -z "$GPGRT_CONFIG"; then
25789       GPG_ERROR_MT_CFLAGS=`$GPG_ERROR_CONFIG --mt --cflags 2>/dev/null`
25790       GPG_ERROR_MT_LIBS=`$GPG_ERROR_CONFIG --mt --libs 2>/dev/null`
25791     else
25792       GPG_ERROR_MT_CFLAGS=`$GPG_ERROR_CONFIG --variable=mtcflags 2>/dev/null`
25793       GPG_ERROR_MT_CFLAGS="$GPG_ERROR_CFLAGS${GPG_ERROR_CFLAGS:+ }$GPG_ERROR_MT_CFLAGS"
25794       GPG_ERROR_MT_LIBS=`$GPG_ERROR_CONFIG --variable=mtlibs 2>/dev/null`
25795       GPG_ERROR_MT_LIBS="$GPG_ERROR_LIBS${GPG_ERROR_LIBS:+ }$GPG_ERROR_MT_LIBS"
25796     fi
25797     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($gpg_error_config_version)" >&5
25798 $as_echo "yes ($gpg_error_config_version)" >&6; }
25799     have_gpg_error=yes
25800     if test -z "$GPGRT_CONFIG"; then
25801       gpg_error_config_host=`$GPG_ERROR_CONFIG --host 2>/dev/null || echo none`
25802     else
25803       gpg_error_config_host=`$GPG_ERROR_CONFIG --variable=host 2>/dev/null || echo none`
25804     fi
25805     if test x"$gpg_error_config_host" != xnone ; then
25806       if test x"$gpg_error_config_host" != x"$host" ; then
25807   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
25808 ***
25809 *** The config script \"$GPG_ERROR_CONFIG\" was
25810 *** built for $gpg_error_config_host and thus may not match the
25811 *** used host $host.
25812 *** You may want to use the configure option --with-libgpg-error-prefix
25813 *** to specify a matching config script or use \$SYSROOT.
25814 ***" >&5
25815 $as_echo "$as_me: WARNING:
25816 ***
25817 *** The config script \"$GPG_ERROR_CONFIG\" was
25818 *** built for $gpg_error_config_host and thus may not match the
25819 *** used host $host.
25820 *** You may want to use the configure option --with-libgpg-error-prefix
25821 *** to specify a matching config script or use \$SYSROOT.
25822 ***" >&2;}
25823         gpg_config_script_warn="$gpg_config_script_warn libgpg-error"
25824       fi
25825     fi
25826   else
25827     GPG_ERROR_CFLAGS=""
25828     GPG_ERROR_LIBS=""
25829     GPG_ERROR_MT_CFLAGS=""
25830     GPG_ERROR_MT_LIBS=""
25831     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25832 $as_echo "no" >&6; }
25833     have_gpg_error=no
25834   fi
25835
25836
25837
25838
25839
25840
25841 $as_echo "#define GPG_ERR_SOURCE_DEFAULT GPG_ERR_SOURCE_GPGME" >>confdefs.h
25842
25843
25844 # And for libassuan.
25845 have_libassuan=no
25846
25847
25848 # Check whether --with-libassuan-prefix was given.
25849 if test "${with_libassuan_prefix+set}" = set; then :
25850   withval=$with_libassuan_prefix; libassuan_config_prefix="$withval"
25851 else
25852   libassuan_config_prefix=""
25853 fi
25854
25855   if test x$libassuan_config_prefix != x ; then
25856     if test x${LIBASSUAN_CONFIG+set} != xset ; then
25857       LIBASSUAN_CONFIG=$libassuan_config_prefix/bin/libassuan-config
25858     fi
25859   fi
25860
25861   use_gpgrt_config=""
25862   if test x"${LIBASSUAN_CONFIG}" = x -a x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
25863     if $GPGRT_CONFIG libassuan --exists; then
25864       LIBASSUAN_CONFIG="$GPGRT_CONFIG libassuan"
25865       { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config as libassuan-config" >&5
25866 $as_echo "$as_me: Use gpgrt-config as libassuan-config" >&6;}
25867       use_gpgrt_config=yes
25868     fi
25869   fi
25870   if test -z "$use_gpgrt_config"; then
25871     # Extract the first word of "libassuan-config", so it can be a program name with args.
25872 set dummy libassuan-config; ac_word=$2
25873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25874 $as_echo_n "checking for $ac_word... " >&6; }
25875 if ${ac_cv_path_LIBASSUAN_CONFIG+:} false; then :
25876   $as_echo_n "(cached) " >&6
25877 else
25878   case $LIBASSUAN_CONFIG in
25879   [\\/]* | ?:[\\/]*)
25880   ac_cv_path_LIBASSUAN_CONFIG="$LIBASSUAN_CONFIG" # Let the user override the test with a path.
25881   ;;
25882   *)
25883   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25884 for as_dir in $PATH
25885 do
25886   IFS=$as_save_IFS
25887   test -z "$as_dir" && as_dir=.
25888     for ac_exec_ext in '' $ac_executable_extensions; do
25889   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25890     ac_cv_path_LIBASSUAN_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25891     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25892     break 2
25893   fi
25894 done
25895   done
25896 IFS=$as_save_IFS
25897
25898   test -z "$ac_cv_path_LIBASSUAN_CONFIG" && ac_cv_path_LIBASSUAN_CONFIG="no"
25899   ;;
25900 esac
25901 fi
25902 LIBASSUAN_CONFIG=$ac_cv_path_LIBASSUAN_CONFIG
25903 if test -n "$LIBASSUAN_CONFIG"; then
25904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBASSUAN_CONFIG" >&5
25905 $as_echo "$LIBASSUAN_CONFIG" >&6; }
25906 else
25907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25908 $as_echo "no" >&6; }
25909 fi
25910
25911
25912   fi
25913
25914   tmp="$NEED_LIBASSUAN_API:$NEED_LIBASSUAN_VERSION"
25915   if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
25916     req_libassuan_api=`echo "$tmp"     | sed 's/\(.*\):\(.*\)/\1/'`
25917     min_libassuan_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
25918   else
25919     req_libassuan_api=0
25920     min_libassuan_version="$tmp"
25921   fi
25922
25923   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBASSUAN - version >= $min_libassuan_version" >&5
25924 $as_echo_n "checking for LIBASSUAN - version >= $min_libassuan_version... " >&6; }
25925   ok=no
25926   if test "$LIBASSUAN_CONFIG" != "no"; then
25927     req_major=`echo $min_libassuan_version | \
25928                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
25929     req_minor=`echo $min_libassuan_version | \
25930                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
25931     req_micro=`echo $min_libassuan_version | \
25932                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
25933
25934     if test -z "$use_gpgrt_config"; then
25935       libassuan_config_version=`$LIBASSUAN_CONFIG --version`
25936     else
25937       libassuan_config_version=`$LIBASSUAN_CONFIG --modversion`
25938     fi
25939     major=`echo $libassuan_config_version | \
25940                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
25941     minor=`echo $libassuan_config_version | \
25942                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
25943     micro=`echo $libassuan_config_version | \
25944                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
25945
25946     if test "$major" -gt "$req_major"; then
25947         ok=yes
25948     else
25949         if test "$major" -eq "$req_major"; then
25950             if test "$minor" -gt "$req_minor"; then
25951                ok=yes
25952             else
25953                if test "$minor" -eq "$req_minor"; then
25954                    if test "$micro" -ge "$req_micro"; then
25955                      ok=yes
25956                    fi
25957                fi
25958             fi
25959         fi
25960     fi
25961   fi
25962
25963   if test $ok = yes; then
25964     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libassuan_config_version)" >&5
25965 $as_echo "yes ($libassuan_config_version)" >&6; }
25966   else
25967     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25968 $as_echo "no" >&6; }
25969   fi
25970
25971   if test $ok = yes; then
25972     if test "$req_libassuan_api" -gt 0 ; then
25973       if test -z "$use_gpgrt_config"; then
25974         tmp=`$LIBASSUAN_CONFIG --api-version 2>/dev/null || echo 0`
25975       else
25976         tmp=`$LIBASSUAN_CONFIG --variable=api_version 2>/dev/null || echo 0`
25977       fi
25978       if test "$tmp" -gt 0 ; then
25979         { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBASSUAN API version" >&5
25980 $as_echo_n "checking LIBASSUAN API version... " >&6; }
25981         if test "$req_libassuan_api" -eq "$tmp" ; then
25982           { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
25983 $as_echo "okay" >&6; }
25984         else
25985           ok=no
25986           { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match.  want=$req_libassuan_api got=$tmp." >&5
25987 $as_echo "does not match.  want=$req_libassuan_api got=$tmp." >&6; }
25988         fi
25989       fi
25990     fi
25991   fi
25992
25993   if test $ok = yes; then
25994     if test x"$host" != x ; then
25995       if test -z "$use_gpgrt_config"; then
25996         libassuan_config_host=`$LIBASSUAN_CONFIG --host 2>/dev/null || echo none`
25997       else
25998         libassuan_config_host=`$LIBASSUAN_CONFIG --variable=host 2>/dev/null || echo none`
25999       fi
26000       if test x"$libassuan_config_host" != xnone ; then
26001         if test x"$libassuan_config_host" != x"$host" ; then
26002   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
26003 ***
26004 *** The config script \"$LIBASSUAN_CONFIG\" was
26005 *** built for $libassuan_config_host and thus may not match the
26006 *** used host $host.
26007 *** You may want to use the configure option --with-libassuan-prefix
26008 *** to specify a matching config script.
26009 ***" >&5
26010 $as_echo "$as_me: WARNING:
26011 ***
26012 *** The config script \"$LIBASSUAN_CONFIG\" was
26013 *** built for $libassuan_config_host and thus may not match the
26014 *** used host $host.
26015 *** You may want to use the configure option --with-libassuan-prefix
26016 *** to specify a matching config script.
26017 ***" >&2;}
26018         fi
26019       fi
26020     fi
26021   fi
26022
26023   if test $ok = yes; then
26024     LIBASSUAN_CFLAGS=`$LIBASSUAN_CONFIG --cflags`
26025     LIBASSUAN_LIBS=`$LIBASSUAN_CONFIG --libs`
26026     have_libassuan=yes
26027   else
26028     LIBASSUAN_CFLAGS=""
26029     LIBASSUAN_LIBS=""
26030     have_libassuan=no
26031   fi
26032
26033
26034
26035 if test "$have_libassuan" = "yes"; then
26036
26037 cat >>confdefs.h <<_ACEOF
26038 #define GPGME_LIBASSUAN_VERSION "$libassuan_version"
26039 _ACEOF
26040
26041 fi
26042
26043
26044 #
26045 # Other checks
26046 #
26047
26048 # Check for getgid etc
26049 for ac_func in getgid getegid closefrom
26050 do :
26051   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26052 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26053 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26054   cat >>confdefs.h <<_ACEOF
26055 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26056 _ACEOF
26057
26058 fi
26059 done
26060
26061
26062
26063 # Replacement functions.
26064 ac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy"
26065 if test "x$ac_cv_func_stpcpy" = xyes; then :
26066   $as_echo "#define HAVE_STPCPY 1" >>confdefs.h
26067
26068 else
26069   case " $LIBOBJS " in
26070   *" stpcpy.$ac_objext "* ) ;;
26071   *) LIBOBJS="$LIBOBJS stpcpy.$ac_objext"
26072  ;;
26073 esac
26074
26075 fi
26076
26077
26078 ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
26079 if test "x$ac_cv_func_setenv" = xyes; then :
26080   $as_echo "#define HAVE_SETENV 1" >>confdefs.h
26081
26082 else
26083   case " $LIBOBJS " in
26084   *" setenv.$ac_objext "* ) ;;
26085   *) LIBOBJS="$LIBOBJS setenv.$ac_objext"
26086  ;;
26087 esac
26088
26089 fi
26090
26091
26092
26093 # Assuan check for descriptor passing.
26094 ac_fn_c_check_member "$LINENO" "struct cmsghdr" "cmsg_len" "ac_cv_member_struct_cmsghdr_cmsg_len" "
26095 #include <stdlib.h>
26096 #include <stddef.h>
26097 #include <stdio.h>
26098 #include <sys/types.h>
26099 #include <sys/socket.h>
26100 #include <sys/un.h>
26101 #if HAVE_SYS_UIO_H
26102 #include <sys/uio.h>
26103 #endif
26104 #include <unistd.h>
26105
26106 "
26107 if test "x$ac_cv_member_struct_cmsghdr_cmsg_len" = xyes; then :
26108   supports_descriptor_passing=yes
26109 else
26110   supports_descriptor_passing=no
26111                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
26112 ***
26113 *** Data structure for sending ancillary data missing.
26114 *** Descriptor passing won't work.
26115 ***" >&5
26116 $as_echo "$as_me: WARNING:
26117 ***
26118 *** Data structure for sending ancillary data missing.
26119 *** Descriptor passing won't work.
26120 ***" >&2;}
26121 fi
26122
26123
26124 use_descriptor_passing=yes
26125 # Check whether --enable-fd-passing was given.
26126 if test "${enable_fd_passing+set}" = set; then :
26127   enableval=$enable_fd_passing; use_descriptor_passing=$enableval
26128 fi
26129
26130
26131 if test "$supports_descriptor_passing" != "yes"; then
26132   use_descriptor_passing=no
26133 fi
26134
26135 if test "$use_descriptor_passing" = "yes"; then
26136
26137 $as_echo "#define USE_DESCRIPTOR_PASSING 1" >>confdefs.h
26138
26139 fi
26140
26141  if test "$use_descriptor_passing" = "yes"; then
26142   USE_DESCRIPTOR_PASSING_TRUE=
26143   USE_DESCRIPTOR_PASSING_FALSE='#'
26144 else
26145   USE_DESCRIPTOR_PASSING_TRUE='#'
26146   USE_DESCRIPTOR_PASSING_FALSE=
26147 fi
26148
26149
26150
26151 uiserver=no
26152 if test "$use_descriptor_passing" = "yes" && test "$have_libassuan" = "yes"; then
26153   uiserver=yes
26154 fi
26155 if test "$uiserver" != "no"; then
26156
26157 $as_echo "#define ENABLE_UISERVER 1" >>confdefs.h
26158
26159 fi
26160  if test "$uiserver" != "no"; then
26161   HAVE_UISERVER_TRUE=
26162   HAVE_UISERVER_FALSE='#'
26163 else
26164   HAVE_UISERVER_TRUE='#'
26165   HAVE_UISERVER_FALSE=
26166 fi
26167
26168
26169
26170 # Option --disable-linux-getdents
26171 #
26172 # By default we use SYS_getdents on Linux to optimize fd closing
26173 # before an exec.  This option allows to switch this optimization off.
26174 use_linux_getdents=yes
26175 # Check whether --enable-linux-getdents was given.
26176 if test "${enable_linux_getdents+set}" = set; then :
26177   enableval=$enable_linux_getdents; use_linux_getdents=$enableval
26178 fi
26179
26180 if test "$use_linux_getdents" = "yes"; then
26181     case "${host}" in
26182         *-*-linux*)
26183
26184 $as_echo "#define USE_LINUX_GETDENTS 1" >>confdefs.h
26185
26186            ;;
26187     esac
26188 fi
26189
26190
26191 #
26192 # Add a few constants to help porting to W32
26193 #
26194
26195
26196
26197
26198
26199 # Substitution used for gpgme-config
26200 GPGME_CONFIG_LIBS="-lgpgme"
26201 GPGME_CONFIG_CFLAGS=""
26202 GPGME_CONFIG_HOST="$host"
26203 GPGME_CONFIG_AVAIL_LANG="$enabled_languages"
26204
26205
26206
26207
26208
26209
26210 # Frob'da Variables
26211 LTLIBOBJS=`echo "$LIBOBJS" |
26212            sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'`
26213
26214
26215 # Some checks for gpgme-tool
26216 # Done at top: AC_CHECK_HEADER([argp.h])
26217 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#include <errno.h>
26218 "
26219 if test "x$ac_cv_type_error_t" = xyes; then :
26220
26221 cat >>confdefs.h <<_ACEOF
26222 #define HAVE_ERROR_T 1
26223 _ACEOF
26224
26225
26226 else
26227
26228 $as_echo "#define error_t int" >>confdefs.h
26229
26230 fi
26231
26232
26233
26234 # A substitution to set generated files in a Emacs buffer to read-only.
26235 emacs_local_vars_begin='Local Variables:'
26236
26237 emacs_local_vars_read_only='buffer-read-only: t'
26238
26239 emacs_local_vars_end='End:'
26240
26241
26242 # Last check.
26243 die=no
26244 if test "$have_gpg_error" = "no"; then
26245    die=yes
26246    { $as_echo "$as_me:${as_lineno-$LINENO}:
26247 ***
26248 *** You need libgpg-error to build this program.
26249 **  This library is for example available at
26250 ***   https://www.gnupg.org/ftp/gcrypt/libgpg-error/
26251 *** (at least version $NEED_GPG_ERROR_VERSION is required.)
26252 ***" >&5
26253 $as_echo "$as_me:
26254 ***
26255 *** You need libgpg-error to build this program.
26256 **  This library is for example available at
26257 ***   https://www.gnupg.org/ftp/gcrypt/libgpg-error/
26258 *** (at least version $NEED_GPG_ERROR_VERSION is required.)
26259 ***" >&6;}
26260 fi
26261 if test "$have_libassuan" = "no"; then
26262    die=yes
26263    { $as_echo "$as_me:${as_lineno-$LINENO}:
26264 ***
26265 *** You need libassuan to build this program.
26266 *** This library is for example available at
26267 ***   https://www.gnupg.org/ftp/gcrypt/libassuan/
26268 *** (at least version $NEED_LIBASSUAN_VERSION (API $NEED_LIBASSUAN_API) is required).
26269 ***" >&5
26270 $as_echo "$as_me:
26271 ***
26272 *** You need libassuan to build this program.
26273 *** This library is for example available at
26274 ***   https://www.gnupg.org/ftp/gcrypt/libassuan/
26275 *** (at least version $NEED_LIBASSUAN_VERSION (API $NEED_LIBASSUAN_API) is required).
26276 ***" >&6;}
26277 fi
26278
26279 if test "$die" = "yes"; then
26280     as_fn_error $? "
26281 ***
26282 *** Required libraries not found. Please consult the above messages
26283 *** and install them before running configure again.
26284 ***" "$LINENO" 5
26285 fi
26286
26287
26288 #
26289 # Create config files
26290
26291 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"
26292
26293 ac_config_files="$ac_config_files src/gpgme-config"
26294
26295 ac_config_files="$ac_config_files lang/cpp/Makefile lang/cpp/src/Makefile"
26296
26297 ac_config_files="$ac_config_files lang/cpp/tests/Makefile"
26298
26299 ac_config_files="$ac_config_files lang/cpp/src/GpgmeppConfig-w32.cmake.in"
26300
26301 ac_config_files="$ac_config_files lang/cpp/src/GpgmeppConfig.cmake.in"
26302
26303 ac_config_files="$ac_config_files lang/cpp/src/GpgmeppConfigVersion.cmake"
26304
26305 ac_config_files="$ac_config_files lang/cpp/src/gpgmepp_version.h"
26306
26307 ac_config_files="$ac_config_files lang/qt/Makefile lang/qt/src/Makefile"
26308
26309 ac_config_files="$ac_config_files lang/qt/src/QGpgmeConfig-w32.cmake.in"
26310
26311 ac_config_files="$ac_config_files lang/qt/src/QGpgmeConfig.cmake.in"
26312
26313 ac_config_files="$ac_config_files lang/qt/src/QGpgmeConfigVersion.cmake"
26314
26315 ac_config_files="$ac_config_files lang/qt/tests/Makefile"
26316
26317 ac_config_files="$ac_config_files lang/qt/src/qgpgme_version.h"
26318
26319 ac_config_files="$ac_config_files lang/Makefile lang/cl/Makefile lang/cl/gpgme.asd"
26320
26321 if test -z "$HAVE_DOXYGEN_TRUE"; then :
26322   ac_config_files="$ac_config_files lang/qt/doc/Doxyfile"
26323
26324 fi
26325 ac_config_files="$ac_config_files lang/js/Makefile lang/js/src/Makefile lang/js/BrowserTestExtension/Makefile lang/js/DemoExtension/Makefile"
26326
26327 ac_config_files="$ac_config_files lang/qt/doc/Makefile"
26328
26329 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"
26330
26331 ac_config_files="$ac_config_files lang/python/setup.py"
26332
26333 cat >confcache <<\_ACEOF
26334 # This file is a shell script that caches the results of configure
26335 # tests run on this system so they can be shared between configure
26336 # scripts and configure runs, see configure's option --config-cache.
26337 # It is not useful on other systems.  If it contains results you don't
26338 # want to keep, you may remove or edit it.
26339 #
26340 # config.status only pays attention to the cache file if you give it
26341 # the --recheck option to rerun configure.
26342 #
26343 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26344 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26345 # following values.
26346
26347 _ACEOF
26348
26349 # The following way of writing the cache mishandles newlines in values,
26350 # but we know of no workaround that is simple, portable, and efficient.
26351 # So, we kill variables containing newlines.
26352 # Ultrix sh set writes to stderr and can't be redirected directly,
26353 # and sets the high bit in the cache file unless we assign to the vars.
26354 (
26355   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26356     eval ac_val=\$$ac_var
26357     case $ac_val in #(
26358     *${as_nl}*)
26359       case $ac_var in #(
26360       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26361 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26362       esac
26363       case $ac_var in #(
26364       _ | IFS | as_nl) ;; #(
26365       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26366       *) { eval $ac_var=; unset $ac_var;} ;;
26367       esac ;;
26368     esac
26369   done
26370
26371   (set) 2>&1 |
26372     case $as_nl`(ac_space=' '; set) 2>&1` in #(
26373     *${as_nl}ac_space=\ *)
26374       # `set' does not quote correctly, so add quotes: double-quote
26375       # substitution turns \\\\ into \\, and sed turns \\ into \.
26376       sed -n \
26377         "s/'/'\\\\''/g;
26378           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26379       ;; #(
26380     *)
26381       # `set' quotes correctly as required by POSIX, so do not add quotes.
26382       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26383       ;;
26384     esac |
26385     sort
26386 ) |
26387   sed '
26388      /^ac_cv_env_/b end
26389      t clear
26390      :clear
26391      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26392      t end
26393      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26394      :end' >>confcache
26395 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26396   if test -w "$cache_file"; then
26397     if test "x$cache_file" != "x/dev/null"; then
26398       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26399 $as_echo "$as_me: updating cache $cache_file" >&6;}
26400       if test ! -f "$cache_file" || test -h "$cache_file"; then
26401         cat confcache >"$cache_file"
26402       else
26403         case $cache_file in #(
26404         */* | ?:*)
26405           mv -f confcache "$cache_file"$$ &&
26406           mv -f "$cache_file"$$ "$cache_file" ;; #(
26407         *)
26408           mv -f confcache "$cache_file" ;;
26409         esac
26410       fi
26411     fi
26412   else
26413     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26414 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26415   fi
26416 fi
26417 rm -f confcache
26418
26419 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26420 # Let make expand exec_prefix.
26421 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26422
26423 DEFS=-DHAVE_CONFIG_H
26424
26425 ac_libobjs=
26426 ac_ltlibobjs=
26427 U=
26428 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26429   # 1. Remove the extension, and $U if already installed.
26430   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26431   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26432   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
26433   #    will be set to the directory where LIBOBJS objects are built.
26434   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26435   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26436 done
26437 LIBOBJS=$ac_libobjs
26438
26439 LTLIBOBJS=$ac_ltlibobjs
26440
26441
26442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
26443 $as_echo_n "checking that generated files are newer than configure... " >&6; }
26444    if test -n "$am_sleep_pid"; then
26445      # Hide warnings about reused PIDs.
26446      wait $am_sleep_pid 2>/dev/null
26447    fi
26448    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
26449 $as_echo "done" >&6; }
26450  if test -n "$EXEEXT"; then
26451   am__EXEEXT_TRUE=
26452   am__EXEEXT_FALSE='#'
26453 else
26454   am__EXEEXT_TRUE='#'
26455   am__EXEEXT_FALSE=
26456 fi
26457
26458 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
26459   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
26460 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26461 fi
26462 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26463   as_fn_error $? "conditional \"AMDEP\" was never defined.
26464 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26465 fi
26466 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26467   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
26468 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26469 fi
26470 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26471   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
26472 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26473 fi
26474 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26475   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
26476 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26477 fi
26478 if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
26479   as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
26480 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26481 fi
26482 if test -z "${HAVE_DOSISH_SYSTEM_TRUE}" && test -z "${HAVE_DOSISH_SYSTEM_FALSE}"; then
26483   as_fn_error $? "conditional \"HAVE_DOSISH_SYSTEM\" was never defined.
26484 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26485 fi
26486 if test -z "${HAVE_W32_SYSTEM_TRUE}" && test -z "${HAVE_W32_SYSTEM_FALSE}"; then
26487   as_fn_error $? "conditional \"HAVE_W32_SYSTEM\" was never defined.
26488 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26489 fi
26490 if test -z "${HAVE_W64_SYSTEM_TRUE}" && test -z "${HAVE_W64_SYSTEM_FALSE}"; then
26491   as_fn_error $? "conditional \"HAVE_W64_SYSTEM\" was never defined.
26492 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26493 fi
26494 if test -z "${HAVE_ANDROID_SYSTEM_TRUE}" && test -z "${HAVE_ANDROID_SYSTEM_FALSE}"; then
26495   as_fn_error $? "conditional \"HAVE_ANDROID_SYSTEM\" was never defined.
26496 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26497 fi
26498 if test -z "${HAVE_MACOS_SYSTEM_TRUE}" && test -z "${HAVE_MACOS_SYSTEM_FALSE}"; then
26499   as_fn_error $? "conditional \"HAVE_MACOS_SYSTEM\" was never defined.
26500 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26501 fi
26502 if test -z "${BUILD_W32_GLIB_TRUE}" && test -z "${BUILD_W32_GLIB_FALSE}"; then
26503   as_fn_error $? "conditional \"BUILD_W32_GLIB\" was never defined.
26504 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26505 fi
26506 if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
26507   as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
26508 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26509 fi
26510 if test -z "${RUN_GPGCONF_TESTS_TRUE}" && test -z "${RUN_GPGCONF_TESTS_FALSE}"; then
26511   as_fn_error $? "conditional \"RUN_GPGCONF_TESTS\" was never defined.
26512 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26513 fi
26514 if test -z "${RUN_GPG_TESTS_TRUE}" && test -z "${RUN_GPG_TESTS_FALSE}"; then
26515   as_fn_error $? "conditional \"RUN_GPG_TESTS\" was never defined.
26516 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26517 fi
26518 if test -z "${RUN_GPGSM_TESTS_TRUE}" && test -z "${RUN_GPGSM_TESTS_FALSE}"; then
26519   as_fn_error $? "conditional \"RUN_GPGSM_TESTS\" was never defined.
26520 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26521 fi
26522 if test -z "${RUN_G13_TESTS_TRUE}" && test -z "${RUN_G13_TESTS_FALSE}"; then
26523   as_fn_error $? "conditional \"RUN_G13_TESTS\" was never defined.
26524 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26525 fi
26526 if test -z "${USE_DESCRIPTOR_PASSING_TRUE}" && test -z "${USE_DESCRIPTOR_PASSING_FALSE}"; then
26527   as_fn_error $? "conditional \"USE_DESCRIPTOR_PASSING\" was never defined.
26528 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26529 fi
26530 if test -z "${HAVE_UISERVER_TRUE}" && test -z "${HAVE_UISERVER_FALSE}"; then
26531   as_fn_error $? "conditional \"HAVE_UISERVER\" was never defined.
26532 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26533 fi
26534
26535 : "${CONFIG_STATUS=./config.status}"
26536 ac_write_fail=0
26537 ac_clean_files_save=$ac_clean_files
26538 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26539 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26540 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26541 as_write_fail=0
26542 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26543 #! $SHELL
26544 # Generated by $as_me.
26545 # Run this file to recreate the current configuration.
26546 # Compiler output produced by configure, useful for debugging
26547 # configure, is in config.log if it exists.
26548
26549 debug=false
26550 ac_cs_recheck=false
26551 ac_cs_silent=false
26552
26553 SHELL=\${CONFIG_SHELL-$SHELL}
26554 export SHELL
26555 _ASEOF
26556 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26557 ## -------------------- ##
26558 ## M4sh Initialization. ##
26559 ## -------------------- ##
26560
26561 # Be more Bourne compatible
26562 DUALCASE=1; export DUALCASE # for MKS sh
26563 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26564   emulate sh
26565   NULLCMD=:
26566   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26567   # is contrary to our usage.  Disable this feature.
26568   alias -g '${1+"$@"}'='"$@"'
26569   setopt NO_GLOB_SUBST
26570 else
26571   case `(set -o) 2>/dev/null` in #(
26572   *posix*) :
26573     set -o posix ;; #(
26574   *) :
26575      ;;
26576 esac
26577 fi
26578
26579
26580 as_nl='
26581 '
26582 export as_nl
26583 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26584 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26585 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26586 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26587 # Prefer a ksh shell builtin over an external printf program on Solaris,
26588 # but without wasting forks for bash or zsh.
26589 if test -z "$BASH_VERSION$ZSH_VERSION" \
26590     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26591   as_echo='print -r --'
26592   as_echo_n='print -rn --'
26593 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26594   as_echo='printf %s\n'
26595   as_echo_n='printf %s'
26596 else
26597   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26598     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26599     as_echo_n='/usr/ucb/echo -n'
26600   else
26601     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26602     as_echo_n_body='eval
26603       arg=$1;
26604       case $arg in #(
26605       *"$as_nl"*)
26606         expr "X$arg" : "X\\(.*\\)$as_nl";
26607         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26608       esac;
26609       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26610     '
26611     export as_echo_n_body
26612     as_echo_n='sh -c $as_echo_n_body as_echo'
26613   fi
26614   export as_echo_body
26615   as_echo='sh -c $as_echo_body as_echo'
26616 fi
26617
26618 # The user is always right.
26619 if test "${PATH_SEPARATOR+set}" != set; then
26620   PATH_SEPARATOR=:
26621   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26622     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26623       PATH_SEPARATOR=';'
26624   }
26625 fi
26626
26627
26628 # IFS
26629 # We need space, tab and new line, in precisely that order.  Quoting is
26630 # there to prevent editors from complaining about space-tab.
26631 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26632 # splitting by setting IFS to empty value.)
26633 IFS=" ""        $as_nl"
26634
26635 # Find who we are.  Look in the path if we contain no directory separator.
26636 as_myself=
26637 case $0 in #((
26638   *[\\/]* ) as_myself=$0 ;;
26639   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26640 for as_dir in $PATH
26641 do
26642   IFS=$as_save_IFS
26643   test -z "$as_dir" && as_dir=.
26644     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26645   done
26646 IFS=$as_save_IFS
26647
26648      ;;
26649 esac
26650 # We did not find ourselves, most probably we were run as `sh COMMAND'
26651 # in which case we are not to be found in the path.
26652 if test "x$as_myself" = x; then
26653   as_myself=$0
26654 fi
26655 if test ! -f "$as_myself"; then
26656   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26657   exit 1
26658 fi
26659
26660 # Unset variables that we do not need and which cause bugs (e.g. in
26661 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
26662 # suppresses any "Segmentation fault" message there.  '((' could
26663 # trigger a bug in pdksh 5.2.14.
26664 for as_var in BASH_ENV ENV MAIL MAILPATH
26665 do eval test x\${$as_var+set} = xset \
26666   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26667 done
26668 PS1='$ '
26669 PS2='> '
26670 PS4='+ '
26671
26672 # NLS nuisances.
26673 LC_ALL=C
26674 export LC_ALL
26675 LANGUAGE=C
26676 export LANGUAGE
26677
26678 # CDPATH.
26679 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26680
26681
26682 # as_fn_error STATUS ERROR [LINENO LOG_FD]
26683 # ----------------------------------------
26684 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26685 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26686 # script with STATUS, using 1 if that was 0.
26687 as_fn_error ()
26688 {
26689   as_status=$1; test $as_status -eq 0 && as_status=1
26690   if test "$4"; then
26691     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26692     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
26693   fi
26694   $as_echo "$as_me: error: $2" >&2
26695   as_fn_exit $as_status
26696 } # as_fn_error
26697
26698
26699 # as_fn_set_status STATUS
26700 # -----------------------
26701 # Set $? to STATUS, without forking.
26702 as_fn_set_status ()
26703 {
26704   return $1
26705 } # as_fn_set_status
26706
26707 # as_fn_exit STATUS
26708 # -----------------
26709 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26710 as_fn_exit ()
26711 {
26712   set +e
26713   as_fn_set_status $1
26714   exit $1
26715 } # as_fn_exit
26716
26717 # as_fn_unset VAR
26718 # ---------------
26719 # Portably unset VAR.
26720 as_fn_unset ()
26721 {
26722   { eval $1=; unset $1;}
26723 }
26724 as_unset=as_fn_unset
26725 # as_fn_append VAR VALUE
26726 # ----------------------
26727 # Append the text in VALUE to the end of the definition contained in VAR. Take
26728 # advantage of any shell optimizations that allow amortized linear growth over
26729 # repeated appends, instead of the typical quadratic growth present in naive
26730 # implementations.
26731 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26732   eval 'as_fn_append ()
26733   {
26734     eval $1+=\$2
26735   }'
26736 else
26737   as_fn_append ()
26738   {
26739     eval $1=\$$1\$2
26740   }
26741 fi # as_fn_append
26742
26743 # as_fn_arith ARG...
26744 # ------------------
26745 # Perform arithmetic evaluation on the ARGs, and store the result in the
26746 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26747 # must be portable across $(()) and expr.
26748 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26749   eval 'as_fn_arith ()
26750   {
26751     as_val=$(( $* ))
26752   }'
26753 else
26754   as_fn_arith ()
26755   {
26756     as_val=`expr "$@" || test $? -eq 1`
26757   }
26758 fi # as_fn_arith
26759
26760
26761 if expr a : '\(a\)' >/dev/null 2>&1 &&
26762    test "X`expr 00001 : '.*\(...\)'`" = X001; then
26763   as_expr=expr
26764 else
26765   as_expr=false
26766 fi
26767
26768 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26769   as_basename=basename
26770 else
26771   as_basename=false
26772 fi
26773
26774 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26775   as_dirname=dirname
26776 else
26777   as_dirname=false
26778 fi
26779
26780 as_me=`$as_basename -- "$0" ||
26781 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26782          X"$0" : 'X\(//\)$' \| \
26783          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26784 $as_echo X/"$0" |
26785     sed '/^.*\/\([^/][^/]*\)\/*$/{
26786             s//\1/
26787             q
26788           }
26789           /^X\/\(\/\/\)$/{
26790             s//\1/
26791             q
26792           }
26793           /^X\/\(\/\).*/{
26794             s//\1/
26795             q
26796           }
26797           s/.*/./; q'`
26798
26799 # Avoid depending upon Character Ranges.
26800 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26801 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26802 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26803 as_cr_digits='0123456789'
26804 as_cr_alnum=$as_cr_Letters$as_cr_digits
26805
26806 ECHO_C= ECHO_N= ECHO_T=
26807 case `echo -n x` in #(((((
26808 -n*)
26809   case `echo 'xy\c'` in
26810   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
26811   xy)  ECHO_C='\c';;
26812   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
26813        ECHO_T=' ';;
26814   esac;;
26815 *)
26816   ECHO_N='-n';;
26817 esac
26818
26819 rm -f conf$$ conf$$.exe conf$$.file
26820 if test -d conf$$.dir; then
26821   rm -f conf$$.dir/conf$$.file
26822 else
26823   rm -f conf$$.dir
26824   mkdir conf$$.dir 2>/dev/null
26825 fi
26826 if (echo >conf$$.file) 2>/dev/null; then
26827   if ln -s conf$$.file conf$$ 2>/dev/null; then
26828     as_ln_s='ln -s'
26829     # ... but there are two gotchas:
26830     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26831     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26832     # In both cases, we have to default to `cp -pR'.
26833     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26834       as_ln_s='cp -pR'
26835   elif ln conf$$.file conf$$ 2>/dev/null; then
26836     as_ln_s=ln
26837   else
26838     as_ln_s='cp -pR'
26839   fi
26840 else
26841   as_ln_s='cp -pR'
26842 fi
26843 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26844 rmdir conf$$.dir 2>/dev/null
26845
26846
26847 # as_fn_mkdir_p
26848 # -------------
26849 # Create "$as_dir" as a directory, including parents if necessary.
26850 as_fn_mkdir_p ()
26851 {
26852
26853   case $as_dir in #(
26854   -*) as_dir=./$as_dir;;
26855   esac
26856   test -d "$as_dir" || eval $as_mkdir_p || {
26857     as_dirs=
26858     while :; do
26859       case $as_dir in #(
26860       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26861       *) as_qdir=$as_dir;;
26862       esac
26863       as_dirs="'$as_qdir' $as_dirs"
26864       as_dir=`$as_dirname -- "$as_dir" ||
26865 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26866          X"$as_dir" : 'X\(//\)[^/]' \| \
26867          X"$as_dir" : 'X\(//\)$' \| \
26868          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26869 $as_echo X"$as_dir" |
26870     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26871             s//\1/
26872             q
26873           }
26874           /^X\(\/\/\)[^/].*/{
26875             s//\1/
26876             q
26877           }
26878           /^X\(\/\/\)$/{
26879             s//\1/
26880             q
26881           }
26882           /^X\(\/\).*/{
26883             s//\1/
26884             q
26885           }
26886           s/.*/./; q'`
26887       test -d "$as_dir" && break
26888     done
26889     test -z "$as_dirs" || eval "mkdir $as_dirs"
26890   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
26891
26892
26893 } # as_fn_mkdir_p
26894 if mkdir -p . 2>/dev/null; then
26895   as_mkdir_p='mkdir -p "$as_dir"'
26896 else
26897   test -d ./-p && rmdir ./-p
26898   as_mkdir_p=false
26899 fi
26900
26901
26902 # as_fn_executable_p FILE
26903 # -----------------------
26904 # Test if FILE is an executable regular file.
26905 as_fn_executable_p ()
26906 {
26907   test -f "$1" && test -x "$1"
26908 } # as_fn_executable_p
26909 as_test_x='test -x'
26910 as_executable_p=as_fn_executable_p
26911
26912 # Sed expression to map a string onto a valid CPP name.
26913 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26914
26915 # Sed expression to map a string onto a valid variable name.
26916 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26917
26918
26919 exec 6>&1
26920 ## ----------------------------------- ##
26921 ## Main body of $CONFIG_STATUS script. ##
26922 ## ----------------------------------- ##
26923 _ASEOF
26924 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26925
26926 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26927 # Save the log message, to keep $0 and so on meaningful, and to
26928 # report actual input values of CONFIG_FILES etc. instead of their
26929 # values after options handling.
26930 ac_log="
26931 This file was extended by gpgme $as_me 1.16.0, which was
26932 generated by GNU Autoconf 2.69.  Invocation command line was
26933
26934   CONFIG_FILES    = $CONFIG_FILES
26935   CONFIG_HEADERS  = $CONFIG_HEADERS
26936   CONFIG_LINKS    = $CONFIG_LINKS
26937   CONFIG_COMMANDS = $CONFIG_COMMANDS
26938   $ $0 $@
26939
26940 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26941 "
26942
26943 _ACEOF
26944
26945 case $ac_config_files in *"
26946 "*) set x $ac_config_files; shift; ac_config_files=$*;;
26947 esac
26948
26949 case $ac_config_headers in *"
26950 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26951 esac
26952
26953
26954 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26955 # Files that config.status was made for.
26956 config_files="$ac_config_files"
26957 config_headers="$ac_config_headers"
26958 config_commands="$ac_config_commands"
26959
26960 _ACEOF
26961
26962 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26963 ac_cs_usage="\
26964 \`$as_me' instantiates files and other configuration actions
26965 from templates according to the current configuration.  Unless the files
26966 and actions are specified as TAGs, all are instantiated by default.
26967
26968 Usage: $0 [OPTION]... [TAG]...
26969
26970   -h, --help       print this help, then exit
26971   -V, --version    print version number and configuration settings, then exit
26972       --config     print configuration, then exit
26973   -q, --quiet, --silent
26974                    do not print progress messages
26975   -d, --debug      don't remove temporary files
26976       --recheck    update $as_me by reconfiguring in the same conditions
26977       --file=FILE[:TEMPLATE]
26978                    instantiate the configuration file FILE
26979       --header=FILE[:TEMPLATE]
26980                    instantiate the configuration header FILE
26981
26982 Configuration files:
26983 $config_files
26984
26985 Configuration headers:
26986 $config_headers
26987
26988 Configuration commands:
26989 $config_commands
26990
26991 Report bugs to <https://bugs.gnupg.org>."
26992
26993 _ACEOF
26994 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26995 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
26996 ac_cs_version="\\
26997 gpgme config.status 1.16.0
26998 configured by $0, generated by GNU Autoconf 2.69,
26999   with options \\"\$ac_cs_config\\"
27000
27001 Copyright (C) 2012 Free Software Foundation, Inc.
27002 This config.status script is free software; the Free Software Foundation
27003 gives unlimited permission to copy, distribute and modify it."
27004
27005 ac_pwd='$ac_pwd'
27006 srcdir='$srcdir'
27007 INSTALL='$INSTALL'
27008 MKDIR_P='$MKDIR_P'
27009 AWK='$AWK'
27010 test -n "\$AWK" || AWK=awk
27011 _ACEOF
27012
27013 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27014 # The default lists apply if the user does not specify any file.
27015 ac_need_defaults=:
27016 while test $# != 0
27017 do
27018   case $1 in
27019   --*=?*)
27020     ac_option=`expr "X$1" : 'X\([^=]*\)='`
27021     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27022     ac_shift=:
27023     ;;
27024   --*=)
27025     ac_option=`expr "X$1" : 'X\([^=]*\)='`
27026     ac_optarg=
27027     ac_shift=:
27028     ;;
27029   *)
27030     ac_option=$1
27031     ac_optarg=$2
27032     ac_shift=shift
27033     ;;
27034   esac
27035
27036   case $ac_option in
27037   # Handling of the options.
27038   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27039     ac_cs_recheck=: ;;
27040   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27041     $as_echo "$ac_cs_version"; exit ;;
27042   --config | --confi | --conf | --con | --co | --c )
27043     $as_echo "$ac_cs_config"; exit ;;
27044   --debug | --debu | --deb | --de | --d | -d )
27045     debug=: ;;
27046   --file | --fil | --fi | --f )
27047     $ac_shift
27048     case $ac_optarg in
27049     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27050     '') as_fn_error $? "missing file argument" ;;
27051     esac
27052     as_fn_append CONFIG_FILES " '$ac_optarg'"
27053     ac_need_defaults=false;;
27054   --header | --heade | --head | --hea )
27055     $ac_shift
27056     case $ac_optarg in
27057     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27058     esac
27059     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27060     ac_need_defaults=false;;
27061   --he | --h)
27062     # Conflict between --help and --header
27063     as_fn_error $? "ambiguous option: \`$1'
27064 Try \`$0 --help' for more information.";;
27065   --help | --hel | -h )
27066     $as_echo "$ac_cs_usage"; exit ;;
27067   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27068   | -silent | --silent | --silen | --sile | --sil | --si | --s)
27069     ac_cs_silent=: ;;
27070
27071   # This is an error.
27072   -*) as_fn_error $? "unrecognized option: \`$1'
27073 Try \`$0 --help' for more information." ;;
27074
27075   *) as_fn_append ac_config_targets " $1"
27076      ac_need_defaults=false ;;
27077
27078   esac
27079   shift
27080 done
27081
27082 ac_configure_extra_args=
27083
27084 if $ac_cs_silent; then
27085   exec 6>/dev/null
27086   ac_configure_extra_args="$ac_configure_extra_args --silent"
27087 fi
27088
27089 _ACEOF
27090 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27091 if \$ac_cs_recheck; then
27092   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27093   shift
27094   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27095   CONFIG_SHELL='$SHELL'
27096   export CONFIG_SHELL
27097   exec "\$@"
27098 fi
27099
27100 _ACEOF
27101 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27102 exec 5>>config.log
27103 {
27104   echo
27105   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27106 ## Running $as_me. ##
27107 _ASBOX
27108   $as_echo "$ac_log"
27109 } >&5
27110
27111 _ACEOF
27112 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27113 #
27114 # INIT-COMMANDS
27115 #
27116 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
27117
27118
27119 # The HP-UX ksh and POSIX shell print the target directory to stdout
27120 # if CDPATH is set.
27121 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27122
27123 sed_quote_subst='$sed_quote_subst'
27124 double_quote_subst='$double_quote_subst'
27125 delay_variable_subst='$delay_variable_subst'
27126 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
27127 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
27128 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
27129 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
27130 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
27131 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
27132 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
27133 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
27134 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
27135 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
27136 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
27137 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
27138 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
27139 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
27140 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
27141 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
27142 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
27143 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
27144 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
27145 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
27146 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
27147 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
27148 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
27149 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
27150 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
27151 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
27152 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
27153 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
27154 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
27155 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
27156 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
27157 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
27158 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
27159 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
27160 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
27161 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
27162 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
27163 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
27164 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
27165 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
27166 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
27167 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
27168 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
27169 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
27170 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
27171 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
27172 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27173 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27174 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
27175 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
27176 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
27177 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
27178 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
27179 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
27180 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
27181 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
27182 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
27183 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"`'
27184 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
27185 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
27186 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
27187 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
27188 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
27189 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
27190 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
27191 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
27192 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
27193 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
27194 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
27195 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
27196 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
27197 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
27198 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
27199 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
27200 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
27201 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
27202 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27203 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
27204 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
27205 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
27206 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
27207 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
27208 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
27209 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27210 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
27211 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27212 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
27213 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27214 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
27215 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
27216 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
27217 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
27218 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
27219 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
27220 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
27221 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
27222 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
27223 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
27224 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
27225 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
27226 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
27227 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
27228 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
27229 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
27230 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
27231 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
27232 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
27233 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
27234 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
27235 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
27236 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
27237 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
27238 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
27239 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
27240 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
27241 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
27242 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
27243 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
27244 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27245 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27246 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
27247 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
27248 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
27249 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
27250 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
27251 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
27252 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
27253 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
27254 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
27255 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
27256 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
27257 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
27258 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
27259 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
27260 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
27261 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
27262 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
27263 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
27264 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
27265 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
27266 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
27267 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27268 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
27269 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27270 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
27271 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
27272 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
27273 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
27274 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
27275 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
27276 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
27277 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
27278 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
27279 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
27280 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
27281 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
27282 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
27283 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
27284 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
27285 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
27286 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
27287 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
27288 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
27289 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
27290 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
27291 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
27292 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
27293 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
27294 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
27295 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27296 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
27297 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27298 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
27299 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27300 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
27301 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27302 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
27303 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27304 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
27305 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27306 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
27307 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
27308 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
27309 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
27310 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
27311 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
27312 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
27313 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
27314 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
27315 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
27316 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
27317 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
27318 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
27319 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
27320 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
27321 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
27322 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
27323 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
27324 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
27325 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
27326 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
27327 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
27328 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
27329 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
27330 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
27331 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
27332 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
27333 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27334 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
27335 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
27336 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
27337 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
27338 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
27339 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27340 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
27341 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27342 postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
27343 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
27344 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
27345 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
27346 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
27347 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
27348 compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
27349 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
27350 predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
27351 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
27352 postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
27353 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
27354 predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
27355 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
27356 postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
27357 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
27358 compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
27359
27360 LTCC='$LTCC'
27361 LTCFLAGS='$LTCFLAGS'
27362 compiler='$compiler_DEFAULT'
27363
27364 # A function that is used when there is no print builtin or printf.
27365 func_fallback_echo ()
27366 {
27367   eval 'cat <<_LTECHO_EOF
27368 \$1
27369 _LTECHO_EOF'
27370 }
27371
27372 # Quote evaled strings.
27373 for var in AS \
27374 DLLTOOL \
27375 OBJDUMP \
27376 SHELL \
27377 ECHO \
27378 PATH_SEPARATOR \
27379 SED \
27380 GREP \
27381 EGREP \
27382 FGREP \
27383 LD \
27384 NM \
27385 LN_S \
27386 lt_SP2NL \
27387 lt_NL2SP \
27388 reload_flag \
27389 deplibs_check_method \
27390 file_magic_cmd \
27391 file_magic_glob \
27392 want_nocaseglob \
27393 sharedlib_from_linklib_cmd \
27394 AR \
27395 AR_FLAGS \
27396 archiver_list_spec \
27397 STRIP \
27398 RANLIB \
27399 CC \
27400 CFLAGS \
27401 compiler \
27402 lt_cv_sys_global_symbol_pipe \
27403 lt_cv_sys_global_symbol_to_cdecl \
27404 lt_cv_sys_global_symbol_to_c_name_address \
27405 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
27406 nm_file_list_spec \
27407 lt_prog_compiler_no_builtin_flag \
27408 lt_prog_compiler_pic \
27409 lt_prog_compiler_wl \
27410 lt_prog_compiler_static \
27411 lt_cv_prog_compiler_c_o \
27412 need_locks \
27413 MANIFEST_TOOL \
27414 DSYMUTIL \
27415 NMEDIT \
27416 LIPO \
27417 OTOOL \
27418 OTOOL64 \
27419 shrext_cmds \
27420 export_dynamic_flag_spec \
27421 whole_archive_flag_spec \
27422 compiler_needs_object \
27423 with_gnu_ld \
27424 allow_undefined_flag \
27425 no_undefined_flag \
27426 hardcode_libdir_flag_spec \
27427 hardcode_libdir_separator \
27428 exclude_expsyms \
27429 include_expsyms \
27430 file_list_spec \
27431 variables_saved_for_relink \
27432 libname_spec \
27433 library_names_spec \
27434 soname_spec \
27435 install_override_mode \
27436 finish_eval \
27437 old_striplib \
27438 striplib \
27439 compiler_lib_search_dirs \
27440 predep_objects \
27441 postdep_objects \
27442 predeps \
27443 postdeps \
27444 compiler_lib_search_path \
27445 LD_CXX \
27446 LD_RC \
27447 reload_flag_CXX \
27448 reload_flag_RC \
27449 compiler_CXX \
27450 compiler_RC \
27451 lt_prog_compiler_no_builtin_flag_CXX \
27452 lt_prog_compiler_no_builtin_flag_RC \
27453 lt_prog_compiler_pic_CXX \
27454 lt_prog_compiler_pic_RC \
27455 lt_prog_compiler_wl_CXX \
27456 lt_prog_compiler_wl_RC \
27457 lt_prog_compiler_static_CXX \
27458 lt_prog_compiler_static_RC \
27459 lt_cv_prog_compiler_c_o_CXX \
27460 lt_cv_prog_compiler_c_o_RC \
27461 export_dynamic_flag_spec_CXX \
27462 export_dynamic_flag_spec_RC \
27463 whole_archive_flag_spec_CXX \
27464 whole_archive_flag_spec_RC \
27465 compiler_needs_object_CXX \
27466 compiler_needs_object_RC \
27467 with_gnu_ld_CXX \
27468 with_gnu_ld_RC \
27469 allow_undefined_flag_CXX \
27470 allow_undefined_flag_RC \
27471 no_undefined_flag_CXX \
27472 no_undefined_flag_RC \
27473 hardcode_libdir_flag_spec_CXX \
27474 hardcode_libdir_flag_spec_RC \
27475 hardcode_libdir_separator_CXX \
27476 hardcode_libdir_separator_RC \
27477 exclude_expsyms_CXX \
27478 exclude_expsyms_RC \
27479 include_expsyms_CXX \
27480 include_expsyms_RC \
27481 file_list_spec_CXX \
27482 file_list_spec_RC \
27483 compiler_lib_search_dirs_CXX \
27484 compiler_lib_search_dirs_RC \
27485 predep_objects_CXX \
27486 predep_objects_RC \
27487 postdep_objects_CXX \
27488 postdep_objects_RC \
27489 predeps_CXX \
27490 predeps_RC \
27491 postdeps_CXX \
27492 postdeps_RC \
27493 compiler_lib_search_path_CXX \
27494 compiler_lib_search_path_RC; do
27495     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27496     *[\\\\\\\`\\"\\\$]*)
27497       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
27498       ;;
27499     *)
27500       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27501       ;;
27502     esac
27503 done
27504
27505 # Double-quote double-evaled strings.
27506 for var in reload_cmds \
27507 old_postinstall_cmds \
27508 old_postuninstall_cmds \
27509 old_archive_cmds \
27510 extract_expsyms_cmds \
27511 old_archive_from_new_cmds \
27512 old_archive_from_expsyms_cmds \
27513 archive_cmds \
27514 archive_expsym_cmds \
27515 module_cmds \
27516 module_expsym_cmds \
27517 export_symbols_cmds \
27518 prelink_cmds \
27519 postlink_cmds \
27520 postinstall_cmds \
27521 postuninstall_cmds \
27522 finish_cmds \
27523 sys_lib_search_path_spec \
27524 sys_lib_dlsearch_path_spec \
27525 reload_cmds_CXX \
27526 reload_cmds_RC \
27527 old_archive_cmds_CXX \
27528 old_archive_cmds_RC \
27529 old_archive_from_new_cmds_CXX \
27530 old_archive_from_new_cmds_RC \
27531 old_archive_from_expsyms_cmds_CXX \
27532 old_archive_from_expsyms_cmds_RC \
27533 archive_cmds_CXX \
27534 archive_cmds_RC \
27535 archive_expsym_cmds_CXX \
27536 archive_expsym_cmds_RC \
27537 module_cmds_CXX \
27538 module_cmds_RC \
27539 module_expsym_cmds_CXX \
27540 module_expsym_cmds_RC \
27541 export_symbols_cmds_CXX \
27542 export_symbols_cmds_RC \
27543 prelink_cmds_CXX \
27544 prelink_cmds_RC \
27545 postlink_cmds_CXX \
27546 postlink_cmds_RC; do
27547     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27548     *[\\\\\\\`\\"\\\$]*)
27549       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
27550       ;;
27551     *)
27552       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27553       ;;
27554     esac
27555 done
27556
27557 ac_aux_dir='$ac_aux_dir'
27558 xsi_shell='$xsi_shell'
27559 lt_shell_append='$lt_shell_append'
27560
27561 # See if we are running on zsh, and set the options which allow our
27562 # commands through without removal of \ escapes INIT.
27563 if test -n "\${ZSH_VERSION+set}" ; then
27564    setopt NO_GLOB_SUBST
27565 fi
27566
27567
27568     PACKAGE='$PACKAGE'
27569     VERSION='$VERSION'
27570     TIMESTAMP='$TIMESTAMP'
27571     RM='$RM'
27572     ofile='$ofile'
27573
27574
27575
27576
27577
27578
27579
27580
27581 _ACEOF
27582
27583 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27584
27585 # Handling of arguments.
27586 for ac_config_target in $ac_config_targets
27587 do
27588   case $ac_config_target in
27589     "conf/config.h") CONFIG_HEADERS="$CONFIG_HEADERS conf/config.h" ;;
27590     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27591     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
27592     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27593     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
27594     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
27595     "tests/gpg/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gpg/Makefile" ;;
27596     "tests/gpgsm/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gpgsm/Makefile" ;;
27597     "tests/opassuan/Makefile") CONFIG_FILES="$CONFIG_FILES tests/opassuan/Makefile" ;;
27598     "tests/json/Makefile") CONFIG_FILES="$CONFIG_FILES tests/json/Makefile" ;;
27599     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
27600     "src/versioninfo.rc") CONFIG_FILES="$CONFIG_FILES src/versioninfo.rc" ;;
27601     "src/gpgme.pc") CONFIG_FILES="$CONFIG_FILES src/gpgme.pc" ;;
27602     "src/gpgme-glib.pc") CONFIG_FILES="$CONFIG_FILES src/gpgme-glib.pc" ;;
27603     "src/gpgme.h") CONFIG_FILES="$CONFIG_FILES src/gpgme.h" ;;
27604     "src/gpgme-config") CONFIG_FILES="$CONFIG_FILES src/gpgme-config" ;;
27605     "lang/cpp/Makefile") CONFIG_FILES="$CONFIG_FILES lang/cpp/Makefile" ;;
27606     "lang/cpp/src/Makefile") CONFIG_FILES="$CONFIG_FILES lang/cpp/src/Makefile" ;;
27607     "lang/cpp/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lang/cpp/tests/Makefile" ;;
27608     "lang/cpp/src/GpgmeppConfig-w32.cmake.in") CONFIG_FILES="$CONFIG_FILES lang/cpp/src/GpgmeppConfig-w32.cmake.in" ;;
27609     "lang/cpp/src/GpgmeppConfig.cmake.in") CONFIG_FILES="$CONFIG_FILES lang/cpp/src/GpgmeppConfig.cmake.in" ;;
27610     "lang/cpp/src/GpgmeppConfigVersion.cmake") CONFIG_FILES="$CONFIG_FILES lang/cpp/src/GpgmeppConfigVersion.cmake" ;;
27611     "lang/cpp/src/gpgmepp_version.h") CONFIG_FILES="$CONFIG_FILES lang/cpp/src/gpgmepp_version.h" ;;
27612     "lang/qt/Makefile") CONFIG_FILES="$CONFIG_FILES lang/qt/Makefile" ;;
27613     "lang/qt/src/Makefile") CONFIG_FILES="$CONFIG_FILES lang/qt/src/Makefile" ;;
27614     "lang/qt/src/QGpgmeConfig-w32.cmake.in") CONFIG_FILES="$CONFIG_FILES lang/qt/src/QGpgmeConfig-w32.cmake.in" ;;
27615     "lang/qt/src/QGpgmeConfig.cmake.in") CONFIG_FILES="$CONFIG_FILES lang/qt/src/QGpgmeConfig.cmake.in" ;;
27616     "lang/qt/src/QGpgmeConfigVersion.cmake") CONFIG_FILES="$CONFIG_FILES lang/qt/src/QGpgmeConfigVersion.cmake" ;;
27617     "lang/qt/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lang/qt/tests/Makefile" ;;
27618     "lang/qt/src/qgpgme_version.h") CONFIG_FILES="$CONFIG_FILES lang/qt/src/qgpgme_version.h" ;;
27619     "lang/Makefile") CONFIG_FILES="$CONFIG_FILES lang/Makefile" ;;
27620     "lang/cl/Makefile") CONFIG_FILES="$CONFIG_FILES lang/cl/Makefile" ;;
27621     "lang/cl/gpgme.asd") CONFIG_FILES="$CONFIG_FILES lang/cl/gpgme.asd" ;;
27622     "lang/qt/doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES lang/qt/doc/Doxyfile" ;;
27623     "lang/js/Makefile") CONFIG_FILES="$CONFIG_FILES lang/js/Makefile" ;;
27624     "lang/js/src/Makefile") CONFIG_FILES="$CONFIG_FILES lang/js/src/Makefile" ;;
27625     "lang/js/BrowserTestExtension/Makefile") CONFIG_FILES="$CONFIG_FILES lang/js/BrowserTestExtension/Makefile" ;;
27626     "lang/js/DemoExtension/Makefile") CONFIG_FILES="$CONFIG_FILES lang/js/DemoExtension/Makefile" ;;
27627     "lang/qt/doc/Makefile") CONFIG_FILES="$CONFIG_FILES lang/qt/doc/Makefile" ;;
27628     "lang/python/Makefile") CONFIG_FILES="$CONFIG_FILES lang/python/Makefile" ;;
27629     "lang/python/version.py") CONFIG_FILES="$CONFIG_FILES lang/python/version.py" ;;
27630     "lang/python/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lang/python/tests/Makefile" ;;
27631     "lang/python/src/Makefile") CONFIG_FILES="$CONFIG_FILES lang/python/src/Makefile" ;;
27632     "lang/python/examples/Makefile") CONFIG_FILES="$CONFIG_FILES lang/python/examples/Makefile" ;;
27633     "lang/python/doc/Makefile") CONFIG_FILES="$CONFIG_FILES lang/python/doc/Makefile" ;;
27634     "lang/python/setup.py") CONFIG_FILES="$CONFIG_FILES lang/python/setup.py" ;;
27635
27636   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27637   esac
27638 done
27639
27640
27641 # If the user did not use the arguments to specify the items to instantiate,
27642 # then the envvar interface is used.  Set only those that are not.
27643 # We use the long form for the default assignment because of an extremely
27644 # bizarre bug on SunOS 4.1.3.
27645 if $ac_need_defaults; then
27646   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27647   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27648   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27649 fi
27650
27651 # Have a temporary directory for convenience.  Make it in the build tree
27652 # simply because there is no reason against having it here, and in addition,
27653 # creating and moving files from /tmp can sometimes cause problems.
27654 # Hook for its removal unless debugging.
27655 # Note that there is a small window in which the directory will not be cleaned:
27656 # after its creation but before its name has been assigned to `$tmp'.
27657 $debug ||
27658 {
27659   tmp= ac_tmp=
27660   trap 'exit_status=$?
27661   : "${ac_tmp:=$tmp}"
27662   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
27663 ' 0
27664   trap 'as_fn_exit 1' 1 2 13 15
27665 }
27666 # Create a (secure) tmp directory for tmp files.
27667
27668 {
27669   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27670   test -d "$tmp"
27671 }  ||
27672 {
27673   tmp=./conf$$-$RANDOM
27674   (umask 077 && mkdir "$tmp")
27675 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
27676 ac_tmp=$tmp
27677
27678 # Set up the scripts for CONFIG_FILES section.
27679 # No need to generate them if there are no CONFIG_FILES.
27680 # This happens for instance with `./config.status config.h'.
27681 if test -n "$CONFIG_FILES"; then
27682
27683
27684 ac_cr=`echo X | tr X '\015'`
27685 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27686 # But we know of no other shell where ac_cr would be empty at this
27687 # point, so we can use a bashism as a fallback.
27688 if test "x$ac_cr" = x; then
27689   eval ac_cr=\$\'\\r\'
27690 fi
27691 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27692 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27693   ac_cs_awk_cr='\\r'
27694 else
27695   ac_cs_awk_cr=$ac_cr
27696 fi
27697
27698 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
27699 _ACEOF
27700
27701
27702 {
27703   echo "cat >conf$$subs.awk <<_ACEOF" &&
27704   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27705   echo "_ACEOF"
27706 } >conf$$subs.sh ||
27707   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27708 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
27709 ac_delim='%!_!# '
27710 for ac_last_try in false false false false false :; do
27711   . ./conf$$subs.sh ||
27712     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27713
27714   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27715   if test $ac_delim_n = $ac_delim_num; then
27716     break
27717   elif $ac_last_try; then
27718     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27719   else
27720     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27721   fi
27722 done
27723 rm -f conf$$subs.sh
27724
27725 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27726 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
27727 _ACEOF
27728 sed -n '
27729 h
27730 s/^/S["/; s/!.*/"]=/
27731 p
27732 g
27733 s/^[^!]*!//
27734 :repl
27735 t repl
27736 s/'"$ac_delim"'$//
27737 t delim
27738 :nl
27739 h
27740 s/\(.\{148\}\)..*/\1/
27741 t more1
27742 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27743 p
27744 n
27745 b repl
27746 :more1
27747 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27748 p
27749 g
27750 s/.\{148\}//
27751 t nl
27752 :delim
27753 h
27754 s/\(.\{148\}\)..*/\1/
27755 t more2
27756 s/["\\]/\\&/g; s/^/"/; s/$/"/
27757 p
27758 b
27759 :more2
27760 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27761 p
27762 g
27763 s/.\{148\}//
27764 t delim
27765 ' <conf$$subs.awk | sed '
27766 /^[^""]/{
27767   N
27768   s/\n//
27769 }
27770 ' >>$CONFIG_STATUS || ac_write_fail=1
27771 rm -f conf$$subs.awk
27772 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27773 _ACAWK
27774 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
27775   for (key in S) S_is_set[key] = 1
27776   FS = "\a"
27777
27778 }
27779 {
27780   line = $ 0
27781   nfields = split(line, field, "@")
27782   substed = 0
27783   len = length(field[1])
27784   for (i = 2; i < nfields; i++) {
27785     key = field[i]
27786     keylen = length(key)
27787     if (S_is_set[key]) {
27788       value = S[key]
27789       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27790       len += length(value) + length(field[++i])
27791       substed = 1
27792     } else
27793       len += 1 + keylen
27794   }
27795
27796   print line
27797 }
27798
27799 _ACAWK
27800 _ACEOF
27801 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27802 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27803   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27804 else
27805   cat
27806 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
27807   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
27808 _ACEOF
27809
27810 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
27811 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
27812 # trailing colons and then remove the whole line if VPATH becomes empty
27813 # (actually we leave an empty line to preserve line numbers).
27814 if test "x$srcdir" = x.; then
27815   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
27816 h
27817 s///
27818 s/^/:/
27819 s/[      ]*$/:/
27820 s/:\$(srcdir):/:/g
27821 s/:\${srcdir}:/:/g
27822 s/:@srcdir@:/:/g
27823 s/^:*//
27824 s/:*$//
27825 x
27826 s/\(=[   ]*\).*/\1/
27827 G
27828 s/\n//
27829 s/^[^=]*=[       ]*$//
27830 }'
27831 fi
27832
27833 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27834 fi # test -n "$CONFIG_FILES"
27835
27836 # Set up the scripts for CONFIG_HEADERS section.
27837 # No need to generate them if there are no CONFIG_HEADERS.
27838 # This happens for instance with `./config.status Makefile'.
27839 if test -n "$CONFIG_HEADERS"; then
27840 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
27841 BEGIN {
27842 _ACEOF
27843
27844 # Transform confdefs.h into an awk script `defines.awk', embedded as
27845 # here-document in config.status, that substitutes the proper values into
27846 # config.h.in to produce config.h.
27847
27848 # Create a delimiter string that does not exist in confdefs.h, to ease
27849 # handling of long lines.
27850 ac_delim='%!_!# '
27851 for ac_last_try in false false :; do
27852   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
27853   if test -z "$ac_tt"; then
27854     break
27855   elif $ac_last_try; then
27856     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
27857   else
27858     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27859   fi
27860 done
27861
27862 # For the awk script, D is an array of macro values keyed by name,
27863 # likewise P contains macro parameters if any.  Preserve backslash
27864 # newline sequences.
27865
27866 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27867 sed -n '
27868 s/.\{148\}/&'"$ac_delim"'/g
27869 t rset
27870 :rset
27871 s/^[     ]*#[    ]*define[       ][      ]*/ /
27872 t def
27873 d
27874 :def
27875 s/\\$//
27876 t bsnl
27877 s/["\\]/\\&/g
27878 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
27879 D["\1"]=" \3"/p
27880 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
27881 d
27882 :bsnl
27883 s/["\\]/\\&/g
27884 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
27885 D["\1"]=" \3\\\\\\n"\\/p
27886 t cont
27887 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27888 t cont
27889 d
27890 :cont
27891 n
27892 s/.\{148\}/&'"$ac_delim"'/g
27893 t clear
27894 :clear
27895 s/\\$//
27896 t bsnlc
27897 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27898 d
27899 :bsnlc
27900 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27901 b cont
27902 ' <confdefs.h | sed '
27903 s/'"$ac_delim"'/"\\\
27904 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27905
27906 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27907   for (key in D) D_is_set[key] = 1
27908   FS = "\a"
27909 }
27910 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27911   line = \$ 0
27912   split(line, arg, " ")
27913   if (arg[1] == "#") {
27914     defundef = arg[2]
27915     mac1 = arg[3]
27916   } else {
27917     defundef = substr(arg[1], 2)
27918     mac1 = arg[2]
27919   }
27920   split(mac1, mac2, "(") #)
27921   macro = mac2[1]
27922   prefix = substr(line, 1, index(line, defundef) - 1)
27923   if (D_is_set[macro]) {
27924     # Preserve the white space surrounding the "#".
27925     print prefix "define", macro P[macro] D[macro]
27926     next
27927   } else {
27928     # Replace #undef with comments.  This is necessary, for example,
27929     # in the case of _POSIX_SOURCE, which is predefined and required
27930     # on some systems where configure will not decide to define it.
27931     if (defundef == "undef") {
27932       print "/*", prefix defundef, macro, "*/"
27933       next
27934     }
27935   }
27936 }
27937 { print }
27938 _ACAWK
27939 _ACEOF
27940 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27941   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
27942 fi # test -n "$CONFIG_HEADERS"
27943
27944
27945 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
27946 shift
27947 for ac_tag
27948 do
27949   case $ac_tag in
27950   :[FHLC]) ac_mode=$ac_tag; continue;;
27951   esac
27952   case $ac_mode$ac_tag in
27953   :[FHL]*:*);;
27954   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
27955   :[FH]-) ac_tag=-:-;;
27956   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27957   esac
27958   ac_save_IFS=$IFS
27959   IFS=:
27960   set x $ac_tag
27961   IFS=$ac_save_IFS
27962   shift
27963   ac_file=$1
27964   shift
27965
27966   case $ac_mode in
27967   :L) ac_source=$1;;
27968   :[FH])
27969     ac_file_inputs=
27970     for ac_f
27971     do
27972       case $ac_f in
27973       -) ac_f="$ac_tmp/stdin";;
27974       *) # Look for the file first in the build tree, then in the source tree
27975          # (if the path is not absolute).  The absolute path cannot be DOS-style,
27976          # because $ac_f cannot contain `:'.
27977          test -f "$ac_f" ||
27978            case $ac_f in
27979            [\\/$]*) false;;
27980            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27981            esac ||
27982            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27983       esac
27984       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27985       as_fn_append ac_file_inputs " '$ac_f'"
27986     done
27987
27988     # Let's still pretend it is `configure' which instantiates (i.e., don't
27989     # use $as_me), people would be surprised to read:
27990     #    /* config.h.  Generated by config.status.  */
27991     configure_input='Generated from '`
27992           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27993         `' by configure.'
27994     if test x"$ac_file" != x-; then
27995       configure_input="$ac_file.  $configure_input"
27996       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27997 $as_echo "$as_me: creating $ac_file" >&6;}
27998     fi
27999     # Neutralize special characters interpreted by sed in replacement strings.
28000     case $configure_input in #(
28001     *\&* | *\|* | *\\* )
28002        ac_sed_conf_input=`$as_echo "$configure_input" |
28003        sed 's/[\\\\&|]/\\\\&/g'`;; #(
28004     *) ac_sed_conf_input=$configure_input;;
28005     esac
28006
28007     case $ac_tag in
28008     *:-:* | *:-) cat >"$ac_tmp/stdin" \
28009       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
28010     esac
28011     ;;
28012   esac
28013
28014   ac_dir=`$as_dirname -- "$ac_file" ||
28015 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28016          X"$ac_file" : 'X\(//\)[^/]' \| \
28017          X"$ac_file" : 'X\(//\)$' \| \
28018          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28019 $as_echo X"$ac_file" |
28020     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28021             s//\1/
28022             q
28023           }
28024           /^X\(\/\/\)[^/].*/{
28025             s//\1/
28026             q
28027           }
28028           /^X\(\/\/\)$/{
28029             s//\1/
28030             q
28031           }
28032           /^X\(\/\).*/{
28033             s//\1/
28034             q
28035           }
28036           s/.*/./; q'`
28037   as_dir="$ac_dir"; as_fn_mkdir_p
28038   ac_builddir=.
28039
28040 case "$ac_dir" in
28041 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28042 *)
28043   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28044   # A ".." for each directory in $ac_dir_suffix.
28045   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28046   case $ac_top_builddir_sub in
28047   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28048   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28049   esac ;;
28050 esac
28051 ac_abs_top_builddir=$ac_pwd
28052 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28053 # for backward compatibility:
28054 ac_top_builddir=$ac_top_build_prefix
28055
28056 case $srcdir in
28057   .)  # We are building in place.
28058     ac_srcdir=.
28059     ac_top_srcdir=$ac_top_builddir_sub
28060     ac_abs_top_srcdir=$ac_pwd ;;
28061   [\\/]* | ?:[\\/]* )  # Absolute name.
28062     ac_srcdir=$srcdir$ac_dir_suffix;
28063     ac_top_srcdir=$srcdir
28064     ac_abs_top_srcdir=$srcdir ;;
28065   *) # Relative name.
28066     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28067     ac_top_srcdir=$ac_top_build_prefix$srcdir
28068     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28069 esac
28070 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28071
28072
28073   case $ac_mode in
28074   :F)
28075   #
28076   # CONFIG_FILE
28077   #
28078
28079   case $INSTALL in
28080   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28081   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28082   esac
28083   ac_MKDIR_P=$MKDIR_P
28084   case $MKDIR_P in
28085   [\\/$]* | ?:[\\/]* ) ;;
28086   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
28087   esac
28088 _ACEOF
28089
28090 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28091 # If the template does not know about datarootdir, expand it.
28092 # FIXME: This hack should be removed a few years after 2.60.
28093 ac_datarootdir_hack=; ac_datarootdir_seen=
28094 ac_sed_dataroot='
28095 /datarootdir/ {
28096   p
28097   q
28098 }
28099 /@datadir@/p
28100 /@docdir@/p
28101 /@infodir@/p
28102 /@localedir@/p
28103 /@mandir@/p'
28104 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28105 *datarootdir*) ac_datarootdir_seen=yes;;
28106 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28107   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28108 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28109 _ACEOF
28110 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28111   ac_datarootdir_hack='
28112   s&@datadir@&$datadir&g
28113   s&@docdir@&$docdir&g
28114   s&@infodir@&$infodir&g
28115   s&@localedir@&$localedir&g
28116   s&@mandir@&$mandir&g
28117   s&\\\${datarootdir}&$datarootdir&g' ;;
28118 esac
28119 _ACEOF
28120
28121 # Neutralize VPATH when `$srcdir' = `.'.
28122 # Shell code in configure.ac might set extrasub.
28123 # FIXME: do we really want to maintain this feature?
28124 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28125 ac_sed_extra="$ac_vpsub
28126 $extrasub
28127 _ACEOF
28128 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28129 :t
28130 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28131 s|@configure_input@|$ac_sed_conf_input|;t t
28132 s&@top_builddir@&$ac_top_builddir_sub&;t t
28133 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28134 s&@srcdir@&$ac_srcdir&;t t
28135 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28136 s&@top_srcdir@&$ac_top_srcdir&;t t
28137 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28138 s&@builddir@&$ac_builddir&;t t
28139 s&@abs_builddir@&$ac_abs_builddir&;t t
28140 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28141 s&@INSTALL@&$ac_INSTALL&;t t
28142 s&@MKDIR_P@&$ac_MKDIR_P&;t t
28143 $ac_datarootdir_hack
28144 "
28145 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
28146   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28147
28148 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28149   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
28150   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
28151       "$ac_tmp/out"`; test -z "$ac_out"; } &&
28152   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28153 which seems to be undefined.  Please make sure it is defined" >&5
28154 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28155 which seems to be undefined.  Please make sure it is defined" >&2;}
28156
28157   rm -f "$ac_tmp/stdin"
28158   case $ac_file in
28159   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
28160   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
28161   esac \
28162   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28163  ;;
28164   :H)
28165   #
28166   # CONFIG_HEADER
28167   #
28168   if test x"$ac_file" != x-; then
28169     {
28170       $as_echo "/* $configure_input  */" \
28171       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
28172     } >"$ac_tmp/config.h" \
28173       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28174     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
28175       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28176 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28177     else
28178       rm -f "$ac_file"
28179       mv "$ac_tmp/config.h" "$ac_file" \
28180         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28181     fi
28182   else
28183     $as_echo "/* $configure_input  */" \
28184       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
28185       || as_fn_error $? "could not create -" "$LINENO" 5
28186   fi
28187 # Compute "$ac_file"'s index in $config_headers.
28188 _am_arg="$ac_file"
28189 _am_stamp_count=1
28190 for _am_header in $config_headers :; do
28191   case $_am_header in
28192     $_am_arg | $_am_arg:* )
28193       break ;;
28194     * )
28195       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28196   esac
28197 done
28198 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28199 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28200          X"$_am_arg" : 'X\(//\)[^/]' \| \
28201          X"$_am_arg" : 'X\(//\)$' \| \
28202          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28203 $as_echo X"$_am_arg" |
28204     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28205             s//\1/
28206             q
28207           }
28208           /^X\(\/\/\)[^/].*/{
28209             s//\1/
28210             q
28211           }
28212           /^X\(\/\/\)$/{
28213             s//\1/
28214             q
28215           }
28216           /^X\(\/\).*/{
28217             s//\1/
28218             q
28219           }
28220           s/.*/./; q'`/stamp-h$_am_stamp_count
28221  ;;
28222
28223   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28224 $as_echo "$as_me: executing $ac_file commands" >&6;}
28225  ;;
28226   esac
28227
28228
28229   case $ac_file$ac_mode in
28230     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
28231   # Older Autoconf quotes --file arguments for eval, but not when files
28232   # are listed without --file.  Let's play safe and only enable the eval
28233   # if we detect the quoting.
28234   # TODO: see whether this extra hack can be removed once we start
28235   # requiring Autoconf 2.70 or later.
28236   case $CONFIG_FILES in #(
28237   *\'*) :
28238     eval set x "$CONFIG_FILES" ;; #(
28239   *) :
28240     set x $CONFIG_FILES ;; #(
28241   *) :
28242      ;;
28243 esac
28244   shift
28245   # Used to flag and report bootstrapping failures.
28246   am_rc=0
28247   for am_mf
28248   do
28249     # Strip MF so we end up with the name of the file.
28250     am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
28251     # Check whether this is an Automake generated Makefile which includes
28252     # dependency-tracking related rules and includes.
28253     # Grep'ing the whole file directly is not great: AIX grep has a line
28254     # limit of 2048, but all sed's we know have understand at least 4000.
28255     sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
28256       || continue
28257     am_dirpart=`$as_dirname -- "$am_mf" ||
28258 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28259          X"$am_mf" : 'X\(//\)[^/]' \| \
28260          X"$am_mf" : 'X\(//\)$' \| \
28261          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
28262 $as_echo X"$am_mf" |
28263     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28264             s//\1/
28265             q
28266           }
28267           /^X\(\/\/\)[^/].*/{
28268             s//\1/
28269             q
28270           }
28271           /^X\(\/\/\)$/{
28272             s//\1/
28273             q
28274           }
28275           /^X\(\/\).*/{
28276             s//\1/
28277             q
28278           }
28279           s/.*/./; q'`
28280     am_filepart=`$as_basename -- "$am_mf" ||
28281 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
28282          X"$am_mf" : 'X\(//\)$' \| \
28283          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
28284 $as_echo X/"$am_mf" |
28285     sed '/^.*\/\([^/][^/]*\)\/*$/{
28286             s//\1/
28287             q
28288           }
28289           /^X\/\(\/\/\)$/{
28290             s//\1/
28291             q
28292           }
28293           /^X\/\(\/\).*/{
28294             s//\1/
28295             q
28296           }
28297           s/.*/./; q'`
28298     { echo "$as_me:$LINENO: cd "$am_dirpart" \
28299       && sed -e '/# am--include-marker/d' "$am_filepart" \
28300         | $MAKE -f - am--depfiles" >&5
28301    (cd "$am_dirpart" \
28302       && sed -e '/# am--include-marker/d' "$am_filepart" \
28303         | $MAKE -f - am--depfiles) >&5 2>&5
28304    ac_status=$?
28305    echo "$as_me:$LINENO: \$? = $ac_status" >&5
28306    (exit $ac_status); } || am_rc=$?
28307   done
28308   if test $am_rc -ne 0; then
28309     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28310 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28311 as_fn_error $? "Something went wrong bootstrapping makefile fragments
28312     for automatic dependency tracking.  If GNU make was not used, consider
28313     re-running the configure script with MAKE=\"gmake\" (or whatever is
28314     necessary).  You can also try re-running configure with the
28315     '--disable-dependency-tracking' option to at least be able to build
28316     the package (albeit without support for automatic dependency tracking).
28317 See \`config.log' for more details" "$LINENO" 5; }
28318   fi
28319   { am_dirpart=; unset am_dirpart;}
28320   { am_filepart=; unset am_filepart;}
28321   { am_mf=; unset am_mf;}
28322   { am_rc=; unset am_rc;}
28323   rm -f conftest-deps.mk
28324 }
28325  ;;
28326     "libtool":C)
28327
28328     # See if we are running on zsh, and set the options which allow our
28329     # commands through without removal of \ escapes.
28330     if test -n "${ZSH_VERSION+set}" ; then
28331       setopt NO_GLOB_SUBST
28332     fi
28333
28334     cfgfile="${ofile}T"
28335     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
28336     $RM "$cfgfile"
28337
28338     cat <<_LT_EOF >> "$cfgfile"
28339 #! $SHELL
28340
28341 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
28342 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
28343 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
28344 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
28345 #
28346 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
28347 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
28348 #                 Foundation, Inc.
28349 #   Written by Gordon Matzigkeit, 1996
28350 #
28351 #   This file is part of GNU Libtool.
28352 #
28353 # GNU Libtool is free software; you can redistribute it and/or
28354 # modify it under the terms of the GNU General Public License as
28355 # published by the Free Software Foundation; either version 2 of
28356 # the License, or (at your option) any later version.
28357 #
28358 # As a special exception to the GNU General Public License,
28359 # if you distribute this file as part of a program or library that
28360 # is built using GNU Libtool, you may include this file under the
28361 # same distribution terms that you use for the rest of that program.
28362 #
28363 # GNU Libtool is distributed in the hope that it will be useful,
28364 # but WITHOUT ANY WARRANTY; without even the implied warranty of
28365 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
28366 # GNU General Public License for more details.
28367 #
28368 # You should have received a copy of the GNU General Public License
28369 # along with GNU Libtool; see the file COPYING.  If not, a copy
28370 # can be downloaded from https://www.gnu.org/licenses/gpl.html, or
28371 # obtained by writing to the Free Software Foundation, Inc.,
28372 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
28373
28374
28375 # The names of the tagged configurations supported by this script.
28376 available_tags="CXX RC "
28377
28378 # ### BEGIN LIBTOOL CONFIG
28379
28380 # Which release of libtool.m4 was used?
28381 macro_version=$macro_version
28382 macro_revision=$macro_revision
28383
28384 # Assembler program.
28385 AS=$lt_AS
28386
28387 # DLL creation program.
28388 DLLTOOL=$lt_DLLTOOL
28389
28390 # Object dumper program.
28391 OBJDUMP=$lt_OBJDUMP
28392
28393 # Whether or not to build static libraries.
28394 build_old_libs=$enable_static
28395
28396 # Whether or not to build shared libraries.
28397 build_libtool_libs=$enable_shared
28398
28399 # What type of objects to build.
28400 pic_mode=$pic_mode
28401
28402 # Whether or not to optimize for fast installation.
28403 fast_install=$enable_fast_install
28404
28405 # Shell to use when invoking shell scripts.
28406 SHELL=$lt_SHELL
28407
28408 # An echo program that protects backslashes.
28409 ECHO=$lt_ECHO
28410
28411 # The PATH separator for the build system.
28412 PATH_SEPARATOR=$lt_PATH_SEPARATOR
28413
28414 # The host system.
28415 host_alias=$host_alias
28416 host=$host
28417 host_os=$host_os
28418
28419 # The build system.
28420 build_alias=$build_alias
28421 build=$build
28422 build_os=$build_os
28423
28424 # A sed program that does not truncate output.
28425 SED=$lt_SED
28426
28427 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
28428 Xsed="\$SED -e 1s/^X//"
28429
28430 # A grep program that handles long lines.
28431 GREP=$lt_GREP
28432
28433 # An ERE matcher.
28434 EGREP=$lt_EGREP
28435
28436 # A literal string matcher.
28437 FGREP=$lt_FGREP
28438
28439 # A BSD- or MS-compatible name lister.
28440 NM=$lt_NM
28441
28442 # Whether we need soft or hard links.
28443 LN_S=$lt_LN_S
28444
28445 # What is the maximum length of a command?
28446 max_cmd_len=$max_cmd_len
28447
28448 # Object file suffix (normally "o").
28449 objext=$ac_objext
28450
28451 # Executable file suffix (normally "").
28452 exeext=$exeext
28453
28454 # whether the shell understands "unset".
28455 lt_unset=$lt_unset
28456
28457 # turn spaces into newlines.
28458 SP2NL=$lt_lt_SP2NL
28459
28460 # turn newlines into spaces.
28461 NL2SP=$lt_lt_NL2SP
28462
28463 # convert \$build file names to \$host format.
28464 to_host_file_cmd=$lt_cv_to_host_file_cmd
28465
28466 # convert \$build files to toolchain format.
28467 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
28468
28469 # Method to check whether dependent libraries are shared objects.
28470 deplibs_check_method=$lt_deplibs_check_method
28471
28472 # Command to use when deplibs_check_method = "file_magic".
28473 file_magic_cmd=$lt_file_magic_cmd
28474
28475 # How to find potential files when deplibs_check_method = "file_magic".
28476 file_magic_glob=$lt_file_magic_glob
28477
28478 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
28479 want_nocaseglob=$lt_want_nocaseglob
28480
28481 # Command to associate shared and link libraries.
28482 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
28483
28484 # The archiver.
28485 AR=$lt_AR
28486
28487 # Flags to create an archive.
28488 AR_FLAGS=$lt_AR_FLAGS
28489
28490 # How to feed a file listing to the archiver.
28491 archiver_list_spec=$lt_archiver_list_spec
28492
28493 # A symbol stripping program.
28494 STRIP=$lt_STRIP
28495
28496 # Commands used to install an old-style archive.
28497 RANLIB=$lt_RANLIB
28498 old_postinstall_cmds=$lt_old_postinstall_cmds
28499 old_postuninstall_cmds=$lt_old_postuninstall_cmds
28500
28501 # Whether to use a lock for old archive extraction.
28502 lock_old_archive_extraction=$lock_old_archive_extraction
28503
28504 # A C compiler.
28505 LTCC=$lt_CC
28506
28507 # LTCC compiler flags.
28508 LTCFLAGS=$lt_CFLAGS
28509
28510 # Take the output of nm and produce a listing of raw symbols and C names.
28511 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28512
28513 # Transform the output of nm in a proper C declaration.
28514 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28515
28516 # Transform the output of nm in a C name address pair.
28517 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28518
28519 # Transform the output of nm in a C name address pair when lib prefix is needed.
28520 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
28521
28522 # Specify filename containing input files for \$NM.
28523 nm_file_list_spec=$lt_nm_file_list_spec
28524
28525 # The root where to search for dependent libraries,and in which our libraries should be installed.
28526 lt_sysroot=$lt_sysroot
28527
28528 # The name of the directory that contains temporary libtool files.
28529 objdir=$objdir
28530
28531 # Used to examine libraries when file_magic_cmd begins with "file".
28532 MAGIC_CMD=$MAGIC_CMD
28533
28534 # Must we lock files when doing compilation?
28535 need_locks=$lt_need_locks
28536
28537 # Manifest tool.
28538 MANIFEST_TOOL=$lt_MANIFEST_TOOL
28539
28540 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
28541 DSYMUTIL=$lt_DSYMUTIL
28542
28543 # Tool to change global to local symbols on Mac OS X.
28544 NMEDIT=$lt_NMEDIT
28545
28546 # Tool to manipulate fat objects and archives on Mac OS X.
28547 LIPO=$lt_LIPO
28548
28549 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
28550 OTOOL=$lt_OTOOL
28551
28552 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
28553 OTOOL64=$lt_OTOOL64
28554
28555 # Old archive suffix (normally "a").
28556 libext=$libext
28557
28558 # Shared library suffix (normally ".so").
28559 shrext_cmds=$lt_shrext_cmds
28560
28561 # The commands to extract the exported symbol list from a shared archive.
28562 extract_expsyms_cmds=$lt_extract_expsyms_cmds
28563
28564 # Variables whose values should be saved in libtool wrapper scripts and
28565 # restored at link time.
28566 variables_saved_for_relink=$lt_variables_saved_for_relink
28567
28568 # Do we need the "lib" prefix for modules?
28569 need_lib_prefix=$need_lib_prefix
28570
28571 # Do we need a version for libraries?
28572 need_version=$need_version
28573
28574 # Library versioning type.
28575 version_type=$version_type
28576
28577 # Shared library runtime path variable.
28578 runpath_var=$runpath_var
28579
28580 # Shared library path variable.
28581 shlibpath_var=$shlibpath_var
28582
28583 # Is shlibpath searched before the hard-coded library search path?
28584 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
28585
28586 # Format of library name prefix.
28587 libname_spec=$lt_libname_spec
28588
28589 # List of archive names.  First name is the real one, the rest are links.
28590 # The last name is the one that the linker finds with -lNAME
28591 library_names_spec=$lt_library_names_spec
28592
28593 # The coded name of the library, if different from the real name.
28594 soname_spec=$lt_soname_spec
28595
28596 # Permission mode override for installation of shared libraries.
28597 install_override_mode=$lt_install_override_mode
28598
28599 # Command to use after installation of a shared archive.
28600 postinstall_cmds=$lt_postinstall_cmds
28601
28602 # Command to use after uninstallation of a shared archive.
28603 postuninstall_cmds=$lt_postuninstall_cmds
28604
28605 # Commands used to finish a libtool library installation in a directory.
28606 finish_cmds=$lt_finish_cmds
28607
28608 # As "finish_cmds", except a single script fragment to be evaled but
28609 # not shown.
28610 finish_eval=$lt_finish_eval
28611
28612 # Whether we should hardcode library paths into libraries.
28613 hardcode_into_libs=$hardcode_into_libs
28614
28615 # Compile-time system search path for libraries.
28616 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
28617
28618 # Run-time system search path for libraries.
28619 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
28620
28621 # Whether dlopen is supported.
28622 dlopen_support=$enable_dlopen
28623
28624 # Whether dlopen of programs is supported.
28625 dlopen_self=$enable_dlopen_self
28626
28627 # Whether dlopen of statically linked programs is supported.
28628 dlopen_self_static=$enable_dlopen_self_static
28629
28630 # Commands to strip libraries.
28631 old_striplib=$lt_old_striplib
28632 striplib=$lt_striplib
28633
28634
28635 # The linker used to build libraries.
28636 LD=$lt_LD
28637
28638 # How to create reloadable object files.
28639 reload_flag=$lt_reload_flag
28640 reload_cmds=$lt_reload_cmds
28641
28642 # Commands used to build an old-style archive.
28643 old_archive_cmds=$lt_old_archive_cmds
28644
28645 # A language specific compiler.
28646 CC=$lt_compiler
28647
28648 # Is the compiler the GNU compiler?
28649 with_gcc=$GCC
28650
28651 # Compiler flag to turn off builtin functions.
28652 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
28653
28654 # Additional compiler flags for building library objects.
28655 pic_flag=$lt_lt_prog_compiler_pic
28656
28657 # How to pass a linker flag through the compiler.
28658 wl=$lt_lt_prog_compiler_wl
28659
28660 # Compiler flag to prevent dynamic linking.
28661 link_static_flag=$lt_lt_prog_compiler_static
28662
28663 # Does compiler simultaneously support -c and -o options?
28664 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
28665
28666 # Whether or not to add -lc for building shared libraries.
28667 build_libtool_need_lc=$archive_cmds_need_lc
28668
28669 # Whether or not to disallow shared libs when runtime libs are static.
28670 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
28671
28672 # Compiler flag to allow reflexive dlopens.
28673 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
28674
28675 # Compiler flag to generate shared objects directly from archives.
28676 whole_archive_flag_spec=$lt_whole_archive_flag_spec
28677
28678 # Whether the compiler copes with passing no objects directly.
28679 compiler_needs_object=$lt_compiler_needs_object
28680
28681 # Create an old-style archive from a shared archive.
28682 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
28683
28684 # Create a temporary old-style archive to link instead of a shared archive.
28685 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
28686
28687 # Commands used to build a shared archive.
28688 archive_cmds=$lt_archive_cmds
28689 archive_expsym_cmds=$lt_archive_expsym_cmds
28690
28691 # Commands used to build a loadable module if different from building
28692 # a shared archive.
28693 module_cmds=$lt_module_cmds
28694 module_expsym_cmds=$lt_module_expsym_cmds
28695
28696 # Whether we are building with GNU ld or not.
28697 with_gnu_ld=$lt_with_gnu_ld
28698
28699 # Flag that allows shared libraries with undefined symbols to be built.
28700 allow_undefined_flag=$lt_allow_undefined_flag
28701
28702 # Flag that enforces no undefined symbols.
28703 no_undefined_flag=$lt_no_undefined_flag
28704
28705 # Flag to hardcode \$libdir into a binary during linking.
28706 # This must work even if \$libdir does not exist
28707 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
28708
28709 # Whether we need a single "-rpath" flag with a separated argument.
28710 hardcode_libdir_separator=$lt_hardcode_libdir_separator
28711
28712 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28713 # DIR into the resulting binary.
28714 hardcode_direct=$hardcode_direct
28715
28716 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28717 # DIR into the resulting binary and the resulting library dependency is
28718 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
28719 # library is relocated.
28720 hardcode_direct_absolute=$hardcode_direct_absolute
28721
28722 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28723 # into the resulting binary.
28724 hardcode_minus_L=$hardcode_minus_L
28725
28726 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28727 # into the resulting binary.
28728 hardcode_shlibpath_var=$hardcode_shlibpath_var
28729
28730 # Set to "yes" if building a shared library automatically hardcodes DIR
28731 # into the library and all subsequent libraries and executables linked
28732 # against it.
28733 hardcode_automatic=$hardcode_automatic
28734
28735 # Set to yes if linker adds runtime paths of dependent libraries
28736 # to runtime path list.
28737 inherit_rpath=$inherit_rpath
28738
28739 # Whether libtool must link a program against all its dependency libraries.
28740 link_all_deplibs=$link_all_deplibs
28741
28742 # Set to "yes" if exported symbols are required.
28743 always_export_symbols=$always_export_symbols
28744
28745 # The commands to list exported symbols.
28746 export_symbols_cmds=$lt_export_symbols_cmds
28747
28748 # Symbols that should not be listed in the preloaded symbols.
28749 exclude_expsyms=$lt_exclude_expsyms
28750
28751 # Symbols that must always be exported.
28752 include_expsyms=$lt_include_expsyms
28753
28754 # Commands necessary for linking programs (against libraries) with templates.
28755 prelink_cmds=$lt_prelink_cmds
28756
28757 # Commands necessary for finishing linking programs.
28758 postlink_cmds=$lt_postlink_cmds
28759
28760 # Specify filename containing input files.
28761 file_list_spec=$lt_file_list_spec
28762
28763 # How to hardcode a shared library path into an executable.
28764 hardcode_action=$hardcode_action
28765
28766 # The directories searched by this compiler when creating a shared library.
28767 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
28768
28769 # Dependencies to place before and after the objects being linked to
28770 # create a shared library.
28771 predep_objects=$lt_predep_objects
28772 postdep_objects=$lt_postdep_objects
28773 predeps=$lt_predeps
28774 postdeps=$lt_postdeps
28775
28776 # The library search path used internally by the compiler when linking
28777 # a shared library.
28778 compiler_lib_search_path=$lt_compiler_lib_search_path
28779
28780 # ### END LIBTOOL CONFIG
28781
28782 _LT_EOF
28783
28784   case $host_os in
28785   aix3*)
28786     cat <<\_LT_EOF >> "$cfgfile"
28787 # AIX sometimes has problems with the GCC collect2 program.  For some
28788 # reason, if we set the COLLECT_NAMES environment variable, the problems
28789 # vanish in a puff of smoke.
28790 if test "X${COLLECT_NAMES+set}" != Xset; then
28791   COLLECT_NAMES=
28792   export COLLECT_NAMES
28793 fi
28794 _LT_EOF
28795     ;;
28796   esac
28797
28798
28799 ltmain="$ac_aux_dir/ltmain.sh"
28800
28801
28802   # We use sed instead of cat because bash on DJGPP gets confused if
28803   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
28804   # text mode, it properly converts lines to CR/LF.  This bash problem
28805   # is reportedly fixed, but why not run on old versions too?
28806   sed '$q' "$ltmain" >> "$cfgfile" \
28807      || (rm -f "$cfgfile"; exit 1)
28808
28809   if test x"$xsi_shell" = xyes; then
28810   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
28811 func_dirname ()\
28812 {\
28813 \    case ${1} in\
28814 \      */*) func_dirname_result="${1%/*}${2}" ;;\
28815 \      *  ) func_dirname_result="${3}" ;;\
28816 \    esac\
28817 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
28818   && mv -f "$cfgfile.tmp" "$cfgfile" \
28819     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28820 test 0 -eq $? || _lt_function_replace_fail=:
28821
28822
28823   sed -e '/^func_basename ()$/,/^} # func_basename /c\
28824 func_basename ()\
28825 {\
28826 \    func_basename_result="${1##*/}"\
28827 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
28828   && mv -f "$cfgfile.tmp" "$cfgfile" \
28829     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28830 test 0 -eq $? || _lt_function_replace_fail=:
28831
28832
28833   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
28834 func_dirname_and_basename ()\
28835 {\
28836 \    case ${1} in\
28837 \      */*) func_dirname_result="${1%/*}${2}" ;;\
28838 \      *  ) func_dirname_result="${3}" ;;\
28839 \    esac\
28840 \    func_basename_result="${1##*/}"\
28841 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
28842   && mv -f "$cfgfile.tmp" "$cfgfile" \
28843     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28844 test 0 -eq $? || _lt_function_replace_fail=:
28845
28846
28847   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
28848 func_stripname ()\
28849 {\
28850 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
28851 \    # positional parameters, so assign one to ordinary parameter first.\
28852 \    func_stripname_result=${3}\
28853 \    func_stripname_result=${func_stripname_result#"${1}"}\
28854 \    func_stripname_result=${func_stripname_result%"${2}"}\
28855 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
28856   && mv -f "$cfgfile.tmp" "$cfgfile" \
28857     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28858 test 0 -eq $? || _lt_function_replace_fail=:
28859
28860
28861   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
28862 func_split_long_opt ()\
28863 {\
28864 \    func_split_long_opt_name=${1%%=*}\
28865 \    func_split_long_opt_arg=${1#*=}\
28866 } # Extended-shell func_split_long_opt 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_split_short_opt ()$/,/^} # func_split_short_opt /c\
28873 func_split_short_opt ()\
28874 {\
28875 \    func_split_short_opt_arg=${1#??}\
28876 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
28877 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
28878   && mv -f "$cfgfile.tmp" "$cfgfile" \
28879     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28880 test 0 -eq $? || _lt_function_replace_fail=:
28881
28882
28883   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
28884 func_lo2o ()\
28885 {\
28886 \    case ${1} in\
28887 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
28888 \      *)    func_lo2o_result=${1} ;;\
28889 \    esac\
28890 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
28891   && mv -f "$cfgfile.tmp" "$cfgfile" \
28892     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28893 test 0 -eq $? || _lt_function_replace_fail=:
28894
28895
28896   sed -e '/^func_xform ()$/,/^} # func_xform /c\
28897 func_xform ()\
28898 {\
28899     func_xform_result=${1%.*}.lo\
28900 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
28901   && mv -f "$cfgfile.tmp" "$cfgfile" \
28902     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28903 test 0 -eq $? || _lt_function_replace_fail=:
28904
28905
28906   sed -e '/^func_arith ()$/,/^} # func_arith /c\
28907 func_arith ()\
28908 {\
28909     func_arith_result=$(( $* ))\
28910 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
28911   && mv -f "$cfgfile.tmp" "$cfgfile" \
28912     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28913 test 0 -eq $? || _lt_function_replace_fail=:
28914
28915
28916   sed -e '/^func_len ()$/,/^} # func_len /c\
28917 func_len ()\
28918 {\
28919     func_len_result=${#1}\
28920 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
28921   && mv -f "$cfgfile.tmp" "$cfgfile" \
28922     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28923 test 0 -eq $? || _lt_function_replace_fail=:
28924
28925 fi
28926
28927 if test x"$lt_shell_append" = xyes; then
28928   sed -e '/^func_append ()$/,/^} # func_append /c\
28929 func_append ()\
28930 {\
28931     eval "${1}+=\\${2}"\
28932 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
28933   && mv -f "$cfgfile.tmp" "$cfgfile" \
28934     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28935 test 0 -eq $? || _lt_function_replace_fail=:
28936
28937
28938   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
28939 func_append_quoted ()\
28940 {\
28941 \    func_quote_for_eval "${2}"\
28942 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
28943 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
28944   && mv -f "$cfgfile.tmp" "$cfgfile" \
28945     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28946 test 0 -eq $? || _lt_function_replace_fail=:
28947
28948
28949   # Save a `func_append' function call where possible by direct use of '+='
28950   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
28951     && mv -f "$cfgfile.tmp" "$cfgfile" \
28952       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28953   test 0 -eq $? || _lt_function_replace_fail=:
28954 else
28955   # Save a `func_append' function call even when '+=' is not available
28956   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
28957     && mv -f "$cfgfile.tmp" "$cfgfile" \
28958       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28959   test 0 -eq $? || _lt_function_replace_fail=:
28960 fi
28961
28962 if test x"$_lt_function_replace_fail" = x":"; then
28963   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
28964 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
28965 fi
28966
28967
28968    mv -f "$cfgfile" "$ofile" ||
28969     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
28970   chmod +x "$ofile"
28971
28972
28973     cat <<_LT_EOF >> "$ofile"
28974
28975 # ### BEGIN LIBTOOL TAG CONFIG: CXX
28976
28977 # The linker used to build libraries.
28978 LD=$lt_LD_CXX
28979
28980 # How to create reloadable object files.
28981 reload_flag=$lt_reload_flag_CXX
28982 reload_cmds=$lt_reload_cmds_CXX
28983
28984 # Commands used to build an old-style archive.
28985 old_archive_cmds=$lt_old_archive_cmds_CXX
28986
28987 # A language specific compiler.
28988 CC=$lt_compiler_CXX
28989
28990 # Is the compiler the GNU compiler?
28991 with_gcc=$GCC_CXX
28992
28993 # Compiler flag to turn off builtin functions.
28994 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
28995
28996 # Additional compiler flags for building library objects.
28997 pic_flag=$lt_lt_prog_compiler_pic_CXX
28998
28999 # How to pass a linker flag through the compiler.
29000 wl=$lt_lt_prog_compiler_wl_CXX
29001
29002 # Compiler flag to prevent dynamic linking.
29003 link_static_flag=$lt_lt_prog_compiler_static_CXX
29004
29005 # Does compiler simultaneously support -c and -o options?
29006 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
29007
29008 # Whether or not to add -lc for building shared libraries.
29009 build_libtool_need_lc=$archive_cmds_need_lc_CXX
29010
29011 # Whether or not to disallow shared libs when runtime libs are static.
29012 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
29013
29014 # Compiler flag to allow reflexive dlopens.
29015 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
29016
29017 # Compiler flag to generate shared objects directly from archives.
29018 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
29019
29020 # Whether the compiler copes with passing no objects directly.
29021 compiler_needs_object=$lt_compiler_needs_object_CXX
29022
29023 # Create an old-style archive from a shared archive.
29024 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
29025
29026 # Create a temporary old-style archive to link instead of a shared archive.
29027 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
29028
29029 # Commands used to build a shared archive.
29030 archive_cmds=$lt_archive_cmds_CXX
29031 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
29032
29033 # Commands used to build a loadable module if different from building
29034 # a shared archive.
29035 module_cmds=$lt_module_cmds_CXX
29036 module_expsym_cmds=$lt_module_expsym_cmds_CXX
29037
29038 # Whether we are building with GNU ld or not.
29039 with_gnu_ld=$lt_with_gnu_ld_CXX
29040
29041 # Flag that allows shared libraries with undefined symbols to be built.
29042 allow_undefined_flag=$lt_allow_undefined_flag_CXX
29043
29044 # Flag that enforces no undefined symbols.
29045 no_undefined_flag=$lt_no_undefined_flag_CXX
29046
29047 # Flag to hardcode \$libdir into a binary during linking.
29048 # This must work even if \$libdir does not exist
29049 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
29050
29051 # Whether we need a single "-rpath" flag with a separated argument.
29052 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
29053
29054 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29055 # DIR into the resulting binary.
29056 hardcode_direct=$hardcode_direct_CXX
29057
29058 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29059 # DIR into the resulting binary and the resulting library dependency is
29060 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
29061 # library is relocated.
29062 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
29063
29064 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29065 # into the resulting binary.
29066 hardcode_minus_L=$hardcode_minus_L_CXX
29067
29068 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29069 # into the resulting binary.
29070 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
29071
29072 # Set to "yes" if building a shared library automatically hardcodes DIR
29073 # into the library and all subsequent libraries and executables linked
29074 # against it.
29075 hardcode_automatic=$hardcode_automatic_CXX
29076
29077 # Set to yes if linker adds runtime paths of dependent libraries
29078 # to runtime path list.
29079 inherit_rpath=$inherit_rpath_CXX
29080
29081 # Whether libtool must link a program against all its dependency libraries.
29082 link_all_deplibs=$link_all_deplibs_CXX
29083
29084 # Set to "yes" if exported symbols are required.
29085 always_export_symbols=$always_export_symbols_CXX
29086
29087 # The commands to list exported symbols.
29088 export_symbols_cmds=$lt_export_symbols_cmds_CXX
29089
29090 # Symbols that should not be listed in the preloaded symbols.
29091 exclude_expsyms=$lt_exclude_expsyms_CXX
29092
29093 # Symbols that must always be exported.
29094 include_expsyms=$lt_include_expsyms_CXX
29095
29096 # Commands necessary for linking programs (against libraries) with templates.
29097 prelink_cmds=$lt_prelink_cmds_CXX
29098
29099 # Commands necessary for finishing linking programs.
29100 postlink_cmds=$lt_postlink_cmds_CXX
29101
29102 # Specify filename containing input files.
29103 file_list_spec=$lt_file_list_spec_CXX
29104
29105 # How to hardcode a shared library path into an executable.
29106 hardcode_action=$hardcode_action_CXX
29107
29108 # The directories searched by this compiler when creating a shared library.
29109 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
29110
29111 # Dependencies to place before and after the objects being linked to
29112 # create a shared library.
29113 predep_objects=$lt_predep_objects_CXX
29114 postdep_objects=$lt_postdep_objects_CXX
29115 predeps=$lt_predeps_CXX
29116 postdeps=$lt_postdeps_CXX
29117
29118 # The library search path used internally by the compiler when linking
29119 # a shared library.
29120 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
29121
29122 # ### END LIBTOOL TAG CONFIG: CXX
29123 _LT_EOF
29124
29125
29126     cat <<_LT_EOF >> "$ofile"
29127
29128 # ### BEGIN LIBTOOL TAG CONFIG: RC
29129
29130 # The linker used to build libraries.
29131 LD=$lt_LD_RC
29132
29133 # How to create reloadable object files.
29134 reload_flag=$lt_reload_flag_RC
29135 reload_cmds=$lt_reload_cmds_RC
29136
29137 # Commands used to build an old-style archive.
29138 old_archive_cmds=$lt_old_archive_cmds_RC
29139
29140 # A language specific compiler.
29141 CC=$lt_compiler_RC
29142
29143 # Is the compiler the GNU compiler?
29144 with_gcc=$GCC_RC
29145
29146 # Compiler flag to turn off builtin functions.
29147 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
29148
29149 # Additional compiler flags for building library objects.
29150 pic_flag=$lt_lt_prog_compiler_pic_RC
29151
29152 # How to pass a linker flag through the compiler.
29153 wl=$lt_lt_prog_compiler_wl_RC
29154
29155 # Compiler flag to prevent dynamic linking.
29156 link_static_flag=$lt_lt_prog_compiler_static_RC
29157
29158 # Does compiler simultaneously support -c and -o options?
29159 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
29160
29161 # Whether or not to add -lc for building shared libraries.
29162 build_libtool_need_lc=$archive_cmds_need_lc_RC
29163
29164 # Whether or not to disallow shared libs when runtime libs are static.
29165 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
29166
29167 # Compiler flag to allow reflexive dlopens.
29168 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
29169
29170 # Compiler flag to generate shared objects directly from archives.
29171 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
29172
29173 # Whether the compiler copes with passing no objects directly.
29174 compiler_needs_object=$lt_compiler_needs_object_RC
29175
29176 # Create an old-style archive from a shared archive.
29177 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
29178
29179 # Create a temporary old-style archive to link instead of a shared archive.
29180 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
29181
29182 # Commands used to build a shared archive.
29183 archive_cmds=$lt_archive_cmds_RC
29184 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
29185
29186 # Commands used to build a loadable module if different from building
29187 # a shared archive.
29188 module_cmds=$lt_module_cmds_RC
29189 module_expsym_cmds=$lt_module_expsym_cmds_RC
29190
29191 # Whether we are building with GNU ld or not.
29192 with_gnu_ld=$lt_with_gnu_ld_RC
29193
29194 # Flag that allows shared libraries with undefined symbols to be built.
29195 allow_undefined_flag=$lt_allow_undefined_flag_RC
29196
29197 # Flag that enforces no undefined symbols.
29198 no_undefined_flag=$lt_no_undefined_flag_RC
29199
29200 # Flag to hardcode \$libdir into a binary during linking.
29201 # This must work even if \$libdir does not exist
29202 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
29203
29204 # Whether we need a single "-rpath" flag with a separated argument.
29205 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
29206
29207 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29208 # DIR into the resulting binary.
29209 hardcode_direct=$hardcode_direct_RC
29210
29211 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29212 # DIR into the resulting binary and the resulting library dependency is
29213 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
29214 # library is relocated.
29215 hardcode_direct_absolute=$hardcode_direct_absolute_RC
29216
29217 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29218 # into the resulting binary.
29219 hardcode_minus_L=$hardcode_minus_L_RC
29220
29221 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29222 # into the resulting binary.
29223 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
29224
29225 # Set to "yes" if building a shared library automatically hardcodes DIR
29226 # into the library and all subsequent libraries and executables linked
29227 # against it.
29228 hardcode_automatic=$hardcode_automatic_RC
29229
29230 # Set to yes if linker adds runtime paths of dependent libraries
29231 # to runtime path list.
29232 inherit_rpath=$inherit_rpath_RC
29233
29234 # Whether libtool must link a program against all its dependency libraries.
29235 link_all_deplibs=$link_all_deplibs_RC
29236
29237 # Set to "yes" if exported symbols are required.
29238 always_export_symbols=$always_export_symbols_RC
29239
29240 # The commands to list exported symbols.
29241 export_symbols_cmds=$lt_export_symbols_cmds_RC
29242
29243 # Symbols that should not be listed in the preloaded symbols.
29244 exclude_expsyms=$lt_exclude_expsyms_RC
29245
29246 # Symbols that must always be exported.
29247 include_expsyms=$lt_include_expsyms_RC
29248
29249 # Commands necessary for linking programs (against libraries) with templates.
29250 prelink_cmds=$lt_prelink_cmds_RC
29251
29252 # Commands necessary for finishing linking programs.
29253 postlink_cmds=$lt_postlink_cmds_RC
29254
29255 # Specify filename containing input files.
29256 file_list_spec=$lt_file_list_spec_RC
29257
29258 # How to hardcode a shared library path into an executable.
29259 hardcode_action=$hardcode_action_RC
29260
29261 # The directories searched by this compiler when creating a shared library.
29262 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
29263
29264 # Dependencies to place before and after the objects being linked to
29265 # create a shared library.
29266 predep_objects=$lt_predep_objects_RC
29267 postdep_objects=$lt_postdep_objects_RC
29268 predeps=$lt_predeps_RC
29269 postdeps=$lt_postdeps_RC
29270
29271 # The library search path used internally by the compiler when linking
29272 # a shared library.
29273 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
29274
29275 # ### END LIBTOOL TAG CONFIG: RC
29276 _LT_EOF
29277
29278  ;;
29279     "src/gpgme-config":F) chmod +x src/gpgme-config ;;
29280     "lang/python/setup.py":F) chmod a+x lang/python/setup.py ;;
29281
29282   esac
29283 done # for ac_tag
29284
29285
29286 as_fn_exit 0
29287 _ACEOF
29288 ac_clean_files=$ac_clean_files_save
29289
29290 test $ac_write_fail = 0 ||
29291   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
29292
29293
29294 # configure is writing to config.log, and then calls config.status.
29295 # config.status does its own redirection, appending to config.log.
29296 # Unfortunately, on DOS this fails, as config.log is still kept open
29297 # by configure, so config.status won't be able to write to it; its
29298 # output is simply discarded.  So we exec the FD to /dev/null,
29299 # effectively closing config.log, so it can be properly (re)opened and
29300 # appended to by config.status.  When coming back to configure, we
29301 # need to make the FD available again.
29302 if test "$no_create" != yes; then
29303   ac_cs_success=:
29304   ac_config_status_args=
29305   test "$silent" = yes &&
29306     ac_config_status_args="$ac_config_status_args --quiet"
29307   exec 5>/dev/null
29308   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29309   exec 5>>config.log
29310   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29311   # would make configure fail if this is the last instruction.
29312   $ac_cs_success || as_fn_exit 1
29313 fi
29314 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29315   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29316 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
29317 fi
29318
29319
29320 echo "
29321         GPGME v${VERSION} has been configured as follows:
29322
29323         Revision:          1021c864  (4129)
29324         Platform:          $host
29325
29326         UI Server:         $uiserver
29327         FD Passing:        $use_descriptor_passing
29328
29329         Language bindings: ${enabled_languages_v:-$enabled_languages}
29330 "
29331 if test "x${gpg_config_script_warn}" != x; then
29332 cat <<G10EOF
29333         Mismatches between the target platform and the to
29334         be used libraries have been been detected for:
29335          ${gpg_config_script_warn}
29336         Please check above for warning messages.
29337
29338 G10EOF
29339 fi