add MIT License file
[platform/upstream/libgpg-error.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libgpg-error 1.13.
4 #
5 # Report bugs to <http://bugs.gnupg.org>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207     PATH=/empty FPATH=/empty; export PATH FPATH
208     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: http://bugs.gnupg.org about your system, including any
279 $0: error possibly output before this message. Then install
280 $0: a modern shell, or manually run the script under such a
281 $0: shell if you do have one."
282   fi
283   exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301   { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310   return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318   set +e
319   as_fn_set_status $1
320   exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329   case $as_dir in #(
330   -*) as_dir=./$as_dir;;
331   esac
332   test -d "$as_dir" || eval $as_mkdir_p || {
333     as_dirs=
334     while :; do
335       case $as_dir in #(
336       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337       *) as_qdir=$as_dir;;
338       esac
339       as_dirs="'$as_qdir' $as_dirs"
340       as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342          X"$as_dir" : 'X\(//\)[^/]' \| \
343          X"$as_dir" : 'X\(//\)$' \| \
344          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\/\)[^/].*/{
351             s//\1/
352             q
353           }
354           /^X\(\/\/\)$/{
355             s//\1/
356             q
357           }
358           /^X\(\/\).*/{
359             s//\1/
360             q
361           }
362           s/.*/./; q'`
363       test -d "$as_dir" && break
364     done
365     test -z "$as_dirs" || eval "mkdir $as_dirs"
366   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376   test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385   eval 'as_fn_append ()
386   {
387     eval $1+=\$2
388   }'
389 else
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421   as_status=$1; test $as_status -eq 0 && as_status=1
422   if test "$4"; then
423     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425   fi
426   $as_echo "$as_me: error: $2" >&2
427   as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
432   as_expr=expr
433 else
434   as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438   as_basename=basename
439 else
440   as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444   as_dirname=dirname
445 else
446   as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451          X"$0" : 'X\(//\)$' \| \
452          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454     sed '/^.*\/\([^/][^/]*\)\/*$/{
455             s//\1/
456             q
457           }
458           /^X\/\(\/\/\)$/{
459             s//\1/
460             q
461           }
462           /^X\/\(\/\).*/{
463             s//\1/
464             q
465           }
466           s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476   as_lineno_1=$LINENO as_lineno_1a=$LINENO
477   as_lineno_2=$LINENO as_lineno_2a=$LINENO
478   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481   sed -n '
482     p
483     /[$]LINENO/=
484   ' <$as_myself |
485     sed '
486       s/[$]LINENO.*/&-/
487       t lineno
488       b
489       :lineno
490       N
491       :loop
492       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493       t loop
494       s/-\n.*//
495     ' >$as_me.lineno &&
496   chmod +x "$as_me.lineno" ||
497     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500   # already done that, so ensure we don't try to do so again and fall
501   # in an infinite loop.  This has already happened in practice.
502   _as_can_reexec=no; export _as_can_reexec
503   # Don't try to exec as it changes $[0], causing all sort of problems
504   # (the dirname of $[0] is not the place where we might find the
505   # original and so on.  Autoconf is especially sensitive to this).
506   . "./$as_me.lineno"
507   # Exit status is that of the last command.
508   exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514   case `echo 'xy\c'` in
515   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
516   xy)  ECHO_C='\c';;
517   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518        ECHO_T=' ';;
519   esac;;
520 *)
521   ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526   rm -f conf$$.dir/conf$$.file
527 else
528   rm -f conf$$.dir
529   mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532   if ln -s conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s='ln -s'
534     # ... but there are two gotchas:
535     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537     # In both cases, we have to default to `cp -pR'.
538     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539       as_ln_s='cp -pR'
540   elif ln conf$$.file conf$$ 2>/dev/null; then
541     as_ln_s=ln
542   else
543     as_ln_s='cp -pR'
544   fi
545 else
546   as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552   as_mkdir_p='mkdir -p "$as_dir"'
553 else
554   test -d ./-p && rmdir ./-p
555   as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='libgpg-error'
592 PACKAGE_TARNAME='libgpg-error'
593 PACKAGE_VERSION='1.13'
594 PACKAGE_STRING='libgpg-error 1.13'
595 PACKAGE_BUGREPORT='http://bugs.gnupg.org'
596 PACKAGE_URL=''
597
598 ac_unique_file="src/err-sources.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 gl_use_threads_default=
636 gt_needs=
637 ac_subst_vars='am__EXEEXT_FALSE
638 am__EXEEXT_TRUE
639 LTLIBOBJS
640 LIBOBJS
641 LANGUAGES_SOME_FALSE
642 LANGUAGES_SOME_TRUE
643 BUILD_TIMESTAMP
644 BUILD_FILEVERSION
645 BUILD_REVISION
646 CROSS_COMPILING_FALSE
647 CROSS_COMPILING_TRUE
648 HAVE_W32CE_SYSTEM_FALSE
649 HAVE_W32CE_SYSTEM_TRUE
650 HAVE_W64_SYSTEM_FALSE
651 HAVE_W64_SYSTEM_TRUE
652 HAVE_W32_SYSTEM_FALSE
653 HAVE_W32_SYSTEM_TRUE
654 GPG_ERROR_CONFIG_HOST
655 GPG_ERROR_CONFIG_ISUBDIRAFTER
656 GPG_ERROR_CONFIG_MT_CFLAGS
657 GPG_ERROR_CONFIG_MT_LIBS
658 GPG_ERROR_CONFIG_CFLAGS
659 GPG_ERROR_CONFIG_LIBS
660 LTLIBMULTITHREAD
661 LIBMULTITHREAD
662 LTLIBTHREAD
663 LIBTHREAD
664 POSUB
665 LTLIBINTL
666 LIBINTL
667 INTLLIBS
668 LTLIBICONV
669 LIBICONV
670 INTL_MACOSX_LIBS
671 XGETTEXT_EXTRA_OPTIONS
672 MSGMERGE
673 XGETTEXT_015
674 XGETTEXT
675 GMSGFMT_015
676 MSGFMT_015
677 GMSGFMT
678 MSGFMT
679 GETTEXT_MACRO_VERSION
680 USE_NLS
681 CC_FOR_BUILD
682 RC
683 OTOOL64
684 OTOOL
685 LIPO
686 NMEDIT
687 DSYMUTIL
688 MANIFEST_TOOL
689 RANLIB
690 ac_ct_AR
691 LN_S
692 NM
693 ac_ct_DUMPBIN
694 DUMPBIN
695 LD
696 FGREP
697 SED
698 LIBTOOL
699 OBJDUMP
700 DLLTOOL
701 AS
702 EGREP
703 GREP
704 AR
705 CPP
706 am__fastdepCC_FALSE
707 am__fastdepCC_TRUE
708 CCDEPMODE
709 am__nodep
710 AMDEPBACKSLASH
711 AMDEP_FALSE
712 AMDEP_TRUE
713 am__quote
714 am__include
715 DEPDIR
716 OBJEXT
717 EXEEXT
718 ac_ct_CC
719 CPPFLAGS
720 LDFLAGS
721 CFLAGS
722 CC
723 host_os
724 host_vendor
725 host_cpu
726 host
727 build_os
728 build_vendor
729 build_cpu
730 build
731 AM_BACKSLASH
732 AM_DEFAULT_VERBOSITY
733 AM_DEFAULT_V
734 AM_V
735 MAINT
736 MAINTAINER_MODE_FALSE
737 MAINTAINER_MODE_TRUE
738 am__untar
739 am__tar
740 AMTAR
741 am__leading_dot
742 SET_MAKE
743 AWK
744 mkdir_p
745 MKDIR_P
746 INSTALL_STRIP_PROGRAM
747 STRIP
748 install_sh
749 MAKEINFO
750 AUTOHEADER
751 AUTOMAKE
752 AUTOCONF
753 ACLOCAL
754 VERSION
755 PACKAGE
756 CYGPATH_W
757 am__isrc
758 INSTALL_DATA
759 INSTALL_SCRIPT
760 INSTALL_PROGRAM
761 VERSION_NUMBER
762 LIBGPG_ERROR_LT_REVISION
763 LIBGPG_ERROR_LT_AGE
764 LIBGPG_ERROR_LT_CURRENT
765 target_alias
766 host_alias
767 build_alias
768 LIBS
769 ECHO_T
770 ECHO_N
771 ECHO_C
772 DEFS
773 mandir
774 localedir
775 libdir
776 psdir
777 pdfdir
778 dvidir
779 htmldir
780 infodir
781 docdir
782 oldincludedir
783 includedir
784 localstatedir
785 sharedstatedir
786 sysconfdir
787 datadir
788 datarootdir
789 libexecdir
790 sbindir
791 bindir
792 program_transform_name
793 prefix
794 exec_prefix
795 PACKAGE_URL
796 PACKAGE_BUGREPORT
797 PACKAGE_STRING
798 PACKAGE_VERSION
799 PACKAGE_TARNAME
800 PACKAGE_NAME
801 PATH_SEPARATOR
802 SHELL'
803 ac_subst_files=''
804 ac_user_opts='
805 enable_option_checking
806 enable_maintainer_mode
807 enable_silent_rules
808 enable_dependency_tracking
809 enable_threads
810 enable_static
811 enable_shared
812 with_pic
813 enable_fast_install
814 with_gnu_ld
815 with_sysroot
816 enable_libtool_lock
817 enable_nls
818 enable_rpath
819 with_libiconv_prefix
820 with_libintl_prefix
821 enable_languages
822 '
823       ac_precious_vars='build_alias
824 host_alias
825 target_alias
826 CC
827 CFLAGS
828 LDFLAGS
829 LIBS
830 CPPFLAGS
831 CPP
832 CC_FOR_BUILD'
833
834
835 # Initialize some variables set by options.
836 ac_init_help=
837 ac_init_version=false
838 ac_unrecognized_opts=
839 ac_unrecognized_sep=
840 # The variables have the same names as the options, with
841 # dashes changed to underlines.
842 cache_file=/dev/null
843 exec_prefix=NONE
844 no_create=
845 no_recursion=
846 prefix=NONE
847 program_prefix=NONE
848 program_suffix=NONE
849 program_transform_name=s,x,x,
850 silent=
851 site=
852 srcdir=
853 verbose=
854 x_includes=NONE
855 x_libraries=NONE
856
857 # Installation directory options.
858 # These are left unexpanded so users can "make install exec_prefix=/foo"
859 # and all the variables that are supposed to be based on exec_prefix
860 # by default will actually change.
861 # Use braces instead of parens because sh, perl, etc. also accept them.
862 # (The list follows the same order as the GNU Coding Standards.)
863 bindir='${exec_prefix}/bin'
864 sbindir='${exec_prefix}/sbin'
865 libexecdir='${exec_prefix}/libexec'
866 datarootdir='${prefix}/share'
867 datadir='${datarootdir}'
868 sysconfdir='${prefix}/etc'
869 sharedstatedir='${prefix}/com'
870 localstatedir='${prefix}/var'
871 includedir='${prefix}/include'
872 oldincludedir='/usr/include'
873 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
874 infodir='${datarootdir}/info'
875 htmldir='${docdir}'
876 dvidir='${docdir}'
877 pdfdir='${docdir}'
878 psdir='${docdir}'
879 libdir='${exec_prefix}/lib'
880 localedir='${datarootdir}/locale'
881 mandir='${datarootdir}/man'
882
883 ac_prev=
884 ac_dashdash=
885 for ac_option
886 do
887   # If the previous option needs an argument, assign it.
888   if test -n "$ac_prev"; then
889     eval $ac_prev=\$ac_option
890     ac_prev=
891     continue
892   fi
893
894   case $ac_option in
895   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
896   *=)   ac_optarg= ;;
897   *)    ac_optarg=yes ;;
898   esac
899
900   # Accept the important Cygnus configure options, so we can diagnose typos.
901
902   case $ac_dashdash$ac_option in
903   --)
904     ac_dashdash=yes ;;
905
906   -bindir | --bindir | --bindi | --bind | --bin | --bi)
907     ac_prev=bindir ;;
908   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
909     bindir=$ac_optarg ;;
910
911   -build | --build | --buil | --bui | --bu)
912     ac_prev=build_alias ;;
913   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
914     build_alias=$ac_optarg ;;
915
916   -cache-file | --cache-file | --cache-fil | --cache-fi \
917   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
918     ac_prev=cache_file ;;
919   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
920   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
921     cache_file=$ac_optarg ;;
922
923   --config-cache | -C)
924     cache_file=config.cache ;;
925
926   -datadir | --datadir | --datadi | --datad)
927     ac_prev=datadir ;;
928   -datadir=* | --datadir=* | --datadi=* | --datad=*)
929     datadir=$ac_optarg ;;
930
931   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
932   | --dataroo | --dataro | --datar)
933     ac_prev=datarootdir ;;
934   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
935   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
936     datarootdir=$ac_optarg ;;
937
938   -disable-* | --disable-*)
939     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
940     # Reject names that are not valid shell variable names.
941     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
942       as_fn_error $? "invalid feature name: $ac_useropt"
943     ac_useropt_orig=$ac_useropt
944     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
945     case $ac_user_opts in
946       *"
947 "enable_$ac_useropt"
948 "*) ;;
949       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
950          ac_unrecognized_sep=', ';;
951     esac
952     eval enable_$ac_useropt=no ;;
953
954   -docdir | --docdir | --docdi | --doc | --do)
955     ac_prev=docdir ;;
956   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
957     docdir=$ac_optarg ;;
958
959   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
960     ac_prev=dvidir ;;
961   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
962     dvidir=$ac_optarg ;;
963
964   -enable-* | --enable-*)
965     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
966     # Reject names that are not valid shell variable names.
967     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
968       as_fn_error $? "invalid feature name: $ac_useropt"
969     ac_useropt_orig=$ac_useropt
970     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
971     case $ac_user_opts in
972       *"
973 "enable_$ac_useropt"
974 "*) ;;
975       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
976          ac_unrecognized_sep=', ';;
977     esac
978     eval enable_$ac_useropt=\$ac_optarg ;;
979
980   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
981   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
982   | --exec | --exe | --ex)
983     ac_prev=exec_prefix ;;
984   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
985   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
986   | --exec=* | --exe=* | --ex=*)
987     exec_prefix=$ac_optarg ;;
988
989   -gas | --gas | --ga | --g)
990     # Obsolete; use --with-gas.
991     with_gas=yes ;;
992
993   -help | --help | --hel | --he | -h)
994     ac_init_help=long ;;
995   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
996     ac_init_help=recursive ;;
997   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
998     ac_init_help=short ;;
999
1000   -host | --host | --hos | --ho)
1001     ac_prev=host_alias ;;
1002   -host=* | --host=* | --hos=* | --ho=*)
1003     host_alias=$ac_optarg ;;
1004
1005   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1006     ac_prev=htmldir ;;
1007   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1008   | --ht=*)
1009     htmldir=$ac_optarg ;;
1010
1011   -includedir | --includedir | --includedi | --included | --include \
1012   | --includ | --inclu | --incl | --inc)
1013     ac_prev=includedir ;;
1014   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1015   | --includ=* | --inclu=* | --incl=* | --inc=*)
1016     includedir=$ac_optarg ;;
1017
1018   -infodir | --infodir | --infodi | --infod | --info | --inf)
1019     ac_prev=infodir ;;
1020   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1021     infodir=$ac_optarg ;;
1022
1023   -libdir | --libdir | --libdi | --libd)
1024     ac_prev=libdir ;;
1025   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1026     libdir=$ac_optarg ;;
1027
1028   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1029   | --libexe | --libex | --libe)
1030     ac_prev=libexecdir ;;
1031   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1032   | --libexe=* | --libex=* | --libe=*)
1033     libexecdir=$ac_optarg ;;
1034
1035   -localedir | --localedir | --localedi | --localed | --locale)
1036     ac_prev=localedir ;;
1037   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1038     localedir=$ac_optarg ;;
1039
1040   -localstatedir | --localstatedir | --localstatedi | --localstated \
1041   | --localstate | --localstat | --localsta | --localst | --locals)
1042     ac_prev=localstatedir ;;
1043   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1044   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1045     localstatedir=$ac_optarg ;;
1046
1047   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1048     ac_prev=mandir ;;
1049   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1050     mandir=$ac_optarg ;;
1051
1052   -nfp | --nfp | --nf)
1053     # Obsolete; use --without-fp.
1054     with_fp=no ;;
1055
1056   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1057   | --no-cr | --no-c | -n)
1058     no_create=yes ;;
1059
1060   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1061   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1062     no_recursion=yes ;;
1063
1064   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1065   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1066   | --oldin | --oldi | --old | --ol | --o)
1067     ac_prev=oldincludedir ;;
1068   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1069   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1070   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1071     oldincludedir=$ac_optarg ;;
1072
1073   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1074     ac_prev=prefix ;;
1075   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1076     prefix=$ac_optarg ;;
1077
1078   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1079   | --program-pre | --program-pr | --program-p)
1080     ac_prev=program_prefix ;;
1081   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1082   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1083     program_prefix=$ac_optarg ;;
1084
1085   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1086   | --program-suf | --program-su | --program-s)
1087     ac_prev=program_suffix ;;
1088   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1089   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1090     program_suffix=$ac_optarg ;;
1091
1092   -program-transform-name | --program-transform-name \
1093   | --program-transform-nam | --program-transform-na \
1094   | --program-transform-n | --program-transform- \
1095   | --program-transform | --program-transfor \
1096   | --program-transfo | --program-transf \
1097   | --program-trans | --program-tran \
1098   | --progr-tra | --program-tr | --program-t)
1099     ac_prev=program_transform_name ;;
1100   -program-transform-name=* | --program-transform-name=* \
1101   | --program-transform-nam=* | --program-transform-na=* \
1102   | --program-transform-n=* | --program-transform-=* \
1103   | --program-transform=* | --program-transfor=* \
1104   | --program-transfo=* | --program-transf=* \
1105   | --program-trans=* | --program-tran=* \
1106   | --progr-tra=* | --program-tr=* | --program-t=*)
1107     program_transform_name=$ac_optarg ;;
1108
1109   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1110     ac_prev=pdfdir ;;
1111   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1112     pdfdir=$ac_optarg ;;
1113
1114   -psdir | --psdir | --psdi | --psd | --ps)
1115     ac_prev=psdir ;;
1116   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1117     psdir=$ac_optarg ;;
1118
1119   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1120   | -silent | --silent | --silen | --sile | --sil)
1121     silent=yes ;;
1122
1123   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1124     ac_prev=sbindir ;;
1125   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1126   | --sbi=* | --sb=*)
1127     sbindir=$ac_optarg ;;
1128
1129   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1130   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1131   | --sharedst | --shareds | --shared | --share | --shar \
1132   | --sha | --sh)
1133     ac_prev=sharedstatedir ;;
1134   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1135   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1136   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1137   | --sha=* | --sh=*)
1138     sharedstatedir=$ac_optarg ;;
1139
1140   -site | --site | --sit)
1141     ac_prev=site ;;
1142   -site=* | --site=* | --sit=*)
1143     site=$ac_optarg ;;
1144
1145   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1146     ac_prev=srcdir ;;
1147   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1148     srcdir=$ac_optarg ;;
1149
1150   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1151   | --syscon | --sysco | --sysc | --sys | --sy)
1152     ac_prev=sysconfdir ;;
1153   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1154   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1155     sysconfdir=$ac_optarg ;;
1156
1157   -target | --target | --targe | --targ | --tar | --ta | --t)
1158     ac_prev=target_alias ;;
1159   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1160     target_alias=$ac_optarg ;;
1161
1162   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1163     verbose=yes ;;
1164
1165   -version | --version | --versio | --versi | --vers | -V)
1166     ac_init_version=: ;;
1167
1168   -with-* | --with-*)
1169     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1170     # Reject names that are not valid shell variable names.
1171     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1172       as_fn_error $? "invalid package name: $ac_useropt"
1173     ac_useropt_orig=$ac_useropt
1174     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1175     case $ac_user_opts in
1176       *"
1177 "with_$ac_useropt"
1178 "*) ;;
1179       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1180          ac_unrecognized_sep=', ';;
1181     esac
1182     eval with_$ac_useropt=\$ac_optarg ;;
1183
1184   -without-* | --without-*)
1185     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1186     # Reject names that are not valid shell variable names.
1187     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1188       as_fn_error $? "invalid package name: $ac_useropt"
1189     ac_useropt_orig=$ac_useropt
1190     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1191     case $ac_user_opts in
1192       *"
1193 "with_$ac_useropt"
1194 "*) ;;
1195       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1196          ac_unrecognized_sep=', ';;
1197     esac
1198     eval with_$ac_useropt=no ;;
1199
1200   --x)
1201     # Obsolete; use --with-x.
1202     with_x=yes ;;
1203
1204   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1205   | --x-incl | --x-inc | --x-in | --x-i)
1206     ac_prev=x_includes ;;
1207   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1208   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1209     x_includes=$ac_optarg ;;
1210
1211   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1212   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1213     ac_prev=x_libraries ;;
1214   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1215   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1216     x_libraries=$ac_optarg ;;
1217
1218   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1219 Try \`$0 --help' for more information"
1220     ;;
1221
1222   *=*)
1223     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1224     # Reject names that are not valid shell variable names.
1225     case $ac_envvar in #(
1226       '' | [0-9]* | *[!_$as_cr_alnum]* )
1227       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1228     esac
1229     eval $ac_envvar=\$ac_optarg
1230     export $ac_envvar ;;
1231
1232   *)
1233     # FIXME: should be removed in autoconf 3.0.
1234     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1235     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1236       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1237     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1238     ;;
1239
1240   esac
1241 done
1242
1243 if test -n "$ac_prev"; then
1244   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1245   as_fn_error $? "missing argument to $ac_option"
1246 fi
1247
1248 if test -n "$ac_unrecognized_opts"; then
1249   case $enable_option_checking in
1250     no) ;;
1251     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1252     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1253   esac
1254 fi
1255
1256 # Check all directory arguments for consistency.
1257 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1258                 datadir sysconfdir sharedstatedir localstatedir includedir \
1259                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1260                 libdir localedir mandir
1261 do
1262   eval ac_val=\$$ac_var
1263   # Remove trailing slashes.
1264   case $ac_val in
1265     */ )
1266       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1267       eval $ac_var=\$ac_val;;
1268   esac
1269   # Be sure to have absolute directory names.
1270   case $ac_val in
1271     [\\/$]* | ?:[\\/]* )  continue;;
1272     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1273   esac
1274   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1275 done
1276
1277 # There might be people who depend on the old broken behavior: `$host'
1278 # used to hold the argument of --host etc.
1279 # FIXME: To remove some day.
1280 build=$build_alias
1281 host=$host_alias
1282 target=$target_alias
1283
1284 # FIXME: To remove some day.
1285 if test "x$host_alias" != x; then
1286   if test "x$build_alias" = x; then
1287     cross_compiling=maybe
1288   elif test "x$build_alias" != "x$host_alias"; then
1289     cross_compiling=yes
1290   fi
1291 fi
1292
1293 ac_tool_prefix=
1294 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1295
1296 test "$silent" = yes && exec 6>/dev/null
1297
1298
1299 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1300 ac_ls_di=`ls -di .` &&
1301 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1302   as_fn_error $? "working directory cannot be determined"
1303 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1304   as_fn_error $? "pwd does not report name of working directory"
1305
1306
1307 # Find the source files, if location was not specified.
1308 if test -z "$srcdir"; then
1309   ac_srcdir_defaulted=yes
1310   # Try the directory containing this script, then the parent directory.
1311   ac_confdir=`$as_dirname -- "$as_myself" ||
1312 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1313          X"$as_myself" : 'X\(//\)[^/]' \| \
1314          X"$as_myself" : 'X\(//\)$' \| \
1315          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1316 $as_echo X"$as_myself" |
1317     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1318             s//\1/
1319             q
1320           }
1321           /^X\(\/\/\)[^/].*/{
1322             s//\1/
1323             q
1324           }
1325           /^X\(\/\/\)$/{
1326             s//\1/
1327             q
1328           }
1329           /^X\(\/\).*/{
1330             s//\1/
1331             q
1332           }
1333           s/.*/./; q'`
1334   srcdir=$ac_confdir
1335   if test ! -r "$srcdir/$ac_unique_file"; then
1336     srcdir=..
1337   fi
1338 else
1339   ac_srcdir_defaulted=no
1340 fi
1341 if test ! -r "$srcdir/$ac_unique_file"; then
1342   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1343   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1344 fi
1345 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1346 ac_abs_confdir=`(
1347         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1348         pwd)`
1349 # When building in place, set srcdir=.
1350 if test "$ac_abs_confdir" = "$ac_pwd"; then
1351   srcdir=.
1352 fi
1353 # Remove unnecessary trailing slashes from srcdir.
1354 # Double slashes in file names in object file debugging info
1355 # mess up M-x gdb in Emacs.
1356 case $srcdir in
1357 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1358 esac
1359 for ac_var in $ac_precious_vars; do
1360   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1361   eval ac_env_${ac_var}_value=\$${ac_var}
1362   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1363   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1364 done
1365
1366 #
1367 # Report the --help message.
1368 #
1369 if test "$ac_init_help" = "long"; then
1370   # Omit some internal or obsolete options to make the list less imposing.
1371   # This message is too long to be a string in the A/UX 3.1 sh.
1372   cat <<_ACEOF
1373 \`configure' configures libgpg-error 1.13 to adapt to many kinds of systems.
1374
1375 Usage: $0 [OPTION]... [VAR=VALUE]...
1376
1377 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1378 VAR=VALUE.  See below for descriptions of some of the useful variables.
1379
1380 Defaults for the options are specified in brackets.
1381
1382 Configuration:
1383   -h, --help              display this help and exit
1384       --help=short        display options specific to this package
1385       --help=recursive    display the short help of all the included packages
1386   -V, --version           display version information and exit
1387   -q, --quiet, --silent   do not print \`checking ...' messages
1388       --cache-file=FILE   cache test results in FILE [disabled]
1389   -C, --config-cache      alias for \`--cache-file=config.cache'
1390   -n, --no-create         do not create output files
1391       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1392
1393 Installation directories:
1394   --prefix=PREFIX         install architecture-independent files in PREFIX
1395                           [$ac_default_prefix]
1396   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1397                           [PREFIX]
1398
1399 By default, \`make install' will install all the files in
1400 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1401 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1402 for instance \`--prefix=\$HOME'.
1403
1404 For better control, use the options below.
1405
1406 Fine tuning of the installation directories:
1407   --bindir=DIR            user executables [EPREFIX/bin]
1408   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1409   --libexecdir=DIR        program executables [EPREFIX/libexec]
1410   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1411   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1412   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1413   --libdir=DIR            object code libraries [EPREFIX/lib]
1414   --includedir=DIR        C header files [PREFIX/include]
1415   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1416   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1417   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1418   --infodir=DIR           info documentation [DATAROOTDIR/info]
1419   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1420   --mandir=DIR            man documentation [DATAROOTDIR/man]
1421   --docdir=DIR            documentation root [DATAROOTDIR/doc/libgpg-error]
1422   --htmldir=DIR           html documentation [DOCDIR]
1423   --dvidir=DIR            dvi documentation [DOCDIR]
1424   --pdfdir=DIR            pdf documentation [DOCDIR]
1425   --psdir=DIR             ps documentation [DOCDIR]
1426 _ACEOF
1427
1428   cat <<\_ACEOF
1429
1430 Program names:
1431   --program-prefix=PREFIX            prepend PREFIX to installed program names
1432   --program-suffix=SUFFIX            append SUFFIX to installed program names
1433   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1434
1435 System types:
1436   --build=BUILD     configure for building on BUILD [guessed]
1437   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1438 _ACEOF
1439 fi
1440
1441 if test -n "$ac_init_help"; then
1442   case $ac_init_help in
1443      short | recursive ) echo "Configuration of libgpg-error 1.13:";;
1444    esac
1445   cat <<\_ACEOF
1446
1447 Optional Features:
1448   --disable-option-checking  ignore unrecognized --enable/--with options
1449   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1450   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1451   --enable-maintainer-mode  enable make rules and dependencies not useful
1452                           (and sometimes confusing) to the casual installer
1453   --enable-silent-rules          less verbose build output (undo: `make V=1')
1454   --disable-silent-rules         verbose build output (undo: `make V=0')
1455   --disable-dependency-tracking  speeds up one-time build
1456   --enable-dependency-tracking   do not reject slow dependency extractors
1457   --enable-threads={posix|solaris|windows}
1458                           specify multithreading API
1459   --disable-threads       build without multithread safety
1460   --enable-static[=PKGS]  build static libraries [default=no]
1461   --enable-shared[=PKGS]  build shared libraries [default=yes]
1462   --enable-fast-install[=PKGS]
1463                           optimize for fast installation [default=yes]
1464   --disable-libtool-lock  avoid locking (might break parallel builds)
1465   --disable-nls           do not use Native Language Support
1466   --disable-rpath         do not hardcode runtime library paths
1467   --disable-languages     do not build support for other languages than C
1468
1469 Optional Packages:
1470   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1471   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1472   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1473                           both]
1474   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1475   --with-sysroot=DIR Search for dependent libraries within DIR
1476                         (or the compiler's sysroot if not specified).
1477   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1478   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1479   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1480   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1481   --without-libintl-prefix     don't search for libintl in includedir and libdir
1482
1483 Some influential environment variables:
1484   CC          C compiler command
1485   CFLAGS      C compiler flags
1486   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1487               nonstandard directory <lib dir>
1488   LIBS        libraries to pass to the linker, e.g. -l<library>
1489   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1490               you have headers in a nonstandard directory <include dir>
1491   CPP         C preprocessor
1492   CC_FOR_BUILD
1493               build system C compiler
1494
1495 Use these variables to override the choices made by `configure' or to help
1496 it to find libraries and programs with nonstandard names/locations.
1497
1498 Report bugs to <http://bugs.gnupg.org>.
1499 _ACEOF
1500 ac_status=$?
1501 fi
1502
1503 if test "$ac_init_help" = "recursive"; then
1504   # If there are subdirs, report their specific --help.
1505   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1506     test -d "$ac_dir" ||
1507       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1508       continue
1509     ac_builddir=.
1510
1511 case "$ac_dir" in
1512 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1513 *)
1514   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1515   # A ".." for each directory in $ac_dir_suffix.
1516   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1517   case $ac_top_builddir_sub in
1518   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1519   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1520   esac ;;
1521 esac
1522 ac_abs_top_builddir=$ac_pwd
1523 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1524 # for backward compatibility:
1525 ac_top_builddir=$ac_top_build_prefix
1526
1527 case $srcdir in
1528   .)  # We are building in place.
1529     ac_srcdir=.
1530     ac_top_srcdir=$ac_top_builddir_sub
1531     ac_abs_top_srcdir=$ac_pwd ;;
1532   [\\/]* | ?:[\\/]* )  # Absolute name.
1533     ac_srcdir=$srcdir$ac_dir_suffix;
1534     ac_top_srcdir=$srcdir
1535     ac_abs_top_srcdir=$srcdir ;;
1536   *) # Relative name.
1537     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1538     ac_top_srcdir=$ac_top_build_prefix$srcdir
1539     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1540 esac
1541 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1542
1543     cd "$ac_dir" || { ac_status=$?; continue; }
1544     # Check for guested configure.
1545     if test -f "$ac_srcdir/configure.gnu"; then
1546       echo &&
1547       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1548     elif test -f "$ac_srcdir/configure"; then
1549       echo &&
1550       $SHELL "$ac_srcdir/configure" --help=recursive
1551     else
1552       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1553     fi || ac_status=$?
1554     cd "$ac_pwd" || { ac_status=$?; break; }
1555   done
1556 fi
1557
1558 test -n "$ac_init_help" && exit $ac_status
1559 if $ac_init_version; then
1560   cat <<\_ACEOF
1561 libgpg-error configure 1.13
1562 generated by GNU Autoconf 2.69
1563
1564 Copyright (C) 2012 Free Software Foundation, Inc.
1565 This configure script is free software; the Free Software Foundation
1566 gives unlimited permission to copy, distribute and modify it.
1567 _ACEOF
1568   exit
1569 fi
1570
1571 ## ------------------------ ##
1572 ## Autoconf initialization. ##
1573 ## ------------------------ ##
1574
1575 # ac_fn_c_try_compile LINENO
1576 # --------------------------
1577 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1578 ac_fn_c_try_compile ()
1579 {
1580   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1581   rm -f conftest.$ac_objext
1582   if { { ac_try="$ac_compile"
1583 case "(($ac_try" in
1584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1585   *) ac_try_echo=$ac_try;;
1586 esac
1587 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1588 $as_echo "$ac_try_echo"; } >&5
1589   (eval "$ac_compile") 2>conftest.err
1590   ac_status=$?
1591   if test -s conftest.err; then
1592     grep -v '^ *+' conftest.err >conftest.er1
1593     cat conftest.er1 >&5
1594     mv -f conftest.er1 conftest.err
1595   fi
1596   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1597   test $ac_status = 0; } && {
1598          test -z "$ac_c_werror_flag" ||
1599          test ! -s conftest.err
1600        } && test -s conftest.$ac_objext; then :
1601   ac_retval=0
1602 else
1603   $as_echo "$as_me: failed program was:" >&5
1604 sed 's/^/| /' conftest.$ac_ext >&5
1605
1606         ac_retval=1
1607 fi
1608   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1609   as_fn_set_status $ac_retval
1610
1611 } # ac_fn_c_try_compile
1612
1613 # ac_fn_c_try_cpp LINENO
1614 # ----------------------
1615 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1616 ac_fn_c_try_cpp ()
1617 {
1618   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619   if { { ac_try="$ac_cpp conftest.$ac_ext"
1620 case "(($ac_try" in
1621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1622   *) ac_try_echo=$ac_try;;
1623 esac
1624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1625 $as_echo "$ac_try_echo"; } >&5
1626   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1627   ac_status=$?
1628   if test -s conftest.err; then
1629     grep -v '^ *+' conftest.err >conftest.er1
1630     cat conftest.er1 >&5
1631     mv -f conftest.er1 conftest.err
1632   fi
1633   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1634   test $ac_status = 0; } > conftest.i && {
1635          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1636          test ! -s conftest.err
1637        }; then :
1638   ac_retval=0
1639 else
1640   $as_echo "$as_me: failed program was:" >&5
1641 sed 's/^/| /' conftest.$ac_ext >&5
1642
1643     ac_retval=1
1644 fi
1645   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1646   as_fn_set_status $ac_retval
1647
1648 } # ac_fn_c_try_cpp
1649
1650 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1651 # -------------------------------------------------------
1652 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1653 # the include files in INCLUDES and setting the cache variable VAR
1654 # accordingly.
1655 ac_fn_c_check_header_mongrel ()
1656 {
1657   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658   if eval \${$3+:} false; then :
1659   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1660 $as_echo_n "checking for $2... " >&6; }
1661 if eval \${$3+:} false; then :
1662   $as_echo_n "(cached) " >&6
1663 fi
1664 eval ac_res=\$$3
1665                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1666 $as_echo "$ac_res" >&6; }
1667 else
1668   # Is the header compilable?
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1670 $as_echo_n "checking $2 usability... " >&6; }
1671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1672 /* end confdefs.h.  */
1673 $4
1674 #include <$2>
1675 _ACEOF
1676 if ac_fn_c_try_compile "$LINENO"; then :
1677   ac_header_compiler=yes
1678 else
1679   ac_header_compiler=no
1680 fi
1681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1683 $as_echo "$ac_header_compiler" >&6; }
1684
1685 # Is the header present?
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1687 $as_echo_n "checking $2 presence... " >&6; }
1688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1689 /* end confdefs.h.  */
1690 #include <$2>
1691 _ACEOF
1692 if ac_fn_c_try_cpp "$LINENO"; then :
1693   ac_header_preproc=yes
1694 else
1695   ac_header_preproc=no
1696 fi
1697 rm -f conftest.err conftest.i conftest.$ac_ext
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1699 $as_echo "$ac_header_preproc" >&6; }
1700
1701 # So?  What about this header?
1702 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1703   yes:no: )
1704     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1705 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1706     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1707 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1708     ;;
1709   no:yes:* )
1710     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1711 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1712     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1713 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1714     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1715 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1716     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1717 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1718     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1719 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1720 ( $as_echo "## ------------------------------------ ##
1721 ## Report this to http://bugs.gnupg.org ##
1722 ## ------------------------------------ ##"
1723      ) | sed "s/^/$as_me: WARNING:     /" >&2
1724     ;;
1725 esac
1726   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1727 $as_echo_n "checking for $2... " >&6; }
1728 if eval \${$3+:} false; then :
1729   $as_echo_n "(cached) " >&6
1730 else
1731   eval "$3=\$ac_header_compiler"
1732 fi
1733 eval ac_res=\$$3
1734                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1735 $as_echo "$ac_res" >&6; }
1736 fi
1737   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1738
1739 } # ac_fn_c_check_header_mongrel
1740
1741 # ac_fn_c_try_run LINENO
1742 # ----------------------
1743 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1744 # that executables *can* be run.
1745 ac_fn_c_try_run ()
1746 {
1747   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748   if { { ac_try="$ac_link"
1749 case "(($ac_try" in
1750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1751   *) ac_try_echo=$ac_try;;
1752 esac
1753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1754 $as_echo "$ac_try_echo"; } >&5
1755   (eval "$ac_link") 2>&5
1756   ac_status=$?
1757   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1758   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1759   { { case "(($ac_try" in
1760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1761   *) ac_try_echo=$ac_try;;
1762 esac
1763 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1764 $as_echo "$ac_try_echo"; } >&5
1765   (eval "$ac_try") 2>&5
1766   ac_status=$?
1767   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1768   test $ac_status = 0; }; }; then :
1769   ac_retval=0
1770 else
1771   $as_echo "$as_me: program exited with status $ac_status" >&5
1772        $as_echo "$as_me: failed program was:" >&5
1773 sed 's/^/| /' conftest.$ac_ext >&5
1774
1775        ac_retval=$ac_status
1776 fi
1777   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1778   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1779   as_fn_set_status $ac_retval
1780
1781 } # ac_fn_c_try_run
1782
1783 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1784 # -------------------------------------------------------
1785 # Tests whether HEADER exists and can be compiled using the include files in
1786 # INCLUDES, setting the cache variable VAR accordingly.
1787 ac_fn_c_check_header_compile ()
1788 {
1789   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1791 $as_echo_n "checking for $2... " >&6; }
1792 if eval \${$3+:} false; then :
1793   $as_echo_n "(cached) " >&6
1794 else
1795   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1796 /* end confdefs.h.  */
1797 $4
1798 #include <$2>
1799 _ACEOF
1800 if ac_fn_c_try_compile "$LINENO"; then :
1801   eval "$3=yes"
1802 else
1803   eval "$3=no"
1804 fi
1805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1806 fi
1807 eval ac_res=\$$3
1808                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1809 $as_echo "$ac_res" >&6; }
1810   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1811
1812 } # ac_fn_c_check_header_compile
1813
1814 # ac_fn_c_try_link LINENO
1815 # -----------------------
1816 # Try to link conftest.$ac_ext, and return whether this succeeded.
1817 ac_fn_c_try_link ()
1818 {
1819   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820   rm -f conftest.$ac_objext conftest$ac_exeext
1821   if { { ac_try="$ac_link"
1822 case "(($ac_try" in
1823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1824   *) ac_try_echo=$ac_try;;
1825 esac
1826 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1827 $as_echo "$ac_try_echo"; } >&5
1828   (eval "$ac_link") 2>conftest.err
1829   ac_status=$?
1830   if test -s conftest.err; then
1831     grep -v '^ *+' conftest.err >conftest.er1
1832     cat conftest.er1 >&5
1833     mv -f conftest.er1 conftest.err
1834   fi
1835   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1836   test $ac_status = 0; } && {
1837          test -z "$ac_c_werror_flag" ||
1838          test ! -s conftest.err
1839        } && test -s conftest$ac_exeext && {
1840          test "$cross_compiling" = yes ||
1841          test -x conftest$ac_exeext
1842        }; then :
1843   ac_retval=0
1844 else
1845   $as_echo "$as_me: failed program was:" >&5
1846 sed 's/^/| /' conftest.$ac_ext >&5
1847
1848         ac_retval=1
1849 fi
1850   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1851   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1852   # interfere with the next link command; also delete a directory that is
1853   # left behind by Apple's compiler.  We do this before executing the actions.
1854   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1855   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1856   as_fn_set_status $ac_retval
1857
1858 } # ac_fn_c_try_link
1859
1860 # ac_fn_c_check_func LINENO FUNC VAR
1861 # ----------------------------------
1862 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1863 ac_fn_c_check_func ()
1864 {
1865   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1866   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1867 $as_echo_n "checking for $2... " >&6; }
1868 if eval \${$3+:} false; then :
1869   $as_echo_n "(cached) " >&6
1870 else
1871   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1872 /* end confdefs.h.  */
1873 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1874    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1875 #define $2 innocuous_$2
1876
1877 /* System header to define __stub macros and hopefully few prototypes,
1878     which can conflict with char $2 (); below.
1879     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1880     <limits.h> exists even on freestanding compilers.  */
1881
1882 #ifdef __STDC__
1883 # include <limits.h>
1884 #else
1885 # include <assert.h>
1886 #endif
1887
1888 #undef $2
1889
1890 /* Override any GCC internal prototype to avoid an error.
1891    Use char because int might match the return type of a GCC
1892    builtin and then its argument prototype would still apply.  */
1893 #ifdef __cplusplus
1894 extern "C"
1895 #endif
1896 char $2 ();
1897 /* The GNU C library defines this for functions which it implements
1898     to always fail with ENOSYS.  Some functions are actually named
1899     something starting with __ and the normal name is an alias.  */
1900 #if defined __stub_$2 || defined __stub___$2
1901 choke me
1902 #endif
1903
1904 int
1905 main ()
1906 {
1907 return $2 ();
1908   ;
1909   return 0;
1910 }
1911 _ACEOF
1912 if ac_fn_c_try_link "$LINENO"; then :
1913   eval "$3=yes"
1914 else
1915   eval "$3=no"
1916 fi
1917 rm -f core conftest.err conftest.$ac_objext \
1918     conftest$ac_exeext conftest.$ac_ext
1919 fi
1920 eval ac_res=\$$3
1921                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1922 $as_echo "$ac_res" >&6; }
1923   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1924
1925 } # ac_fn_c_check_func
1926
1927 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1928 # ---------------------------------------------
1929 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1930 # accordingly.
1931 ac_fn_c_check_decl ()
1932 {
1933   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934   as_decl_name=`echo $2|sed 's/ *(.*//'`
1935   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1936   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1937 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1938 if eval \${$3+:} false; then :
1939   $as_echo_n "(cached) " >&6
1940 else
1941   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1942 /* end confdefs.h.  */
1943 $4
1944 int
1945 main ()
1946 {
1947 #ifndef $as_decl_name
1948 #ifdef __cplusplus
1949   (void) $as_decl_use;
1950 #else
1951   (void) $as_decl_name;
1952 #endif
1953 #endif
1954
1955   ;
1956   return 0;
1957 }
1958 _ACEOF
1959 if ac_fn_c_try_compile "$LINENO"; then :
1960   eval "$3=yes"
1961 else
1962   eval "$3=no"
1963 fi
1964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1965 fi
1966 eval ac_res=\$$3
1967                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1968 $as_echo "$ac_res" >&6; }
1969   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1970
1971 } # ac_fn_c_check_decl
1972
1973 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1974 # -------------------------------------------
1975 # Tests whether TYPE exists after having included INCLUDES, setting cache
1976 # variable VAR accordingly.
1977 ac_fn_c_check_type ()
1978 {
1979   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1981 $as_echo_n "checking for $2... " >&6; }
1982 if eval \${$3+:} false; then :
1983   $as_echo_n "(cached) " >&6
1984 else
1985   eval "$3=no"
1986   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1987 /* end confdefs.h.  */
1988 $4
1989 int
1990 main ()
1991 {
1992 if (sizeof ($2))
1993          return 0;
1994   ;
1995   return 0;
1996 }
1997 _ACEOF
1998 if ac_fn_c_try_compile "$LINENO"; then :
1999   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2000 /* end confdefs.h.  */
2001 $4
2002 int
2003 main ()
2004 {
2005 if (sizeof (($2)))
2006             return 0;
2007   ;
2008   return 0;
2009 }
2010 _ACEOF
2011 if ac_fn_c_try_compile "$LINENO"; then :
2012
2013 else
2014   eval "$3=yes"
2015 fi
2016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2017 fi
2018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2019 fi
2020 eval ac_res=\$$3
2021                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2022 $as_echo "$ac_res" >&6; }
2023   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2024
2025 } # ac_fn_c_check_type
2026
2027 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2028 # --------------------------------------------
2029 # Tries to find the compile-time value of EXPR in a program that includes
2030 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2031 # computed
2032 ac_fn_c_compute_int ()
2033 {
2034   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2035   if test "$cross_compiling" = yes; then
2036     # Depending upon the size, compute the lo and hi bounds.
2037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2038 /* end confdefs.h.  */
2039 $4
2040 int
2041 main ()
2042 {
2043 static int test_array [1 - 2 * !(($2) >= 0)];
2044 test_array [0] = 0;
2045 return test_array [0];
2046
2047   ;
2048   return 0;
2049 }
2050 _ACEOF
2051 if ac_fn_c_try_compile "$LINENO"; then :
2052   ac_lo=0 ac_mid=0
2053   while :; do
2054     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2055 /* end confdefs.h.  */
2056 $4
2057 int
2058 main ()
2059 {
2060 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2061 test_array [0] = 0;
2062 return test_array [0];
2063
2064   ;
2065   return 0;
2066 }
2067 _ACEOF
2068 if ac_fn_c_try_compile "$LINENO"; then :
2069   ac_hi=$ac_mid; break
2070 else
2071   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2072                         if test $ac_lo -le $ac_mid; then
2073                           ac_lo= ac_hi=
2074                           break
2075                         fi
2076                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2077 fi
2078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2079   done
2080 else
2081   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2082 /* end confdefs.h.  */
2083 $4
2084 int
2085 main ()
2086 {
2087 static int test_array [1 - 2 * !(($2) < 0)];
2088 test_array [0] = 0;
2089 return test_array [0];
2090
2091   ;
2092   return 0;
2093 }
2094 _ACEOF
2095 if ac_fn_c_try_compile "$LINENO"; then :
2096   ac_hi=-1 ac_mid=-1
2097   while :; do
2098     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2099 /* end confdefs.h.  */
2100 $4
2101 int
2102 main ()
2103 {
2104 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2105 test_array [0] = 0;
2106 return test_array [0];
2107
2108   ;
2109   return 0;
2110 }
2111 _ACEOF
2112 if ac_fn_c_try_compile "$LINENO"; then :
2113   ac_lo=$ac_mid; break
2114 else
2115   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2116                         if test $ac_mid -le $ac_hi; then
2117                           ac_lo= ac_hi=
2118                           break
2119                         fi
2120                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2121 fi
2122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2123   done
2124 else
2125   ac_lo= ac_hi=
2126 fi
2127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2128 fi
2129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2130 # Binary search between lo and hi bounds.
2131 while test "x$ac_lo" != "x$ac_hi"; do
2132   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2133   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2134 /* end confdefs.h.  */
2135 $4
2136 int
2137 main ()
2138 {
2139 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2140 test_array [0] = 0;
2141 return test_array [0];
2142
2143   ;
2144   return 0;
2145 }
2146 _ACEOF
2147 if ac_fn_c_try_compile "$LINENO"; then :
2148   ac_hi=$ac_mid
2149 else
2150   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2151 fi
2152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2153 done
2154 case $ac_lo in #((
2155 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2156 '') ac_retval=1 ;;
2157 esac
2158   else
2159     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2160 /* end confdefs.h.  */
2161 $4
2162 static long int longval () { return $2; }
2163 static unsigned long int ulongval () { return $2; }
2164 #include <stdio.h>
2165 #include <stdlib.h>
2166 int
2167 main ()
2168 {
2169
2170   FILE *f = fopen ("conftest.val", "w");
2171   if (! f)
2172     return 1;
2173   if (($2) < 0)
2174     {
2175       long int i = longval ();
2176       if (i != ($2))
2177         return 1;
2178       fprintf (f, "%ld", i);
2179     }
2180   else
2181     {
2182       unsigned long int i = ulongval ();
2183       if (i != ($2))
2184         return 1;
2185       fprintf (f, "%lu", i);
2186     }
2187   /* Do not output a trailing newline, as this causes \r\n confusion
2188      on some platforms.  */
2189   return ferror (f) || fclose (f) != 0;
2190
2191   ;
2192   return 0;
2193 }
2194 _ACEOF
2195 if ac_fn_c_try_run "$LINENO"; then :
2196   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2197 else
2198   ac_retval=1
2199 fi
2200 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2201   conftest.$ac_objext conftest.beam conftest.$ac_ext
2202 rm -f conftest.val
2203
2204   fi
2205   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2206   as_fn_set_status $ac_retval
2207
2208 } # ac_fn_c_compute_int
2209 cat >config.log <<_ACEOF
2210 This file contains any messages produced by compilers while
2211 running configure, to aid debugging if configure makes a mistake.
2212
2213 It was created by libgpg-error $as_me 1.13, which was
2214 generated by GNU Autoconf 2.69.  Invocation command line was
2215
2216   $ $0 $@
2217
2218 _ACEOF
2219 exec 5>>config.log
2220 {
2221 cat <<_ASUNAME
2222 ## --------- ##
2223 ## Platform. ##
2224 ## --------- ##
2225
2226 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2227 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2228 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2229 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2230 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2231
2232 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2233 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2234
2235 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2236 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2237 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2238 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2239 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2240 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2241 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2242
2243 _ASUNAME
2244
2245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2246 for as_dir in $PATH
2247 do
2248   IFS=$as_save_IFS
2249   test -z "$as_dir" && as_dir=.
2250     $as_echo "PATH: $as_dir"
2251   done
2252 IFS=$as_save_IFS
2253
2254 } >&5
2255
2256 cat >&5 <<_ACEOF
2257
2258
2259 ## ----------- ##
2260 ## Core tests. ##
2261 ## ----------- ##
2262
2263 _ACEOF
2264
2265
2266 # Keep a trace of the command line.
2267 # Strip out --no-create and --no-recursion so they do not pile up.
2268 # Strip out --silent because we don't want to record it for future runs.
2269 # Also quote any args containing shell meta-characters.
2270 # Make two passes to allow for proper duplicate-argument suppression.
2271 ac_configure_args=
2272 ac_configure_args0=
2273 ac_configure_args1=
2274 ac_must_keep_next=false
2275 for ac_pass in 1 2
2276 do
2277   for ac_arg
2278   do
2279     case $ac_arg in
2280     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2281     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2282     | -silent | --silent | --silen | --sile | --sil)
2283       continue ;;
2284     *\'*)
2285       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2286     esac
2287     case $ac_pass in
2288     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2289     2)
2290       as_fn_append ac_configure_args1 " '$ac_arg'"
2291       if test $ac_must_keep_next = true; then
2292         ac_must_keep_next=false # Got value, back to normal.
2293       else
2294         case $ac_arg in
2295           *=* | --config-cache | -C | -disable-* | --disable-* \
2296           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2297           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2298           | -with-* | --with-* | -without-* | --without-* | --x)
2299             case "$ac_configure_args0 " in
2300               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2301             esac
2302             ;;
2303           -* ) ac_must_keep_next=true ;;
2304         esac
2305       fi
2306       as_fn_append ac_configure_args " '$ac_arg'"
2307       ;;
2308     esac
2309   done
2310 done
2311 { ac_configure_args0=; unset ac_configure_args0;}
2312 { ac_configure_args1=; unset ac_configure_args1;}
2313
2314 # When interrupted or exit'd, cleanup temporary files, and complete
2315 # config.log.  We remove comments because anyway the quotes in there
2316 # would cause problems or look ugly.
2317 # WARNING: Use '\'' to represent an apostrophe within the trap.
2318 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2319 trap 'exit_status=$?
2320   # Save into config.log some information that might help in debugging.
2321   {
2322     echo
2323
2324     $as_echo "## ---------------- ##
2325 ## Cache variables. ##
2326 ## ---------------- ##"
2327     echo
2328     # The following way of writing the cache mishandles newlines in values,
2329 (
2330   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2331     eval ac_val=\$$ac_var
2332     case $ac_val in #(
2333     *${as_nl}*)
2334       case $ac_var in #(
2335       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2336 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2337       esac
2338       case $ac_var in #(
2339       _ | IFS | as_nl) ;; #(
2340       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2341       *) { eval $ac_var=; unset $ac_var;} ;;
2342       esac ;;
2343     esac
2344   done
2345   (set) 2>&1 |
2346     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2347     *${as_nl}ac_space=\ *)
2348       sed -n \
2349         "s/'\''/'\''\\\\'\'''\''/g;
2350           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2351       ;; #(
2352     *)
2353       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2354       ;;
2355     esac |
2356     sort
2357 )
2358     echo
2359
2360     $as_echo "## ----------------- ##
2361 ## Output variables. ##
2362 ## ----------------- ##"
2363     echo
2364     for ac_var in $ac_subst_vars
2365     do
2366       eval ac_val=\$$ac_var
2367       case $ac_val in
2368       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2369       esac
2370       $as_echo "$ac_var='\''$ac_val'\''"
2371     done | sort
2372     echo
2373
2374     if test -n "$ac_subst_files"; then
2375       $as_echo "## ------------------- ##
2376 ## File substitutions. ##
2377 ## ------------------- ##"
2378       echo
2379       for ac_var in $ac_subst_files
2380       do
2381         eval ac_val=\$$ac_var
2382         case $ac_val in
2383         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2384         esac
2385         $as_echo "$ac_var='\''$ac_val'\''"
2386       done | sort
2387       echo
2388     fi
2389
2390     if test -s confdefs.h; then
2391       $as_echo "## ----------- ##
2392 ## confdefs.h. ##
2393 ## ----------- ##"
2394       echo
2395       cat confdefs.h
2396       echo
2397     fi
2398     test "$ac_signal" != 0 &&
2399       $as_echo "$as_me: caught signal $ac_signal"
2400     $as_echo "$as_me: exit $exit_status"
2401   } >&5
2402   rm -f core *.core core.conftest.* &&
2403     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2404     exit $exit_status
2405 ' 0
2406 for ac_signal in 1 2 13 15; do
2407   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2408 done
2409 ac_signal=0
2410
2411 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2412 rm -f -r conftest* confdefs.h
2413
2414 $as_echo "/* confdefs.h */" > confdefs.h
2415
2416 # Predefined preprocessor variables.
2417
2418 cat >>confdefs.h <<_ACEOF
2419 #define PACKAGE_NAME "$PACKAGE_NAME"
2420 _ACEOF
2421
2422 cat >>confdefs.h <<_ACEOF
2423 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2424 _ACEOF
2425
2426 cat >>confdefs.h <<_ACEOF
2427 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2428 _ACEOF
2429
2430 cat >>confdefs.h <<_ACEOF
2431 #define PACKAGE_STRING "$PACKAGE_STRING"
2432 _ACEOF
2433
2434 cat >>confdefs.h <<_ACEOF
2435 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2436 _ACEOF
2437
2438 cat >>confdefs.h <<_ACEOF
2439 #define PACKAGE_URL "$PACKAGE_URL"
2440 _ACEOF
2441
2442
2443 # Let the site file select an alternate cache file if it wants to.
2444 # Prefer an explicitly selected file to automatically selected ones.
2445 ac_site_file1=NONE
2446 ac_site_file2=NONE
2447 if test -n "$CONFIG_SITE"; then
2448   # We do not want a PATH search for config.site.
2449   case $CONFIG_SITE in #((
2450     -*)  ac_site_file1=./$CONFIG_SITE;;
2451     */*) ac_site_file1=$CONFIG_SITE;;
2452     *)   ac_site_file1=./$CONFIG_SITE;;
2453   esac
2454 elif test "x$prefix" != xNONE; then
2455   ac_site_file1=$prefix/share/config.site
2456   ac_site_file2=$prefix/etc/config.site
2457 else
2458   ac_site_file1=$ac_default_prefix/share/config.site
2459   ac_site_file2=$ac_default_prefix/etc/config.site
2460 fi
2461 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2462 do
2463   test "x$ac_site_file" = xNONE && continue
2464   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2465     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2466 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2467     sed 's/^/| /' "$ac_site_file" >&5
2468     . "$ac_site_file" \
2469       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2470 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2471 as_fn_error $? "failed to load site script $ac_site_file
2472 See \`config.log' for more details" "$LINENO" 5; }
2473   fi
2474 done
2475
2476 if test -r "$cache_file"; then
2477   # Some versions of bash will fail to source /dev/null (special files
2478   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2479   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2480     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2481 $as_echo "$as_me: loading cache $cache_file" >&6;}
2482     case $cache_file in
2483       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2484       *)                      . "./$cache_file";;
2485     esac
2486   fi
2487 else
2488   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2489 $as_echo "$as_me: creating cache $cache_file" >&6;}
2490   >$cache_file
2491 fi
2492
2493 gt_needs="$gt_needs "
2494 # Check that the precious variables saved in the cache have kept the same
2495 # value.
2496 ac_cache_corrupted=false
2497 for ac_var in $ac_precious_vars; do
2498   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2499   eval ac_new_set=\$ac_env_${ac_var}_set
2500   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2501   eval ac_new_val=\$ac_env_${ac_var}_value
2502   case $ac_old_set,$ac_new_set in
2503     set,)
2504       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2505 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2506       ac_cache_corrupted=: ;;
2507     ,set)
2508       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2509 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2510       ac_cache_corrupted=: ;;
2511     ,);;
2512     *)
2513       if test "x$ac_old_val" != "x$ac_new_val"; then
2514         # differences in whitespace do not lead to failure.
2515         ac_old_val_w=`echo x $ac_old_val`
2516         ac_new_val_w=`echo x $ac_new_val`
2517         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2518           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2519 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2520           ac_cache_corrupted=:
2521         else
2522           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2523 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2524           eval $ac_var=\$ac_old_val
2525         fi
2526         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2527 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2528         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2529 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2530       fi;;
2531   esac
2532   # Pass precious variables to config.status.
2533   if test "$ac_new_set" = set; then
2534     case $ac_new_val in
2535     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2536     *) ac_arg=$ac_var=$ac_new_val ;;
2537     esac
2538     case " $ac_configure_args " in
2539       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2540       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2541     esac
2542   fi
2543 done
2544 if $ac_cache_corrupted; then
2545   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2546 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2547   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2548 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2549   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2550 fi
2551 ## -------------------- ##
2552 ## Main body of script. ##
2553 ## -------------------- ##
2554
2555 ac_ext=c
2556 ac_cpp='$CPP $CPPFLAGS'
2557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2560
2561
2562 # LT Version numbers, remember to change them just *before* a release.
2563 #   (Code changed:                      REVISION++)
2564 #   (Interfaces added/removed/changed:  CURRENT++, REVISION=0)
2565 #   (Interfaces added:                  AGE++)
2566 #   (Interfaces removed:                AGE=0)
2567 # Note that added error codes don't constitute an interface change.
2568 LIBGPG_ERROR_LT_CURRENT=11
2569 LIBGPG_ERROR_LT_AGE=11
2570 LIBGPG_ERROR_LT_REVISION=0
2571 ################################################
2572
2573
2574
2575
2576
2577 VERSION_NUMBER=0x010d00
2578
2579
2580 ac_aux_dir=
2581 for ac_dir in build-aux "$srcdir"/build-aux; do
2582   if test -f "$ac_dir/install-sh"; then
2583     ac_aux_dir=$ac_dir
2584     ac_install_sh="$ac_aux_dir/install-sh -c"
2585     break
2586   elif test -f "$ac_dir/install.sh"; then
2587     ac_aux_dir=$ac_dir
2588     ac_install_sh="$ac_aux_dir/install.sh -c"
2589     break
2590   elif test -f "$ac_dir/shtool"; then
2591     ac_aux_dir=$ac_dir
2592     ac_install_sh="$ac_aux_dir/shtool install -c"
2593     break
2594   fi
2595 done
2596 if test -z "$ac_aux_dir"; then
2597   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2598 fi
2599
2600 # These three variables are undocumented and unsupported,
2601 # and are intended to be withdrawn in a future Autoconf release.
2602 # They can cause serious problems if a builder's source tree is in a directory
2603 # whose full name contains unusual characters.
2604 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2605 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2606 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2607
2608
2609 am__api_version='1.11'
2610
2611 # Find a good install program.  We prefer a C program (faster),
2612 # so one script is as good as another.  But avoid the broken or
2613 # incompatible versions:
2614 # SysV /etc/install, /usr/sbin/install
2615 # SunOS /usr/etc/install
2616 # IRIX /sbin/install
2617 # AIX /bin/install
2618 # AmigaOS /C/install, which installs bootblocks on floppy discs
2619 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2620 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2621 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2622 # OS/2's system install, which has a completely different semantic
2623 # ./install, which can be erroneously created by make from ./install.sh.
2624 # Reject install programs that cannot install multiple files.
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2626 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2627 if test -z "$INSTALL"; then
2628 if ${ac_cv_path_install+:} false; then :
2629   $as_echo_n "(cached) " >&6
2630 else
2631   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2632 for as_dir in $PATH
2633 do
2634   IFS=$as_save_IFS
2635   test -z "$as_dir" && as_dir=.
2636     # Account for people who put trailing slashes in PATH elements.
2637 case $as_dir/ in #((
2638   ./ | .// | /[cC]/* | \
2639   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2640   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2641   /usr/ucb/* ) ;;
2642   *)
2643     # OSF1 and SCO ODT 3.0 have their own names for install.
2644     # Don't use installbsd from OSF since it installs stuff as root
2645     # by default.
2646     for ac_prog in ginstall scoinst install; do
2647       for ac_exec_ext in '' $ac_executable_extensions; do
2648         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2649           if test $ac_prog = install &&
2650             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2651             # AIX install.  It has an incompatible calling convention.
2652             :
2653           elif test $ac_prog = install &&
2654             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2655             # program-specific install script used by HP pwplus--don't use.
2656             :
2657           else
2658             rm -rf conftest.one conftest.two conftest.dir
2659             echo one > conftest.one
2660             echo two > conftest.two
2661             mkdir conftest.dir
2662             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2663               test -s conftest.one && test -s conftest.two &&
2664               test -s conftest.dir/conftest.one &&
2665               test -s conftest.dir/conftest.two
2666             then
2667               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2668               break 3
2669             fi
2670           fi
2671         fi
2672       done
2673     done
2674     ;;
2675 esac
2676
2677   done
2678 IFS=$as_save_IFS
2679
2680 rm -rf conftest.one conftest.two conftest.dir
2681
2682 fi
2683   if test "${ac_cv_path_install+set}" = set; then
2684     INSTALL=$ac_cv_path_install
2685   else
2686     # As a last resort, use the slow shell script.  Don't cache a
2687     # value for INSTALL within a source directory, because that will
2688     # break other packages using the cache if that directory is
2689     # removed, or if the value is a relative name.
2690     INSTALL=$ac_install_sh
2691   fi
2692 fi
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2694 $as_echo "$INSTALL" >&6; }
2695
2696 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2697 # It thinks the first close brace ends the variable substitution.
2698 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2699
2700 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2701
2702 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2703
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2705 $as_echo_n "checking whether build environment is sane... " >&6; }
2706 # Just in case
2707 sleep 1
2708 echo timestamp > conftest.file
2709 # Reject unsafe characters in $srcdir or the absolute working directory
2710 # name.  Accept space and tab only in the latter.
2711 am_lf='
2712 '
2713 case `pwd` in
2714   *[\\\"\#\$\&\'\`$am_lf]*)
2715     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2716 esac
2717 case $srcdir in
2718   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2719     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2720 esac
2721
2722 # Do `set' in a subshell so we don't clobber the current shell's
2723 # arguments.  Must try -L first in case configure is actually a
2724 # symlink; some systems play weird games with the mod time of symlinks
2725 # (eg FreeBSD returns the mod time of the symlink's containing
2726 # directory).
2727 if (
2728    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2729    if test "$*" = "X"; then
2730       # -L didn't work.
2731       set X `ls -t "$srcdir/configure" conftest.file`
2732    fi
2733    rm -f conftest.file
2734    if test "$*" != "X $srcdir/configure conftest.file" \
2735       && test "$*" != "X conftest.file $srcdir/configure"; then
2736
2737       # If neither matched, then we have a broken ls.  This can happen
2738       # if, for instance, CONFIG_SHELL is bash and it inherits a
2739       # broken ls alias from the environment.  This has actually
2740       # happened.  Such a system could not be considered "sane".
2741       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2742 alias in your environment" "$LINENO" 5
2743    fi
2744
2745    test "$2" = conftest.file
2746    )
2747 then
2748    # Ok.
2749    :
2750 else
2751    as_fn_error $? "newly created file is older than distributed files!
2752 Check your system clock" "$LINENO" 5
2753 fi
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2755 $as_echo "yes" >&6; }
2756 test "$program_prefix" != NONE &&
2757   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2758 # Use a double $ so make ignores it.
2759 test "$program_suffix" != NONE &&
2760   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2761 # Double any \ or $.
2762 # By default was `s,x,x', remove it if useless.
2763 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2764 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2765
2766 # expand $ac_aux_dir to an absolute path
2767 am_aux_dir=`cd $ac_aux_dir && pwd`
2768
2769 if test x"${MISSING+set}" != xset; then
2770   case $am_aux_dir in
2771   *\ * | *\     *)
2772     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2773   *)
2774     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2775   esac
2776 fi
2777 # Use eval to expand $SHELL
2778 if eval "$MISSING --run true"; then
2779   am_missing_run="$MISSING --run "
2780 else
2781   am_missing_run=
2782   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2783 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2784 fi
2785
2786 if test x"${install_sh}" != xset; then
2787   case $am_aux_dir in
2788   *\ * | *\     *)
2789     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2790   *)
2791     install_sh="\${SHELL} $am_aux_dir/install-sh"
2792   esac
2793 fi
2794
2795 # Installed binaries are usually stripped using `strip' when the user
2796 # run `make install-strip'.  However `strip' might not be the right
2797 # tool to use in cross-compilation environments, therefore Automake
2798 # will honor the `STRIP' environment variable to overrule this program.
2799 if test "$cross_compiling" != no; then
2800   if test -n "$ac_tool_prefix"; then
2801   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2802 set dummy ${ac_tool_prefix}strip; ac_word=$2
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2804 $as_echo_n "checking for $ac_word... " >&6; }
2805 if ${ac_cv_prog_STRIP+:} false; then :
2806   $as_echo_n "(cached) " >&6
2807 else
2808   if test -n "$STRIP"; then
2809   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2810 else
2811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2812 for as_dir in $PATH
2813 do
2814   IFS=$as_save_IFS
2815   test -z "$as_dir" && as_dir=.
2816     for ac_exec_ext in '' $ac_executable_extensions; do
2817   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2818     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2819     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2820     break 2
2821   fi
2822 done
2823   done
2824 IFS=$as_save_IFS
2825
2826 fi
2827 fi
2828 STRIP=$ac_cv_prog_STRIP
2829 if test -n "$STRIP"; then
2830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2831 $as_echo "$STRIP" >&6; }
2832 else
2833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2834 $as_echo "no" >&6; }
2835 fi
2836
2837
2838 fi
2839 if test -z "$ac_cv_prog_STRIP"; then
2840   ac_ct_STRIP=$STRIP
2841   # Extract the first word of "strip", so it can be a program name with args.
2842 set dummy strip; ac_word=$2
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2844 $as_echo_n "checking for $ac_word... " >&6; }
2845 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2846   $as_echo_n "(cached) " >&6
2847 else
2848   if test -n "$ac_ct_STRIP"; then
2849   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2850 else
2851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852 for as_dir in $PATH
2853 do
2854   IFS=$as_save_IFS
2855   test -z "$as_dir" && as_dir=.
2856     for ac_exec_ext in '' $ac_executable_extensions; do
2857   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2858     ac_cv_prog_ac_ct_STRIP="strip"
2859     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2860     break 2
2861   fi
2862 done
2863   done
2864 IFS=$as_save_IFS
2865
2866 fi
2867 fi
2868 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2869 if test -n "$ac_ct_STRIP"; then
2870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2871 $as_echo "$ac_ct_STRIP" >&6; }
2872 else
2873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2874 $as_echo "no" >&6; }
2875 fi
2876
2877   if test "x$ac_ct_STRIP" = x; then
2878     STRIP=":"
2879   else
2880     case $cross_compiling:$ac_tool_warned in
2881 yes:)
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2883 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2884 ac_tool_warned=yes ;;
2885 esac
2886     STRIP=$ac_ct_STRIP
2887   fi
2888 else
2889   STRIP="$ac_cv_prog_STRIP"
2890 fi
2891
2892 fi
2893 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2894
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2896 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2897 if test -z "$MKDIR_P"; then
2898   if ${ac_cv_path_mkdir+:} false; then :
2899   $as_echo_n "(cached) " >&6
2900 else
2901   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2902 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2903 do
2904   IFS=$as_save_IFS
2905   test -z "$as_dir" && as_dir=.
2906     for ac_prog in mkdir gmkdir; do
2907          for ac_exec_ext in '' $ac_executable_extensions; do
2908            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2909            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2910              'mkdir (GNU coreutils) '* | \
2911              'mkdir (coreutils) '* | \
2912              'mkdir (fileutils) '4.1*)
2913                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2914                break 3;;
2915            esac
2916          done
2917        done
2918   done
2919 IFS=$as_save_IFS
2920
2921 fi
2922
2923   test -d ./--version && rmdir ./--version
2924   if test "${ac_cv_path_mkdir+set}" = set; then
2925     MKDIR_P="$ac_cv_path_mkdir -p"
2926   else
2927     # As a last resort, use the slow shell script.  Don't cache a
2928     # value for MKDIR_P within a source directory, because that will
2929     # break other packages using the cache if that directory is
2930     # removed, or if the value is a relative name.
2931     MKDIR_P="$ac_install_sh -d"
2932   fi
2933 fi
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2935 $as_echo "$MKDIR_P" >&6; }
2936
2937 mkdir_p="$MKDIR_P"
2938 case $mkdir_p in
2939   [\\/$]* | ?:[\\/]*) ;;
2940   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2941 esac
2942
2943 for ac_prog in gawk mawk nawk awk
2944 do
2945   # Extract the first word of "$ac_prog", so it can be a program name with args.
2946 set dummy $ac_prog; ac_word=$2
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2948 $as_echo_n "checking for $ac_word... " >&6; }
2949 if ${ac_cv_prog_AWK+:} false; then :
2950   $as_echo_n "(cached) " >&6
2951 else
2952   if test -n "$AWK"; then
2953   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2954 else
2955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2956 for as_dir in $PATH
2957 do
2958   IFS=$as_save_IFS
2959   test -z "$as_dir" && as_dir=.
2960     for ac_exec_ext in '' $ac_executable_extensions; do
2961   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2962     ac_cv_prog_AWK="$ac_prog"
2963     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2964     break 2
2965   fi
2966 done
2967   done
2968 IFS=$as_save_IFS
2969
2970 fi
2971 fi
2972 AWK=$ac_cv_prog_AWK
2973 if test -n "$AWK"; then
2974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2975 $as_echo "$AWK" >&6; }
2976 else
2977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2978 $as_echo "no" >&6; }
2979 fi
2980
2981
2982   test -n "$AWK" && break
2983 done
2984
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2986 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2987 set x ${MAKE-make}
2988 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2989 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2990   $as_echo_n "(cached) " >&6
2991 else
2992   cat >conftest.make <<\_ACEOF
2993 SHELL = /bin/sh
2994 all:
2995         @echo '@@@%%%=$(MAKE)=@@@%%%'
2996 _ACEOF
2997 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2998 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2999   *@@@%%%=?*=@@@%%%*)
3000     eval ac_cv_prog_make_${ac_make}_set=yes;;
3001   *)
3002     eval ac_cv_prog_make_${ac_make}_set=no;;
3003 esac
3004 rm -f conftest.make
3005 fi
3006 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3008 $as_echo "yes" >&6; }
3009   SET_MAKE=
3010 else
3011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3012 $as_echo "no" >&6; }
3013   SET_MAKE="MAKE=${MAKE-make}"
3014 fi
3015
3016 rm -rf .tst 2>/dev/null
3017 mkdir .tst 2>/dev/null
3018 if test -d .tst; then
3019   am__leading_dot=.
3020 else
3021   am__leading_dot=_
3022 fi
3023 rmdir .tst 2>/dev/null
3024
3025 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3026   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3027   # is not polluted with repeated "-I."
3028   am__isrc=' -I$(srcdir)'
3029   # test to see if srcdir already configured
3030   if test -f $srcdir/config.status; then
3031     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3032   fi
3033 fi
3034
3035 # test whether we have cygpath
3036 if test -z "$CYGPATH_W"; then
3037   if (cygpath --version) >/dev/null 2>/dev/null; then
3038     CYGPATH_W='cygpath -w'
3039   else
3040     CYGPATH_W=echo
3041   fi
3042 fi
3043
3044
3045 # Define the identity of the package.
3046  PACKAGE='libgpg-error'
3047  VERSION='1.13'
3048
3049
3050 cat >>confdefs.h <<_ACEOF
3051 #define PACKAGE "$PACKAGE"
3052 _ACEOF
3053
3054
3055 cat >>confdefs.h <<_ACEOF
3056 #define VERSION "$VERSION"
3057 _ACEOF
3058
3059 # Some tools Automake needs.
3060
3061 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3062
3063
3064 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3065
3066
3067 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3068
3069
3070 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3071
3072
3073 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3074
3075 # We need awk for the "check" target.  The system "awk" is bad on
3076 # some platforms.
3077 # Always define AMTAR for backward compatibility.  Yes, it's still used
3078 # in the wild :-(  We should find a proper way to deprecate it ...
3079 AMTAR='$${TAR-tar}'
3080
3081 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3082
3083
3084
3085
3086
3087
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3089 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3090     # Check whether --enable-maintainer-mode was given.
3091 if test "${enable_maintainer_mode+set}" = set; then :
3092   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3093 else
3094   USE_MAINTAINER_MODE=no
3095 fi
3096
3097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3098 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3099    if test $USE_MAINTAINER_MODE = yes; then
3100   MAINTAINER_MODE_TRUE=
3101   MAINTAINER_MODE_FALSE='#'
3102 else
3103   MAINTAINER_MODE_TRUE='#'
3104   MAINTAINER_MODE_FALSE=
3105 fi
3106
3107   MAINT=$MAINTAINER_MODE_TRUE
3108
3109
3110
3111 ac_config_headers="$ac_config_headers config.h"
3112
3113
3114 # Check whether --enable-silent-rules was given.
3115 if test "${enable_silent_rules+set}" = set; then :
3116   enableval=$enable_silent_rules;
3117 fi
3118
3119 case $enable_silent_rules in
3120 yes) AM_DEFAULT_VERBOSITY=0;;
3121 no)  AM_DEFAULT_VERBOSITY=1;;
3122 *)   AM_DEFAULT_VERBOSITY=1;;
3123 esac
3124 am_make=${MAKE-make}
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3126 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3127 if ${am_cv_make_support_nested_variables+:} false; then :
3128   $as_echo_n "(cached) " >&6
3129 else
3130   if $as_echo 'TRUE=$(BAR$(V))
3131 BAR0=false
3132 BAR1=true
3133 V=1
3134 am__doit:
3135         @$(TRUE)
3136 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3137   am_cv_make_support_nested_variables=yes
3138 else
3139   am_cv_make_support_nested_variables=no
3140 fi
3141 fi
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3143 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3144 if test $am_cv_make_support_nested_variables = yes; then
3145     AM_V='$(V)'
3146   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3147 else
3148   AM_V=$AM_DEFAULT_VERBOSITY
3149   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3150 fi
3151 AM_BACKSLASH='\'
3152
3153
3154 # We need to know about the host architecture to avoid spurious
3155 # warnings.
3156 # Make sure we can run config.sub.
3157 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3158   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3159
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3161 $as_echo_n "checking build system type... " >&6; }
3162 if ${ac_cv_build+:} false; then :
3163   $as_echo_n "(cached) " >&6
3164 else
3165   ac_build_alias=$build_alias
3166 test "x$ac_build_alias" = x &&
3167   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3168 test "x$ac_build_alias" = x &&
3169   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3170 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3171   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3172
3173 fi
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3175 $as_echo "$ac_cv_build" >&6; }
3176 case $ac_cv_build in
3177 *-*-*) ;;
3178 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3179 esac
3180 build=$ac_cv_build
3181 ac_save_IFS=$IFS; IFS='-'
3182 set x $ac_cv_build
3183 shift
3184 build_cpu=$1
3185 build_vendor=$2
3186 shift; shift
3187 # Remember, the first character of IFS is used to create $*,
3188 # except with old shells:
3189 build_os=$*
3190 IFS=$ac_save_IFS
3191 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3192
3193
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3195 $as_echo_n "checking host system type... " >&6; }
3196 if ${ac_cv_host+:} false; then :
3197   $as_echo_n "(cached) " >&6
3198 else
3199   if test "x$host_alias" = x; then
3200   ac_cv_host=$ac_cv_build
3201 else
3202   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3203     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3204 fi
3205
3206 fi
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3208 $as_echo "$ac_cv_host" >&6; }
3209 case $ac_cv_host in
3210 *-*-*) ;;
3211 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3212 esac
3213 host=$ac_cv_host
3214 ac_save_IFS=$IFS; IFS='-'
3215 set x $ac_cv_host
3216 shift
3217 host_cpu=$1
3218 host_vendor=$2
3219 shift; shift
3220 # Remember, the first character of IFS is used to create $*,
3221 # except with old shells:
3222 host_os=$*
3223 IFS=$ac_save_IFS
3224 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3225
3226
3227
3228
3229
3230
3231         { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&5
3232 $as_echo "$as_me: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&6;}
3233         { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&5
3234 $as_echo "$as_me: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&6;}
3235         hostname=`hostname`
3236         if test "$hostname"; then
3237            { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild hostname... $hostname" >&5
3238 $as_echo "$as_me: autobuild hostname... $hostname" >&6;}
3239         fi
3240
3241         date=`date +%Y%m%d-%H%M%S`
3242         if test "$?" != 0; then
3243            date=`date`
3244         fi
3245         if test "$date"; then
3246            { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild timestamp... $date" >&5
3247 $as_echo "$as_me: autobuild timestamp... $date" >&6;}
3248         fi
3249
3250
3251 # Checks for programs.
3252 ac_ext=c
3253 ac_cpp='$CPP $CPPFLAGS'
3254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3257 if test -n "$ac_tool_prefix"; then
3258   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3259 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3261 $as_echo_n "checking for $ac_word... " >&6; }
3262 if ${ac_cv_prog_CC+:} false; then :
3263   $as_echo_n "(cached) " >&6
3264 else
3265   if test -n "$CC"; then
3266   ac_cv_prog_CC="$CC" # Let the user override the test.
3267 else
3268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3269 for as_dir in $PATH
3270 do
3271   IFS=$as_save_IFS
3272   test -z "$as_dir" && as_dir=.
3273     for ac_exec_ext in '' $ac_executable_extensions; do
3274   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3275     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3276     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3277     break 2
3278   fi
3279 done
3280   done
3281 IFS=$as_save_IFS
3282
3283 fi
3284 fi
3285 CC=$ac_cv_prog_CC
3286 if test -n "$CC"; then
3287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3288 $as_echo "$CC" >&6; }
3289 else
3290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3291 $as_echo "no" >&6; }
3292 fi
3293
3294
3295 fi
3296 if test -z "$ac_cv_prog_CC"; then
3297   ac_ct_CC=$CC
3298   # Extract the first word of "gcc", so it can be a program name with args.
3299 set dummy gcc; ac_word=$2
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3301 $as_echo_n "checking for $ac_word... " >&6; }
3302 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3303   $as_echo_n "(cached) " >&6
3304 else
3305   if test -n "$ac_ct_CC"; then
3306   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3307 else
3308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3309 for as_dir in $PATH
3310 do
3311   IFS=$as_save_IFS
3312   test -z "$as_dir" && as_dir=.
3313     for ac_exec_ext in '' $ac_executable_extensions; do
3314   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3315     ac_cv_prog_ac_ct_CC="gcc"
3316     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3317     break 2
3318   fi
3319 done
3320   done
3321 IFS=$as_save_IFS
3322
3323 fi
3324 fi
3325 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3326 if test -n "$ac_ct_CC"; then
3327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3328 $as_echo "$ac_ct_CC" >&6; }
3329 else
3330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3331 $as_echo "no" >&6; }
3332 fi
3333
3334   if test "x$ac_ct_CC" = x; then
3335     CC=""
3336   else
3337     case $cross_compiling:$ac_tool_warned in
3338 yes:)
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3340 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3341 ac_tool_warned=yes ;;
3342 esac
3343     CC=$ac_ct_CC
3344   fi
3345 else
3346   CC="$ac_cv_prog_CC"
3347 fi
3348
3349 if test -z "$CC"; then
3350           if test -n "$ac_tool_prefix"; then
3351     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3352 set dummy ${ac_tool_prefix}cc; ac_word=$2
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3354 $as_echo_n "checking for $ac_word... " >&6; }
3355 if ${ac_cv_prog_CC+:} false; then :
3356   $as_echo_n "(cached) " >&6
3357 else
3358   if test -n "$CC"; then
3359   ac_cv_prog_CC="$CC" # Let the user override the test.
3360 else
3361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3362 for as_dir in $PATH
3363 do
3364   IFS=$as_save_IFS
3365   test -z "$as_dir" && as_dir=.
3366     for ac_exec_ext in '' $ac_executable_extensions; do
3367   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3368     ac_cv_prog_CC="${ac_tool_prefix}cc"
3369     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3370     break 2
3371   fi
3372 done
3373   done
3374 IFS=$as_save_IFS
3375
3376 fi
3377 fi
3378 CC=$ac_cv_prog_CC
3379 if test -n "$CC"; then
3380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3381 $as_echo "$CC" >&6; }
3382 else
3383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3384 $as_echo "no" >&6; }
3385 fi
3386
3387
3388   fi
3389 fi
3390 if test -z "$CC"; then
3391   # Extract the first word of "cc", so it can be a program name with args.
3392 set dummy cc; ac_word=$2
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3394 $as_echo_n "checking for $ac_word... " >&6; }
3395 if ${ac_cv_prog_CC+:} false; then :
3396   $as_echo_n "(cached) " >&6
3397 else
3398   if test -n "$CC"; then
3399   ac_cv_prog_CC="$CC" # Let the user override the test.
3400 else
3401   ac_prog_rejected=no
3402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3403 for as_dir in $PATH
3404 do
3405   IFS=$as_save_IFS
3406   test -z "$as_dir" && as_dir=.
3407     for ac_exec_ext in '' $ac_executable_extensions; do
3408   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3409     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3410        ac_prog_rejected=yes
3411        continue
3412      fi
3413     ac_cv_prog_CC="cc"
3414     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3415     break 2
3416   fi
3417 done
3418   done
3419 IFS=$as_save_IFS
3420
3421 if test $ac_prog_rejected = yes; then
3422   # We found a bogon in the path, so make sure we never use it.
3423   set dummy $ac_cv_prog_CC
3424   shift
3425   if test $# != 0; then
3426     # We chose a different compiler from the bogus one.
3427     # However, it has the same basename, so the bogon will be chosen
3428     # first if we set CC to just the basename; use the full file name.
3429     shift
3430     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3431   fi
3432 fi
3433 fi
3434 fi
3435 CC=$ac_cv_prog_CC
3436 if test -n "$CC"; then
3437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3438 $as_echo "$CC" >&6; }
3439 else
3440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3441 $as_echo "no" >&6; }
3442 fi
3443
3444
3445 fi
3446 if test -z "$CC"; then
3447   if test -n "$ac_tool_prefix"; then
3448   for ac_prog in cl.exe
3449   do
3450     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3451 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3453 $as_echo_n "checking for $ac_word... " >&6; }
3454 if ${ac_cv_prog_CC+:} false; then :
3455   $as_echo_n "(cached) " >&6
3456 else
3457   if test -n "$CC"; then
3458   ac_cv_prog_CC="$CC" # Let the user override the test.
3459 else
3460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3461 for as_dir in $PATH
3462 do
3463   IFS=$as_save_IFS
3464   test -z "$as_dir" && as_dir=.
3465     for ac_exec_ext in '' $ac_executable_extensions; do
3466   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3467     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3468     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3469     break 2
3470   fi
3471 done
3472   done
3473 IFS=$as_save_IFS
3474
3475 fi
3476 fi
3477 CC=$ac_cv_prog_CC
3478 if test -n "$CC"; then
3479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3480 $as_echo "$CC" >&6; }
3481 else
3482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3483 $as_echo "no" >&6; }
3484 fi
3485
3486
3487     test -n "$CC" && break
3488   done
3489 fi
3490 if test -z "$CC"; then
3491   ac_ct_CC=$CC
3492   for ac_prog in cl.exe
3493 do
3494   # Extract the first word of "$ac_prog", so it can be a program name with args.
3495 set dummy $ac_prog; ac_word=$2
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3497 $as_echo_n "checking for $ac_word... " >&6; }
3498 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3499   $as_echo_n "(cached) " >&6
3500 else
3501   if test -n "$ac_ct_CC"; then
3502   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3503 else
3504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3505 for as_dir in $PATH
3506 do
3507   IFS=$as_save_IFS
3508   test -z "$as_dir" && as_dir=.
3509     for ac_exec_ext in '' $ac_executable_extensions; do
3510   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3511     ac_cv_prog_ac_ct_CC="$ac_prog"
3512     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3513     break 2
3514   fi
3515 done
3516   done
3517 IFS=$as_save_IFS
3518
3519 fi
3520 fi
3521 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3522 if test -n "$ac_ct_CC"; then
3523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3524 $as_echo "$ac_ct_CC" >&6; }
3525 else
3526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3527 $as_echo "no" >&6; }
3528 fi
3529
3530
3531   test -n "$ac_ct_CC" && break
3532 done
3533
3534   if test "x$ac_ct_CC" = x; then
3535     CC=""
3536   else
3537     case $cross_compiling:$ac_tool_warned in
3538 yes:)
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3540 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3541 ac_tool_warned=yes ;;
3542 esac
3543     CC=$ac_ct_CC
3544   fi
3545 fi
3546
3547 fi
3548
3549
3550 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3551 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3552 as_fn_error $? "no acceptable C compiler found in \$PATH
3553 See \`config.log' for more details" "$LINENO" 5; }
3554
3555 # Provide some information about the compiler.
3556 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3557 set X $ac_compile
3558 ac_compiler=$2
3559 for ac_option in --version -v -V -qversion; do
3560   { { ac_try="$ac_compiler $ac_option >&5"
3561 case "(($ac_try" in
3562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3563   *) ac_try_echo=$ac_try;;
3564 esac
3565 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3566 $as_echo "$ac_try_echo"; } >&5
3567   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3568   ac_status=$?
3569   if test -s conftest.err; then
3570     sed '10a\
3571 ... rest of stderr output deleted ...
3572          10q' conftest.err >conftest.er1
3573     cat conftest.er1 >&5
3574   fi
3575   rm -f conftest.er1 conftest.err
3576   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3577   test $ac_status = 0; }
3578 done
3579
3580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3581 /* end confdefs.h.  */
3582
3583 int
3584 main ()
3585 {
3586
3587   ;
3588   return 0;
3589 }
3590 _ACEOF
3591 ac_clean_files_save=$ac_clean_files
3592 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3593 # Try to create an executable without -o first, disregard a.out.
3594 # It will help us diagnose broken compilers, and finding out an intuition
3595 # of exeext.
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3597 $as_echo_n "checking whether the C compiler works... " >&6; }
3598 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3599
3600 # The possible output files:
3601 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3602
3603 ac_rmfiles=
3604 for ac_file in $ac_files
3605 do
3606   case $ac_file in
3607     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3608     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3609   esac
3610 done
3611 rm -f $ac_rmfiles
3612
3613 if { { ac_try="$ac_link_default"
3614 case "(($ac_try" in
3615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3616   *) ac_try_echo=$ac_try;;
3617 esac
3618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3619 $as_echo "$ac_try_echo"; } >&5
3620   (eval "$ac_link_default") 2>&5
3621   ac_status=$?
3622   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3623   test $ac_status = 0; }; then :
3624   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3625 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3626 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3627 # so that the user can short-circuit this test for compilers unknown to
3628 # Autoconf.
3629 for ac_file in $ac_files ''
3630 do
3631   test -f "$ac_file" || continue
3632   case $ac_file in
3633     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3634         ;;
3635     [ab].out )
3636         # We found the default executable, but exeext='' is most
3637         # certainly right.
3638         break;;
3639     *.* )
3640         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3641         then :; else
3642            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3643         fi
3644         # We set ac_cv_exeext here because the later test for it is not
3645         # safe: cross compilers may not add the suffix if given an `-o'
3646         # argument, so we may need to know it at that point already.
3647         # Even if this section looks crufty: it has the advantage of
3648         # actually working.
3649         break;;
3650     * )
3651         break;;
3652   esac
3653 done
3654 test "$ac_cv_exeext" = no && ac_cv_exeext=
3655
3656 else
3657   ac_file=''
3658 fi
3659 if test -z "$ac_file"; then :
3660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3661 $as_echo "no" >&6; }
3662 $as_echo "$as_me: failed program was:" >&5
3663 sed 's/^/| /' conftest.$ac_ext >&5
3664
3665 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3666 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3667 as_fn_error 77 "C compiler cannot create executables
3668 See \`config.log' for more details" "$LINENO" 5; }
3669 else
3670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3671 $as_echo "yes" >&6; }
3672 fi
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3674 $as_echo_n "checking for C compiler default output file name... " >&6; }
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3676 $as_echo "$ac_file" >&6; }
3677 ac_exeext=$ac_cv_exeext
3678
3679 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3680 ac_clean_files=$ac_clean_files_save
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3682 $as_echo_n "checking for suffix of executables... " >&6; }
3683 if { { ac_try="$ac_link"
3684 case "(($ac_try" in
3685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3686   *) ac_try_echo=$ac_try;;
3687 esac
3688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3689 $as_echo "$ac_try_echo"; } >&5
3690   (eval "$ac_link") 2>&5
3691   ac_status=$?
3692   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3693   test $ac_status = 0; }; then :
3694   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3695 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3696 # work properly (i.e., refer to `conftest.exe'), while it won't with
3697 # `rm'.
3698 for ac_file in conftest.exe conftest conftest.*; do
3699   test -f "$ac_file" || continue
3700   case $ac_file in
3701     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3702     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3703           break;;
3704     * ) break;;
3705   esac
3706 done
3707 else
3708   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3709 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3710 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3711 See \`config.log' for more details" "$LINENO" 5; }
3712 fi
3713 rm -f conftest conftest$ac_cv_exeext
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3715 $as_echo "$ac_cv_exeext" >&6; }
3716
3717 rm -f conftest.$ac_ext
3718 EXEEXT=$ac_cv_exeext
3719 ac_exeext=$EXEEXT
3720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3721 /* end confdefs.h.  */
3722 #include <stdio.h>
3723 int
3724 main ()
3725 {
3726 FILE *f = fopen ("conftest.out", "w");
3727  return ferror (f) || fclose (f) != 0;
3728
3729   ;
3730   return 0;
3731 }
3732 _ACEOF
3733 ac_clean_files="$ac_clean_files conftest.out"
3734 # Check that the compiler produces executables we can run.  If not, either
3735 # the compiler is broken, or we cross compile.
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3737 $as_echo_n "checking whether we are cross compiling... " >&6; }
3738 if test "$cross_compiling" != yes; then
3739   { { ac_try="$ac_link"
3740 case "(($ac_try" in
3741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3742   *) ac_try_echo=$ac_try;;
3743 esac
3744 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3745 $as_echo "$ac_try_echo"; } >&5
3746   (eval "$ac_link") 2>&5
3747   ac_status=$?
3748   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3749   test $ac_status = 0; }
3750   if { ac_try='./conftest$ac_cv_exeext'
3751   { { case "(($ac_try" in
3752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3753   *) ac_try_echo=$ac_try;;
3754 esac
3755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3756 $as_echo "$ac_try_echo"; } >&5
3757   (eval "$ac_try") 2>&5
3758   ac_status=$?
3759   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3760   test $ac_status = 0; }; }; then
3761     cross_compiling=no
3762   else
3763     if test "$cross_compiling" = maybe; then
3764         cross_compiling=yes
3765     else
3766         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3767 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3768 as_fn_error $? "cannot run C compiled programs.
3769 If you meant to cross compile, use \`--host'.
3770 See \`config.log' for more details" "$LINENO" 5; }
3771     fi
3772   fi
3773 fi
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3775 $as_echo "$cross_compiling" >&6; }
3776
3777 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3778 ac_clean_files=$ac_clean_files_save
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3780 $as_echo_n "checking for suffix of object files... " >&6; }
3781 if ${ac_cv_objext+:} false; then :
3782   $as_echo_n "(cached) " >&6
3783 else
3784   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3785 /* end confdefs.h.  */
3786
3787 int
3788 main ()
3789 {
3790
3791   ;
3792   return 0;
3793 }
3794 _ACEOF
3795 rm -f conftest.o conftest.obj
3796 if { { ac_try="$ac_compile"
3797 case "(($ac_try" in
3798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3799   *) ac_try_echo=$ac_try;;
3800 esac
3801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3802 $as_echo "$ac_try_echo"; } >&5
3803   (eval "$ac_compile") 2>&5
3804   ac_status=$?
3805   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3806   test $ac_status = 0; }; then :
3807   for ac_file in conftest.o conftest.obj conftest.*; do
3808   test -f "$ac_file" || continue;
3809   case $ac_file in
3810     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3811     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3812        break;;
3813   esac
3814 done
3815 else
3816   $as_echo "$as_me: failed program was:" >&5
3817 sed 's/^/| /' conftest.$ac_ext >&5
3818
3819 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3820 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3821 as_fn_error $? "cannot compute suffix of object files: cannot compile
3822 See \`config.log' for more details" "$LINENO" 5; }
3823 fi
3824 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3825 fi
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3827 $as_echo "$ac_cv_objext" >&6; }
3828 OBJEXT=$ac_cv_objext
3829 ac_objext=$OBJEXT
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3831 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3832 if ${ac_cv_c_compiler_gnu+:} false; then :
3833   $as_echo_n "(cached) " >&6
3834 else
3835   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3836 /* end confdefs.h.  */
3837
3838 int
3839 main ()
3840 {
3841 #ifndef __GNUC__
3842        choke me
3843 #endif
3844
3845   ;
3846   return 0;
3847 }
3848 _ACEOF
3849 if ac_fn_c_try_compile "$LINENO"; then :
3850   ac_compiler_gnu=yes
3851 else
3852   ac_compiler_gnu=no
3853 fi
3854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3855 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3856
3857 fi
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3859 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3860 if test $ac_compiler_gnu = yes; then
3861   GCC=yes
3862 else
3863   GCC=
3864 fi
3865 ac_test_CFLAGS=${CFLAGS+set}
3866 ac_save_CFLAGS=$CFLAGS
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3868 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3869 if ${ac_cv_prog_cc_g+:} false; then :
3870   $as_echo_n "(cached) " >&6
3871 else
3872   ac_save_c_werror_flag=$ac_c_werror_flag
3873    ac_c_werror_flag=yes
3874    ac_cv_prog_cc_g=no
3875    CFLAGS="-g"
3876    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3877 /* end confdefs.h.  */
3878
3879 int
3880 main ()
3881 {
3882
3883   ;
3884   return 0;
3885 }
3886 _ACEOF
3887 if ac_fn_c_try_compile "$LINENO"; then :
3888   ac_cv_prog_cc_g=yes
3889 else
3890   CFLAGS=""
3891       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3892 /* end confdefs.h.  */
3893
3894 int
3895 main ()
3896 {
3897
3898   ;
3899   return 0;
3900 }
3901 _ACEOF
3902 if ac_fn_c_try_compile "$LINENO"; then :
3903
3904 else
3905   ac_c_werror_flag=$ac_save_c_werror_flag
3906          CFLAGS="-g"
3907          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3908 /* end confdefs.h.  */
3909
3910 int
3911 main ()
3912 {
3913
3914   ;
3915   return 0;
3916 }
3917 _ACEOF
3918 if ac_fn_c_try_compile "$LINENO"; then :
3919   ac_cv_prog_cc_g=yes
3920 fi
3921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3922 fi
3923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3924 fi
3925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3926    ac_c_werror_flag=$ac_save_c_werror_flag
3927 fi
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3929 $as_echo "$ac_cv_prog_cc_g" >&6; }
3930 if test "$ac_test_CFLAGS" = set; then
3931   CFLAGS=$ac_save_CFLAGS
3932 elif test $ac_cv_prog_cc_g = yes; then
3933   if test "$GCC" = yes; then
3934     CFLAGS="-g -O2"
3935   else
3936     CFLAGS="-g"
3937   fi
3938 else
3939   if test "$GCC" = yes; then
3940     CFLAGS="-O2"
3941   else
3942     CFLAGS=
3943   fi
3944 fi
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3946 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3947 if ${ac_cv_prog_cc_c89+:} false; then :
3948   $as_echo_n "(cached) " >&6
3949 else
3950   ac_cv_prog_cc_c89=no
3951 ac_save_CC=$CC
3952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3953 /* end confdefs.h.  */
3954 #include <stdarg.h>
3955 #include <stdio.h>
3956 struct stat;
3957 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3958 struct buf { int x; };
3959 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3960 static char *e (p, i)
3961      char **p;
3962      int i;
3963 {
3964   return p[i];
3965 }
3966 static char *f (char * (*g) (char **, int), char **p, ...)
3967 {
3968   char *s;
3969   va_list v;
3970   va_start (v,p);
3971   s = g (p, va_arg (v,int));
3972   va_end (v);
3973   return s;
3974 }
3975
3976 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3977    function prototypes and stuff, but not '\xHH' hex character constants.
3978    These don't provoke an error unfortunately, instead are silently treated
3979    as 'x'.  The following induces an error, until -std is added to get
3980    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3981    array size at least.  It's necessary to write '\x00'==0 to get something
3982    that's true only with -std.  */
3983 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3984
3985 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3986    inside strings and character constants.  */
3987 #define FOO(x) 'x'
3988 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3989
3990 int test (int i, double x);
3991 struct s1 {int (*f) (int a);};
3992 struct s2 {int (*f) (double a);};
3993 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3994 int argc;
3995 char **argv;
3996 int
3997 main ()
3998 {
3999 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4000   ;
4001   return 0;
4002 }
4003 _ACEOF
4004 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4005         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4006 do
4007   CC="$ac_save_CC $ac_arg"
4008   if ac_fn_c_try_compile "$LINENO"; then :
4009   ac_cv_prog_cc_c89=$ac_arg
4010 fi
4011 rm -f core conftest.err conftest.$ac_objext
4012   test "x$ac_cv_prog_cc_c89" != "xno" && break
4013 done
4014 rm -f conftest.$ac_ext
4015 CC=$ac_save_CC
4016
4017 fi
4018 # AC_CACHE_VAL
4019 case "x$ac_cv_prog_cc_c89" in
4020   x)
4021     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4022 $as_echo "none needed" >&6; } ;;
4023   xno)
4024     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4025 $as_echo "unsupported" >&6; } ;;
4026   *)
4027     CC="$CC $ac_cv_prog_cc_c89"
4028     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4029 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4030 esac
4031 if test "x$ac_cv_prog_cc_c89" != xno; then :
4032
4033 fi
4034
4035 ac_ext=c
4036 ac_cpp='$CPP $CPPFLAGS'
4037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4040 DEPDIR="${am__leading_dot}deps"
4041
4042 ac_config_commands="$ac_config_commands depfiles"
4043
4044
4045 am_make=${MAKE-make}
4046 cat > confinc << 'END'
4047 am__doit:
4048         @echo this is the am__doit target
4049 .PHONY: am__doit
4050 END
4051 # If we don't find an include directive, just comment out the code.
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4053 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4054 am__include="#"
4055 am__quote=
4056 _am_result=none
4057 # First try GNU make style include.
4058 echo "include confinc" > confmf
4059 # Ignore all kinds of additional output from `make'.
4060 case `$am_make -s -f confmf 2> /dev/null` in #(
4061 *the\ am__doit\ target*)
4062   am__include=include
4063   am__quote=
4064   _am_result=GNU
4065   ;;
4066 esac
4067 # Now try BSD make style include.
4068 if test "$am__include" = "#"; then
4069    echo '.include "confinc"' > confmf
4070    case `$am_make -s -f confmf 2> /dev/null` in #(
4071    *the\ am__doit\ target*)
4072      am__include=.include
4073      am__quote="\""
4074      _am_result=BSD
4075      ;;
4076    esac
4077 fi
4078
4079
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4081 $as_echo "$_am_result" >&6; }
4082 rm -f confinc confmf
4083
4084 # Check whether --enable-dependency-tracking was given.
4085 if test "${enable_dependency_tracking+set}" = set; then :
4086   enableval=$enable_dependency_tracking;
4087 fi
4088
4089 if test "x$enable_dependency_tracking" != xno; then
4090   am_depcomp="$ac_aux_dir/depcomp"
4091   AMDEPBACKSLASH='\'
4092   am__nodep='_no'
4093 fi
4094  if test "x$enable_dependency_tracking" != xno; then
4095   AMDEP_TRUE=
4096   AMDEP_FALSE='#'
4097 else
4098   AMDEP_TRUE='#'
4099   AMDEP_FALSE=
4100 fi
4101
4102
4103
4104 depcc="$CC"   am_compiler_list=
4105
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4107 $as_echo_n "checking dependency style of $depcc... " >&6; }
4108 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4109   $as_echo_n "(cached) " >&6
4110 else
4111   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4112   # We make a subdir and do the tests there.  Otherwise we can end up
4113   # making bogus files that we don't know about and never remove.  For
4114   # instance it was reported that on HP-UX the gcc test will end up
4115   # making a dummy file named `D' -- because `-MD' means `put the output
4116   # in D'.
4117   rm -rf conftest.dir
4118   mkdir conftest.dir
4119   # Copy depcomp to subdir because otherwise we won't find it if we're
4120   # using a relative directory.
4121   cp "$am_depcomp" conftest.dir
4122   cd conftest.dir
4123   # We will build objects and dependencies in a subdirectory because
4124   # it helps to detect inapplicable dependency modes.  For instance
4125   # both Tru64's cc and ICC support -MD to output dependencies as a
4126   # side effect of compilation, but ICC will put the dependencies in
4127   # the current directory while Tru64 will put them in the object
4128   # directory.
4129   mkdir sub
4130
4131   am_cv_CC_dependencies_compiler_type=none
4132   if test "$am_compiler_list" = ""; then
4133      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4134   fi
4135   am__universal=false
4136   case " $depcc " in #(
4137      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4138      esac
4139
4140   for depmode in $am_compiler_list; do
4141     # Setup a source with many dependencies, because some compilers
4142     # like to wrap large dependency lists on column 80 (with \), and
4143     # we should not choose a depcomp mode which is confused by this.
4144     #
4145     # We need to recreate these files for each test, as the compiler may
4146     # overwrite some of them when testing with obscure command lines.
4147     # This happens at least with the AIX C compiler.
4148     : > sub/conftest.c
4149     for i in 1 2 3 4 5 6; do
4150       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4151       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4152       # Solaris 8's {/usr,}/bin/sh.
4153       touch sub/conftst$i.h
4154     done
4155     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4156
4157     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4158     # mode.  It turns out that the SunPro C++ compiler does not properly
4159     # handle `-M -o', and we need to detect this.  Also, some Intel
4160     # versions had trouble with output in subdirs
4161     am__obj=sub/conftest.${OBJEXT-o}
4162     am__minus_obj="-o $am__obj"
4163     case $depmode in
4164     gcc)
4165       # This depmode causes a compiler race in universal mode.
4166       test "$am__universal" = false || continue
4167       ;;
4168     nosideeffect)
4169       # after this tag, mechanisms are not by side-effect, so they'll
4170       # only be used when explicitly requested
4171       if test "x$enable_dependency_tracking" = xyes; then
4172         continue
4173       else
4174         break
4175       fi
4176       ;;
4177     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4178       # This compiler won't grok `-c -o', but also, the minuso test has
4179       # not run yet.  These depmodes are late enough in the game, and
4180       # so weak that their functioning should not be impacted.
4181       am__obj=conftest.${OBJEXT-o}
4182       am__minus_obj=
4183       ;;
4184     none) break ;;
4185     esac
4186     if depmode=$depmode \
4187        source=sub/conftest.c object=$am__obj \
4188        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4189        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4190          >/dev/null 2>conftest.err &&
4191        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4192        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4193        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4194        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4195       # icc doesn't choke on unknown options, it will just issue warnings
4196       # or remarks (even with -Werror).  So we grep stderr for any message
4197       # that says an option was ignored or not supported.
4198       # When given -MP, icc 7.0 and 7.1 complain thusly:
4199       #   icc: Command line warning: ignoring option '-M'; no argument required
4200       # The diagnosis changed in icc 8.0:
4201       #   icc: Command line remark: option '-MP' not supported
4202       if (grep 'ignoring option' conftest.err ||
4203           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4204         am_cv_CC_dependencies_compiler_type=$depmode
4205         break
4206       fi
4207     fi
4208   done
4209
4210   cd ..
4211   rm -rf conftest.dir
4212 else
4213   am_cv_CC_dependencies_compiler_type=none
4214 fi
4215
4216 fi
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4218 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4219 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4220
4221  if
4222   test "x$enable_dependency_tracking" != xno \
4223   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4224   am__fastdepCC_TRUE=
4225   am__fastdepCC_FALSE='#'
4226 else
4227   am__fastdepCC_TRUE='#'
4228   am__fastdepCC_FALSE=
4229 fi
4230
4231
4232 if test "x$CC" != xcc; then
4233   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4234 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4235 else
4236   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4237 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4238 fi
4239 set dummy $CC; ac_cc=`$as_echo "$2" |
4240                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4241 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4242   $as_echo_n "(cached) " >&6
4243 else
4244   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4245 /* end confdefs.h.  */
4246
4247 int
4248 main ()
4249 {
4250
4251   ;
4252   return 0;
4253 }
4254 _ACEOF
4255 # Make sure it works both with $CC and with simple cc.
4256 # We do the test twice because some compilers refuse to overwrite an
4257 # existing .o file with -o, though they will create one.
4258 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4259 rm -f conftest2.*
4260 if { { case "(($ac_try" in
4261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4262   *) ac_try_echo=$ac_try;;
4263 esac
4264 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4265 $as_echo "$ac_try_echo"; } >&5
4266   (eval "$ac_try") 2>&5
4267   ac_status=$?
4268   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4269   test $ac_status = 0; } &&
4270    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4272   *) ac_try_echo=$ac_try;;
4273 esac
4274 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4275 $as_echo "$ac_try_echo"; } >&5
4276   (eval "$ac_try") 2>&5
4277   ac_status=$?
4278   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4279   test $ac_status = 0; };
4280 then
4281   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4282   if test "x$CC" != xcc; then
4283     # Test first that cc exists at all.
4284     if { ac_try='cc -c conftest.$ac_ext >&5'
4285   { { case "(($ac_try" in
4286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4287   *) ac_try_echo=$ac_try;;
4288 esac
4289 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4290 $as_echo "$ac_try_echo"; } >&5
4291   (eval "$ac_try") 2>&5
4292   ac_status=$?
4293   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4294   test $ac_status = 0; }; }; then
4295       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4296       rm -f conftest2.*
4297       if { { case "(($ac_try" in
4298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4299   *) ac_try_echo=$ac_try;;
4300 esac
4301 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4302 $as_echo "$ac_try_echo"; } >&5
4303   (eval "$ac_try") 2>&5
4304   ac_status=$?
4305   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4306   test $ac_status = 0; } &&
4307          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4309   *) ac_try_echo=$ac_try;;
4310 esac
4311 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4312 $as_echo "$ac_try_echo"; } >&5
4313   (eval "$ac_try") 2>&5
4314   ac_status=$?
4315   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4316   test $ac_status = 0; };
4317       then
4318         # cc works too.
4319         :
4320       else
4321         # cc exists but doesn't like -o.
4322         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4323       fi
4324     fi
4325   fi
4326 else
4327   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4328 fi
4329 rm -f core conftest*
4330
4331 fi
4332 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4334 $as_echo "yes" >&6; }
4335 else
4336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4337 $as_echo "no" >&6; }
4338
4339 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4340
4341 fi
4342
4343 # FIXME: we rely on the cache variable name because
4344 # there is no other way.
4345 set dummy $CC
4346 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4347 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4348 if test "$am_t" != yes; then
4349    # Losing compiler, so override with the script.
4350    # FIXME: It is wrong to rewrite CC.
4351    # But if we don't then we get into trouble of one sort or another.
4352    # A longer-term fix would be to have automake use am__CC in this case,
4353    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4354    CC="$am_aux_dir/compile $CC"
4355 fi
4356
4357
4358 ac_ext=c
4359 ac_cpp='$CPP $CPPFLAGS'
4360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4364 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4365 # On Suns, sometimes $CPP names a directory.
4366 if test -n "$CPP" && test -d "$CPP"; then
4367   CPP=
4368 fi
4369 if test -z "$CPP"; then
4370   if ${ac_cv_prog_CPP+:} false; then :
4371   $as_echo_n "(cached) " >&6
4372 else
4373       # Double quotes because CPP needs to be expanded
4374     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4375     do
4376       ac_preproc_ok=false
4377 for ac_c_preproc_warn_flag in '' yes
4378 do
4379   # Use a header file that comes with gcc, so configuring glibc
4380   # with a fresh cross-compiler works.
4381   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4382   # <limits.h> exists even on freestanding compilers.
4383   # On the NeXT, cc -E runs the code through the compiler's parser,
4384   # not just through cpp. "Syntax error" is here to catch this case.
4385   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4386 /* end confdefs.h.  */
4387 #ifdef __STDC__
4388 # include <limits.h>
4389 #else
4390 # include <assert.h>
4391 #endif
4392                      Syntax error
4393 _ACEOF
4394 if ac_fn_c_try_cpp "$LINENO"; then :
4395
4396 else
4397   # Broken: fails on valid input.
4398 continue
4399 fi
4400 rm -f conftest.err conftest.i conftest.$ac_ext
4401
4402   # OK, works on sane cases.  Now check whether nonexistent headers
4403   # can be detected and how.
4404   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4405 /* end confdefs.h.  */
4406 #include <ac_nonexistent.h>
4407 _ACEOF
4408 if ac_fn_c_try_cpp "$LINENO"; then :
4409   # Broken: success on invalid input.
4410 continue
4411 else
4412   # Passes both tests.
4413 ac_preproc_ok=:
4414 break
4415 fi
4416 rm -f conftest.err conftest.i conftest.$ac_ext
4417
4418 done
4419 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4420 rm -f conftest.i conftest.err conftest.$ac_ext
4421 if $ac_preproc_ok; then :
4422   break
4423 fi
4424
4425     done
4426     ac_cv_prog_CPP=$CPP
4427
4428 fi
4429   CPP=$ac_cv_prog_CPP
4430 else
4431   ac_cv_prog_CPP=$CPP
4432 fi
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4434 $as_echo "$CPP" >&6; }
4435 ac_preproc_ok=false
4436 for ac_c_preproc_warn_flag in '' yes
4437 do
4438   # Use a header file that comes with gcc, so configuring glibc
4439   # with a fresh cross-compiler works.
4440   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4441   # <limits.h> exists even on freestanding compilers.
4442   # On the NeXT, cc -E runs the code through the compiler's parser,
4443   # not just through cpp. "Syntax error" is here to catch this case.
4444   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4445 /* end confdefs.h.  */
4446 #ifdef __STDC__
4447 # include <limits.h>
4448 #else
4449 # include <assert.h>
4450 #endif
4451                      Syntax error
4452 _ACEOF
4453 if ac_fn_c_try_cpp "$LINENO"; then :
4454
4455 else
4456   # Broken: fails on valid input.
4457 continue
4458 fi
4459 rm -f conftest.err conftest.i conftest.$ac_ext
4460
4461   # OK, works on sane cases.  Now check whether nonexistent headers
4462   # can be detected and how.
4463   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4464 /* end confdefs.h.  */
4465 #include <ac_nonexistent.h>
4466 _ACEOF
4467 if ac_fn_c_try_cpp "$LINENO"; then :
4468   # Broken: success on invalid input.
4469 continue
4470 else
4471   # Passes both tests.
4472 ac_preproc_ok=:
4473 break
4474 fi
4475 rm -f conftest.err conftest.i conftest.$ac_ext
4476
4477 done
4478 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4479 rm -f conftest.i conftest.err conftest.$ac_ext
4480 if $ac_preproc_ok; then :
4481
4482 else
4483   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4484 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4485 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4486 See \`config.log' for more details" "$LINENO" 5; }
4487 fi
4488
4489 ac_ext=c
4490 ac_cpp='$CPP $CPPFLAGS'
4491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4494
4495 for ac_prog in gawk mawk nawk awk
4496 do
4497   # Extract the first word of "$ac_prog", so it can be a program name with args.
4498 set dummy $ac_prog; ac_word=$2
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4500 $as_echo_n "checking for $ac_word... " >&6; }
4501 if ${ac_cv_prog_AWK+:} false; then :
4502   $as_echo_n "(cached) " >&6
4503 else
4504   if test -n "$AWK"; then
4505   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4506 else
4507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4508 for as_dir in $PATH
4509 do
4510   IFS=$as_save_IFS
4511   test -z "$as_dir" && as_dir=.
4512     for ac_exec_ext in '' $ac_executable_extensions; do
4513   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4514     ac_cv_prog_AWK="$ac_prog"
4515     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4516     break 2
4517   fi
4518 done
4519   done
4520 IFS=$as_save_IFS
4521
4522 fi
4523 fi
4524 AWK=$ac_cv_prog_AWK
4525 if test -n "$AWK"; then
4526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4527 $as_echo "$AWK" >&6; }
4528 else
4529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4530 $as_echo "no" >&6; }
4531 fi
4532
4533
4534   test -n "$AWK" && break
4535 done
4536
4537 if test -n "$ac_tool_prefix"; then
4538   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4539 set dummy ${ac_tool_prefix}ar; ac_word=$2
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4541 $as_echo_n "checking for $ac_word... " >&6; }
4542 if ${ac_cv_prog_AR+:} false; then :
4543   $as_echo_n "(cached) " >&6
4544 else
4545   if test -n "$AR"; then
4546   ac_cv_prog_AR="$AR" # Let the user override the test.
4547 else
4548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4549 for as_dir in $PATH
4550 do
4551   IFS=$as_save_IFS
4552   test -z "$as_dir" && as_dir=.
4553     for ac_exec_ext in '' $ac_executable_extensions; do
4554   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4555     ac_cv_prog_AR="${ac_tool_prefix}ar"
4556     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4557     break 2
4558   fi
4559 done
4560   done
4561 IFS=$as_save_IFS
4562
4563 fi
4564 fi
4565 AR=$ac_cv_prog_AR
4566 if test -n "$AR"; then
4567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4568 $as_echo "$AR" >&6; }
4569 else
4570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4571 $as_echo "no" >&6; }
4572 fi
4573
4574
4575 fi
4576 if test -z "$ac_cv_prog_AR"; then
4577   ac_ct_AR=$AR
4578   # Extract the first word of "ar", so it can be a program name with args.
4579 set dummy ar; ac_word=$2
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4581 $as_echo_n "checking for $ac_word... " >&6; }
4582 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4583   $as_echo_n "(cached) " >&6
4584 else
4585   if test -n "$ac_ct_AR"; then
4586   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4587 else
4588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4589 for as_dir in $PATH
4590 do
4591   IFS=$as_save_IFS
4592   test -z "$as_dir" && as_dir=.
4593     for ac_exec_ext in '' $ac_executable_extensions; do
4594   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4595     ac_cv_prog_ac_ct_AR="ar"
4596     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4597     break 2
4598   fi
4599 done
4600   done
4601 IFS=$as_save_IFS
4602
4603 fi
4604 fi
4605 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4606 if test -n "$ac_ct_AR"; then
4607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4608 $as_echo "$ac_ct_AR" >&6; }
4609 else
4610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4611 $as_echo "no" >&6; }
4612 fi
4613
4614   if test "x$ac_ct_AR" = x; then
4615     AR=":"
4616   else
4617     case $cross_compiling:$ac_tool_warned in
4618 yes:)
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4620 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4621 ac_tool_warned=yes ;;
4622 esac
4623     AR=$ac_ct_AR
4624   fi
4625 else
4626   AR="$ac_cv_prog_AR"
4627 fi
4628
4629
4630
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4632 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4633 if ${ac_cv_path_GREP+:} false; then :
4634   $as_echo_n "(cached) " >&6
4635 else
4636   if test -z "$GREP"; then
4637   ac_path_GREP_found=false
4638   # Loop through the user's path and test for each of PROGNAME-LIST
4639   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4641 do
4642   IFS=$as_save_IFS
4643   test -z "$as_dir" && as_dir=.
4644     for ac_prog in grep ggrep; do
4645     for ac_exec_ext in '' $ac_executable_extensions; do
4646       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4647       as_fn_executable_p "$ac_path_GREP" || continue
4648 # Check for GNU ac_path_GREP and select it if it is found.
4649   # Check for GNU $ac_path_GREP
4650 case `"$ac_path_GREP" --version 2>&1` in
4651 *GNU*)
4652   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4653 *)
4654   ac_count=0
4655   $as_echo_n 0123456789 >"conftest.in"
4656   while :
4657   do
4658     cat "conftest.in" "conftest.in" >"conftest.tmp"
4659     mv "conftest.tmp" "conftest.in"
4660     cp "conftest.in" "conftest.nl"
4661     $as_echo 'GREP' >> "conftest.nl"
4662     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4663     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4664     as_fn_arith $ac_count + 1 && ac_count=$as_val
4665     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4666       # Best one so far, save it but keep looking for a better one
4667       ac_cv_path_GREP="$ac_path_GREP"
4668       ac_path_GREP_max=$ac_count
4669     fi
4670     # 10*(2^10) chars as input seems more than enough
4671     test $ac_count -gt 10 && break
4672   done
4673   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4674 esac
4675
4676       $ac_path_GREP_found && break 3
4677     done
4678   done
4679   done
4680 IFS=$as_save_IFS
4681   if test -z "$ac_cv_path_GREP"; then
4682     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4683   fi
4684 else
4685   ac_cv_path_GREP=$GREP
4686 fi
4687
4688 fi
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4690 $as_echo "$ac_cv_path_GREP" >&6; }
4691  GREP="$ac_cv_path_GREP"
4692
4693
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4695 $as_echo_n "checking for egrep... " >&6; }
4696 if ${ac_cv_path_EGREP+:} false; then :
4697   $as_echo_n "(cached) " >&6
4698 else
4699   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4700    then ac_cv_path_EGREP="$GREP -E"
4701    else
4702      if test -z "$EGREP"; then
4703   ac_path_EGREP_found=false
4704   # Loop through the user's path and test for each of PROGNAME-LIST
4705   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4706 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4707 do
4708   IFS=$as_save_IFS
4709   test -z "$as_dir" && as_dir=.
4710     for ac_prog in egrep; do
4711     for ac_exec_ext in '' $ac_executable_extensions; do
4712       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4713       as_fn_executable_p "$ac_path_EGREP" || continue
4714 # Check for GNU ac_path_EGREP and select it if it is found.
4715   # Check for GNU $ac_path_EGREP
4716 case `"$ac_path_EGREP" --version 2>&1` in
4717 *GNU*)
4718   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4719 *)
4720   ac_count=0
4721   $as_echo_n 0123456789 >"conftest.in"
4722   while :
4723   do
4724     cat "conftest.in" "conftest.in" >"conftest.tmp"
4725     mv "conftest.tmp" "conftest.in"
4726     cp "conftest.in" "conftest.nl"
4727     $as_echo 'EGREP' >> "conftest.nl"
4728     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4729     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4730     as_fn_arith $ac_count + 1 && ac_count=$as_val
4731     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4732       # Best one so far, save it but keep looking for a better one
4733       ac_cv_path_EGREP="$ac_path_EGREP"
4734       ac_path_EGREP_max=$ac_count
4735     fi
4736     # 10*(2^10) chars as input seems more than enough
4737     test $ac_count -gt 10 && break
4738   done
4739   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4740 esac
4741
4742       $ac_path_EGREP_found && break 3
4743     done
4744   done
4745   done
4746 IFS=$as_save_IFS
4747   if test -z "$ac_cv_path_EGREP"; then
4748     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4749   fi
4750 else
4751   ac_cv_path_EGREP=$EGREP
4752 fi
4753
4754    fi
4755 fi
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4757 $as_echo "$ac_cv_path_EGREP" >&6; }
4758  EGREP="$ac_cv_path_EGREP"
4759
4760
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4762 $as_echo_n "checking for ANSI C header files... " >&6; }
4763 if ${ac_cv_header_stdc+:} false; then :
4764   $as_echo_n "(cached) " >&6
4765 else
4766   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4767 /* end confdefs.h.  */
4768 #include <stdlib.h>
4769 #include <stdarg.h>
4770 #include <string.h>
4771 #include <float.h>
4772
4773 int
4774 main ()
4775 {
4776
4777   ;
4778   return 0;
4779 }
4780 _ACEOF
4781 if ac_fn_c_try_compile "$LINENO"; then :
4782   ac_cv_header_stdc=yes
4783 else
4784   ac_cv_header_stdc=no
4785 fi
4786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4787
4788 if test $ac_cv_header_stdc = yes; then
4789   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4790   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4791 /* end confdefs.h.  */
4792 #include <string.h>
4793
4794 _ACEOF
4795 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4796   $EGREP "memchr" >/dev/null 2>&1; then :
4797
4798 else
4799   ac_cv_header_stdc=no
4800 fi
4801 rm -f conftest*
4802
4803 fi
4804
4805 if test $ac_cv_header_stdc = yes; then
4806   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4807   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4808 /* end confdefs.h.  */
4809 #include <stdlib.h>
4810
4811 _ACEOF
4812 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4813   $EGREP "free" >/dev/null 2>&1; then :
4814
4815 else
4816   ac_cv_header_stdc=no
4817 fi
4818 rm -f conftest*
4819
4820 fi
4821
4822 if test $ac_cv_header_stdc = yes; then
4823   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4824   if test "$cross_compiling" = yes; then :
4825   :
4826 else
4827   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4828 /* end confdefs.h.  */
4829 #include <ctype.h>
4830 #include <stdlib.h>
4831 #if ((' ' & 0x0FF) == 0x020)
4832 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4833 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4834 #else
4835 # define ISLOWER(c) \
4836                    (('a' <= (c) && (c) <= 'i') \
4837                      || ('j' <= (c) && (c) <= 'r') \
4838                      || ('s' <= (c) && (c) <= 'z'))
4839 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4840 #endif
4841
4842 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4843 int
4844 main ()
4845 {
4846   int i;
4847   for (i = 0; i < 256; i++)
4848     if (XOR (islower (i), ISLOWER (i))
4849         || toupper (i) != TOUPPER (i))
4850       return 2;
4851   return 0;
4852 }
4853 _ACEOF
4854 if ac_fn_c_try_run "$LINENO"; then :
4855
4856 else
4857   ac_cv_header_stdc=no
4858 fi
4859 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4860   conftest.$ac_objext conftest.beam conftest.$ac_ext
4861 fi
4862
4863 fi
4864 fi
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4866 $as_echo "$ac_cv_header_stdc" >&6; }
4867 if test $ac_cv_header_stdc = yes; then
4868
4869 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4870
4871 fi
4872
4873 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4874 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4875                   inttypes.h stdint.h unistd.h
4876 do :
4877   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4878 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4879 "
4880 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4881   cat >>confdefs.h <<_ACEOF
4882 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4883 _ACEOF
4884
4885 fi
4886
4887 done
4888
4889
4890
4891   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4892 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4893   MINIX=yes
4894 else
4895   MINIX=
4896 fi
4897
4898
4899   if test "$MINIX" = yes; then
4900
4901 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4902
4903
4904 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4905
4906
4907 $as_echo "#define _MINIX 1" >>confdefs.h
4908
4909   fi
4910
4911
4912   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4913 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4914 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4915   $as_echo_n "(cached) " >&6
4916 else
4917   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4918 /* end confdefs.h.  */
4919
4920 #         define __EXTENSIONS__ 1
4921           $ac_includes_default
4922 int
4923 main ()
4924 {
4925
4926   ;
4927   return 0;
4928 }
4929 _ACEOF
4930 if ac_fn_c_try_compile "$LINENO"; then :
4931   ac_cv_safe_to_define___extensions__=yes
4932 else
4933   ac_cv_safe_to_define___extensions__=no
4934 fi
4935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4936 fi
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4938 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4939   test $ac_cv_safe_to_define___extensions__ = yes &&
4940     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4941
4942   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4943
4944   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4945
4946   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4947
4948   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4949
4950
4951
4952
4953 # Set some internal variables depending on the platform for later use.
4954 have_w32_system=no
4955 have_w64_system=no
4956 have_w32ce_system=no
4957 case "${host}" in
4958     x86_64-*mingw32*)
4959         have_w32_system=yes
4960         have_w64_system=yes
4961         ;;
4962     *-mingw32ce*)
4963         have_w32_system=yes
4964         have_w32ce_system=yes
4965         ;;
4966     *-mingw32*)
4967         have_w32_system=yes
4968         ;;
4969     *)
4970        ;;
4971 esac
4972
4973
4974 if test "$have_w32_system" != yes; then
4975
4976
4977
4978
4979     THREADLIB_CPPFLAGS=""
4980
4981   # Check whether --enable-threads was given.
4982 if test "${enable_threads+set}" = set; then :
4983   enableval=$enable_threads; gl_use_threads=$enableval
4984 else
4985   if test -n "$gl_use_threads_default"; then
4986        gl_use_threads="$gl_use_threads_default"
4987      else
4988        case "$host_os" in
4989                                                                osf*) gl_use_threads=no ;;
4990          cygwin*)
4991                case `uname -r` in
4992                  1.[0-5].*) gl_use_threads=no ;;
4993                  *)         gl_use_threads=yes ;;
4994                esac
4995                ;;
4996          *)    gl_use_threads=yes ;;
4997        esac
4998      fi
4999
5000 fi
5001
5002   if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
5003     # For using <pthread.h>:
5004     case "$host_os" in
5005       osf*)
5006         # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
5007         # groks <pthread.h>. cc also understands the flag -pthread, but
5008         # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
5009         # 2. putting a flag into CPPFLAGS that has an effect on the linker
5010         # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
5011         # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
5012         THREADLIB_CPPFLAGS="$THREADLIB_CPPFLAGS -D_REENTRANT"
5013         ;;
5014     esac
5015     # Some systems optimize for single-threaded programs by default, and
5016     # need special flags to disable these optimizations. For example, the
5017     # definition of 'errno' in <errno.h>.
5018     case "$host_os" in
5019       aix* | freebsd*)
5020            THREADLIB_CPPFLAGS="$THREADLIB_CPPFLAGS -D_THREAD_SAFE"
5021            ;;
5022       solaris*)
5023            THREADLIB_CPPFLAGS="$THREADLIB_CPPFLAGS -D_REENTRANT"
5024            ;;
5025     esac
5026   fi
5027   if test x"$THREADLIB_CPPFLAGS" != x ; then
5028       CPPFLAGS="$CPPFLAGS $THREADLIB_CPPFLAGS"
5029   fi
5030
5031
5032
5033
5034 fi
5035
5036
5037
5038 case `pwd` in
5039   *\ * | *\     *)
5040     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5041 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5042 esac
5043
5044
5045
5046 macro_version='2.4.2'
5047 macro_revision='1.3337'
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061 ltmain="$ac_aux_dir/ltmain.sh"
5062
5063 # Backslashify metacharacters that are still active within
5064 # double-quoted strings.
5065 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5066
5067 # Same as above, but do not quote variable references.
5068 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5069
5070 # Sed substitution to delay expansion of an escaped shell variable in a
5071 # double_quote_subst'ed string.
5072 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5073
5074 # Sed substitution to delay expansion of an escaped single quote.
5075 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5076
5077 # Sed substitution to avoid accidental globbing in evaled expressions
5078 no_glob_subst='s/\*/\\\*/g'
5079
5080 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5081 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5082 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5083
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5085 $as_echo_n "checking how to print strings... " >&6; }
5086 # Test print first, because it will be a builtin if present.
5087 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5088    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5089   ECHO='print -r --'
5090 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5091   ECHO='printf %s\n'
5092 else
5093   # Use this function as a fallback that always works.
5094   func_fallback_echo ()
5095   {
5096     eval 'cat <<_LTECHO_EOF
5097 $1
5098 _LTECHO_EOF'
5099   }
5100   ECHO='func_fallback_echo'
5101 fi
5102
5103 # func_echo_all arg...
5104 # Invoke $ECHO with all args, space-separated.
5105 func_echo_all ()
5106 {
5107     $ECHO ""
5108 }
5109
5110 case "$ECHO" in
5111   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5112 $as_echo "printf" >&6; } ;;
5113   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5114 $as_echo "print -r" >&6; } ;;
5115   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5116 $as_echo "cat" >&6; } ;;
5117 esac
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5133 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5134 if ${ac_cv_path_SED+:} false; then :
5135   $as_echo_n "(cached) " >&6
5136 else
5137             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5138      for ac_i in 1 2 3 4 5 6 7; do
5139        ac_script="$ac_script$as_nl$ac_script"
5140      done
5141      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5142      { ac_script=; unset ac_script;}
5143      if test -z "$SED"; then
5144   ac_path_SED_found=false
5145   # Loop through the user's path and test for each of PROGNAME-LIST
5146   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5147 for as_dir in $PATH
5148 do
5149   IFS=$as_save_IFS
5150   test -z "$as_dir" && as_dir=.
5151     for ac_prog in sed gsed; do
5152     for ac_exec_ext in '' $ac_executable_extensions; do
5153       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5154       as_fn_executable_p "$ac_path_SED" || continue
5155 # Check for GNU ac_path_SED and select it if it is found.
5156   # Check for GNU $ac_path_SED
5157 case `"$ac_path_SED" --version 2>&1` in
5158 *GNU*)
5159   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5160 *)
5161   ac_count=0
5162   $as_echo_n 0123456789 >"conftest.in"
5163   while :
5164   do
5165     cat "conftest.in" "conftest.in" >"conftest.tmp"
5166     mv "conftest.tmp" "conftest.in"
5167     cp "conftest.in" "conftest.nl"
5168     $as_echo '' >> "conftest.nl"
5169     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5170     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5171     as_fn_arith $ac_count + 1 && ac_count=$as_val
5172     if test $ac_count -gt ${ac_path_SED_max-0}; then
5173       # Best one so far, save it but keep looking for a better one
5174       ac_cv_path_SED="$ac_path_SED"
5175       ac_path_SED_max=$ac_count
5176     fi
5177     # 10*(2^10) chars as input seems more than enough
5178     test $ac_count -gt 10 && break
5179   done
5180   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5181 esac
5182
5183       $ac_path_SED_found && break 3
5184     done
5185   done
5186   done
5187 IFS=$as_save_IFS
5188   if test -z "$ac_cv_path_SED"; then
5189     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5190   fi
5191 else
5192   ac_cv_path_SED=$SED
5193 fi
5194
5195 fi
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5197 $as_echo "$ac_cv_path_SED" >&6; }
5198  SED="$ac_cv_path_SED"
5199   rm -f conftest.sed
5200
5201 test -z "$SED" && SED=sed
5202 Xsed="$SED -e 1s/^X//"
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5215 $as_echo_n "checking for fgrep... " >&6; }
5216 if ${ac_cv_path_FGREP+:} false; then :
5217   $as_echo_n "(cached) " >&6
5218 else
5219   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5220    then ac_cv_path_FGREP="$GREP -F"
5221    else
5222      if test -z "$FGREP"; then
5223   ac_path_FGREP_found=false
5224   # Loop through the user's path and test for each of PROGNAME-LIST
5225   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5226 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5227 do
5228   IFS=$as_save_IFS
5229   test -z "$as_dir" && as_dir=.
5230     for ac_prog in fgrep; do
5231     for ac_exec_ext in '' $ac_executable_extensions; do
5232       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5233       as_fn_executable_p "$ac_path_FGREP" || continue
5234 # Check for GNU ac_path_FGREP and select it if it is found.
5235   # Check for GNU $ac_path_FGREP
5236 case `"$ac_path_FGREP" --version 2>&1` in
5237 *GNU*)
5238   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5239 *)
5240   ac_count=0
5241   $as_echo_n 0123456789 >"conftest.in"
5242   while :
5243   do
5244     cat "conftest.in" "conftest.in" >"conftest.tmp"
5245     mv "conftest.tmp" "conftest.in"
5246     cp "conftest.in" "conftest.nl"
5247     $as_echo 'FGREP' >> "conftest.nl"
5248     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5249     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5250     as_fn_arith $ac_count + 1 && ac_count=$as_val
5251     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5252       # Best one so far, save it but keep looking for a better one
5253       ac_cv_path_FGREP="$ac_path_FGREP"
5254       ac_path_FGREP_max=$ac_count
5255     fi
5256     # 10*(2^10) chars as input seems more than enough
5257     test $ac_count -gt 10 && break
5258   done
5259   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5260 esac
5261
5262       $ac_path_FGREP_found && break 3
5263     done
5264   done
5265   done
5266 IFS=$as_save_IFS
5267   if test -z "$ac_cv_path_FGREP"; then
5268     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5269   fi
5270 else
5271   ac_cv_path_FGREP=$FGREP
5272 fi
5273
5274    fi
5275 fi
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5277 $as_echo "$ac_cv_path_FGREP" >&6; }
5278  FGREP="$ac_cv_path_FGREP"
5279
5280
5281 test -z "$GREP" && GREP=grep
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301 # Check whether --with-gnu-ld was given.
5302 if test "${with_gnu_ld+set}" = set; then :
5303   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5304 else
5305   with_gnu_ld=no
5306 fi
5307
5308 ac_prog=ld
5309 if test "$GCC" = yes; then
5310   # Check if gcc -print-prog-name=ld gives a path.
5311   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5312 $as_echo_n "checking for ld used by $CC... " >&6; }
5313   case $host in
5314   *-*-mingw*)
5315     # gcc leaves a trailing carriage return which upsets mingw
5316     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5317   *)
5318     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5319   esac
5320   case $ac_prog in
5321     # Accept absolute paths.
5322     [\\/]* | ?:[\\/]*)
5323       re_direlt='/[^/][^/]*/\.\./'
5324       # Canonicalize the pathname of ld
5325       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5326       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5327         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5328       done
5329       test -z "$LD" && LD="$ac_prog"
5330       ;;
5331   "")
5332     # If it fails, then pretend we aren't using GCC.
5333     ac_prog=ld
5334     ;;
5335   *)
5336     # If it is relative, then search for the first ld in PATH.
5337     with_gnu_ld=unknown
5338     ;;
5339   esac
5340 elif test "$with_gnu_ld" = yes; then
5341   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5342 $as_echo_n "checking for GNU ld... " >&6; }
5343 else
5344   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5345 $as_echo_n "checking for non-GNU ld... " >&6; }
5346 fi
5347 if ${lt_cv_path_LD+:} false; then :
5348   $as_echo_n "(cached) " >&6
5349 else
5350   if test -z "$LD"; then
5351   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5352   for ac_dir in $PATH; do
5353     IFS="$lt_save_ifs"
5354     test -z "$ac_dir" && ac_dir=.
5355     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5356       lt_cv_path_LD="$ac_dir/$ac_prog"
5357       # Check to see if the program is GNU ld.  I'd rather use --version,
5358       # but apparently some variants of GNU ld only accept -v.
5359       # Break only if it was the GNU/non-GNU ld that we prefer.
5360       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5361       *GNU* | *'with BFD'*)
5362         test "$with_gnu_ld" != no && break
5363         ;;
5364       *)
5365         test "$with_gnu_ld" != yes && break
5366         ;;
5367       esac
5368     fi
5369   done
5370   IFS="$lt_save_ifs"
5371 else
5372   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5373 fi
5374 fi
5375
5376 LD="$lt_cv_path_LD"
5377 if test -n "$LD"; then
5378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5379 $as_echo "$LD" >&6; }
5380 else
5381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5382 $as_echo "no" >&6; }
5383 fi
5384 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5386 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5387 if ${lt_cv_prog_gnu_ld+:} false; then :
5388   $as_echo_n "(cached) " >&6
5389 else
5390   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5391 case `$LD -v 2>&1 </dev/null` in
5392 *GNU* | *'with BFD'*)
5393   lt_cv_prog_gnu_ld=yes
5394   ;;
5395 *)
5396   lt_cv_prog_gnu_ld=no
5397   ;;
5398 esac
5399 fi
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5401 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5402 with_gnu_ld=$lt_cv_prog_gnu_ld
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5413 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5414 if ${lt_cv_path_NM+:} false; then :
5415   $as_echo_n "(cached) " >&6
5416 else
5417   if test -n "$NM"; then
5418   # Let the user override the test.
5419   lt_cv_path_NM="$NM"
5420 else
5421   lt_nm_to_check="${ac_tool_prefix}nm"
5422   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5423     lt_nm_to_check="$lt_nm_to_check nm"
5424   fi
5425   for lt_tmp_nm in $lt_nm_to_check; do
5426     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5427     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5428       IFS="$lt_save_ifs"
5429       test -z "$ac_dir" && ac_dir=.
5430       tmp_nm="$ac_dir/$lt_tmp_nm"
5431       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5432         # Check to see if the nm accepts a BSD-compat flag.
5433         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5434         #   nm: unknown option "B" ignored
5435         # Tru64's nm complains that /dev/null is an invalid object file
5436         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5437         */dev/null* | *'Invalid file or object type'*)
5438           lt_cv_path_NM="$tmp_nm -B"
5439           break
5440           ;;
5441         *)
5442           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5443           */dev/null*)
5444             lt_cv_path_NM="$tmp_nm -p"
5445             break
5446             ;;
5447           *)
5448             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5449             continue # so that we can try to find one that supports BSD flags
5450             ;;
5451           esac
5452           ;;
5453         esac
5454       fi
5455     done
5456     IFS="$lt_save_ifs"
5457   done
5458   : ${lt_cv_path_NM=no}
5459 fi
5460 fi
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5462 $as_echo "$lt_cv_path_NM" >&6; }
5463 if test "$lt_cv_path_NM" != "no"; then
5464   NM="$lt_cv_path_NM"
5465 else
5466   # Didn't find any BSD compatible name lister, look for dumpbin.
5467   if test -n "$DUMPBIN"; then :
5468     # Let the user override the test.
5469   else
5470     if test -n "$ac_tool_prefix"; then
5471   for ac_prog in dumpbin "link -dump"
5472   do
5473     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5474 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5476 $as_echo_n "checking for $ac_word... " >&6; }
5477 if ${ac_cv_prog_DUMPBIN+:} false; then :
5478   $as_echo_n "(cached) " >&6
5479 else
5480   if test -n "$DUMPBIN"; then
5481   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5482 else
5483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5484 for as_dir in $PATH
5485 do
5486   IFS=$as_save_IFS
5487   test -z "$as_dir" && as_dir=.
5488     for ac_exec_ext in '' $ac_executable_extensions; do
5489   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5490     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5491     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5492     break 2
5493   fi
5494 done
5495   done
5496 IFS=$as_save_IFS
5497
5498 fi
5499 fi
5500 DUMPBIN=$ac_cv_prog_DUMPBIN
5501 if test -n "$DUMPBIN"; then
5502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5503 $as_echo "$DUMPBIN" >&6; }
5504 else
5505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5506 $as_echo "no" >&6; }
5507 fi
5508
5509
5510     test -n "$DUMPBIN" && break
5511   done
5512 fi
5513 if test -z "$DUMPBIN"; then
5514   ac_ct_DUMPBIN=$DUMPBIN
5515   for ac_prog in dumpbin "link -dump"
5516 do
5517   # Extract the first word of "$ac_prog", so it can be a program name with args.
5518 set dummy $ac_prog; ac_word=$2
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5520 $as_echo_n "checking for $ac_word... " >&6; }
5521 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5522   $as_echo_n "(cached) " >&6
5523 else
5524   if test -n "$ac_ct_DUMPBIN"; then
5525   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5526 else
5527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5528 for as_dir in $PATH
5529 do
5530   IFS=$as_save_IFS
5531   test -z "$as_dir" && as_dir=.
5532     for ac_exec_ext in '' $ac_executable_extensions; do
5533   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5534     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5535     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5536     break 2
5537   fi
5538 done
5539   done
5540 IFS=$as_save_IFS
5541
5542 fi
5543 fi
5544 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5545 if test -n "$ac_ct_DUMPBIN"; then
5546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5547 $as_echo "$ac_ct_DUMPBIN" >&6; }
5548 else
5549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5550 $as_echo "no" >&6; }
5551 fi
5552
5553
5554   test -n "$ac_ct_DUMPBIN" && break
5555 done
5556
5557   if test "x$ac_ct_DUMPBIN" = x; then
5558     DUMPBIN=":"
5559   else
5560     case $cross_compiling:$ac_tool_warned in
5561 yes:)
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5563 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5564 ac_tool_warned=yes ;;
5565 esac
5566     DUMPBIN=$ac_ct_DUMPBIN
5567   fi
5568 fi
5569
5570     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5571     *COFF*)
5572       DUMPBIN="$DUMPBIN -symbols"
5573       ;;
5574     *)
5575       DUMPBIN=:
5576       ;;
5577     esac
5578   fi
5579
5580   if test "$DUMPBIN" != ":"; then
5581     NM="$DUMPBIN"
5582   fi
5583 fi
5584 test -z "$NM" && NM=nm
5585
5586
5587
5588
5589
5590
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5592 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5593 if ${lt_cv_nm_interface+:} false; then :
5594   $as_echo_n "(cached) " >&6
5595 else
5596   lt_cv_nm_interface="BSD nm"
5597   echo "int some_variable = 0;" > conftest.$ac_ext
5598   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5599   (eval "$ac_compile" 2>conftest.err)
5600   cat conftest.err >&5
5601   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5602   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5603   cat conftest.err >&5
5604   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5605   cat conftest.out >&5
5606   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5607     lt_cv_nm_interface="MS dumpbin"
5608   fi
5609   rm -f conftest*
5610 fi
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5612 $as_echo "$lt_cv_nm_interface" >&6; }
5613
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5615 $as_echo_n "checking whether ln -s works... " >&6; }
5616 LN_S=$as_ln_s
5617 if test "$LN_S" = "ln -s"; then
5618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5619 $as_echo "yes" >&6; }
5620 else
5621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5622 $as_echo "no, using $LN_S" >&6; }
5623 fi
5624
5625 # find the maximum length of command line arguments
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5627 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5628 if ${lt_cv_sys_max_cmd_len+:} false; then :
5629   $as_echo_n "(cached) " >&6
5630 else
5631     i=0
5632   teststring="ABCD"
5633
5634   case $build_os in
5635   msdosdjgpp*)
5636     # On DJGPP, this test can blow up pretty badly due to problems in libc
5637     # (any single argument exceeding 2000 bytes causes a buffer overrun
5638     # during glob expansion).  Even if it were fixed, the result of this
5639     # check would be larger than it should be.
5640     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5641     ;;
5642
5643   gnu*)
5644     # Under GNU Hurd, this test is not required because there is
5645     # no limit to the length of command line arguments.
5646     # Libtool will interpret -1 as no limit whatsoever
5647     lt_cv_sys_max_cmd_len=-1;
5648     ;;
5649
5650   cygwin* | mingw* | cegcc*)
5651     # On Win9x/ME, this test blows up -- it succeeds, but takes
5652     # about 5 minutes as the teststring grows exponentially.
5653     # Worse, since 9x/ME are not pre-emptively multitasking,
5654     # you end up with a "frozen" computer, even though with patience
5655     # the test eventually succeeds (with a max line length of 256k).
5656     # Instead, let's just punt: use the minimum linelength reported by
5657     # all of the supported platforms: 8192 (on NT/2K/XP).
5658     lt_cv_sys_max_cmd_len=8192;
5659     ;;
5660
5661   mint*)
5662     # On MiNT this can take a long time and run out of memory.
5663     lt_cv_sys_max_cmd_len=8192;
5664     ;;
5665
5666   amigaos*)
5667     # On AmigaOS with pdksh, this test takes hours, literally.
5668     # So we just punt and use a minimum line length of 8192.
5669     lt_cv_sys_max_cmd_len=8192;
5670     ;;
5671
5672   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5673     # This has been around since 386BSD, at least.  Likely further.
5674     if test -x /sbin/sysctl; then
5675       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5676     elif test -x /usr/sbin/sysctl; then
5677       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5678     else
5679       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5680     fi
5681     # And add a safety zone
5682     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5683     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5684     ;;
5685
5686   interix*)
5687     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5688     lt_cv_sys_max_cmd_len=196608
5689     ;;
5690
5691   os2*)
5692     # The test takes a long time on OS/2.
5693     lt_cv_sys_max_cmd_len=8192
5694     ;;
5695
5696   osf*)
5697     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5698     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5699     # nice to cause kernel panics so lets avoid the loop below.
5700     # First set a reasonable default.
5701     lt_cv_sys_max_cmd_len=16384
5702     #
5703     if test -x /sbin/sysconfig; then
5704       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5705         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5706       esac
5707     fi
5708     ;;
5709   sco3.2v5*)
5710     lt_cv_sys_max_cmd_len=102400
5711     ;;
5712   sysv5* | sco5v6* | sysv4.2uw2*)
5713     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5714     if test -n "$kargmax"; then
5715       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5716     else
5717       lt_cv_sys_max_cmd_len=32768
5718     fi
5719     ;;
5720   *)
5721     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5722     if test -n "$lt_cv_sys_max_cmd_len"; then
5723       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5724       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5725     else
5726       # Make teststring a little bigger before we do anything with it.
5727       # a 1K string should be a reasonable start.
5728       for i in 1 2 3 4 5 6 7 8 ; do
5729         teststring=$teststring$teststring
5730       done
5731       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5732       # If test is not a shell built-in, we'll probably end up computing a
5733       # maximum length that is only half of the actual maximum length, but
5734       # we can't tell.
5735       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5736                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5737               test $i != 17 # 1/2 MB should be enough
5738       do
5739         i=`expr $i + 1`
5740         teststring=$teststring$teststring
5741       done
5742       # Only check the string length outside the loop.
5743       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5744       teststring=
5745       # Add a significant safety factor because C++ compilers can tack on
5746       # massive amounts of additional arguments before passing them to the
5747       # linker.  It appears as though 1/2 is a usable value.
5748       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5749     fi
5750     ;;
5751   esac
5752
5753 fi
5754
5755 if test -n $lt_cv_sys_max_cmd_len ; then
5756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5757 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5758 else
5759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5760 $as_echo "none" >&6; }
5761 fi
5762 max_cmd_len=$lt_cv_sys_max_cmd_len
5763
5764
5765
5766
5767
5768
5769 : ${CP="cp -f"}
5770 : ${MV="mv -f"}
5771 : ${RM="rm -f"}
5772
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5774 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5775 # Try some XSI features
5776 xsi_shell=no
5777 ( _lt_dummy="a/b/c"
5778   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5779       = c,a/b,b/c, \
5780     && eval 'test $(( 1 + 1 )) -eq 2 \
5781     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5782   && xsi_shell=yes
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5784 $as_echo "$xsi_shell" >&6; }
5785
5786
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5788 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5789 lt_shell_append=no
5790 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5791     >/dev/null 2>&1 \
5792   && lt_shell_append=yes
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5794 $as_echo "$lt_shell_append" >&6; }
5795
5796
5797 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5798   lt_unset=unset
5799 else
5800   lt_unset=false
5801 fi
5802
5803
5804
5805
5806
5807 # test EBCDIC or ASCII
5808 case `echo X|tr X '\101'` in
5809  A) # ASCII based system
5810     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5811   lt_SP2NL='tr \040 \012'
5812   lt_NL2SP='tr \015\012 \040\040'
5813   ;;
5814  *) # EBCDIC based system
5815   lt_SP2NL='tr \100 \n'
5816   lt_NL2SP='tr \r\n \100\100'
5817   ;;
5818 esac
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5829 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5830 if ${lt_cv_to_host_file_cmd+:} false; then :
5831   $as_echo_n "(cached) " >&6
5832 else
5833   case $host in
5834   *-*-mingw* )
5835     case $build in
5836       *-*-mingw* ) # actually msys
5837         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5838         ;;
5839       *-*-cygwin* )
5840         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5841         ;;
5842       * ) # otherwise, assume *nix
5843         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5844         ;;
5845     esac
5846     ;;
5847   *-*-cygwin* )
5848     case $build in
5849       *-*-mingw* ) # actually msys
5850         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5851         ;;
5852       *-*-cygwin* )
5853         lt_cv_to_host_file_cmd=func_convert_file_noop
5854         ;;
5855       * ) # otherwise, assume *nix
5856         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5857         ;;
5858     esac
5859     ;;
5860   * ) # unhandled hosts (and "normal" native builds)
5861     lt_cv_to_host_file_cmd=func_convert_file_noop
5862     ;;
5863 esac
5864
5865 fi
5866
5867 to_host_file_cmd=$lt_cv_to_host_file_cmd
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5869 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5870
5871
5872
5873
5874
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5876 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5877 if ${lt_cv_to_tool_file_cmd+:} false; then :
5878   $as_echo_n "(cached) " >&6
5879 else
5880   #assume ordinary cross tools, or native build.
5881 lt_cv_to_tool_file_cmd=func_convert_file_noop
5882 case $host in
5883   *-*-mingw* )
5884     case $build in
5885       *-*-mingw* ) # actually msys
5886         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5887         ;;
5888     esac
5889     ;;
5890 esac
5891
5892 fi
5893
5894 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5896 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5897
5898
5899
5900
5901
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5903 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5904 if ${lt_cv_ld_reload_flag+:} false; then :
5905   $as_echo_n "(cached) " >&6
5906 else
5907   lt_cv_ld_reload_flag='-r'
5908 fi
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5910 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5911 reload_flag=$lt_cv_ld_reload_flag
5912 case $reload_flag in
5913 "" | " "*) ;;
5914 *) reload_flag=" $reload_flag" ;;
5915 esac
5916 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5917 case $host_os in
5918   cygwin* | mingw* | pw32* | cegcc*)
5919     if test "$GCC" != yes; then
5920       reload_cmds=false
5921     fi
5922     ;;
5923   darwin*)
5924     if test "$GCC" = yes; then
5925       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5926     else
5927       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5928     fi
5929     ;;
5930 esac
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940 if test -n "$ac_tool_prefix"; then
5941   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5942 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5944 $as_echo_n "checking for $ac_word... " >&6; }
5945 if ${ac_cv_prog_OBJDUMP+:} false; then :
5946   $as_echo_n "(cached) " >&6
5947 else
5948   if test -n "$OBJDUMP"; then
5949   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5950 else
5951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5952 for as_dir in $PATH
5953 do
5954   IFS=$as_save_IFS
5955   test -z "$as_dir" && as_dir=.
5956     for ac_exec_ext in '' $ac_executable_extensions; do
5957   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5958     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5959     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5960     break 2
5961   fi
5962 done
5963   done
5964 IFS=$as_save_IFS
5965
5966 fi
5967 fi
5968 OBJDUMP=$ac_cv_prog_OBJDUMP
5969 if test -n "$OBJDUMP"; then
5970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5971 $as_echo "$OBJDUMP" >&6; }
5972 else
5973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5974 $as_echo "no" >&6; }
5975 fi
5976
5977
5978 fi
5979 if test -z "$ac_cv_prog_OBJDUMP"; then
5980   ac_ct_OBJDUMP=$OBJDUMP
5981   # Extract the first word of "objdump", so it can be a program name with args.
5982 set dummy objdump; ac_word=$2
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5984 $as_echo_n "checking for $ac_word... " >&6; }
5985 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5986   $as_echo_n "(cached) " >&6
5987 else
5988   if test -n "$ac_ct_OBJDUMP"; then
5989   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5990 else
5991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5992 for as_dir in $PATH
5993 do
5994   IFS=$as_save_IFS
5995   test -z "$as_dir" && as_dir=.
5996     for ac_exec_ext in '' $ac_executable_extensions; do
5997   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5998     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5999     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6000     break 2
6001   fi
6002 done
6003   done
6004 IFS=$as_save_IFS
6005
6006 fi
6007 fi
6008 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6009 if test -n "$ac_ct_OBJDUMP"; then
6010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6011 $as_echo "$ac_ct_OBJDUMP" >&6; }
6012 else
6013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6014 $as_echo "no" >&6; }
6015 fi
6016
6017   if test "x$ac_ct_OBJDUMP" = x; then
6018     OBJDUMP="false"
6019   else
6020     case $cross_compiling:$ac_tool_warned in
6021 yes:)
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6023 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6024 ac_tool_warned=yes ;;
6025 esac
6026     OBJDUMP=$ac_ct_OBJDUMP
6027   fi
6028 else
6029   OBJDUMP="$ac_cv_prog_OBJDUMP"
6030 fi
6031
6032 test -z "$OBJDUMP" && OBJDUMP=objdump
6033
6034
6035
6036
6037
6038
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6040 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6041 if ${lt_cv_deplibs_check_method+:} false; then :
6042   $as_echo_n "(cached) " >&6
6043 else
6044   lt_cv_file_magic_cmd='$MAGIC_CMD'
6045 lt_cv_file_magic_test_file=
6046 lt_cv_deplibs_check_method='unknown'
6047 # Need to set the preceding variable on all platforms that support
6048 # interlibrary dependencies.
6049 # 'none' -- dependencies not supported.
6050 # `unknown' -- same as none, but documents that we really don't know.
6051 # 'pass_all' -- all dependencies passed with no checks.
6052 # 'test_compile' -- check by making test program.
6053 # 'file_magic [[regex]]' -- check by looking for files in library path
6054 # which responds to the $file_magic_cmd with a given extended regex.
6055 # If you have `file' or equivalent on your system and you're not sure
6056 # whether `pass_all' will *always* work, you probably want this one.
6057
6058 case $host_os in
6059 aix[4-9]*)
6060   lt_cv_deplibs_check_method=pass_all
6061   ;;
6062
6063 beos*)
6064   lt_cv_deplibs_check_method=pass_all
6065   ;;
6066
6067 bsdi[45]*)
6068   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6069   lt_cv_file_magic_cmd='/usr/bin/file -L'
6070   lt_cv_file_magic_test_file=/shlib/libc.so
6071   ;;
6072
6073 cygwin*)
6074   # func_win32_libid is a shell function defined in ltmain.sh
6075   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6076   lt_cv_file_magic_cmd='func_win32_libid'
6077   ;;
6078
6079 mingw* | pw32*)
6080   # Base MSYS/MinGW do not provide the 'file' command needed by
6081   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6082   # unless we find 'file', for example because we are cross-compiling.
6083   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6084   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6085     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6086     lt_cv_file_magic_cmd='func_win32_libid'
6087   else
6088     # Keep this pattern in sync with the one in func_win32_libid.
6089     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6090     lt_cv_file_magic_cmd='$OBJDUMP -f'
6091   fi
6092   ;;
6093
6094 cegcc*)
6095   # use the weaker test based on 'objdump'. See mingw*.
6096   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6097   lt_cv_file_magic_cmd='$OBJDUMP -f'
6098   ;;
6099
6100 darwin* | rhapsody*)
6101   lt_cv_deplibs_check_method=pass_all
6102   ;;
6103
6104 freebsd* | dragonfly*)
6105   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6106     case $host_cpu in
6107     i*86 )
6108       # Not sure whether the presence of OpenBSD here was a mistake.
6109       # Let's accept both of them until this is cleared up.
6110       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6111       lt_cv_file_magic_cmd=/usr/bin/file
6112       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6113       ;;
6114     esac
6115   else
6116     lt_cv_deplibs_check_method=pass_all
6117   fi
6118   ;;
6119
6120 gnu*)
6121   lt_cv_deplibs_check_method=pass_all
6122   ;;
6123
6124 haiku*)
6125   lt_cv_deplibs_check_method=pass_all
6126   ;;
6127
6128 hpux10.20* | hpux11*)
6129   lt_cv_file_magic_cmd=/usr/bin/file
6130   case $host_cpu in
6131   ia64*)
6132     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6133     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6134     ;;
6135   hppa*64*)
6136     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]'
6137     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6138     ;;
6139   *)
6140     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6141     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6142     ;;
6143   esac
6144   ;;
6145
6146 interix[3-9]*)
6147   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6148   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6149   ;;
6150
6151 irix5* | irix6* | nonstopux*)
6152   case $LD in
6153   *-32|*"-32 ") libmagic=32-bit;;
6154   *-n32|*"-n32 ") libmagic=N32;;
6155   *-64|*"-64 ") libmagic=64-bit;;
6156   *) libmagic=never-match;;
6157   esac
6158   lt_cv_deplibs_check_method=pass_all
6159   ;;
6160
6161 # This must be glibc/ELF.
6162 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6163   lt_cv_deplibs_check_method=pass_all
6164   ;;
6165
6166 netbsd* | netbsdelf*-gnu)
6167   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6168     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6169   else
6170     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6171   fi
6172   ;;
6173
6174 newos6*)
6175   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6176   lt_cv_file_magic_cmd=/usr/bin/file
6177   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6178   ;;
6179
6180 *nto* | *qnx*)
6181   lt_cv_deplibs_check_method=pass_all
6182   ;;
6183
6184 openbsd*)
6185   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6186     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6187   else
6188     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6189   fi
6190   ;;
6191
6192 osf3* | osf4* | osf5*)
6193   lt_cv_deplibs_check_method=pass_all
6194   ;;
6195
6196 rdos*)
6197   lt_cv_deplibs_check_method=pass_all
6198   ;;
6199
6200 solaris*)
6201   lt_cv_deplibs_check_method=pass_all
6202   ;;
6203
6204 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6205   lt_cv_deplibs_check_method=pass_all
6206   ;;
6207
6208 sysv4 | sysv4.3*)
6209   case $host_vendor in
6210   motorola)
6211     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]'
6212     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6213     ;;
6214   ncr)
6215     lt_cv_deplibs_check_method=pass_all
6216     ;;
6217   sequent)
6218     lt_cv_file_magic_cmd='/bin/file'
6219     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6220     ;;
6221   sni)
6222     lt_cv_file_magic_cmd='/bin/file'
6223     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6224     lt_cv_file_magic_test_file=/lib/libc.so
6225     ;;
6226   siemens)
6227     lt_cv_deplibs_check_method=pass_all
6228     ;;
6229   pc)
6230     lt_cv_deplibs_check_method=pass_all
6231     ;;
6232   esac
6233   ;;
6234
6235 tpf*)
6236   lt_cv_deplibs_check_method=pass_all
6237   ;;
6238 esac
6239
6240 fi
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6242 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6243
6244 file_magic_glob=
6245 want_nocaseglob=no
6246 if test "$build" = "$host"; then
6247   case $host_os in
6248   mingw* | pw32*)
6249     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6250       want_nocaseglob=yes
6251     else
6252       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6253     fi
6254     ;;
6255   esac
6256 fi
6257
6258 file_magic_cmd=$lt_cv_file_magic_cmd
6259 deplibs_check_method=$lt_cv_deplibs_check_method
6260 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283 if test -n "$ac_tool_prefix"; then
6284   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6285 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6287 $as_echo_n "checking for $ac_word... " >&6; }
6288 if ${ac_cv_prog_DLLTOOL+:} false; then :
6289   $as_echo_n "(cached) " >&6
6290 else
6291   if test -n "$DLLTOOL"; then
6292   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6293 else
6294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6295 for as_dir in $PATH
6296 do
6297   IFS=$as_save_IFS
6298   test -z "$as_dir" && as_dir=.
6299     for ac_exec_ext in '' $ac_executable_extensions; do
6300   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6301     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6302     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6303     break 2
6304   fi
6305 done
6306   done
6307 IFS=$as_save_IFS
6308
6309 fi
6310 fi
6311 DLLTOOL=$ac_cv_prog_DLLTOOL
6312 if test -n "$DLLTOOL"; then
6313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6314 $as_echo "$DLLTOOL" >&6; }
6315 else
6316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6317 $as_echo "no" >&6; }
6318 fi
6319
6320
6321 fi
6322 if test -z "$ac_cv_prog_DLLTOOL"; then
6323   ac_ct_DLLTOOL=$DLLTOOL
6324   # Extract the first word of "dlltool", so it can be a program name with args.
6325 set dummy dlltool; ac_word=$2
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6327 $as_echo_n "checking for $ac_word... " >&6; }
6328 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6329   $as_echo_n "(cached) " >&6
6330 else
6331   if test -n "$ac_ct_DLLTOOL"; then
6332   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6333 else
6334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6335 for as_dir in $PATH
6336 do
6337   IFS=$as_save_IFS
6338   test -z "$as_dir" && as_dir=.
6339     for ac_exec_ext in '' $ac_executable_extensions; do
6340   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6341     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6342     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6343     break 2
6344   fi
6345 done
6346   done
6347 IFS=$as_save_IFS
6348
6349 fi
6350 fi
6351 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6352 if test -n "$ac_ct_DLLTOOL"; then
6353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6354 $as_echo "$ac_ct_DLLTOOL" >&6; }
6355 else
6356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6357 $as_echo "no" >&6; }
6358 fi
6359
6360   if test "x$ac_ct_DLLTOOL" = x; then
6361     DLLTOOL="false"
6362   else
6363     case $cross_compiling:$ac_tool_warned in
6364 yes:)
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6366 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6367 ac_tool_warned=yes ;;
6368 esac
6369     DLLTOOL=$ac_ct_DLLTOOL
6370   fi
6371 else
6372   DLLTOOL="$ac_cv_prog_DLLTOOL"
6373 fi
6374
6375 test -z "$DLLTOOL" && DLLTOOL=dlltool
6376
6377
6378
6379
6380
6381
6382
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6384 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6385 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6386   $as_echo_n "(cached) " >&6
6387 else
6388   lt_cv_sharedlib_from_linklib_cmd='unknown'
6389
6390 case $host_os in
6391 cygwin* | mingw* | pw32* | cegcc*)
6392   # two different shell functions defined in ltmain.sh
6393   # decide which to use based on capabilities of $DLLTOOL
6394   case `$DLLTOOL --help 2>&1` in
6395   *--identify-strict*)
6396     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6397     ;;
6398   *)
6399     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6400     ;;
6401   esac
6402   ;;
6403 *)
6404   # fallback: assume linklib IS sharedlib
6405   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6406   ;;
6407 esac
6408
6409 fi
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6411 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6412 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6413 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6414
6415
6416
6417
6418
6419
6420
6421 if test -n "$ac_tool_prefix"; then
6422   for ac_prog in ar
6423   do
6424     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6425 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6427 $as_echo_n "checking for $ac_word... " >&6; }
6428 if ${ac_cv_prog_AR+:} false; then :
6429   $as_echo_n "(cached) " >&6
6430 else
6431   if test -n "$AR"; then
6432   ac_cv_prog_AR="$AR" # Let the user override the test.
6433 else
6434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6435 for as_dir in $PATH
6436 do
6437   IFS=$as_save_IFS
6438   test -z "$as_dir" && as_dir=.
6439     for ac_exec_ext in '' $ac_executable_extensions; do
6440   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6441     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6442     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6443     break 2
6444   fi
6445 done
6446   done
6447 IFS=$as_save_IFS
6448
6449 fi
6450 fi
6451 AR=$ac_cv_prog_AR
6452 if test -n "$AR"; then
6453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6454 $as_echo "$AR" >&6; }
6455 else
6456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6457 $as_echo "no" >&6; }
6458 fi
6459
6460
6461     test -n "$AR" && break
6462   done
6463 fi
6464 if test -z "$AR"; then
6465   ac_ct_AR=$AR
6466   for ac_prog in ar
6467 do
6468   # Extract the first word of "$ac_prog", so it can be a program name with args.
6469 set dummy $ac_prog; ac_word=$2
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6471 $as_echo_n "checking for $ac_word... " >&6; }
6472 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6473   $as_echo_n "(cached) " >&6
6474 else
6475   if test -n "$ac_ct_AR"; then
6476   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6477 else
6478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6479 for as_dir in $PATH
6480 do
6481   IFS=$as_save_IFS
6482   test -z "$as_dir" && as_dir=.
6483     for ac_exec_ext in '' $ac_executable_extensions; do
6484   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6485     ac_cv_prog_ac_ct_AR="$ac_prog"
6486     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6487     break 2
6488   fi
6489 done
6490   done
6491 IFS=$as_save_IFS
6492
6493 fi
6494 fi
6495 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6496 if test -n "$ac_ct_AR"; then
6497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6498 $as_echo "$ac_ct_AR" >&6; }
6499 else
6500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6501 $as_echo "no" >&6; }
6502 fi
6503
6504
6505   test -n "$ac_ct_AR" && break
6506 done
6507
6508   if test "x$ac_ct_AR" = x; then
6509     AR="false"
6510   else
6511     case $cross_compiling:$ac_tool_warned in
6512 yes:)
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6514 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6515 ac_tool_warned=yes ;;
6516 esac
6517     AR=$ac_ct_AR
6518   fi
6519 fi
6520
6521 : ${AR=ar}
6522 : ${AR_FLAGS=cru}
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6535 $as_echo_n "checking for archiver @FILE support... " >&6; }
6536 if ${lt_cv_ar_at_file+:} false; then :
6537   $as_echo_n "(cached) " >&6
6538 else
6539   lt_cv_ar_at_file=no
6540    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6541 /* end confdefs.h.  */
6542
6543 int
6544 main ()
6545 {
6546
6547   ;
6548   return 0;
6549 }
6550 _ACEOF
6551 if ac_fn_c_try_compile "$LINENO"; then :
6552   echo conftest.$ac_objext > conftest.lst
6553       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6554       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6555   (eval $lt_ar_try) 2>&5
6556   ac_status=$?
6557   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6558   test $ac_status = 0; }
6559       if test "$ac_status" -eq 0; then
6560         # Ensure the archiver fails upon bogus file names.
6561         rm -f conftest.$ac_objext libconftest.a
6562         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6563   (eval $lt_ar_try) 2>&5
6564   ac_status=$?
6565   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6566   test $ac_status = 0; }
6567         if test "$ac_status" -ne 0; then
6568           lt_cv_ar_at_file=@
6569         fi
6570       fi
6571       rm -f conftest.* libconftest.a
6572
6573 fi
6574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6575
6576 fi
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6578 $as_echo "$lt_cv_ar_at_file" >&6; }
6579
6580 if test "x$lt_cv_ar_at_file" = xno; then
6581   archiver_list_spec=
6582 else
6583   archiver_list_spec=$lt_cv_ar_at_file
6584 fi
6585
6586
6587
6588
6589
6590
6591
6592 if test -n "$ac_tool_prefix"; then
6593   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6594 set dummy ${ac_tool_prefix}strip; ac_word=$2
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6596 $as_echo_n "checking for $ac_word... " >&6; }
6597 if ${ac_cv_prog_STRIP+:} false; then :
6598   $as_echo_n "(cached) " >&6
6599 else
6600   if test -n "$STRIP"; then
6601   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6602 else
6603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6604 for as_dir in $PATH
6605 do
6606   IFS=$as_save_IFS
6607   test -z "$as_dir" && as_dir=.
6608     for ac_exec_ext in '' $ac_executable_extensions; do
6609   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6610     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6611     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6612     break 2
6613   fi
6614 done
6615   done
6616 IFS=$as_save_IFS
6617
6618 fi
6619 fi
6620 STRIP=$ac_cv_prog_STRIP
6621 if test -n "$STRIP"; then
6622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6623 $as_echo "$STRIP" >&6; }
6624 else
6625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6626 $as_echo "no" >&6; }
6627 fi
6628
6629
6630 fi
6631 if test -z "$ac_cv_prog_STRIP"; then
6632   ac_ct_STRIP=$STRIP
6633   # Extract the first word of "strip", so it can be a program name with args.
6634 set dummy strip; ac_word=$2
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6636 $as_echo_n "checking for $ac_word... " >&6; }
6637 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6638   $as_echo_n "(cached) " >&6
6639 else
6640   if test -n "$ac_ct_STRIP"; then
6641   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6642 else
6643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6644 for as_dir in $PATH
6645 do
6646   IFS=$as_save_IFS
6647   test -z "$as_dir" && as_dir=.
6648     for ac_exec_ext in '' $ac_executable_extensions; do
6649   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6650     ac_cv_prog_ac_ct_STRIP="strip"
6651     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6652     break 2
6653   fi
6654 done
6655   done
6656 IFS=$as_save_IFS
6657
6658 fi
6659 fi
6660 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6661 if test -n "$ac_ct_STRIP"; then
6662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6663 $as_echo "$ac_ct_STRIP" >&6; }
6664 else
6665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6666 $as_echo "no" >&6; }
6667 fi
6668
6669   if test "x$ac_ct_STRIP" = x; then
6670     STRIP=":"
6671   else
6672     case $cross_compiling:$ac_tool_warned in
6673 yes:)
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6675 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6676 ac_tool_warned=yes ;;
6677 esac
6678     STRIP=$ac_ct_STRIP
6679   fi
6680 else
6681   STRIP="$ac_cv_prog_STRIP"
6682 fi
6683
6684 test -z "$STRIP" && STRIP=:
6685
6686
6687
6688
6689
6690
6691 if test -n "$ac_tool_prefix"; then
6692   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6693 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6695 $as_echo_n "checking for $ac_word... " >&6; }
6696 if ${ac_cv_prog_RANLIB+:} false; then :
6697   $as_echo_n "(cached) " >&6
6698 else
6699   if test -n "$RANLIB"; then
6700   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6701 else
6702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6703 for as_dir in $PATH
6704 do
6705   IFS=$as_save_IFS
6706   test -z "$as_dir" && as_dir=.
6707     for ac_exec_ext in '' $ac_executable_extensions; do
6708   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6709     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6710     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6711     break 2
6712   fi
6713 done
6714   done
6715 IFS=$as_save_IFS
6716
6717 fi
6718 fi
6719 RANLIB=$ac_cv_prog_RANLIB
6720 if test -n "$RANLIB"; then
6721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6722 $as_echo "$RANLIB" >&6; }
6723 else
6724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6725 $as_echo "no" >&6; }
6726 fi
6727
6728
6729 fi
6730 if test -z "$ac_cv_prog_RANLIB"; then
6731   ac_ct_RANLIB=$RANLIB
6732   # Extract the first word of "ranlib", so it can be a program name with args.
6733 set dummy ranlib; ac_word=$2
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6735 $as_echo_n "checking for $ac_word... " >&6; }
6736 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6737   $as_echo_n "(cached) " >&6
6738 else
6739   if test -n "$ac_ct_RANLIB"; then
6740   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6741 else
6742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743 for as_dir in $PATH
6744 do
6745   IFS=$as_save_IFS
6746   test -z "$as_dir" && as_dir=.
6747     for ac_exec_ext in '' $ac_executable_extensions; do
6748   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6749     ac_cv_prog_ac_ct_RANLIB="ranlib"
6750     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6751     break 2
6752   fi
6753 done
6754   done
6755 IFS=$as_save_IFS
6756
6757 fi
6758 fi
6759 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6760 if test -n "$ac_ct_RANLIB"; then
6761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6762 $as_echo "$ac_ct_RANLIB" >&6; }
6763 else
6764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6765 $as_echo "no" >&6; }
6766 fi
6767
6768   if test "x$ac_ct_RANLIB" = x; then
6769     RANLIB=":"
6770   else
6771     case $cross_compiling:$ac_tool_warned in
6772 yes:)
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6774 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6775 ac_tool_warned=yes ;;
6776 esac
6777     RANLIB=$ac_ct_RANLIB
6778   fi
6779 else
6780   RANLIB="$ac_cv_prog_RANLIB"
6781 fi
6782
6783 test -z "$RANLIB" && RANLIB=:
6784
6785
6786
6787
6788
6789
6790 # Determine commands to create old-style static archives.
6791 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6792 old_postinstall_cmds='chmod 644 $oldlib'
6793 old_postuninstall_cmds=
6794
6795 if test -n "$RANLIB"; then
6796   case $host_os in
6797   openbsd*)
6798     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6799     ;;
6800   *)
6801     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6802     ;;
6803   esac
6804   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6805 fi
6806
6807 case $host_os in
6808   darwin*)
6809     lock_old_archive_extraction=yes ;;
6810   *)
6811     lock_old_archive_extraction=no ;;
6812 esac
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852 # If no C compiler was specified, use CC.
6853 LTCC=${LTCC-"$CC"}
6854
6855 # If no C compiler flags were specified, use CFLAGS.
6856 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6857
6858 # Allow CC to be a program name with arguments.
6859 compiler=$CC
6860
6861
6862 # Check for command to grab the raw symbol name followed by C symbol from nm.
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6864 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6865 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6866   $as_echo_n "(cached) " >&6
6867 else
6868
6869 # These are sane defaults that work on at least a few old systems.
6870 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6871
6872 # Character class describing NM global symbol codes.
6873 symcode='[BCDEGRST]'
6874
6875 # Regexp to match symbols that can be accessed directly from C.
6876 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6877
6878 # Define system-specific variables.
6879 case $host_os in
6880 aix*)
6881   symcode='[BCDT]'
6882   ;;
6883 cygwin* | mingw* | pw32* | cegcc*)
6884   symcode='[ABCDGISTW]'
6885   ;;
6886 hpux*)
6887   if test "$host_cpu" = ia64; then
6888     symcode='[ABCDEGRST]'
6889   fi
6890   ;;
6891 irix* | nonstopux*)
6892   symcode='[BCDEGRST]'
6893   ;;
6894 osf*)
6895   symcode='[BCDEGQRST]'
6896   ;;
6897 solaris*)
6898   symcode='[BDRT]'
6899   ;;
6900 sco3.2v5*)
6901   symcode='[DT]'
6902   ;;
6903 sysv4.2uw2*)
6904   symcode='[DT]'
6905   ;;
6906 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6907   symcode='[ABDT]'
6908   ;;
6909 sysv4)
6910   symcode='[DFNSTU]'
6911   ;;
6912 esac
6913
6914 # If we're using GNU nm, then use its standard symbol codes.
6915 case `$NM -V 2>&1` in
6916 *GNU* | *'with BFD'*)
6917   symcode='[ABCDGIRSTW]' ;;
6918 esac
6919
6920 # Transform an extracted symbol line into a proper C declaration.
6921 # Some systems (esp. on ia64) link data and code symbols differently,
6922 # so use this general approach.
6923 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6924
6925 # Transform an extracted symbol line into symbol name and symbol address
6926 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6927 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'"
6928
6929 # Handle CRLF in mingw tool chain
6930 opt_cr=
6931 case $build_os in
6932 mingw*)
6933   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6934   ;;
6935 esac
6936
6937 # Try without a prefix underscore, then with it.
6938 for ac_symprfx in "" "_"; do
6939
6940   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6941   symxfrm="\\1 $ac_symprfx\\2 \\2"
6942
6943   # Write the raw and C identifiers.
6944   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6945     # Fake it for dumpbin and say T for any non-static function
6946     # and D for any global variable.
6947     # Also find C++ and __fastcall symbols from MSVC++,
6948     # which start with @ or ?.
6949     lt_cv_sys_global_symbol_pipe="$AWK '"\
6950 "     {last_section=section; section=\$ 3};"\
6951 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6952 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6953 "     \$ 0!~/External *\|/{next};"\
6954 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6955 "     {if(hide[section]) next};"\
6956 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6957 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6958 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6959 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6960 "     ' prfx=^$ac_symprfx"
6961   else
6962     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6963   fi
6964   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6965
6966   # Check to see that the pipe works correctly.
6967   pipe_works=no
6968
6969   rm -f conftest*
6970   cat > conftest.$ac_ext <<_LT_EOF
6971 #ifdef __cplusplus
6972 extern "C" {
6973 #endif
6974 char nm_test_var;
6975 void nm_test_func(void);
6976 void nm_test_func(void){}
6977 #ifdef __cplusplus
6978 }
6979 #endif
6980 int main(){nm_test_var='a';nm_test_func();return(0);}
6981 _LT_EOF
6982
6983   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6984   (eval $ac_compile) 2>&5
6985   ac_status=$?
6986   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6987   test $ac_status = 0; }; then
6988     # Now try to grab the symbols.
6989     nlist=conftest.nm
6990     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6991   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6992   ac_status=$?
6993   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6994   test $ac_status = 0; } && test -s "$nlist"; then
6995       # Try sorting and uniquifying the output.
6996       if sort "$nlist" | uniq > "$nlist"T; then
6997         mv -f "$nlist"T "$nlist"
6998       else
6999         rm -f "$nlist"T
7000       fi
7001
7002       # Make sure that we snagged all the symbols we need.
7003       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7004         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7005           cat <<_LT_EOF > conftest.$ac_ext
7006 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7007 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7008 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7009    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7010 # define LT_DLSYM_CONST
7011 #elif defined(__osf__)
7012 /* This system does not cope well with relocations in const data.  */
7013 # define LT_DLSYM_CONST
7014 #else
7015 # define LT_DLSYM_CONST const
7016 #endif
7017
7018 #ifdef __cplusplus
7019 extern "C" {
7020 #endif
7021
7022 _LT_EOF
7023           # Now generate the symbol file.
7024           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7025
7026           cat <<_LT_EOF >> conftest.$ac_ext
7027
7028 /* The mapping between symbol names and symbols.  */
7029 LT_DLSYM_CONST struct {
7030   const char *name;
7031   void       *address;
7032 }
7033 lt__PROGRAM__LTX_preloaded_symbols[] =
7034 {
7035   { "@PROGRAM@", (void *) 0 },
7036 _LT_EOF
7037           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7038           cat <<\_LT_EOF >> conftest.$ac_ext
7039   {0, (void *) 0}
7040 };
7041
7042 /* This works around a problem in FreeBSD linker */
7043 #ifdef FREEBSD_WORKAROUND
7044 static const void *lt_preloaded_setup() {
7045   return lt__PROGRAM__LTX_preloaded_symbols;
7046 }
7047 #endif
7048
7049 #ifdef __cplusplus
7050 }
7051 #endif
7052 _LT_EOF
7053           # Now try linking the two files.
7054           mv conftest.$ac_objext conftstm.$ac_objext
7055           lt_globsym_save_LIBS=$LIBS
7056           lt_globsym_save_CFLAGS=$CFLAGS
7057           LIBS="conftstm.$ac_objext"
7058           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7059           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7060   (eval $ac_link) 2>&5
7061   ac_status=$?
7062   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7063   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7064             pipe_works=yes
7065           fi
7066           LIBS=$lt_globsym_save_LIBS
7067           CFLAGS=$lt_globsym_save_CFLAGS
7068         else
7069           echo "cannot find nm_test_func in $nlist" >&5
7070         fi
7071       else
7072         echo "cannot find nm_test_var in $nlist" >&5
7073       fi
7074     else
7075       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7076     fi
7077   else
7078     echo "$progname: failed program was:" >&5
7079     cat conftest.$ac_ext >&5
7080   fi
7081   rm -rf conftest* conftst*
7082
7083   # Do not use the global_symbol_pipe unless it works.
7084   if test "$pipe_works" = yes; then
7085     break
7086   else
7087     lt_cv_sys_global_symbol_pipe=
7088   fi
7089 done
7090
7091 fi
7092
7093 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7094   lt_cv_sys_global_symbol_to_cdecl=
7095 fi
7096 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7098 $as_echo "failed" >&6; }
7099 else
7100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7101 $as_echo "ok" >&6; }
7102 fi
7103
7104 # Response file support.
7105 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7106   nm_file_list_spec='@'
7107 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7108   nm_file_list_spec='@'
7109 fi
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7138 $as_echo_n "checking for sysroot... " >&6; }
7139
7140 # Check whether --with-sysroot was given.
7141 if test "${with_sysroot+set}" = set; then :
7142   withval=$with_sysroot;
7143 else
7144   with_sysroot=no
7145 fi
7146
7147
7148 lt_sysroot=
7149 case ${with_sysroot} in #(
7150  yes)
7151    if test "$GCC" = yes; then
7152      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7153    fi
7154    ;; #(
7155  /*)
7156    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7157    ;; #(
7158  no|'')
7159    ;; #(
7160  *)
7161    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7162 $as_echo "${with_sysroot}" >&6; }
7163    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7164    ;;
7165 esac
7166
7167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7168 $as_echo "${lt_sysroot:-no}" >&6; }
7169
7170
7171
7172
7173
7174 # Check whether --enable-libtool-lock was given.
7175 if test "${enable_libtool_lock+set}" = set; then :
7176   enableval=$enable_libtool_lock;
7177 fi
7178
7179 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7180
7181 # Some flags need to be propagated to the compiler or linker for good
7182 # libtool support.
7183 case $host in
7184 ia64-*-hpux*)
7185   # Find out which ABI we are using.
7186   echo 'int i;' > conftest.$ac_ext
7187   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7188   (eval $ac_compile) 2>&5
7189   ac_status=$?
7190   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7191   test $ac_status = 0; }; then
7192     case `/usr/bin/file conftest.$ac_objext` in
7193       *ELF-32*)
7194         HPUX_IA64_MODE="32"
7195         ;;
7196       *ELF-64*)
7197         HPUX_IA64_MODE="64"
7198         ;;
7199     esac
7200   fi
7201   rm -rf conftest*
7202   ;;
7203 *-*-irix6*)
7204   # Find out which ABI we are using.
7205   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7206   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7207   (eval $ac_compile) 2>&5
7208   ac_status=$?
7209   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7210   test $ac_status = 0; }; then
7211     if test "$lt_cv_prog_gnu_ld" = yes; then
7212       case `/usr/bin/file conftest.$ac_objext` in
7213         *32-bit*)
7214           LD="${LD-ld} -melf32bsmip"
7215           ;;
7216         *N32*)
7217           LD="${LD-ld} -melf32bmipn32"
7218           ;;
7219         *64-bit*)
7220           LD="${LD-ld} -melf64bmip"
7221         ;;
7222       esac
7223     else
7224       case `/usr/bin/file conftest.$ac_objext` in
7225         *32-bit*)
7226           LD="${LD-ld} -32"
7227           ;;
7228         *N32*)
7229           LD="${LD-ld} -n32"
7230           ;;
7231         *64-bit*)
7232           LD="${LD-ld} -64"
7233           ;;
7234       esac
7235     fi
7236   fi
7237   rm -rf conftest*
7238   ;;
7239
7240 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7241 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7242   # Find out which ABI we are using.
7243   echo 'int i;' > conftest.$ac_ext
7244   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7245   (eval $ac_compile) 2>&5
7246   ac_status=$?
7247   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7248   test $ac_status = 0; }; then
7249     case `/usr/bin/file conftest.o` in
7250       *32-bit*)
7251         case $host in
7252           x86_64-*kfreebsd*-gnu)
7253             LD="${LD-ld} -m elf_i386_fbsd"
7254             ;;
7255           x86_64-*linux*)
7256             LD="${LD-ld} -m elf_i386"
7257             ;;
7258          powerpc64le-*)
7259            LD="${LD-ld} -m elf32lppclinux"
7260            ;;
7261          powerpc64-*)
7262             LD="${LD-ld} -m elf32ppclinux"
7263             ;;
7264           s390x-*linux*)
7265             LD="${LD-ld} -m elf_s390"
7266             ;;
7267           sparc64-*linux*)
7268             LD="${LD-ld} -m elf32_sparc"
7269             ;;
7270         esac
7271         ;;
7272       *64-bit*)
7273         case $host in
7274           x86_64-*kfreebsd*-gnu)
7275             LD="${LD-ld} -m elf_x86_64_fbsd"
7276             ;;
7277           x86_64-*linux*)
7278             LD="${LD-ld} -m elf_x86_64"
7279             ;;
7280          powerpcle-*)
7281            LD="${LD-ld} -m elf64lppc"
7282            ;;
7283          powerpc-*)
7284             LD="${LD-ld} -m elf64ppc"
7285             ;;
7286           s390*-*linux*|s390*-*tpf*)
7287             LD="${LD-ld} -m elf64_s390"
7288             ;;
7289           sparc*-*linux*)
7290             LD="${LD-ld} -m elf64_sparc"
7291             ;;
7292         esac
7293         ;;
7294     esac
7295   fi
7296   rm -rf conftest*
7297   ;;
7298
7299 *-*-sco3.2v5*)
7300   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7301   SAVE_CFLAGS="$CFLAGS"
7302   CFLAGS="$CFLAGS -belf"
7303   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7304 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7305 if ${lt_cv_cc_needs_belf+:} false; then :
7306   $as_echo_n "(cached) " >&6
7307 else
7308   ac_ext=c
7309 ac_cpp='$CPP $CPPFLAGS'
7310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7313
7314      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7315 /* end confdefs.h.  */
7316
7317 int
7318 main ()
7319 {
7320
7321   ;
7322   return 0;
7323 }
7324 _ACEOF
7325 if ac_fn_c_try_link "$LINENO"; then :
7326   lt_cv_cc_needs_belf=yes
7327 else
7328   lt_cv_cc_needs_belf=no
7329 fi
7330 rm -f core conftest.err conftest.$ac_objext \
7331     conftest$ac_exeext conftest.$ac_ext
7332      ac_ext=c
7333 ac_cpp='$CPP $CPPFLAGS'
7334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7337
7338 fi
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7340 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7341   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7342     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7343     CFLAGS="$SAVE_CFLAGS"
7344   fi
7345   ;;
7346 *-*solaris*)
7347   # Find out which ABI we are using.
7348   echo 'int i;' > conftest.$ac_ext
7349   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7350   (eval $ac_compile) 2>&5
7351   ac_status=$?
7352   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7353   test $ac_status = 0; }; then
7354     case `/usr/bin/file conftest.o` in
7355     *64-bit*)
7356       case $lt_cv_prog_gnu_ld in
7357       yes*)
7358         case $host in
7359         i?86-*-solaris*)
7360           LD="${LD-ld} -m elf_x86_64"
7361           ;;
7362         sparc*-*-solaris*)
7363           LD="${LD-ld} -m elf64_sparc"
7364           ;;
7365         esac
7366         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7367         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7368           LD="${LD-ld}_sol2"
7369         fi
7370         ;;
7371       *)
7372         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7373           LD="${LD-ld} -64"
7374         fi
7375         ;;
7376       esac
7377       ;;
7378     esac
7379   fi
7380   rm -rf conftest*
7381   ;;
7382 esac
7383
7384 need_locks="$enable_libtool_lock"
7385
7386 if test -n "$ac_tool_prefix"; then
7387   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7388 set dummy ${ac_tool_prefix}mt; ac_word=$2
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7390 $as_echo_n "checking for $ac_word... " >&6; }
7391 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7392   $as_echo_n "(cached) " >&6
7393 else
7394   if test -n "$MANIFEST_TOOL"; then
7395   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7396 else
7397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7398 for as_dir in $PATH
7399 do
7400   IFS=$as_save_IFS
7401   test -z "$as_dir" && as_dir=.
7402     for ac_exec_ext in '' $ac_executable_extensions; do
7403   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7404     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7405     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7406     break 2
7407   fi
7408 done
7409   done
7410 IFS=$as_save_IFS
7411
7412 fi
7413 fi
7414 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7415 if test -n "$MANIFEST_TOOL"; then
7416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7417 $as_echo "$MANIFEST_TOOL" >&6; }
7418 else
7419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7420 $as_echo "no" >&6; }
7421 fi
7422
7423
7424 fi
7425 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7426   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7427   # Extract the first word of "mt", so it can be a program name with args.
7428 set dummy mt; ac_word=$2
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7430 $as_echo_n "checking for $ac_word... " >&6; }
7431 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7432   $as_echo_n "(cached) " >&6
7433 else
7434   if test -n "$ac_ct_MANIFEST_TOOL"; then
7435   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7436 else
7437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7438 for as_dir in $PATH
7439 do
7440   IFS=$as_save_IFS
7441   test -z "$as_dir" && as_dir=.
7442     for ac_exec_ext in '' $ac_executable_extensions; do
7443   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7444     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7445     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7446     break 2
7447   fi
7448 done
7449   done
7450 IFS=$as_save_IFS
7451
7452 fi
7453 fi
7454 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7455 if test -n "$ac_ct_MANIFEST_TOOL"; then
7456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7457 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7458 else
7459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7460 $as_echo "no" >&6; }
7461 fi
7462
7463   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7464     MANIFEST_TOOL=":"
7465   else
7466     case $cross_compiling:$ac_tool_warned in
7467 yes:)
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7469 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7470 ac_tool_warned=yes ;;
7471 esac
7472     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7473   fi
7474 else
7475   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7476 fi
7477
7478 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7480 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7481 if ${lt_cv_path_mainfest_tool+:} false; then :
7482   $as_echo_n "(cached) " >&6
7483 else
7484   lt_cv_path_mainfest_tool=no
7485   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7486   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7487   cat conftest.err >&5
7488   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7489     lt_cv_path_mainfest_tool=yes
7490   fi
7491   rm -f conftest*
7492 fi
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7494 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7495 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7496   MANIFEST_TOOL=:
7497 fi
7498
7499
7500
7501
7502
7503
7504   case $host_os in
7505     rhapsody* | darwin*)
7506     if test -n "$ac_tool_prefix"; then
7507   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7508 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7510 $as_echo_n "checking for $ac_word... " >&6; }
7511 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7512   $as_echo_n "(cached) " >&6
7513 else
7514   if test -n "$DSYMUTIL"; then
7515   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7516 else
7517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7518 for as_dir in $PATH
7519 do
7520   IFS=$as_save_IFS
7521   test -z "$as_dir" && as_dir=.
7522     for ac_exec_ext in '' $ac_executable_extensions; do
7523   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7524     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7525     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7526     break 2
7527   fi
7528 done
7529   done
7530 IFS=$as_save_IFS
7531
7532 fi
7533 fi
7534 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7535 if test -n "$DSYMUTIL"; then
7536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7537 $as_echo "$DSYMUTIL" >&6; }
7538 else
7539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7540 $as_echo "no" >&6; }
7541 fi
7542
7543
7544 fi
7545 if test -z "$ac_cv_prog_DSYMUTIL"; then
7546   ac_ct_DSYMUTIL=$DSYMUTIL
7547   # Extract the first word of "dsymutil", so it can be a program name with args.
7548 set dummy dsymutil; ac_word=$2
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7550 $as_echo_n "checking for $ac_word... " >&6; }
7551 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7552   $as_echo_n "(cached) " >&6
7553 else
7554   if test -n "$ac_ct_DSYMUTIL"; then
7555   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7556 else
7557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7558 for as_dir in $PATH
7559 do
7560   IFS=$as_save_IFS
7561   test -z "$as_dir" && as_dir=.
7562     for ac_exec_ext in '' $ac_executable_extensions; do
7563   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7564     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7565     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7566     break 2
7567   fi
7568 done
7569   done
7570 IFS=$as_save_IFS
7571
7572 fi
7573 fi
7574 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7575 if test -n "$ac_ct_DSYMUTIL"; then
7576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7577 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7578 else
7579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7580 $as_echo "no" >&6; }
7581 fi
7582
7583   if test "x$ac_ct_DSYMUTIL" = x; then
7584     DSYMUTIL=":"
7585   else
7586     case $cross_compiling:$ac_tool_warned in
7587 yes:)
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7589 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7590 ac_tool_warned=yes ;;
7591 esac
7592     DSYMUTIL=$ac_ct_DSYMUTIL
7593   fi
7594 else
7595   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7596 fi
7597
7598     if test -n "$ac_tool_prefix"; then
7599   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7600 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7602 $as_echo_n "checking for $ac_word... " >&6; }
7603 if ${ac_cv_prog_NMEDIT+:} false; then :
7604   $as_echo_n "(cached) " >&6
7605 else
7606   if test -n "$NMEDIT"; then
7607   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7608 else
7609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7610 for as_dir in $PATH
7611 do
7612   IFS=$as_save_IFS
7613   test -z "$as_dir" && as_dir=.
7614     for ac_exec_ext in '' $ac_executable_extensions; do
7615   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7616     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7617     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7618     break 2
7619   fi
7620 done
7621   done
7622 IFS=$as_save_IFS
7623
7624 fi
7625 fi
7626 NMEDIT=$ac_cv_prog_NMEDIT
7627 if test -n "$NMEDIT"; then
7628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7629 $as_echo "$NMEDIT" >&6; }
7630 else
7631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7632 $as_echo "no" >&6; }
7633 fi
7634
7635
7636 fi
7637 if test -z "$ac_cv_prog_NMEDIT"; then
7638   ac_ct_NMEDIT=$NMEDIT
7639   # Extract the first word of "nmedit", so it can be a program name with args.
7640 set dummy nmedit; ac_word=$2
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7642 $as_echo_n "checking for $ac_word... " >&6; }
7643 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7644   $as_echo_n "(cached) " >&6
7645 else
7646   if test -n "$ac_ct_NMEDIT"; then
7647   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7648 else
7649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7650 for as_dir in $PATH
7651 do
7652   IFS=$as_save_IFS
7653   test -z "$as_dir" && as_dir=.
7654     for ac_exec_ext in '' $ac_executable_extensions; do
7655   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7656     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7657     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7658     break 2
7659   fi
7660 done
7661   done
7662 IFS=$as_save_IFS
7663
7664 fi
7665 fi
7666 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7667 if test -n "$ac_ct_NMEDIT"; then
7668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7669 $as_echo "$ac_ct_NMEDIT" >&6; }
7670 else
7671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7672 $as_echo "no" >&6; }
7673 fi
7674
7675   if test "x$ac_ct_NMEDIT" = x; then
7676     NMEDIT=":"
7677   else
7678     case $cross_compiling:$ac_tool_warned in
7679 yes:)
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7681 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7682 ac_tool_warned=yes ;;
7683 esac
7684     NMEDIT=$ac_ct_NMEDIT
7685   fi
7686 else
7687   NMEDIT="$ac_cv_prog_NMEDIT"
7688 fi
7689
7690     if test -n "$ac_tool_prefix"; then
7691   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7692 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7694 $as_echo_n "checking for $ac_word... " >&6; }
7695 if ${ac_cv_prog_LIPO+:} false; then :
7696   $as_echo_n "(cached) " >&6
7697 else
7698   if test -n "$LIPO"; then
7699   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7700 else
7701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7702 for as_dir in $PATH
7703 do
7704   IFS=$as_save_IFS
7705   test -z "$as_dir" && as_dir=.
7706     for ac_exec_ext in '' $ac_executable_extensions; do
7707   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7708     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7709     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7710     break 2
7711   fi
7712 done
7713   done
7714 IFS=$as_save_IFS
7715
7716 fi
7717 fi
7718 LIPO=$ac_cv_prog_LIPO
7719 if test -n "$LIPO"; then
7720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7721 $as_echo "$LIPO" >&6; }
7722 else
7723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7724 $as_echo "no" >&6; }
7725 fi
7726
7727
7728 fi
7729 if test -z "$ac_cv_prog_LIPO"; then
7730   ac_ct_LIPO=$LIPO
7731   # Extract the first word of "lipo", so it can be a program name with args.
7732 set dummy lipo; ac_word=$2
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7734 $as_echo_n "checking for $ac_word... " >&6; }
7735 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7736   $as_echo_n "(cached) " >&6
7737 else
7738   if test -n "$ac_ct_LIPO"; then
7739   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7740 else
7741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7742 for as_dir in $PATH
7743 do
7744   IFS=$as_save_IFS
7745   test -z "$as_dir" && as_dir=.
7746     for ac_exec_ext in '' $ac_executable_extensions; do
7747   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7748     ac_cv_prog_ac_ct_LIPO="lipo"
7749     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7750     break 2
7751   fi
7752 done
7753   done
7754 IFS=$as_save_IFS
7755
7756 fi
7757 fi
7758 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7759 if test -n "$ac_ct_LIPO"; then
7760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7761 $as_echo "$ac_ct_LIPO" >&6; }
7762 else
7763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7764 $as_echo "no" >&6; }
7765 fi
7766
7767   if test "x$ac_ct_LIPO" = x; then
7768     LIPO=":"
7769   else
7770     case $cross_compiling:$ac_tool_warned in
7771 yes:)
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7773 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7774 ac_tool_warned=yes ;;
7775 esac
7776     LIPO=$ac_ct_LIPO
7777   fi
7778 else
7779   LIPO="$ac_cv_prog_LIPO"
7780 fi
7781
7782     if test -n "$ac_tool_prefix"; then
7783   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7784 set dummy ${ac_tool_prefix}otool; ac_word=$2
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7786 $as_echo_n "checking for $ac_word... " >&6; }
7787 if ${ac_cv_prog_OTOOL+:} false; then :
7788   $as_echo_n "(cached) " >&6
7789 else
7790   if test -n "$OTOOL"; then
7791   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7792 else
7793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7794 for as_dir in $PATH
7795 do
7796   IFS=$as_save_IFS
7797   test -z "$as_dir" && as_dir=.
7798     for ac_exec_ext in '' $ac_executable_extensions; do
7799   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7800     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7801     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7802     break 2
7803   fi
7804 done
7805   done
7806 IFS=$as_save_IFS
7807
7808 fi
7809 fi
7810 OTOOL=$ac_cv_prog_OTOOL
7811 if test -n "$OTOOL"; then
7812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7813 $as_echo "$OTOOL" >&6; }
7814 else
7815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7816 $as_echo "no" >&6; }
7817 fi
7818
7819
7820 fi
7821 if test -z "$ac_cv_prog_OTOOL"; then
7822   ac_ct_OTOOL=$OTOOL
7823   # Extract the first word of "otool", so it can be a program name with args.
7824 set dummy otool; ac_word=$2
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7826 $as_echo_n "checking for $ac_word... " >&6; }
7827 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7828   $as_echo_n "(cached) " >&6
7829 else
7830   if test -n "$ac_ct_OTOOL"; then
7831   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7832 else
7833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7834 for as_dir in $PATH
7835 do
7836   IFS=$as_save_IFS
7837   test -z "$as_dir" && as_dir=.
7838     for ac_exec_ext in '' $ac_executable_extensions; do
7839   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7840     ac_cv_prog_ac_ct_OTOOL="otool"
7841     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7842     break 2
7843   fi
7844 done
7845   done
7846 IFS=$as_save_IFS
7847
7848 fi
7849 fi
7850 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7851 if test -n "$ac_ct_OTOOL"; then
7852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7853 $as_echo "$ac_ct_OTOOL" >&6; }
7854 else
7855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7856 $as_echo "no" >&6; }
7857 fi
7858
7859   if test "x$ac_ct_OTOOL" = x; then
7860     OTOOL=":"
7861   else
7862     case $cross_compiling:$ac_tool_warned in
7863 yes:)
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7865 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7866 ac_tool_warned=yes ;;
7867 esac
7868     OTOOL=$ac_ct_OTOOL
7869   fi
7870 else
7871   OTOOL="$ac_cv_prog_OTOOL"
7872 fi
7873
7874     if test -n "$ac_tool_prefix"; then
7875   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7876 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7878 $as_echo_n "checking for $ac_word... " >&6; }
7879 if ${ac_cv_prog_OTOOL64+:} false; then :
7880   $as_echo_n "(cached) " >&6
7881 else
7882   if test -n "$OTOOL64"; then
7883   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7884 else
7885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7886 for as_dir in $PATH
7887 do
7888   IFS=$as_save_IFS
7889   test -z "$as_dir" && as_dir=.
7890     for ac_exec_ext in '' $ac_executable_extensions; do
7891   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7892     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7893     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7894     break 2
7895   fi
7896 done
7897   done
7898 IFS=$as_save_IFS
7899
7900 fi
7901 fi
7902 OTOOL64=$ac_cv_prog_OTOOL64
7903 if test -n "$OTOOL64"; then
7904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7905 $as_echo "$OTOOL64" >&6; }
7906 else
7907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7908 $as_echo "no" >&6; }
7909 fi
7910
7911
7912 fi
7913 if test -z "$ac_cv_prog_OTOOL64"; then
7914   ac_ct_OTOOL64=$OTOOL64
7915   # Extract the first word of "otool64", so it can be a program name with args.
7916 set dummy otool64; ac_word=$2
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7918 $as_echo_n "checking for $ac_word... " >&6; }
7919 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7920   $as_echo_n "(cached) " >&6
7921 else
7922   if test -n "$ac_ct_OTOOL64"; then
7923   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7924 else
7925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7926 for as_dir in $PATH
7927 do
7928   IFS=$as_save_IFS
7929   test -z "$as_dir" && as_dir=.
7930     for ac_exec_ext in '' $ac_executable_extensions; do
7931   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7932     ac_cv_prog_ac_ct_OTOOL64="otool64"
7933     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7934     break 2
7935   fi
7936 done
7937   done
7938 IFS=$as_save_IFS
7939
7940 fi
7941 fi
7942 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7943 if test -n "$ac_ct_OTOOL64"; then
7944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7945 $as_echo "$ac_ct_OTOOL64" >&6; }
7946 else
7947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7948 $as_echo "no" >&6; }
7949 fi
7950
7951   if test "x$ac_ct_OTOOL64" = x; then
7952     OTOOL64=":"
7953   else
7954     case $cross_compiling:$ac_tool_warned in
7955 yes:)
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7957 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7958 ac_tool_warned=yes ;;
7959 esac
7960     OTOOL64=$ac_ct_OTOOL64
7961   fi
7962 else
7963   OTOOL64="$ac_cv_prog_OTOOL64"
7964 fi
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7993 $as_echo_n "checking for -single_module linker flag... " >&6; }
7994 if ${lt_cv_apple_cc_single_mod+:} false; then :
7995   $as_echo_n "(cached) " >&6
7996 else
7997   lt_cv_apple_cc_single_mod=no
7998       if test -z "${LT_MULTI_MODULE}"; then
7999         # By default we will add the -single_module flag. You can override
8000         # by either setting the environment variable LT_MULTI_MODULE
8001         # non-empty at configure time, or by adding -multi_module to the
8002         # link flags.
8003         rm -rf libconftest.dylib*
8004         echo "int foo(void){return 1;}" > conftest.c
8005         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8006 -dynamiclib -Wl,-single_module conftest.c" >&5
8007         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8008           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8009         _lt_result=$?
8010         # If there is a non-empty error log, and "single_module"
8011         # appears in it, assume the flag caused a linker warning
8012         if test -s conftest.err && $GREP single_module conftest.err; then
8013           cat conftest.err >&5
8014         # Otherwise, if the output was created with a 0 exit code from
8015         # the compiler, it worked.
8016         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8017           lt_cv_apple_cc_single_mod=yes
8018         else
8019           cat conftest.err >&5
8020         fi
8021         rm -rf libconftest.dylib*
8022         rm -f conftest.*
8023       fi
8024 fi
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8026 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8027
8028     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8029 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8030 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8031   $as_echo_n "(cached) " >&6
8032 else
8033   lt_cv_ld_exported_symbols_list=no
8034       save_LDFLAGS=$LDFLAGS
8035       echo "_main" > conftest.sym
8036       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8037       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8038 /* end confdefs.h.  */
8039
8040 int
8041 main ()
8042 {
8043
8044   ;
8045   return 0;
8046 }
8047 _ACEOF
8048 if ac_fn_c_try_link "$LINENO"; then :
8049   lt_cv_ld_exported_symbols_list=yes
8050 else
8051   lt_cv_ld_exported_symbols_list=no
8052 fi
8053 rm -f core conftest.err conftest.$ac_objext \
8054     conftest$ac_exeext conftest.$ac_ext
8055         LDFLAGS="$save_LDFLAGS"
8056
8057 fi
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8059 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8060
8061     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8062 $as_echo_n "checking for -force_load linker flag... " >&6; }
8063 if ${lt_cv_ld_force_load+:} false; then :
8064   $as_echo_n "(cached) " >&6
8065 else
8066   lt_cv_ld_force_load=no
8067       cat > conftest.c << _LT_EOF
8068 int forced_loaded() { return 2;}
8069 _LT_EOF
8070       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8071       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8072       echo "$AR cru libconftest.a conftest.o" >&5
8073       $AR cru libconftest.a conftest.o 2>&5
8074       echo "$RANLIB libconftest.a" >&5
8075       $RANLIB libconftest.a 2>&5
8076       cat > conftest.c << _LT_EOF
8077 int main() { return 0;}
8078 _LT_EOF
8079       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8080       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8081       _lt_result=$?
8082       if test -s conftest.err && $GREP force_load conftest.err; then
8083         cat conftest.err >&5
8084       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8085         lt_cv_ld_force_load=yes
8086       else
8087         cat conftest.err >&5
8088       fi
8089         rm -f conftest.err libconftest.a conftest conftest.c
8090         rm -rf conftest.dSYM
8091
8092 fi
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8094 $as_echo "$lt_cv_ld_force_load" >&6; }
8095     case $host_os in
8096     rhapsody* | darwin1.[012])
8097       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8098     darwin1.*)
8099       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8100     darwin*) # darwin 5.x on
8101       # if running on 10.5 or later, the deployment target defaults
8102       # to the OS version, if on x86, and 10.4, the deployment
8103       # target defaults to 10.4. Don't you love it?
8104       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8105         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8106           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8107         10.[012]*)
8108           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8109         10.*)
8110           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8111       esac
8112     ;;
8113   esac
8114     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8115       _lt_dar_single_mod='$single_module'
8116     fi
8117     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8118       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8119     else
8120       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8121     fi
8122     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8123       _lt_dsymutil='~$DSYMUTIL $lib || :'
8124     else
8125       _lt_dsymutil=
8126     fi
8127     ;;
8128   esac
8129
8130 for ac_header in dlfcn.h
8131 do :
8132   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8133 "
8134 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8135   cat >>confdefs.h <<_ACEOF
8136 #define HAVE_DLFCN_H 1
8137 _ACEOF
8138
8139 fi
8140
8141 done
8142
8143
8144
8145
8146
8147 # Set options
8148 enable_win32_dll=yes
8149
8150 case $host in
8151 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8152   if test -n "$ac_tool_prefix"; then
8153   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8154 set dummy ${ac_tool_prefix}as; ac_word=$2
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8156 $as_echo_n "checking for $ac_word... " >&6; }
8157 if ${ac_cv_prog_AS+:} false; then :
8158   $as_echo_n "(cached) " >&6
8159 else
8160   if test -n "$AS"; then
8161   ac_cv_prog_AS="$AS" # Let the user override the test.
8162 else
8163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8164 for as_dir in $PATH
8165 do
8166   IFS=$as_save_IFS
8167   test -z "$as_dir" && as_dir=.
8168     for ac_exec_ext in '' $ac_executable_extensions; do
8169   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8170     ac_cv_prog_AS="${ac_tool_prefix}as"
8171     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8172     break 2
8173   fi
8174 done
8175   done
8176 IFS=$as_save_IFS
8177
8178 fi
8179 fi
8180 AS=$ac_cv_prog_AS
8181 if test -n "$AS"; then
8182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8183 $as_echo "$AS" >&6; }
8184 else
8185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8186 $as_echo "no" >&6; }
8187 fi
8188
8189
8190 fi
8191 if test -z "$ac_cv_prog_AS"; then
8192   ac_ct_AS=$AS
8193   # Extract the first word of "as", so it can be a program name with args.
8194 set dummy as; ac_word=$2
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8196 $as_echo_n "checking for $ac_word... " >&6; }
8197 if ${ac_cv_prog_ac_ct_AS+:} false; then :
8198   $as_echo_n "(cached) " >&6
8199 else
8200   if test -n "$ac_ct_AS"; then
8201   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8202 else
8203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8204 for as_dir in $PATH
8205 do
8206   IFS=$as_save_IFS
8207   test -z "$as_dir" && as_dir=.
8208     for ac_exec_ext in '' $ac_executable_extensions; do
8209   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8210     ac_cv_prog_ac_ct_AS="as"
8211     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8212     break 2
8213   fi
8214 done
8215   done
8216 IFS=$as_save_IFS
8217
8218 fi
8219 fi
8220 ac_ct_AS=$ac_cv_prog_ac_ct_AS
8221 if test -n "$ac_ct_AS"; then
8222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8223 $as_echo "$ac_ct_AS" >&6; }
8224 else
8225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8226 $as_echo "no" >&6; }
8227 fi
8228
8229   if test "x$ac_ct_AS" = x; then
8230     AS="false"
8231   else
8232     case $cross_compiling:$ac_tool_warned in
8233 yes:)
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8235 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8236 ac_tool_warned=yes ;;
8237 esac
8238     AS=$ac_ct_AS
8239   fi
8240 else
8241   AS="$ac_cv_prog_AS"
8242 fi
8243
8244   if test -n "$ac_tool_prefix"; then
8245   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8246 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8248 $as_echo_n "checking for $ac_word... " >&6; }
8249 if ${ac_cv_prog_DLLTOOL+:} false; then :
8250   $as_echo_n "(cached) " >&6
8251 else
8252   if test -n "$DLLTOOL"; then
8253   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8254 else
8255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8256 for as_dir in $PATH
8257 do
8258   IFS=$as_save_IFS
8259   test -z "$as_dir" && as_dir=.
8260     for ac_exec_ext in '' $ac_executable_extensions; do
8261   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8262     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8263     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8264     break 2
8265   fi
8266 done
8267   done
8268 IFS=$as_save_IFS
8269
8270 fi
8271 fi
8272 DLLTOOL=$ac_cv_prog_DLLTOOL
8273 if test -n "$DLLTOOL"; then
8274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8275 $as_echo "$DLLTOOL" >&6; }
8276 else
8277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8278 $as_echo "no" >&6; }
8279 fi
8280
8281
8282 fi
8283 if test -z "$ac_cv_prog_DLLTOOL"; then
8284   ac_ct_DLLTOOL=$DLLTOOL
8285   # Extract the first word of "dlltool", so it can be a program name with args.
8286 set dummy dlltool; ac_word=$2
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8288 $as_echo_n "checking for $ac_word... " >&6; }
8289 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8290   $as_echo_n "(cached) " >&6
8291 else
8292   if test -n "$ac_ct_DLLTOOL"; then
8293   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8294 else
8295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8296 for as_dir in $PATH
8297 do
8298   IFS=$as_save_IFS
8299   test -z "$as_dir" && as_dir=.
8300     for ac_exec_ext in '' $ac_executable_extensions; do
8301   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8302     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8303     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8304     break 2
8305   fi
8306 done
8307   done
8308 IFS=$as_save_IFS
8309
8310 fi
8311 fi
8312 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8313 if test -n "$ac_ct_DLLTOOL"; then
8314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8315 $as_echo "$ac_ct_DLLTOOL" >&6; }
8316 else
8317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8318 $as_echo "no" >&6; }
8319 fi
8320
8321   if test "x$ac_ct_DLLTOOL" = x; then
8322     DLLTOOL="false"
8323   else
8324     case $cross_compiling:$ac_tool_warned in
8325 yes:)
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8328 ac_tool_warned=yes ;;
8329 esac
8330     DLLTOOL=$ac_ct_DLLTOOL
8331   fi
8332 else
8333   DLLTOOL="$ac_cv_prog_DLLTOOL"
8334 fi
8335
8336   if test -n "$ac_tool_prefix"; then
8337   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8338 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8340 $as_echo_n "checking for $ac_word... " >&6; }
8341 if ${ac_cv_prog_OBJDUMP+:} false; then :
8342   $as_echo_n "(cached) " >&6
8343 else
8344   if test -n "$OBJDUMP"; then
8345   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8346 else
8347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8348 for as_dir in $PATH
8349 do
8350   IFS=$as_save_IFS
8351   test -z "$as_dir" && as_dir=.
8352     for ac_exec_ext in '' $ac_executable_extensions; do
8353   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8354     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8355     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8356     break 2
8357   fi
8358 done
8359   done
8360 IFS=$as_save_IFS
8361
8362 fi
8363 fi
8364 OBJDUMP=$ac_cv_prog_OBJDUMP
8365 if test -n "$OBJDUMP"; then
8366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8367 $as_echo "$OBJDUMP" >&6; }
8368 else
8369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8370 $as_echo "no" >&6; }
8371 fi
8372
8373
8374 fi
8375 if test -z "$ac_cv_prog_OBJDUMP"; then
8376   ac_ct_OBJDUMP=$OBJDUMP
8377   # Extract the first word of "objdump", so it can be a program name with args.
8378 set dummy objdump; ac_word=$2
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8380 $as_echo_n "checking for $ac_word... " >&6; }
8381 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8382   $as_echo_n "(cached) " >&6
8383 else
8384   if test -n "$ac_ct_OBJDUMP"; then
8385   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8386 else
8387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8388 for as_dir in $PATH
8389 do
8390   IFS=$as_save_IFS
8391   test -z "$as_dir" && as_dir=.
8392     for ac_exec_ext in '' $ac_executable_extensions; do
8393   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8394     ac_cv_prog_ac_ct_OBJDUMP="objdump"
8395     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8396     break 2
8397   fi
8398 done
8399   done
8400 IFS=$as_save_IFS
8401
8402 fi
8403 fi
8404 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8405 if test -n "$ac_ct_OBJDUMP"; then
8406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8407 $as_echo "$ac_ct_OBJDUMP" >&6; }
8408 else
8409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8410 $as_echo "no" >&6; }
8411 fi
8412
8413   if test "x$ac_ct_OBJDUMP" = x; then
8414     OBJDUMP="false"
8415   else
8416     case $cross_compiling:$ac_tool_warned in
8417 yes:)
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8419 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8420 ac_tool_warned=yes ;;
8421 esac
8422     OBJDUMP=$ac_ct_OBJDUMP
8423   fi
8424 else
8425   OBJDUMP="$ac_cv_prog_OBJDUMP"
8426 fi
8427
8428   ;;
8429 esac
8430
8431 test -z "$AS" && AS=as
8432
8433
8434
8435
8436
8437 test -z "$DLLTOOL" && DLLTOOL=dlltool
8438
8439
8440
8441
8442
8443 test -z "$OBJDUMP" && OBJDUMP=objdump
8444
8445
8446
8447
8448 # Check whether --enable-static was given.
8449 if test "${enable_static+set}" = set; then :
8450   enableval=$enable_static; p=${PACKAGE-default}
8451     case $enableval in
8452     yes) enable_static=yes ;;
8453     no) enable_static=no ;;
8454     *)
8455      enable_static=no
8456       # Look at the argument we got.  We use all the common list separators.
8457       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8458       for pkg in $enableval; do
8459         IFS="$lt_save_ifs"
8460         if test "X$pkg" = "X$p"; then
8461           enable_static=yes
8462         fi
8463       done
8464       IFS="$lt_save_ifs"
8465       ;;
8466     esac
8467 else
8468   enable_static=no
8469 fi
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480         enable_dlopen=no
8481
8482
8483
8484             # Check whether --enable-shared was given.
8485 if test "${enable_shared+set}" = set; then :
8486   enableval=$enable_shared; p=${PACKAGE-default}
8487     case $enableval in
8488     yes) enable_shared=yes ;;
8489     no) enable_shared=no ;;
8490     *)
8491       enable_shared=no
8492       # Look at the argument we got.  We use all the common list separators.
8493       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8494       for pkg in $enableval; do
8495         IFS="$lt_save_ifs"
8496         if test "X$pkg" = "X$p"; then
8497           enable_shared=yes
8498         fi
8499       done
8500       IFS="$lt_save_ifs"
8501       ;;
8502     esac
8503 else
8504   enable_shared=yes
8505 fi
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517 # Check whether --with-pic was given.
8518 if test "${with_pic+set}" = set; then :
8519   withval=$with_pic; lt_p=${PACKAGE-default}
8520     case $withval in
8521     yes|no) pic_mode=$withval ;;
8522     *)
8523       pic_mode=default
8524       # Look at the argument we got.  We use all the common list separators.
8525       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8526       for lt_pkg in $withval; do
8527         IFS="$lt_save_ifs"
8528         if test "X$lt_pkg" = "X$lt_p"; then
8529           pic_mode=yes
8530         fi
8531       done
8532       IFS="$lt_save_ifs"
8533       ;;
8534     esac
8535 else
8536   pic_mode=default
8537 fi
8538
8539
8540 test -z "$pic_mode" && pic_mode=default
8541
8542
8543
8544
8545
8546
8547
8548   # Check whether --enable-fast-install was given.
8549 if test "${enable_fast_install+set}" = set; then :
8550   enableval=$enable_fast_install; p=${PACKAGE-default}
8551     case $enableval in
8552     yes) enable_fast_install=yes ;;
8553     no) enable_fast_install=no ;;
8554     *)
8555       enable_fast_install=no
8556       # Look at the argument we got.  We use all the common list separators.
8557       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8558       for pkg in $enableval; do
8559         IFS="$lt_save_ifs"
8560         if test "X$pkg" = "X$p"; then
8561           enable_fast_install=yes
8562         fi
8563       done
8564       IFS="$lt_save_ifs"
8565       ;;
8566     esac
8567 else
8568   enable_fast_install=yes
8569 fi
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581 # This can be used to rebuild libtool when needed
8582 LIBTOOL_DEPS="$ltmain"
8583
8584 # Always use our own libtool.
8585 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616 test -z "$LN_S" && LN_S="ln -s"
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631 if test -n "${ZSH_VERSION+set}" ; then
8632    setopt NO_GLOB_SUBST
8633 fi
8634
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8636 $as_echo_n "checking for objdir... " >&6; }
8637 if ${lt_cv_objdir+:} false; then :
8638   $as_echo_n "(cached) " >&6
8639 else
8640   rm -f .libs 2>/dev/null
8641 mkdir .libs 2>/dev/null
8642 if test -d .libs; then
8643   lt_cv_objdir=.libs
8644 else
8645   # MS-DOS does not allow filenames that begin with a dot.
8646   lt_cv_objdir=_libs
8647 fi
8648 rmdir .libs 2>/dev/null
8649 fi
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8651 $as_echo "$lt_cv_objdir" >&6; }
8652 objdir=$lt_cv_objdir
8653
8654
8655
8656
8657
8658 cat >>confdefs.h <<_ACEOF
8659 #define LT_OBJDIR "$lt_cv_objdir/"
8660 _ACEOF
8661
8662
8663
8664
8665 case $host_os in
8666 aix3*)
8667   # AIX sometimes has problems with the GCC collect2 program.  For some
8668   # reason, if we set the COLLECT_NAMES environment variable, the problems
8669   # vanish in a puff of smoke.
8670   if test "X${COLLECT_NAMES+set}" != Xset; then
8671     COLLECT_NAMES=
8672     export COLLECT_NAMES
8673   fi
8674   ;;
8675 esac
8676
8677 # Global variables:
8678 ofile=libtool
8679 can_build_shared=yes
8680
8681 # All known linkers require a `.a' archive for static linking (except MSVC,
8682 # which needs '.lib').
8683 libext=a
8684
8685 with_gnu_ld="$lt_cv_prog_gnu_ld"
8686
8687 old_CC="$CC"
8688 old_CFLAGS="$CFLAGS"
8689
8690 # Set sane defaults for various variables
8691 test -z "$CC" && CC=cc
8692 test -z "$LTCC" && LTCC=$CC
8693 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8694 test -z "$LD" && LD=ld
8695 test -z "$ac_objext" && ac_objext=o
8696
8697 for cc_temp in $compiler""; do
8698   case $cc_temp in
8699     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8700     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8701     \-*) ;;
8702     *) break;;
8703   esac
8704 done
8705 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8706
8707
8708 # Only perform the check for file, if the check method requires it
8709 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8710 case $deplibs_check_method in
8711 file_magic*)
8712   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8713     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8714 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8715 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8716   $as_echo_n "(cached) " >&6
8717 else
8718   case $MAGIC_CMD in
8719 [\\/*] |  ?:[\\/]*)
8720   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8721   ;;
8722 *)
8723   lt_save_MAGIC_CMD="$MAGIC_CMD"
8724   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8725   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8726   for ac_dir in $ac_dummy; do
8727     IFS="$lt_save_ifs"
8728     test -z "$ac_dir" && ac_dir=.
8729     if test -f $ac_dir/${ac_tool_prefix}file; then
8730       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8731       if test -n "$file_magic_test_file"; then
8732         case $deplibs_check_method in
8733         "file_magic "*)
8734           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8735           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8736           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8737             $EGREP "$file_magic_regex" > /dev/null; then
8738             :
8739           else
8740             cat <<_LT_EOF 1>&2
8741
8742 *** Warning: the command libtool uses to detect shared libraries,
8743 *** $file_magic_cmd, produces output that libtool cannot recognize.
8744 *** The result is that libtool may fail to recognize shared libraries
8745 *** as such.  This will affect the creation of libtool libraries that
8746 *** depend on shared libraries, but programs linked with such libtool
8747 *** libraries will work regardless of this problem.  Nevertheless, you
8748 *** may want to report the problem to your system manager and/or to
8749 *** bug-libtool@gnu.org
8750
8751 _LT_EOF
8752           fi ;;
8753         esac
8754       fi
8755       break
8756     fi
8757   done
8758   IFS="$lt_save_ifs"
8759   MAGIC_CMD="$lt_save_MAGIC_CMD"
8760   ;;
8761 esac
8762 fi
8763
8764 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8765 if test -n "$MAGIC_CMD"; then
8766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8767 $as_echo "$MAGIC_CMD" >&6; }
8768 else
8769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8770 $as_echo "no" >&6; }
8771 fi
8772
8773
8774
8775
8776
8777 if test -z "$lt_cv_path_MAGIC_CMD"; then
8778   if test -n "$ac_tool_prefix"; then
8779     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8780 $as_echo_n "checking for file... " >&6; }
8781 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8782   $as_echo_n "(cached) " >&6
8783 else
8784   case $MAGIC_CMD in
8785 [\\/*] |  ?:[\\/]*)
8786   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8787   ;;
8788 *)
8789   lt_save_MAGIC_CMD="$MAGIC_CMD"
8790   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8791   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8792   for ac_dir in $ac_dummy; do
8793     IFS="$lt_save_ifs"
8794     test -z "$ac_dir" && ac_dir=.
8795     if test -f $ac_dir/file; then
8796       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8797       if test -n "$file_magic_test_file"; then
8798         case $deplibs_check_method in
8799         "file_magic "*)
8800           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8801           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8802           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8803             $EGREP "$file_magic_regex" > /dev/null; then
8804             :
8805           else
8806             cat <<_LT_EOF 1>&2
8807
8808 *** Warning: the command libtool uses to detect shared libraries,
8809 *** $file_magic_cmd, produces output that libtool cannot recognize.
8810 *** The result is that libtool may fail to recognize shared libraries
8811 *** as such.  This will affect the creation of libtool libraries that
8812 *** depend on shared libraries, but programs linked with such libtool
8813 *** libraries will work regardless of this problem.  Nevertheless, you
8814 *** may want to report the problem to your system manager and/or to
8815 *** bug-libtool@gnu.org
8816
8817 _LT_EOF
8818           fi ;;
8819         esac
8820       fi
8821       break
8822     fi
8823   done
8824   IFS="$lt_save_ifs"
8825   MAGIC_CMD="$lt_save_MAGIC_CMD"
8826   ;;
8827 esac
8828 fi
8829
8830 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8831 if test -n "$MAGIC_CMD"; then
8832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8833 $as_echo "$MAGIC_CMD" >&6; }
8834 else
8835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8836 $as_echo "no" >&6; }
8837 fi
8838
8839
8840   else
8841     MAGIC_CMD=:
8842   fi
8843 fi
8844
8845   fi
8846   ;;
8847 esac
8848
8849 # Use C for the default configuration in the libtool script
8850
8851 lt_save_CC="$CC"
8852 ac_ext=c
8853 ac_cpp='$CPP $CPPFLAGS'
8854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8857
8858
8859 # Source file extension for C test sources.
8860 ac_ext=c
8861
8862 # Object file extension for compiled C test sources.
8863 objext=o
8864 objext=$objext
8865
8866 # Code to be used in simple compile tests
8867 lt_simple_compile_test_code="int some_variable = 0;"
8868
8869 # Code to be used in simple link tests
8870 lt_simple_link_test_code='int main(){return(0);}'
8871
8872
8873
8874
8875
8876
8877
8878 # If no C compiler was specified, use CC.
8879 LTCC=${LTCC-"$CC"}
8880
8881 # If no C compiler flags were specified, use CFLAGS.
8882 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8883
8884 # Allow CC to be a program name with arguments.
8885 compiler=$CC
8886
8887 # Save the default compiler, since it gets overwritten when the other
8888 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8889 compiler_DEFAULT=$CC
8890
8891 # save warnings/boilerplate of simple test code
8892 ac_outfile=conftest.$ac_objext
8893 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8894 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8895 _lt_compiler_boilerplate=`cat conftest.err`
8896 $RM conftest*
8897
8898 ac_outfile=conftest.$ac_objext
8899 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8900 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8901 _lt_linker_boilerplate=`cat conftest.err`
8902 $RM -r conftest*
8903
8904
8905 ## CAVEAT EMPTOR:
8906 ## There is no encapsulation within the following macros, do not change
8907 ## the running order or otherwise move them around unless you know exactly
8908 ## what you are doing...
8909 if test -n "$compiler"; then
8910
8911 lt_prog_compiler_no_builtin_flag=
8912
8913 if test "$GCC" = yes; then
8914   case $cc_basename in
8915   nvcc*)
8916     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8917   *)
8918     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8919   esac
8920
8921   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8922 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8923 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8924   $as_echo_n "(cached) " >&6
8925 else
8926   lt_cv_prog_compiler_rtti_exceptions=no
8927    ac_outfile=conftest.$ac_objext
8928    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8929    lt_compiler_flag="-fno-rtti -fno-exceptions"
8930    # Insert the option either (1) after the last *FLAGS variable, or
8931    # (2) before a word containing "conftest.", or (3) at the end.
8932    # Note that $ac_compile itself does not contain backslashes and begins
8933    # with a dollar sign (not a hyphen), so the echo should work correctly.
8934    # The option is referenced via a variable to avoid confusing sed.
8935    lt_compile=`echo "$ac_compile" | $SED \
8936    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8937    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8938    -e 's:$: $lt_compiler_flag:'`
8939    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8940    (eval "$lt_compile" 2>conftest.err)
8941    ac_status=$?
8942    cat conftest.err >&5
8943    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944    if (exit $ac_status) && test -s "$ac_outfile"; then
8945      # The compiler can only warn and ignore the option if not recognized
8946      # So say no if there are warnings other than the usual output.
8947      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8948      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8949      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8950        lt_cv_prog_compiler_rtti_exceptions=yes
8951      fi
8952    fi
8953    $RM conftest*
8954
8955 fi
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8957 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8958
8959 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8960     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8961 else
8962     :
8963 fi
8964
8965 fi
8966
8967
8968
8969
8970
8971
8972   lt_prog_compiler_wl=
8973 lt_prog_compiler_pic=
8974 lt_prog_compiler_static=
8975
8976
8977   if test "$GCC" = yes; then
8978     lt_prog_compiler_wl='-Wl,'
8979     lt_prog_compiler_static='-static'
8980
8981     case $host_os in
8982       aix*)
8983       # All AIX code is PIC.
8984       if test "$host_cpu" = ia64; then
8985         # AIX 5 now supports IA64 processor
8986         lt_prog_compiler_static='-Bstatic'
8987       fi
8988       ;;
8989
8990     amigaos*)
8991       case $host_cpu in
8992       powerpc)
8993             # see comment about AmigaOS4 .so support
8994             lt_prog_compiler_pic='-fPIC'
8995         ;;
8996       m68k)
8997             # FIXME: we need at least 68020 code to build shared libraries, but
8998             # adding the `-m68020' flag to GCC prevents building anything better,
8999             # like `-m68040'.
9000             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9001         ;;
9002       esac
9003       ;;
9004
9005     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9006       # PIC is the default for these OSes.
9007       ;;
9008
9009     mingw* | cygwin* | pw32* | os2* | cegcc*)
9010       # This hack is so that the source file can tell whether it is being
9011       # built for inclusion in a dll (and should export symbols for example).
9012       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9013       # (--disable-auto-import) libraries
9014       lt_prog_compiler_pic='-DDLL_EXPORT'
9015       ;;
9016
9017     darwin* | rhapsody*)
9018       # PIC is the default on this platform
9019       # Common symbols not allowed in MH_DYLIB files
9020       lt_prog_compiler_pic='-fno-common'
9021       ;;
9022
9023     haiku*)
9024       # PIC is the default for Haiku.
9025       # The "-static" flag exists, but is broken.
9026       lt_prog_compiler_static=
9027       ;;
9028
9029     hpux*)
9030       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9031       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9032       # sets the default TLS model and affects inlining.
9033       case $host_cpu in
9034       hppa*64*)
9035         # +Z the default
9036         ;;
9037       *)
9038         lt_prog_compiler_pic='-fPIC'
9039         ;;
9040       esac
9041       ;;
9042
9043     interix[3-9]*)
9044       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9045       # Instead, we relocate shared libraries at runtime.
9046       ;;
9047
9048     msdosdjgpp*)
9049       # Just because we use GCC doesn't mean we suddenly get shared libraries
9050       # on systems that don't support them.
9051       lt_prog_compiler_can_build_shared=no
9052       enable_shared=no
9053       ;;
9054
9055     *nto* | *qnx*)
9056       # QNX uses GNU C++, but need to define -shared option too, otherwise
9057       # it will coredump.
9058       lt_prog_compiler_pic='-fPIC -shared'
9059       ;;
9060
9061     sysv4*MP*)
9062       if test -d /usr/nec; then
9063         lt_prog_compiler_pic=-Kconform_pic
9064       fi
9065       ;;
9066
9067     *)
9068       lt_prog_compiler_pic='-fPIC'
9069       ;;
9070     esac
9071
9072     case $cc_basename in
9073     nvcc*) # Cuda Compiler Driver 2.2
9074       lt_prog_compiler_wl='-Xlinker '
9075       if test -n "$lt_prog_compiler_pic"; then
9076         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9077       fi
9078       ;;
9079     esac
9080   else
9081     # PORTME Check for flag to pass linker flags through the system compiler.
9082     case $host_os in
9083     aix*)
9084       lt_prog_compiler_wl='-Wl,'
9085       if test "$host_cpu" = ia64; then
9086         # AIX 5 now supports IA64 processor
9087         lt_prog_compiler_static='-Bstatic'
9088       else
9089         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9090       fi
9091       ;;
9092
9093     mingw* | cygwin* | pw32* | os2* | cegcc*)
9094       # This hack is so that the source file can tell whether it is being
9095       # built for inclusion in a dll (and should export symbols for example).
9096       lt_prog_compiler_pic='-DDLL_EXPORT'
9097       ;;
9098
9099     hpux9* | hpux10* | hpux11*)
9100       lt_prog_compiler_wl='-Wl,'
9101       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9102       # not for PA HP-UX.
9103       case $host_cpu in
9104       hppa*64*|ia64*)
9105         # +Z the default
9106         ;;
9107       *)
9108         lt_prog_compiler_pic='+Z'
9109         ;;
9110       esac
9111       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9112       lt_prog_compiler_static='${wl}-a ${wl}archive'
9113       ;;
9114
9115     irix5* | irix6* | nonstopux*)
9116       lt_prog_compiler_wl='-Wl,'
9117       # PIC (with -KPIC) is the default.
9118       lt_prog_compiler_static='-non_shared'
9119       ;;
9120
9121     linux* | k*bsd*-gnu | kopensolaris*-gnu)
9122       case $cc_basename in
9123       # old Intel for x86_64 which still supported -KPIC.
9124       ecc*)
9125         lt_prog_compiler_wl='-Wl,'
9126         lt_prog_compiler_pic='-KPIC'
9127         lt_prog_compiler_static='-static'
9128         ;;
9129       # icc used to be incompatible with GCC.
9130       # ICC 10 doesn't accept -KPIC any more.
9131       icc* | ifort*)
9132         lt_prog_compiler_wl='-Wl,'
9133         lt_prog_compiler_pic='-fPIC'
9134         lt_prog_compiler_static='-static'
9135         ;;
9136       # Lahey Fortran 8.1.
9137       lf95*)
9138         lt_prog_compiler_wl='-Wl,'
9139         lt_prog_compiler_pic='--shared'
9140         lt_prog_compiler_static='--static'
9141         ;;
9142       nagfor*)
9143         # NAG Fortran compiler
9144         lt_prog_compiler_wl='-Wl,-Wl,,'
9145         lt_prog_compiler_pic='-PIC'
9146         lt_prog_compiler_static='-Bstatic'
9147         ;;
9148       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9149         # Portland Group compilers (*not* the Pentium gcc compiler,
9150         # which looks to be a dead project)
9151         lt_prog_compiler_wl='-Wl,'
9152         lt_prog_compiler_pic='-fpic'
9153         lt_prog_compiler_static='-Bstatic'
9154         ;;
9155       ccc*)
9156         lt_prog_compiler_wl='-Wl,'
9157         # All Alpha code is PIC.
9158         lt_prog_compiler_static='-non_shared'
9159         ;;
9160       xl* | bgxl* | bgf* | mpixl*)
9161         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9162         lt_prog_compiler_wl='-Wl,'
9163         lt_prog_compiler_pic='-qpic'
9164         lt_prog_compiler_static='-qstaticlink'
9165         ;;
9166       *)
9167         case `$CC -V 2>&1 | sed 5q` in
9168         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9169           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9170           lt_prog_compiler_pic='-KPIC'
9171           lt_prog_compiler_static='-Bstatic'
9172           lt_prog_compiler_wl=''
9173           ;;
9174         *Sun\ F* | *Sun*Fortran*)
9175           lt_prog_compiler_pic='-KPIC'
9176           lt_prog_compiler_static='-Bstatic'
9177           lt_prog_compiler_wl='-Qoption ld '
9178           ;;
9179         *Sun\ C*)
9180           # Sun C 5.9
9181           lt_prog_compiler_pic='-KPIC'
9182           lt_prog_compiler_static='-Bstatic'
9183           lt_prog_compiler_wl='-Wl,'
9184           ;;
9185         *Intel*\ [CF]*Compiler*)
9186           lt_prog_compiler_wl='-Wl,'
9187           lt_prog_compiler_pic='-fPIC'
9188           lt_prog_compiler_static='-static'
9189           ;;
9190         *Portland\ Group*)
9191           lt_prog_compiler_wl='-Wl,'
9192           lt_prog_compiler_pic='-fpic'
9193           lt_prog_compiler_static='-Bstatic'
9194           ;;
9195         esac
9196         ;;
9197       esac
9198       ;;
9199
9200     newsos6)
9201       lt_prog_compiler_pic='-KPIC'
9202       lt_prog_compiler_static='-Bstatic'
9203       ;;
9204
9205     *nto* | *qnx*)
9206       # QNX uses GNU C++, but need to define -shared option too, otherwise
9207       # it will coredump.
9208       lt_prog_compiler_pic='-fPIC -shared'
9209       ;;
9210
9211     osf3* | osf4* | osf5*)
9212       lt_prog_compiler_wl='-Wl,'
9213       # All OSF/1 code is PIC.
9214       lt_prog_compiler_static='-non_shared'
9215       ;;
9216
9217     rdos*)
9218       lt_prog_compiler_static='-non_shared'
9219       ;;
9220
9221     solaris*)
9222       lt_prog_compiler_pic='-KPIC'
9223       lt_prog_compiler_static='-Bstatic'
9224       case $cc_basename in
9225       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9226         lt_prog_compiler_wl='-Qoption ld ';;
9227       *)
9228         lt_prog_compiler_wl='-Wl,';;
9229       esac
9230       ;;
9231
9232     sunos4*)
9233       lt_prog_compiler_wl='-Qoption ld '
9234       lt_prog_compiler_pic='-PIC'
9235       lt_prog_compiler_static='-Bstatic'
9236       ;;
9237
9238     sysv4 | sysv4.2uw2* | sysv4.3*)
9239       lt_prog_compiler_wl='-Wl,'
9240       lt_prog_compiler_pic='-KPIC'
9241       lt_prog_compiler_static='-Bstatic'
9242       ;;
9243
9244     sysv4*MP*)
9245       if test -d /usr/nec ;then
9246         lt_prog_compiler_pic='-Kconform_pic'
9247         lt_prog_compiler_static='-Bstatic'
9248       fi
9249       ;;
9250
9251     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9252       lt_prog_compiler_wl='-Wl,'
9253       lt_prog_compiler_pic='-KPIC'
9254       lt_prog_compiler_static='-Bstatic'
9255       ;;
9256
9257     unicos*)
9258       lt_prog_compiler_wl='-Wl,'
9259       lt_prog_compiler_can_build_shared=no
9260       ;;
9261
9262     uts4*)
9263       lt_prog_compiler_pic='-pic'
9264       lt_prog_compiler_static='-Bstatic'
9265       ;;
9266
9267     *)
9268       lt_prog_compiler_can_build_shared=no
9269       ;;
9270     esac
9271   fi
9272
9273 case $host_os in
9274   # For platforms which do not support PIC, -DPIC is meaningless:
9275   *djgpp*)
9276     lt_prog_compiler_pic=
9277     ;;
9278   *)
9279     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9280     ;;
9281 esac
9282
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9284 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9285 if ${lt_cv_prog_compiler_pic+:} false; then :
9286   $as_echo_n "(cached) " >&6
9287 else
9288   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9289 fi
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9291 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9292 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9293
9294 #
9295 # Check to make sure the PIC flag actually works.
9296 #
9297 if test -n "$lt_prog_compiler_pic"; then
9298   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9299 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9300 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9301   $as_echo_n "(cached) " >&6
9302 else
9303   lt_cv_prog_compiler_pic_works=no
9304    ac_outfile=conftest.$ac_objext
9305    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9306    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9307    # Insert the option either (1) after the last *FLAGS variable, or
9308    # (2) before a word containing "conftest.", or (3) at the end.
9309    # Note that $ac_compile itself does not contain backslashes and begins
9310    # with a dollar sign (not a hyphen), so the echo should work correctly.
9311    # The option is referenced via a variable to avoid confusing sed.
9312    lt_compile=`echo "$ac_compile" | $SED \
9313    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9314    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9315    -e 's:$: $lt_compiler_flag:'`
9316    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9317    (eval "$lt_compile" 2>conftest.err)
9318    ac_status=$?
9319    cat conftest.err >&5
9320    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9321    if (exit $ac_status) && test -s "$ac_outfile"; then
9322      # The compiler can only warn and ignore the option if not recognized
9323      # So say no if there are warnings other than the usual output.
9324      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9325      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9326      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9327        lt_cv_prog_compiler_pic_works=yes
9328      fi
9329    fi
9330    $RM conftest*
9331
9332 fi
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9334 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9335
9336 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9337     case $lt_prog_compiler_pic in
9338      "" | " "*) ;;
9339      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9340      esac
9341 else
9342     lt_prog_compiler_pic=
9343      lt_prog_compiler_can_build_shared=no
9344 fi
9345
9346 fi
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358 #
9359 # Check to make sure the static flag actually works.
9360 #
9361 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9363 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9364 if ${lt_cv_prog_compiler_static_works+:} false; then :
9365   $as_echo_n "(cached) " >&6
9366 else
9367   lt_cv_prog_compiler_static_works=no
9368    save_LDFLAGS="$LDFLAGS"
9369    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9370    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9371    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9372      # The linker can only warn and ignore the option if not recognized
9373      # So say no if there are warnings
9374      if test -s conftest.err; then
9375        # Append any errors to the config.log.
9376        cat conftest.err 1>&5
9377        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9378        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9379        if diff conftest.exp conftest.er2 >/dev/null; then
9380          lt_cv_prog_compiler_static_works=yes
9381        fi
9382      else
9383        lt_cv_prog_compiler_static_works=yes
9384      fi
9385    fi
9386    $RM -r conftest*
9387    LDFLAGS="$save_LDFLAGS"
9388
9389 fi
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9391 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9392
9393 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9394     :
9395 else
9396     lt_prog_compiler_static=
9397 fi
9398
9399
9400
9401
9402
9403
9404
9405   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9406 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9407 if ${lt_cv_prog_compiler_c_o+:} false; then :
9408   $as_echo_n "(cached) " >&6
9409 else
9410   lt_cv_prog_compiler_c_o=no
9411    $RM -r conftest 2>/dev/null
9412    mkdir conftest
9413    cd conftest
9414    mkdir out
9415    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9416
9417    lt_compiler_flag="-o out/conftest2.$ac_objext"
9418    # Insert the option either (1) after the last *FLAGS variable, or
9419    # (2) before a word containing "conftest.", or (3) at the end.
9420    # Note that $ac_compile itself does not contain backslashes and begins
9421    # with a dollar sign (not a hyphen), so the echo should work correctly.
9422    lt_compile=`echo "$ac_compile" | $SED \
9423    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9424    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9425    -e 's:$: $lt_compiler_flag:'`
9426    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9427    (eval "$lt_compile" 2>out/conftest.err)
9428    ac_status=$?
9429    cat out/conftest.err >&5
9430    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9432    then
9433      # The compiler can only warn and ignore the option if not recognized
9434      # So say no if there are warnings
9435      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9436      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9437      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9438        lt_cv_prog_compiler_c_o=yes
9439      fi
9440    fi
9441    chmod u+w . 2>&5
9442    $RM conftest*
9443    # SGI C++ compiler will create directory out/ii_files/ for
9444    # template instantiation
9445    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9446    $RM out/* && rmdir out
9447    cd ..
9448    $RM -r conftest
9449    $RM conftest*
9450
9451 fi
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9453 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9454
9455
9456
9457
9458
9459
9460   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9461 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9462 if ${lt_cv_prog_compiler_c_o+:} false; then :
9463   $as_echo_n "(cached) " >&6
9464 else
9465   lt_cv_prog_compiler_c_o=no
9466    $RM -r conftest 2>/dev/null
9467    mkdir conftest
9468    cd conftest
9469    mkdir out
9470    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9471
9472    lt_compiler_flag="-o out/conftest2.$ac_objext"
9473    # Insert the option either (1) after the last *FLAGS variable, or
9474    # (2) before a word containing "conftest.", or (3) at the end.
9475    # Note that $ac_compile itself does not contain backslashes and begins
9476    # with a dollar sign (not a hyphen), so the echo should work correctly.
9477    lt_compile=`echo "$ac_compile" | $SED \
9478    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9479    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9480    -e 's:$: $lt_compiler_flag:'`
9481    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9482    (eval "$lt_compile" 2>out/conftest.err)
9483    ac_status=$?
9484    cat out/conftest.err >&5
9485    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9487    then
9488      # The compiler can only warn and ignore the option if not recognized
9489      # So say no if there are warnings
9490      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9491      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9492      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9493        lt_cv_prog_compiler_c_o=yes
9494      fi
9495    fi
9496    chmod u+w . 2>&5
9497    $RM conftest*
9498    # SGI C++ compiler will create directory out/ii_files/ for
9499    # template instantiation
9500    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9501    $RM out/* && rmdir out
9502    cd ..
9503    $RM -r conftest
9504    $RM conftest*
9505
9506 fi
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9508 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9509
9510
9511
9512
9513 hard_links="nottested"
9514 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9515   # do not overwrite the value of need_locks provided by the user
9516   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9517 $as_echo_n "checking if we can lock with hard links... " >&6; }
9518   hard_links=yes
9519   $RM conftest*
9520   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9521   touch conftest.a
9522   ln conftest.a conftest.b 2>&5 || hard_links=no
9523   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9525 $as_echo "$hard_links" >&6; }
9526   if test "$hard_links" = no; then
9527     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9528 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9529     need_locks=warn
9530   fi
9531 else
9532   need_locks=no
9533 fi
9534
9535
9536
9537
9538
9539
9540   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9541 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9542
9543   runpath_var=
9544   allow_undefined_flag=
9545   always_export_symbols=no
9546   archive_cmds=
9547   archive_expsym_cmds=
9548   compiler_needs_object=no
9549   enable_shared_with_static_runtimes=no
9550   export_dynamic_flag_spec=
9551   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9552   hardcode_automatic=no
9553   hardcode_direct=no
9554   hardcode_direct_absolute=no
9555   hardcode_libdir_flag_spec=
9556   hardcode_libdir_separator=
9557   hardcode_minus_L=no
9558   hardcode_shlibpath_var=unsupported
9559   inherit_rpath=no
9560   link_all_deplibs=unknown
9561   module_cmds=
9562   module_expsym_cmds=
9563   old_archive_from_new_cmds=
9564   old_archive_from_expsyms_cmds=
9565   thread_safe_flag_spec=
9566   whole_archive_flag_spec=
9567   # include_expsyms should be a list of space-separated symbols to be *always*
9568   # included in the symbol list
9569   include_expsyms=
9570   # exclude_expsyms can be an extended regexp of symbols to exclude
9571   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9572   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9573   # as well as any symbol that contains `d'.
9574   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9575   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9576   # platforms (ab)use it in PIC code, but their linkers get confused if
9577   # the symbol is explicitly referenced.  Since portable code cannot
9578   # rely on this symbol name, it's probably fine to never include it in
9579   # preloaded symbol tables.
9580   # Exclude shared library initialization/finalization symbols.
9581   extract_expsyms_cmds=
9582
9583   case $host_os in
9584   cygwin* | mingw* | pw32* | cegcc*)
9585     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9586     # When not using gcc, we currently assume that we are using
9587     # Microsoft Visual C++.
9588     if test "$GCC" != yes; then
9589       with_gnu_ld=no
9590     fi
9591     ;;
9592   interix*)
9593     # we just hope/assume this is gcc and not c89 (= MSVC++)
9594     with_gnu_ld=yes
9595     ;;
9596   openbsd*)
9597     with_gnu_ld=no
9598     ;;
9599   linux* | k*bsd*-gnu | gnu*)
9600     link_all_deplibs=no
9601     ;;
9602   esac
9603
9604   ld_shlibs=yes
9605
9606   # On some targets, GNU ld is compatible enough with the native linker
9607   # that we're better off using the native interface for both.
9608   lt_use_gnu_ld_interface=no
9609   if test "$with_gnu_ld" = yes; then
9610     case $host_os in
9611       aix*)
9612         # The AIX port of GNU ld has always aspired to compatibility
9613         # with the native linker.  However, as the warning in the GNU ld
9614         # block says, versions before 2.19.5* couldn't really create working
9615         # shared libraries, regardless of the interface used.
9616         case `$LD -v 2>&1` in
9617           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9618           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9619           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9620           *)
9621             lt_use_gnu_ld_interface=yes
9622             ;;
9623         esac
9624         ;;
9625       *)
9626         lt_use_gnu_ld_interface=yes
9627         ;;
9628     esac
9629   fi
9630
9631   if test "$lt_use_gnu_ld_interface" = yes; then
9632     # If archive_cmds runs LD, not CC, wlarc should be empty
9633     wlarc='${wl}'
9634
9635     # Set some defaults for GNU ld with shared library support. These
9636     # are reset later if shared libraries are not supported. Putting them
9637     # here allows them to be overridden if necessary.
9638     runpath_var=LD_RUN_PATH
9639     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9640     export_dynamic_flag_spec='${wl}--export-dynamic'
9641     # ancient GNU ld didn't support --whole-archive et. al.
9642     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9643       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9644     else
9645       whole_archive_flag_spec=
9646     fi
9647     supports_anon_versioning=no
9648     case `$LD -v 2>&1` in
9649       *GNU\ gold*) supports_anon_versioning=yes ;;
9650       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9651       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9652       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9653       *\ 2.11.*) ;; # other 2.11 versions
9654       *) supports_anon_versioning=yes ;;
9655     esac
9656
9657     # See if GNU ld supports shared libraries.
9658     case $host_os in
9659     aix[3-9]*)
9660       # On AIX/PPC, the GNU linker is very broken
9661       if test "$host_cpu" != ia64; then
9662         ld_shlibs=no
9663         cat <<_LT_EOF 1>&2
9664
9665 *** Warning: the GNU linker, at least up to release 2.19, is reported
9666 *** to be unable to reliably create shared libraries on AIX.
9667 *** Therefore, libtool is disabling shared libraries support.  If you
9668 *** really care for shared libraries, you may want to install binutils
9669 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9670 *** You will then need to restart the configuration process.
9671
9672 _LT_EOF
9673       fi
9674       ;;
9675
9676     amigaos*)
9677       case $host_cpu in
9678       powerpc)
9679             # see comment about AmigaOS4 .so support
9680             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9681             archive_expsym_cmds=''
9682         ;;
9683       m68k)
9684             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)'
9685             hardcode_libdir_flag_spec='-L$libdir'
9686             hardcode_minus_L=yes
9687         ;;
9688       esac
9689       ;;
9690
9691     beos*)
9692       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9693         allow_undefined_flag=unsupported
9694         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9695         # support --undefined.  This deserves some investigation.  FIXME
9696         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9697       else
9698         ld_shlibs=no
9699       fi
9700       ;;
9701
9702     cygwin* | mingw* | pw32* | cegcc*)
9703       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9704       # as there is no search path for DLLs.
9705       hardcode_libdir_flag_spec='-L$libdir'
9706       export_dynamic_flag_spec='${wl}--export-all-symbols'
9707       allow_undefined_flag=unsupported
9708       always_export_symbols=no
9709       enable_shared_with_static_runtimes=yes
9710       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'
9711       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9712
9713       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9714         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9715         # If the export-symbols file already is a .def file (1st line
9716         # is EXPORTS), use it as is; otherwise, prepend...
9717         archive_expsym_cmds='if test "x`$SED \"$sed_uncomment_deffile\" $export_symbols | $SED 1q`" = xEXPORTS; then
9718           cp $export_symbols $output_objdir/$soname.def;
9719         else
9720           echo EXPORTS > $output_objdir/$soname.def;
9721           cat $export_symbols >> $output_objdir/$soname.def;
9722         fi~
9723         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9724       else
9725         ld_shlibs=no
9726       fi
9727       ;;
9728
9729     haiku*)
9730       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9731       link_all_deplibs=yes
9732       ;;
9733
9734     interix[3-9]*)
9735       hardcode_direct=no
9736       hardcode_shlibpath_var=no
9737       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9738       export_dynamic_flag_spec='${wl}-E'
9739       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9740       # Instead, shared libraries are loaded at an image base (0x10000000 by
9741       # default) and relocated if they conflict, which is a slow very memory
9742       # consuming and fragmenting process.  To avoid this, we pick a random,
9743       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9744       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9745       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9746       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'
9747       ;;
9748
9749     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9750       tmp_diet=no
9751       if test "$host_os" = linux-dietlibc; then
9752         case $cc_basename in
9753           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9754         esac
9755       fi
9756       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9757          && test "$tmp_diet" = no
9758       then
9759         tmp_addflag=' $pic_flag'
9760         tmp_sharedflag='-shared'
9761         case $cc_basename,$host_cpu in
9762         pgcc*)                          # Portland Group C compiler
9763           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'
9764           tmp_addflag=' $pic_flag'
9765           ;;
9766         pgf77* | pgf90* | pgf95* | pgfortran*)
9767                                         # Portland Group f77 and f90 compilers
9768           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'
9769           tmp_addflag=' $pic_flag -Mnomain' ;;
9770         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9771           tmp_addflag=' -i_dynamic' ;;
9772         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9773           tmp_addflag=' -i_dynamic -nofor_main' ;;
9774         ifc* | ifort*)                  # Intel Fortran compiler
9775           tmp_addflag=' -nofor_main' ;;
9776         lf95*)                          # Lahey Fortran 8.1
9777           whole_archive_flag_spec=
9778           tmp_sharedflag='--shared' ;;
9779         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9780           tmp_sharedflag='-qmkshrobj'
9781           tmp_addflag= ;;
9782         nvcc*)  # Cuda Compiler Driver 2.2
9783           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'
9784           compiler_needs_object=yes
9785           ;;
9786         esac
9787         case `$CC -V 2>&1 | sed 5q` in
9788         *Sun\ C*)                       # Sun C 5.9
9789           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'
9790           compiler_needs_object=yes
9791           tmp_sharedflag='-G' ;;
9792         *Sun\ F*)                       # Sun Fortran 8.3
9793           tmp_sharedflag='-G' ;;
9794         esac
9795         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9796
9797         if test "x$supports_anon_versioning" = xyes; then
9798           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9799             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9800             echo "local: *; };" >> $output_objdir/$libname.ver~
9801             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9802         fi
9803
9804         case $cc_basename in
9805         xlf* | bgf* | bgxlf* | mpixlf*)
9806           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9807           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9808           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9809           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9810           if test "x$supports_anon_versioning" = xyes; then
9811             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9812               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9813               echo "local: *; };" >> $output_objdir/$libname.ver~
9814               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9815           fi
9816           ;;
9817         esac
9818       else
9819         ld_shlibs=no
9820       fi
9821       ;;
9822
9823     netbsd* | netbsdelf*-gnu)
9824       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9825         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9826         wlarc=
9827       else
9828         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9829         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9830       fi
9831       ;;
9832
9833     solaris*)
9834       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9835         ld_shlibs=no
9836         cat <<_LT_EOF 1>&2
9837
9838 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9839 *** create shared libraries on Solaris systems.  Therefore, libtool
9840 *** is disabling shared libraries support.  We urge you to upgrade GNU
9841 *** binutils to release 2.9.1 or newer.  Another option is to modify
9842 *** your PATH or compiler configuration so that the native linker is
9843 *** used, and then restart.
9844
9845 _LT_EOF
9846       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9847         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9848         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9849       else
9850         ld_shlibs=no
9851       fi
9852       ;;
9853
9854     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9855       case `$LD -v 2>&1` in
9856         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9857         ld_shlibs=no
9858         cat <<_LT_EOF 1>&2
9859
9860 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9861 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9862 *** is disabling shared libraries support.  We urge you to upgrade GNU
9863 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9864 *** your PATH or compiler configuration so that the native linker is
9865 *** used, and then restart.
9866
9867 _LT_EOF
9868         ;;
9869         *)
9870           # For security reasons, it is highly recommended that you always
9871           # use absolute paths for naming shared libraries, and exclude the
9872           # DT_RUNPATH tag from executables and libraries.  But doing so
9873           # requires that you compile everything twice, which is a pain.
9874           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9875             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9876             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9877             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9878           else
9879             ld_shlibs=no
9880           fi
9881         ;;
9882       esac
9883       ;;
9884
9885     sunos4*)
9886       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9887       wlarc=
9888       hardcode_direct=yes
9889       hardcode_shlibpath_var=no
9890       ;;
9891
9892     *)
9893       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9894         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9895         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9896       else
9897         ld_shlibs=no
9898       fi
9899       ;;
9900     esac
9901
9902     if test "$ld_shlibs" = no; then
9903       runpath_var=
9904       hardcode_libdir_flag_spec=
9905       export_dynamic_flag_spec=
9906       whole_archive_flag_spec=
9907     fi
9908   else
9909     # PORTME fill in a description of your system's linker (not GNU ld)
9910     case $host_os in
9911     aix3*)
9912       allow_undefined_flag=unsupported
9913       always_export_symbols=yes
9914       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'
9915       # Note: this linker hardcodes the directories in LIBPATH if there
9916       # are no directories specified by -L.
9917       hardcode_minus_L=yes
9918       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9919         # Neither direct hardcoding nor static linking is supported with a
9920         # broken collect2.
9921         hardcode_direct=unsupported
9922       fi
9923       ;;
9924
9925     aix[4-9]*)
9926       if test "$host_cpu" = ia64; then
9927         # On IA64, the linker does run time linking by default, so we don't
9928         # have to do anything special.
9929         aix_use_runtimelinking=no
9930         exp_sym_flag='-Bexport'
9931         no_entry_flag=""
9932       else
9933         # If we're using GNU nm, then we don't want the "-C" option.
9934         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9935         # Also, AIX nm treats weak defined symbols like other global
9936         # defined symbols, whereas GNU nm marks them as "W".
9937         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9938           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'
9939         else
9940           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'
9941         fi
9942         aix_use_runtimelinking=no
9943
9944         # Test if we are trying to use run time linking or normal
9945         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9946         # need to do runtime linking.
9947         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9948           for ld_flag in $LDFLAGS; do
9949           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9950             aix_use_runtimelinking=yes
9951             break
9952           fi
9953           done
9954           ;;
9955         esac
9956
9957         exp_sym_flag='-bexport'
9958         no_entry_flag='-bnoentry'
9959       fi
9960
9961       # When large executables or shared objects are built, AIX ld can
9962       # have problems creating the table of contents.  If linking a library
9963       # or program results in "error TOC overflow" add -mminimal-toc to
9964       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9965       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9966
9967       archive_cmds=''
9968       hardcode_direct=yes
9969       hardcode_direct_absolute=yes
9970       hardcode_libdir_separator=':'
9971       link_all_deplibs=yes
9972       file_list_spec='${wl}-f,'
9973
9974       if test "$GCC" = yes; then
9975         case $host_os in aix4.[012]|aix4.[012].*)
9976         # We only want to do this on AIX 4.2 and lower, the check
9977         # below for broken collect2 doesn't work under 4.3+
9978           collect2name=`${CC} -print-prog-name=collect2`
9979           if test -f "$collect2name" &&
9980            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9981           then
9982           # We have reworked collect2
9983           :
9984           else
9985           # We have old collect2
9986           hardcode_direct=unsupported
9987           # It fails to find uninstalled libraries when the uninstalled
9988           # path is not listed in the libpath.  Setting hardcode_minus_L
9989           # to unsupported forces relinking
9990           hardcode_minus_L=yes
9991           hardcode_libdir_flag_spec='-L$libdir'
9992           hardcode_libdir_separator=
9993           fi
9994           ;;
9995         esac
9996         shared_flag='-shared'
9997         if test "$aix_use_runtimelinking" = yes; then
9998           shared_flag="$shared_flag "'${wl}-G'
9999         fi
10000         link_all_deplibs=no
10001       else
10002         # not using gcc
10003         if test "$host_cpu" = ia64; then
10004         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10005         # chokes on -Wl,-G. The following line is correct:
10006           shared_flag='-G'
10007         else
10008           if test "$aix_use_runtimelinking" = yes; then
10009             shared_flag='${wl}-G'
10010           else
10011             shared_flag='${wl}-bM:SRE'
10012           fi
10013         fi
10014       fi
10015
10016       export_dynamic_flag_spec='${wl}-bexpall'
10017       # It seems that -bexpall does not export symbols beginning with
10018       # underscore (_), so it is better to generate a list of symbols to export.
10019       always_export_symbols=yes
10020       if test "$aix_use_runtimelinking" = yes; then
10021         # Warning - without using the other runtime loading flags (-brtl),
10022         # -berok will link without error, but may produce a broken library.
10023         allow_undefined_flag='-berok'
10024         # Determine the default libpath from the value encoded in an
10025         # empty executable.
10026         if test "${lt_cv_aix_libpath+set}" = set; then
10027   aix_libpath=$lt_cv_aix_libpath
10028 else
10029   if ${lt_cv_aix_libpath_+:} false; then :
10030   $as_echo_n "(cached) " >&6
10031 else
10032   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10033 /* end confdefs.h.  */
10034
10035 int
10036 main ()
10037 {
10038
10039   ;
10040   return 0;
10041 }
10042 _ACEOF
10043 if ac_fn_c_try_link "$LINENO"; then :
10044
10045   lt_aix_libpath_sed='
10046       /Import File Strings/,/^$/ {
10047           /^0/ {
10048               s/^0  *\([^ ]*\) *$/\1/
10049               p
10050           }
10051       }'
10052   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10053   # Check for a 64-bit object if we didn't find anything.
10054   if test -z "$lt_cv_aix_libpath_"; then
10055     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10056   fi
10057 fi
10058 rm -f core conftest.err conftest.$ac_objext \
10059     conftest$ac_exeext conftest.$ac_ext
10060   if test -z "$lt_cv_aix_libpath_"; then
10061     lt_cv_aix_libpath_="/usr/lib:/lib"
10062   fi
10063
10064 fi
10065
10066   aix_libpath=$lt_cv_aix_libpath_
10067 fi
10068
10069         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10070         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"
10071       else
10072         if test "$host_cpu" = ia64; then
10073           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10074           allow_undefined_flag="-z nodefs"
10075           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"
10076         else
10077          # Determine the default libpath from the value encoded in an
10078          # empty executable.
10079          if test "${lt_cv_aix_libpath+set}" = set; then
10080   aix_libpath=$lt_cv_aix_libpath
10081 else
10082   if ${lt_cv_aix_libpath_+:} false; then :
10083   $as_echo_n "(cached) " >&6
10084 else
10085   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10086 /* end confdefs.h.  */
10087
10088 int
10089 main ()
10090 {
10091
10092   ;
10093   return 0;
10094 }
10095 _ACEOF
10096 if ac_fn_c_try_link "$LINENO"; then :
10097
10098   lt_aix_libpath_sed='
10099       /Import File Strings/,/^$/ {
10100           /^0/ {
10101               s/^0  *\([^ ]*\) *$/\1/
10102               p
10103           }
10104       }'
10105   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10106   # Check for a 64-bit object if we didn't find anything.
10107   if test -z "$lt_cv_aix_libpath_"; then
10108     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10109   fi
10110 fi
10111 rm -f core conftest.err conftest.$ac_objext \
10112     conftest$ac_exeext conftest.$ac_ext
10113   if test -z "$lt_cv_aix_libpath_"; then
10114     lt_cv_aix_libpath_="/usr/lib:/lib"
10115   fi
10116
10117 fi
10118
10119   aix_libpath=$lt_cv_aix_libpath_
10120 fi
10121
10122          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10123           # Warning - without using the other run time loading flags,
10124           # -berok will link without error, but may produce a broken library.
10125           no_undefined_flag=' ${wl}-bernotok'
10126           allow_undefined_flag=' ${wl}-berok'
10127           if test "$with_gnu_ld" = yes; then
10128             # We only use this code for GNU lds that support --whole-archive.
10129             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10130           else
10131             # Exported symbols can be pulled into shared objects from archives
10132             whole_archive_flag_spec='$convenience'
10133           fi
10134           archive_cmds_need_lc=yes
10135           # This is similar to how AIX traditionally builds its shared libraries.
10136           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'
10137         fi
10138       fi
10139       ;;
10140
10141     amigaos*)
10142       case $host_cpu in
10143       powerpc)
10144             # see comment about AmigaOS4 .so support
10145             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10146             archive_expsym_cmds=''
10147         ;;
10148       m68k)
10149             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)'
10150             hardcode_libdir_flag_spec='-L$libdir'
10151             hardcode_minus_L=yes
10152         ;;
10153       esac
10154       ;;
10155
10156     bsdi[45]*)
10157       export_dynamic_flag_spec=-rdynamic
10158       ;;
10159
10160     cygwin* | mingw* | pw32* | cegcc*)
10161       # When not using gcc, we currently assume that we are using
10162       # Microsoft Visual C++.
10163       # hardcode_libdir_flag_spec is actually meaningless, as there is
10164       # no search path for DLLs.
10165       case $cc_basename in
10166       cl*)
10167         # Native MSVC
10168         hardcode_libdir_flag_spec=' '
10169         allow_undefined_flag=unsupported
10170         always_export_symbols=yes
10171         file_list_spec='@'
10172         # Tell ltmain to make .lib files, not .a files.
10173         libext=lib
10174         # Tell ltmain to make .dll files, not .so files.
10175         shrext_cmds=".dll"
10176         # FIXME: Setting linknames here is a bad hack.
10177         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10178         archive_expsym_cmds='if test "x`$SED \"$sed_uncomment_deffile\" $export_symbols | $SED 1q`" = xEXPORTS; then
10179             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10180           else
10181             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10182           fi~
10183           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10184           linknames='
10185         # The linker will not automatically build a static lib if we build a DLL.
10186         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10187         enable_shared_with_static_runtimes=yes
10188         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10189         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10190         # Don't use ranlib
10191         old_postinstall_cmds='chmod 644 $oldlib'
10192         postlink_cmds='lt_outputfile="@OUTPUT@"~
10193           lt_tool_outputfile="@TOOL_OUTPUT@"~
10194           case $lt_outputfile in
10195             *.exe|*.EXE) ;;
10196             *)
10197               lt_outputfile="$lt_outputfile.exe"
10198               lt_tool_outputfile="$lt_tool_outputfile.exe"
10199               ;;
10200           esac~
10201           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10202             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10203             $RM "$lt_outputfile.manifest";
10204           fi'
10205         ;;
10206       *)
10207         # Assume MSVC wrapper
10208         hardcode_libdir_flag_spec=' '
10209         allow_undefined_flag=unsupported
10210         # Tell ltmain to make .lib files, not .a files.
10211         libext=lib
10212         # Tell ltmain to make .dll files, not .so files.
10213         shrext_cmds=".dll"
10214         # FIXME: Setting linknames here is a bad hack.
10215         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10216         # The linker will automatically build a .lib file if we build a DLL.
10217         old_archive_from_new_cmds='true'
10218         # FIXME: Should let the user specify the lib program.
10219         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10220         enable_shared_with_static_runtimes=yes
10221         ;;
10222       esac
10223       ;;
10224
10225     darwin* | rhapsody*)
10226
10227
10228   archive_cmds_need_lc=no
10229   hardcode_direct=no
10230   hardcode_automatic=yes
10231   hardcode_shlibpath_var=unsupported
10232   if test "$lt_cv_ld_force_load" = "yes"; then
10233     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\"`'
10234
10235   else
10236     whole_archive_flag_spec=''
10237   fi
10238   link_all_deplibs=yes
10239   allow_undefined_flag="$_lt_dar_allow_undefined"
10240   case $cc_basename in
10241      ifort*) _lt_dar_can_shared=yes ;;
10242      *) _lt_dar_can_shared=$GCC ;;
10243   esac
10244   if test "$_lt_dar_can_shared" = "yes"; then
10245     output_verbose_link_cmd=func_echo_all
10246     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10247     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10248     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}"
10249     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}"
10250
10251   else
10252   ld_shlibs=no
10253   fi
10254
10255       ;;
10256
10257     dgux*)
10258       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10259       hardcode_libdir_flag_spec='-L$libdir'
10260       hardcode_shlibpath_var=no
10261       ;;
10262
10263     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10264     # support.  Future versions do this automatically, but an explicit c++rt0.o
10265     # does not break anything, and helps significantly (at the cost of a little
10266     # extra space).
10267     freebsd2.2*)
10268       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10269       hardcode_libdir_flag_spec='-R$libdir'
10270       hardcode_direct=yes
10271       hardcode_shlibpath_var=no
10272       ;;
10273
10274     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10275     freebsd2.*)
10276       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10277       hardcode_direct=yes
10278       hardcode_minus_L=yes
10279       hardcode_shlibpath_var=no
10280       ;;
10281
10282     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10283     freebsd* | dragonfly*)
10284       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10285       hardcode_libdir_flag_spec='-R$libdir'
10286       hardcode_direct=yes
10287       hardcode_shlibpath_var=no
10288       ;;
10289
10290     hpux9*)
10291       if test "$GCC" = yes; then
10292         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'
10293       else
10294         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'
10295       fi
10296       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10297       hardcode_libdir_separator=:
10298       hardcode_direct=yes
10299
10300       # hardcode_minus_L: Not really in the search PATH,
10301       # but as the default location of the library.
10302       hardcode_minus_L=yes
10303       export_dynamic_flag_spec='${wl}-E'
10304       ;;
10305
10306     hpux10*)
10307       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10308         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10309       else
10310         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10311       fi
10312       if test "$with_gnu_ld" = no; then
10313         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10314         hardcode_libdir_separator=:
10315         hardcode_direct=yes
10316         hardcode_direct_absolute=yes
10317         export_dynamic_flag_spec='${wl}-E'
10318         # hardcode_minus_L: Not really in the search PATH,
10319         # but as the default location of the library.
10320         hardcode_minus_L=yes
10321       fi
10322       ;;
10323
10324     hpux11*)
10325       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10326         case $host_cpu in
10327         hppa*64*)
10328           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10329           ;;
10330         ia64*)
10331           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10332           ;;
10333         *)
10334           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10335           ;;
10336         esac
10337       else
10338         case $host_cpu in
10339         hppa*64*)
10340           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10341           ;;
10342         ia64*)
10343           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10344           ;;
10345         *)
10346
10347           # Older versions of the 11.00 compiler do not understand -b yet
10348           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10349           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10350 $as_echo_n "checking if $CC understands -b... " >&6; }
10351 if ${lt_cv_prog_compiler__b+:} false; then :
10352   $as_echo_n "(cached) " >&6
10353 else
10354   lt_cv_prog_compiler__b=no
10355    save_LDFLAGS="$LDFLAGS"
10356    LDFLAGS="$LDFLAGS -b"
10357    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10358    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10359      # The linker can only warn and ignore the option if not recognized
10360      # So say no if there are warnings
10361      if test -s conftest.err; then
10362        # Append any errors to the config.log.
10363        cat conftest.err 1>&5
10364        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10365        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10366        if diff conftest.exp conftest.er2 >/dev/null; then
10367          lt_cv_prog_compiler__b=yes
10368        fi
10369      else
10370        lt_cv_prog_compiler__b=yes
10371      fi
10372    fi
10373    $RM -r conftest*
10374    LDFLAGS="$save_LDFLAGS"
10375
10376 fi
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10378 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10379
10380 if test x"$lt_cv_prog_compiler__b" = xyes; then
10381     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10382 else
10383     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10384 fi
10385
10386           ;;
10387         esac
10388       fi
10389       if test "$with_gnu_ld" = no; then
10390         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10391         hardcode_libdir_separator=:
10392
10393         case $host_cpu in
10394         hppa*64*|ia64*)
10395           hardcode_direct=no
10396           hardcode_shlibpath_var=no
10397           ;;
10398         *)
10399           hardcode_direct=yes
10400           hardcode_direct_absolute=yes
10401           export_dynamic_flag_spec='${wl}-E'
10402
10403           # hardcode_minus_L: Not really in the search PATH,
10404           # but as the default location of the library.
10405           hardcode_minus_L=yes
10406           ;;
10407         esac
10408       fi
10409       ;;
10410
10411     irix5* | irix6* | nonstopux*)
10412       if test "$GCC" = yes; then
10413         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'
10414         # Try to use the -exported_symbol ld option, if it does not
10415         # work, assume that -exports_file does not work either and
10416         # implicitly export all symbols.
10417         # This should be the same for all languages, so no per-tag cache variable.
10418         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10419 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10420 if ${lt_cv_irix_exported_symbol+:} false; then :
10421   $as_echo_n "(cached) " >&6
10422 else
10423   save_LDFLAGS="$LDFLAGS"
10424            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10425            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10426 /* end confdefs.h.  */
10427 int foo (void) { return 0; }
10428 _ACEOF
10429 if ac_fn_c_try_link "$LINENO"; then :
10430   lt_cv_irix_exported_symbol=yes
10431 else
10432   lt_cv_irix_exported_symbol=no
10433 fi
10434 rm -f core conftest.err conftest.$ac_objext \
10435     conftest$ac_exeext conftest.$ac_ext
10436            LDFLAGS="$save_LDFLAGS"
10437 fi
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10439 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10440         if test "$lt_cv_irix_exported_symbol" = yes; then
10441           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'
10442         fi
10443       else
10444         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'
10445         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'
10446       fi
10447       archive_cmds_need_lc='no'
10448       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10449       hardcode_libdir_separator=:
10450       inherit_rpath=yes
10451       link_all_deplibs=yes
10452       ;;
10453
10454     netbsd* | netbsdelf*-gnu)
10455       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10456         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10457       else
10458         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10459       fi
10460       hardcode_libdir_flag_spec='-R$libdir'
10461       hardcode_direct=yes
10462       hardcode_shlibpath_var=no
10463       ;;
10464
10465     newsos6)
10466       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10467       hardcode_direct=yes
10468       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10469       hardcode_libdir_separator=:
10470       hardcode_shlibpath_var=no
10471       ;;
10472
10473     *nto* | *qnx*)
10474       ;;
10475
10476     openbsd*)
10477       if test -f /usr/libexec/ld.so; then
10478         hardcode_direct=yes
10479         hardcode_shlibpath_var=no
10480         hardcode_direct_absolute=yes
10481         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10482           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10483           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10484           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10485           export_dynamic_flag_spec='${wl}-E'
10486         else
10487           case $host_os in
10488            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10489              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10490              hardcode_libdir_flag_spec='-R$libdir'
10491              ;;
10492            *)
10493              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10494              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10495              ;;
10496           esac
10497         fi
10498       else
10499         ld_shlibs=no
10500       fi
10501       ;;
10502
10503     os2*)
10504       hardcode_libdir_flag_spec='-L$libdir'
10505       hardcode_minus_L=yes
10506       allow_undefined_flag=unsupported
10507       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'
10508       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10509       ;;
10510
10511     osf3*)
10512       if test "$GCC" = yes; then
10513         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10514         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'
10515       else
10516         allow_undefined_flag=' -expect_unresolved \*'
10517         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'
10518       fi
10519       archive_cmds_need_lc='no'
10520       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10521       hardcode_libdir_separator=:
10522       ;;
10523
10524     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10525       if test "$GCC" = yes; then
10526         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10527         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'
10528         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10529       else
10530         allow_undefined_flag=' -expect_unresolved \*'
10531         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'
10532         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~
10533         $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'
10534
10535         # Both c and cxx compiler support -rpath directly
10536         hardcode_libdir_flag_spec='-rpath $libdir'
10537       fi
10538       archive_cmds_need_lc='no'
10539       hardcode_libdir_separator=:
10540       ;;
10541
10542     solaris*)
10543       no_undefined_flag=' -z defs'
10544       if test "$GCC" = yes; then
10545         wlarc='${wl}'
10546         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10547         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10548           $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'
10549       else
10550         case `$CC -V 2>&1` in
10551         *"Compilers 5.0"*)
10552           wlarc=''
10553           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10554           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10555           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10556           ;;
10557         *)
10558           wlarc='${wl}'
10559           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10560           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10561           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10562           ;;
10563         esac
10564       fi
10565       hardcode_libdir_flag_spec='-R$libdir'
10566       hardcode_shlibpath_var=no
10567       case $host_os in
10568       solaris2.[0-5] | solaris2.[0-5].*) ;;
10569       *)
10570         # The compiler driver will combine and reorder linker options,
10571         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10572         # but is careful enough not to reorder.
10573         # Supported since Solaris 2.6 (maybe 2.5.1?)
10574         if test "$GCC" = yes; then
10575           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10576         else
10577           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10578         fi
10579         ;;
10580       esac
10581       link_all_deplibs=yes
10582       ;;
10583
10584     sunos4*)
10585       if test "x$host_vendor" = xsequent; then
10586         # Use $CC to link under sequent, because it throws in some extra .o
10587         # files that make .init and .fini sections work.
10588         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10589       else
10590         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10591       fi
10592       hardcode_libdir_flag_spec='-L$libdir'
10593       hardcode_direct=yes
10594       hardcode_minus_L=yes
10595       hardcode_shlibpath_var=no
10596       ;;
10597
10598     sysv4)
10599       case $host_vendor in
10600         sni)
10601           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10602           hardcode_direct=yes # is this really true???
10603         ;;
10604         siemens)
10605           ## LD is ld it makes a PLAMLIB
10606           ## CC just makes a GrossModule.
10607           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10608           reload_cmds='$CC -r -o $output$reload_objs'
10609           hardcode_direct=no
10610         ;;
10611         motorola)
10612           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10613           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10614         ;;
10615       esac
10616       runpath_var='LD_RUN_PATH'
10617       hardcode_shlibpath_var=no
10618       ;;
10619
10620     sysv4.3*)
10621       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10622       hardcode_shlibpath_var=no
10623       export_dynamic_flag_spec='-Bexport'
10624       ;;
10625
10626     sysv4*MP*)
10627       if test -d /usr/nec; then
10628         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10629         hardcode_shlibpath_var=no
10630         runpath_var=LD_RUN_PATH
10631         hardcode_runpath_var=yes
10632         ld_shlibs=yes
10633       fi
10634       ;;
10635
10636     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10637       no_undefined_flag='${wl}-z,text'
10638       archive_cmds_need_lc=no
10639       hardcode_shlibpath_var=no
10640       runpath_var='LD_RUN_PATH'
10641
10642       if test "$GCC" = yes; then
10643         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10644         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10645       else
10646         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10647         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10648       fi
10649       ;;
10650
10651     sysv5* | sco3.2v5* | sco5v6*)
10652       # Note: We can NOT use -z defs as we might desire, because we do not
10653       # link with -lc, and that would cause any symbols used from libc to
10654       # always be unresolved, which means just about no library would
10655       # ever link correctly.  If we're not using GNU ld we use -z text
10656       # though, which does catch some bad symbols but isn't as heavy-handed
10657       # as -z defs.
10658       no_undefined_flag='${wl}-z,text'
10659       allow_undefined_flag='${wl}-z,nodefs'
10660       archive_cmds_need_lc=no
10661       hardcode_shlibpath_var=no
10662       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10663       hardcode_libdir_separator=':'
10664       link_all_deplibs=yes
10665       export_dynamic_flag_spec='${wl}-Bexport'
10666       runpath_var='LD_RUN_PATH'
10667
10668       if test "$GCC" = yes; then
10669         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10670         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10671       else
10672         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10673         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10674       fi
10675       ;;
10676
10677     uts4*)
10678       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10679       hardcode_libdir_flag_spec='-L$libdir'
10680       hardcode_shlibpath_var=no
10681       ;;
10682
10683     *)
10684       ld_shlibs=no
10685       ;;
10686     esac
10687
10688     if test x$host_vendor = xsni; then
10689       case $host in
10690       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10691         export_dynamic_flag_spec='${wl}-Blargedynsym'
10692         ;;
10693       esac
10694     fi
10695   fi
10696
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10698 $as_echo "$ld_shlibs" >&6; }
10699 test "$ld_shlibs" = no && can_build_shared=no
10700
10701 with_gnu_ld=$with_gnu_ld
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717 #
10718 # Do we need to explicitly link libc?
10719 #
10720 case "x$archive_cmds_need_lc" in
10721 x|xyes)
10722   # Assume -lc should be added
10723   archive_cmds_need_lc=yes
10724
10725   if test "$enable_shared" = yes && test "$GCC" = yes; then
10726     case $archive_cmds in
10727     *'~'*)
10728       # FIXME: we may have to deal with multi-command sequences.
10729       ;;
10730     '$CC '*)
10731       # Test whether the compiler implicitly links with -lc since on some
10732       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10733       # to ld, don't add -lc before -lgcc.
10734       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10735 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10736 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10737   $as_echo_n "(cached) " >&6
10738 else
10739   $RM conftest*
10740         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10741
10742         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10743   (eval $ac_compile) 2>&5
10744   ac_status=$?
10745   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10746   test $ac_status = 0; } 2>conftest.err; then
10747           soname=conftest
10748           lib=conftest
10749           libobjs=conftest.$ac_objext
10750           deplibs=
10751           wl=$lt_prog_compiler_wl
10752           pic_flag=$lt_prog_compiler_pic
10753           compiler_flags=-v
10754           linker_flags=-v
10755           verstring=
10756           output_objdir=.
10757           libname=conftest
10758           lt_save_allow_undefined_flag=$allow_undefined_flag
10759           allow_undefined_flag=
10760           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10761   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10762   ac_status=$?
10763   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10764   test $ac_status = 0; }
10765           then
10766             lt_cv_archive_cmds_need_lc=no
10767           else
10768             lt_cv_archive_cmds_need_lc=yes
10769           fi
10770           allow_undefined_flag=$lt_save_allow_undefined_flag
10771         else
10772           cat conftest.err 1>&5
10773         fi
10774         $RM conftest*
10775
10776 fi
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10778 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10779       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10780       ;;
10781     esac
10782   fi
10783   ;;
10784 esac
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10938 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10939
10940 if test "$GCC" = yes; then
10941   case $host_os in
10942     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10943     *) lt_awk_arg="/^libraries:/" ;;
10944   esac
10945   case $host_os in
10946     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10947     *) lt_sed_strip_eq="s,=/,/,g" ;;
10948   esac
10949   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10950   case $lt_search_path_spec in
10951   *\;*)
10952     # if the path contains ";" then we assume it to be the separator
10953     # otherwise default to the standard path separator (i.e. ":") - it is
10954     # assumed that no part of a normal pathname contains ";" but that should
10955     # okay in the real world where ";" in dirpaths is itself problematic.
10956     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10957     ;;
10958   *)
10959     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10960     ;;
10961   esac
10962   # Ok, now we have the path, separated by spaces, we can step through it
10963   # and add multilib dir if necessary.
10964   lt_tmp_lt_search_path_spec=
10965   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10966   for lt_sys_path in $lt_search_path_spec; do
10967     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10968       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10969     else
10970       test -d "$lt_sys_path" && \
10971         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10972     fi
10973   done
10974   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10975 BEGIN {RS=" "; FS="/|\n";} {
10976   lt_foo="";
10977   lt_count=0;
10978   for (lt_i = NF; lt_i > 0; lt_i--) {
10979     if ($lt_i != "" && $lt_i != ".") {
10980       if ($lt_i == "..") {
10981         lt_count++;
10982       } else {
10983         if (lt_count == 0) {
10984           lt_foo="/" $lt_i lt_foo;
10985         } else {
10986           lt_count--;
10987         }
10988       }
10989     }
10990   }
10991   if (lt_foo != "") { lt_freq[lt_foo]++; }
10992   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10993 }'`
10994   # AWK program above erroneously prepends '/' to C:/dos/paths
10995   # for these hosts.
10996   case $host_os in
10997     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10998       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10999   esac
11000   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11001 else
11002   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11003 fi
11004 library_names_spec=
11005 libname_spec='lib$name'
11006 soname_spec=
11007 shrext_cmds=".so"
11008 postinstall_cmds=
11009 postuninstall_cmds=
11010 finish_cmds=
11011 finish_eval=
11012 shlibpath_var=
11013 shlibpath_overrides_runpath=unknown
11014 version_type=none
11015 dynamic_linker="$host_os ld.so"
11016 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11017 need_lib_prefix=unknown
11018 hardcode_into_libs=no
11019
11020 # when you set need_version to no, make sure it does not cause -set_version
11021 # flags to be left without arguments
11022 need_version=unknown
11023
11024 case $host_os in
11025 aix3*)
11026   version_type=linux # correct to gnu/linux during the next big refactor
11027   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11028   shlibpath_var=LIBPATH
11029
11030   # AIX 3 has no versioning support, so we append a major version to the name.
11031   soname_spec='${libname}${release}${shared_ext}$major'
11032   ;;
11033
11034 aix[4-9]*)
11035   version_type=linux # correct to gnu/linux during the next big refactor
11036   need_lib_prefix=no
11037   need_version=no
11038   hardcode_into_libs=yes
11039   if test "$host_cpu" = ia64; then
11040     # AIX 5 supports IA64
11041     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11042     shlibpath_var=LD_LIBRARY_PATH
11043   else
11044     # With GCC up to 2.95.x, collect2 would create an import file
11045     # for dependence libraries.  The import file would start with
11046     # the line `#! .'.  This would cause the generated library to
11047     # depend on `.', always an invalid library.  This was fixed in
11048     # development snapshots of GCC prior to 3.0.
11049     case $host_os in
11050       aix4 | aix4.[01] | aix4.[01].*)
11051       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11052            echo ' yes '
11053            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11054         :
11055       else
11056         can_build_shared=no
11057       fi
11058       ;;
11059     esac
11060     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11061     # soname into executable. Probably we can add versioning support to
11062     # collect2, so additional links can be useful in future.
11063     if test "$aix_use_runtimelinking" = yes; then
11064       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11065       # instead of lib<name>.a to let people know that these are not
11066       # typical AIX shared libraries.
11067       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11068     else
11069       # We preserve .a as extension for shared libraries through AIX4.2
11070       # and later when we are not doing run time linking.
11071       library_names_spec='${libname}${release}.a $libname.a'
11072       soname_spec='${libname}${release}${shared_ext}$major'
11073     fi
11074     shlibpath_var=LIBPATH
11075   fi
11076   ;;
11077
11078 amigaos*)
11079   case $host_cpu in
11080   powerpc)
11081     # Since July 2007 AmigaOS4 officially supports .so libraries.
11082     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11083     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11084     ;;
11085   m68k)
11086     library_names_spec='$libname.ixlibrary $libname.a'
11087     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11088     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'
11089     ;;
11090   esac
11091   ;;
11092
11093 beos*)
11094   library_names_spec='${libname}${shared_ext}'
11095   dynamic_linker="$host_os ld.so"
11096   shlibpath_var=LIBRARY_PATH
11097   ;;
11098
11099 bsdi[45]*)
11100   version_type=linux # correct to gnu/linux during the next big refactor
11101   need_version=no
11102   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11103   soname_spec='${libname}${release}${shared_ext}$major'
11104   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11105   shlibpath_var=LD_LIBRARY_PATH
11106   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11107   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11108   # the default ld.so.conf also contains /usr/contrib/lib and
11109   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11110   # libtool to hard-code these into programs
11111   ;;
11112
11113 cygwin* | mingw* | pw32* | cegcc*)
11114   version_type=windows
11115   shrext_cmds=".dll"
11116   need_version=no
11117   need_lib_prefix=no
11118
11119   case $GCC,$cc_basename in
11120   yes,*)
11121     # gcc
11122     library_names_spec='$libname.dll.a'
11123     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11124     postinstall_cmds='base_file=`basename \${file}`~
11125       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11126       dldir=$destdir/`dirname \$dlpath`~
11127       test -d \$dldir || mkdir -p \$dldir~
11128       $install_prog $dir/$dlname \$dldir/$dlname~
11129       chmod a+x \$dldir/$dlname~
11130       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11131         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11132       fi'
11133     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11134       dlpath=$dir/\$dldll~
11135        $RM \$dlpath'
11136     shlibpath_overrides_runpath=yes
11137
11138     case $host_os in
11139     cygwin*)
11140       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11141       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11142
11143       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11144       ;;
11145     mingw* | cegcc*)
11146       # MinGW DLLs use traditional 'lib' prefix
11147       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11148       ;;
11149     pw32*)
11150       # pw32 DLLs use 'pw' prefix rather than 'lib'
11151       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11152       ;;
11153     esac
11154     dynamic_linker='Win32 ld.exe'
11155     ;;
11156
11157   *,cl*)
11158     # Native MSVC
11159     libname_spec='$name'
11160     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11161     library_names_spec='${libname}.dll.lib'
11162
11163     case $build_os in
11164     mingw*)
11165       sys_lib_search_path_spec=
11166       lt_save_ifs=$IFS
11167       IFS=';'
11168       for lt_path in $LIB
11169       do
11170         IFS=$lt_save_ifs
11171         # Let DOS variable expansion print the short 8.3 style file name.
11172         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11173         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11174       done
11175       IFS=$lt_save_ifs
11176       # Convert to MSYS style.
11177       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11178       ;;
11179     cygwin*)
11180       # Convert to unix form, then to dos form, then back to unix form
11181       # but this time dos style (no spaces!) so that the unix form looks
11182       # like /cygdrive/c/PROGRA~1:/cygdr...
11183       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11184       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11185       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11186       ;;
11187     *)
11188       sys_lib_search_path_spec="$LIB"
11189       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11190         # It is most probably a Windows format PATH.
11191         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11192       else
11193         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11194       fi
11195       # FIXME: find the short name or the path components, as spaces are
11196       # common. (e.g. "Program Files" -> "PROGRA~1")
11197       ;;
11198     esac
11199
11200     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11201     postinstall_cmds='base_file=`basename \${file}`~
11202       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11203       dldir=$destdir/`dirname \$dlpath`~
11204       test -d \$dldir || mkdir -p \$dldir~
11205       $install_prog $dir/$dlname \$dldir/$dlname'
11206     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11207       dlpath=$dir/\$dldll~
11208        $RM \$dlpath'
11209     shlibpath_overrides_runpath=yes
11210     dynamic_linker='Win32 link.exe'
11211     ;;
11212
11213   *)
11214     # Assume MSVC wrapper
11215     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11216     dynamic_linker='Win32 ld.exe'
11217     ;;
11218   esac
11219   # FIXME: first we should search . and the directory the executable is in
11220   shlibpath_var=PATH
11221   ;;
11222
11223 darwin* | rhapsody*)
11224   dynamic_linker="$host_os dyld"
11225   version_type=darwin
11226   need_lib_prefix=no
11227   need_version=no
11228   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11229   soname_spec='${libname}${release}${major}$shared_ext'
11230   shlibpath_overrides_runpath=yes
11231   shlibpath_var=DYLD_LIBRARY_PATH
11232   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11233
11234   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11235   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11236   ;;
11237
11238 dgux*)
11239   version_type=linux # correct to gnu/linux during the next big refactor
11240   need_lib_prefix=no
11241   need_version=no
11242   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11243   soname_spec='${libname}${release}${shared_ext}$major'
11244   shlibpath_var=LD_LIBRARY_PATH
11245   ;;
11246
11247 freebsd* | dragonfly*)
11248   # DragonFly does not have aout.  When/if they implement a new
11249   # versioning mechanism, adjust this.
11250   if test -x /usr/bin/objformat; then
11251     objformat=`/usr/bin/objformat`
11252   else
11253     case $host_os in
11254     freebsd[23].*) objformat=aout ;;
11255     *) objformat=elf ;;
11256     esac
11257   fi
11258   version_type=freebsd-$objformat
11259   case $version_type in
11260     freebsd-elf*)
11261       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11262       need_version=no
11263       need_lib_prefix=no
11264       ;;
11265     freebsd-*)
11266       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11267       need_version=yes
11268       ;;
11269   esac
11270   shlibpath_var=LD_LIBRARY_PATH
11271   case $host_os in
11272   freebsd2.*)
11273     shlibpath_overrides_runpath=yes
11274     ;;
11275   freebsd3.[01]* | freebsdelf3.[01]*)
11276     shlibpath_overrides_runpath=yes
11277     hardcode_into_libs=yes
11278     ;;
11279   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11280   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11281     shlibpath_overrides_runpath=no
11282     hardcode_into_libs=yes
11283     ;;
11284   *) # from 4.6 on, and DragonFly
11285     shlibpath_overrides_runpath=yes
11286     hardcode_into_libs=yes
11287     ;;
11288   esac
11289   ;;
11290
11291 gnu*)
11292   version_type=linux # correct to gnu/linux during the next big refactor
11293   need_lib_prefix=no
11294   need_version=no
11295   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11296   soname_spec='${libname}${release}${shared_ext}$major'
11297   shlibpath_var=LD_LIBRARY_PATH
11298   shlibpath_overrides_runpath=no
11299   hardcode_into_libs=yes
11300   ;;
11301
11302 haiku*)
11303   version_type=linux # correct to gnu/linux during the next big refactor
11304   need_lib_prefix=no
11305   need_version=no
11306   dynamic_linker="$host_os runtime_loader"
11307   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11308   soname_spec='${libname}${release}${shared_ext}$major'
11309   shlibpath_var=LIBRARY_PATH
11310   shlibpath_overrides_runpath=yes
11311   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11312   hardcode_into_libs=yes
11313   ;;
11314
11315 hpux9* | hpux10* | hpux11*)
11316   # Give a soname corresponding to the major version so that dld.sl refuses to
11317   # link against other versions.
11318   version_type=sunos
11319   need_lib_prefix=no
11320   need_version=no
11321   case $host_cpu in
11322   ia64*)
11323     shrext_cmds='.so'
11324     hardcode_into_libs=yes
11325     dynamic_linker="$host_os dld.so"
11326     shlibpath_var=LD_LIBRARY_PATH
11327     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11328     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11329     soname_spec='${libname}${release}${shared_ext}$major'
11330     if test "X$HPUX_IA64_MODE" = X32; then
11331       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11332     else
11333       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11334     fi
11335     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11336     ;;
11337   hppa*64*)
11338     shrext_cmds='.sl'
11339     hardcode_into_libs=yes
11340     dynamic_linker="$host_os dld.sl"
11341     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11342     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11343     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11344     soname_spec='${libname}${release}${shared_ext}$major'
11345     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11346     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11347     ;;
11348   *)
11349     shrext_cmds='.sl'
11350     dynamic_linker="$host_os dld.sl"
11351     shlibpath_var=SHLIB_PATH
11352     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11353     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11354     soname_spec='${libname}${release}${shared_ext}$major'
11355     ;;
11356   esac
11357   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11358   postinstall_cmds='chmod 555 $lib'
11359   # or fails outright, so override atomically:
11360   install_override_mode=555
11361   ;;
11362
11363 interix[3-9]*)
11364   version_type=linux # correct to gnu/linux during the next big refactor
11365   need_lib_prefix=no
11366   need_version=no
11367   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11368   soname_spec='${libname}${release}${shared_ext}$major'
11369   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11370   shlibpath_var=LD_LIBRARY_PATH
11371   shlibpath_overrides_runpath=no
11372   hardcode_into_libs=yes
11373   ;;
11374
11375 irix5* | irix6* | nonstopux*)
11376   case $host_os in
11377     nonstopux*) version_type=nonstopux ;;
11378     *)
11379         if test "$lt_cv_prog_gnu_ld" = yes; then
11380                 version_type=linux # correct to gnu/linux during the next big refactor
11381         else
11382                 version_type=irix
11383         fi ;;
11384   esac
11385   need_lib_prefix=no
11386   need_version=no
11387   soname_spec='${libname}${release}${shared_ext}$major'
11388   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11389   case $host_os in
11390   irix5* | nonstopux*)
11391     libsuff= shlibsuff=
11392     ;;
11393   *)
11394     case $LD in # libtool.m4 will add one of these switches to LD
11395     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11396       libsuff= shlibsuff= libmagic=32-bit;;
11397     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11398       libsuff=32 shlibsuff=N32 libmagic=N32;;
11399     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11400       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11401     *) libsuff= shlibsuff= libmagic=never-match;;
11402     esac
11403     ;;
11404   esac
11405   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11406   shlibpath_overrides_runpath=no
11407   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11408   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11409   hardcode_into_libs=yes
11410   ;;
11411
11412 # No shared lib support for Linux oldld, aout, or coff.
11413 linux*oldld* | linux*aout* | linux*coff*)
11414   dynamic_linker=no
11415   ;;
11416
11417 linux*android*)
11418   version_type=none # Android doesn't support versioned libraries.
11419   need_lib_prefix=no
11420   need_version=no
11421   library_names_spec='$libname$release$shared_ext'
11422   soname_spec='$libname$release$shared_ext'
11423   finish_cmds=
11424   shlibpath_var=LD_LIBRARY_PATH
11425   shlibpath_overrides_runpath=yes
11426
11427   # This implies no fast_install, which is unacceptable.
11428   # Some rework will be needed to allow for fast_install
11429   # before this can be enabled.
11430   hardcode_into_libs=yes
11431
11432   dynamic_linker='Android linker'
11433   # Don't embed -rpath directories since the linker doesn't support them.
11434   hardcode_libdir_flag_spec='-L$libdir'
11435   ;;
11436
11437 # This must be glibc/ELF.
11438 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11439   version_type=linux # correct to gnu/linux during the next big refactor
11440   need_lib_prefix=no
11441   need_version=no
11442   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11443   soname_spec='${libname}${release}${shared_ext}$major'
11444   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11445   shlibpath_var=LD_LIBRARY_PATH
11446   shlibpath_overrides_runpath=no
11447
11448   # Some binutils ld are patched to set DT_RUNPATH
11449   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11450   $as_echo_n "(cached) " >&6
11451 else
11452   lt_cv_shlibpath_overrides_runpath=no
11453     save_LDFLAGS=$LDFLAGS
11454     save_libdir=$libdir
11455     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11456          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11457     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11458 /* end confdefs.h.  */
11459
11460 int
11461 main ()
11462 {
11463
11464   ;
11465   return 0;
11466 }
11467 _ACEOF
11468 if ac_fn_c_try_link "$LINENO"; then :
11469   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11470   lt_cv_shlibpath_overrides_runpath=yes
11471 fi
11472 fi
11473 rm -f core conftest.err conftest.$ac_objext \
11474     conftest$ac_exeext conftest.$ac_ext
11475     LDFLAGS=$save_LDFLAGS
11476     libdir=$save_libdir
11477
11478 fi
11479
11480   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11481
11482   # This implies no fast_install, which is unacceptable.
11483   # Some rework will be needed to allow for fast_install
11484   # before this can be enabled.
11485   hardcode_into_libs=yes
11486
11487   # Append ld.so.conf contents to the search path
11488   if test -f /etc/ld.so.conf; then
11489     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' ' '`
11490     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11491   fi
11492
11493   # We used to test for /lib/ld.so.1 and disable shared libraries on
11494   # powerpc, because MkLinux only supported shared libraries with the
11495   # GNU dynamic linker.  Since this was broken with cross compilers,
11496   # most powerpc-linux boxes support dynamic linking these days and
11497   # people can always --disable-shared, the test was removed, and we
11498   # assume the GNU/Linux dynamic linker is in use.
11499   dynamic_linker='GNU/Linux ld.so'
11500   ;;
11501
11502 netbsdelf*-gnu)
11503   version_type=linux
11504   need_lib_prefix=no
11505   need_version=no
11506   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11507   soname_spec='${libname}${release}${shared_ext}$major'
11508   shlibpath_var=LD_LIBRARY_PATH
11509   shlibpath_overrides_runpath=no
11510   hardcode_into_libs=yes
11511   dynamic_linker='NetBSD ld.elf_so'
11512   ;;
11513
11514 netbsd*)
11515   version_type=sunos
11516   need_lib_prefix=no
11517   need_version=no
11518   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11519     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11520     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11521     dynamic_linker='NetBSD (a.out) ld.so'
11522   else
11523     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11524     soname_spec='${libname}${release}${shared_ext}$major'
11525     dynamic_linker='NetBSD ld.elf_so'
11526   fi
11527   shlibpath_var=LD_LIBRARY_PATH
11528   shlibpath_overrides_runpath=yes
11529   hardcode_into_libs=yes
11530   ;;
11531
11532 newsos6)
11533   version_type=linux # correct to gnu/linux during the next big refactor
11534   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11535   shlibpath_var=LD_LIBRARY_PATH
11536   shlibpath_overrides_runpath=yes
11537   ;;
11538
11539 *nto* | *qnx*)
11540   version_type=qnx
11541   need_lib_prefix=no
11542   need_version=no
11543   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11544   soname_spec='${libname}${release}${shared_ext}$major'
11545   shlibpath_var=LD_LIBRARY_PATH
11546   shlibpath_overrides_runpath=no
11547   hardcode_into_libs=yes
11548   dynamic_linker='ldqnx.so'
11549   ;;
11550
11551 openbsd*)
11552   version_type=sunos
11553   sys_lib_dlsearch_path_spec="/usr/lib"
11554   need_lib_prefix=no
11555   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11556   case $host_os in
11557     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11558     *)                          need_version=no  ;;
11559   esac
11560   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11561   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11562   shlibpath_var=LD_LIBRARY_PATH
11563   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11564     case $host_os in
11565       openbsd2.[89] | openbsd2.[89].*)
11566         shlibpath_overrides_runpath=no
11567         ;;
11568       *)
11569         shlibpath_overrides_runpath=yes
11570         ;;
11571       esac
11572   else
11573     shlibpath_overrides_runpath=yes
11574   fi
11575   ;;
11576
11577 os2*)
11578   libname_spec='$name'
11579   shrext_cmds=".dll"
11580   need_lib_prefix=no
11581   library_names_spec='$libname${shared_ext} $libname.a'
11582   dynamic_linker='OS/2 ld.exe'
11583   shlibpath_var=LIBPATH
11584   ;;
11585
11586 osf3* | osf4* | osf5*)
11587   version_type=osf
11588   need_lib_prefix=no
11589   need_version=no
11590   soname_spec='${libname}${release}${shared_ext}$major'
11591   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11592   shlibpath_var=LD_LIBRARY_PATH
11593   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11594   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11595   ;;
11596
11597 rdos*)
11598   dynamic_linker=no
11599   ;;
11600
11601 solaris*)
11602   version_type=linux # correct to gnu/linux during the next big refactor
11603   need_lib_prefix=no
11604   need_version=no
11605   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11606   soname_spec='${libname}${release}${shared_ext}$major'
11607   shlibpath_var=LD_LIBRARY_PATH
11608   shlibpath_overrides_runpath=yes
11609   hardcode_into_libs=yes
11610   # ldd complains unless libraries are executable
11611   postinstall_cmds='chmod +x $lib'
11612   ;;
11613
11614 sunos4*)
11615   version_type=sunos
11616   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11617   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11618   shlibpath_var=LD_LIBRARY_PATH
11619   shlibpath_overrides_runpath=yes
11620   if test "$with_gnu_ld" = yes; then
11621     need_lib_prefix=no
11622   fi
11623   need_version=yes
11624   ;;
11625
11626 sysv4 | sysv4.3*)
11627   version_type=linux # correct to gnu/linux during the next big refactor
11628   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11629   soname_spec='${libname}${release}${shared_ext}$major'
11630   shlibpath_var=LD_LIBRARY_PATH
11631   case $host_vendor in
11632     sni)
11633       shlibpath_overrides_runpath=no
11634       need_lib_prefix=no
11635       runpath_var=LD_RUN_PATH
11636       ;;
11637     siemens)
11638       need_lib_prefix=no
11639       ;;
11640     motorola)
11641       need_lib_prefix=no
11642       need_version=no
11643       shlibpath_overrides_runpath=no
11644       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11645       ;;
11646   esac
11647   ;;
11648
11649 sysv4*MP*)
11650   if test -d /usr/nec ;then
11651     version_type=linux # correct to gnu/linux during the next big refactor
11652     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11653     soname_spec='$libname${shared_ext}.$major'
11654     shlibpath_var=LD_LIBRARY_PATH
11655   fi
11656   ;;
11657
11658 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11659   version_type=freebsd-elf
11660   need_lib_prefix=no
11661   need_version=no
11662   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11663   soname_spec='${libname}${release}${shared_ext}$major'
11664   shlibpath_var=LD_LIBRARY_PATH
11665   shlibpath_overrides_runpath=yes
11666   hardcode_into_libs=yes
11667   if test "$with_gnu_ld" = yes; then
11668     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11669   else
11670     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11671     case $host_os in
11672       sco3.2v5*)
11673         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11674         ;;
11675     esac
11676   fi
11677   sys_lib_dlsearch_path_spec='/usr/lib'
11678   ;;
11679
11680 tpf*)
11681   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11682   version_type=linux # correct to gnu/linux during the next big refactor
11683   need_lib_prefix=no
11684   need_version=no
11685   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11686   shlibpath_var=LD_LIBRARY_PATH
11687   shlibpath_overrides_runpath=no
11688   hardcode_into_libs=yes
11689   ;;
11690
11691 uts4*)
11692   version_type=linux # correct to gnu/linux during the next big refactor
11693   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11694   soname_spec='${libname}${release}${shared_ext}$major'
11695   shlibpath_var=LD_LIBRARY_PATH
11696   ;;
11697
11698 *)
11699   dynamic_linker=no
11700   ;;
11701 esac
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11703 $as_echo "$dynamic_linker" >&6; }
11704 test "$dynamic_linker" = no && can_build_shared=no
11705
11706 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11707 if test "$GCC" = yes; then
11708   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11709 fi
11710
11711 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11712   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11713 fi
11714 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11715   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11716 fi
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11810 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11811 hardcode_action=
11812 if test -n "$hardcode_libdir_flag_spec" ||
11813    test -n "$runpath_var" ||
11814    test "X$hardcode_automatic" = "Xyes" ; then
11815
11816   # We can hardcode non-existent directories.
11817   if test "$hardcode_direct" != no &&
11818      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11819      # have to relink, otherwise we might link with an installed library
11820      # when we should be linking with a yet-to-be-installed one
11821      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11822      test "$hardcode_minus_L" != no; then
11823     # Linking always hardcodes the temporary library directory.
11824     hardcode_action=relink
11825   else
11826     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11827     hardcode_action=immediate
11828   fi
11829 else
11830   # We cannot hardcode anything, or else we can only hardcode existing
11831   # directories.
11832   hardcode_action=unsupported
11833 fi
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11835 $as_echo "$hardcode_action" >&6; }
11836
11837 if test "$hardcode_action" = relink ||
11838    test "$inherit_rpath" = yes; then
11839   # Fast installation is not supported
11840   enable_fast_install=no
11841 elif test "$shlibpath_overrides_runpath" = yes ||
11842      test "$enable_shared" = no; then
11843   # Fast installation is not necessary
11844   enable_fast_install=needless
11845 fi
11846
11847
11848
11849
11850
11851
11852   if test "x$enable_dlopen" != xyes; then
11853   enable_dlopen=unknown
11854   enable_dlopen_self=unknown
11855   enable_dlopen_self_static=unknown
11856 else
11857   lt_cv_dlopen=no
11858   lt_cv_dlopen_libs=
11859
11860   case $host_os in
11861   beos*)
11862     lt_cv_dlopen="load_add_on"
11863     lt_cv_dlopen_libs=
11864     lt_cv_dlopen_self=yes
11865     ;;
11866
11867   mingw* | pw32* | cegcc*)
11868     lt_cv_dlopen="LoadLibrary"
11869     lt_cv_dlopen_libs=
11870     ;;
11871
11872   cygwin*)
11873     lt_cv_dlopen="dlopen"
11874     lt_cv_dlopen_libs=
11875     ;;
11876
11877   darwin*)
11878   # if libdl is installed we need to link against it
11879     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11880 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11881 if ${ac_cv_lib_dl_dlopen+:} false; then :
11882   $as_echo_n "(cached) " >&6
11883 else
11884   ac_check_lib_save_LIBS=$LIBS
11885 LIBS="-ldl  $LIBS"
11886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11887 /* end confdefs.h.  */
11888
11889 /* Override any GCC internal prototype to avoid an error.
11890    Use char because int might match the return type of a GCC
11891    builtin and then its argument prototype would still apply.  */
11892 #ifdef __cplusplus
11893 extern "C"
11894 #endif
11895 char dlopen ();
11896 int
11897 main ()
11898 {
11899 return dlopen ();
11900   ;
11901   return 0;
11902 }
11903 _ACEOF
11904 if ac_fn_c_try_link "$LINENO"; then :
11905   ac_cv_lib_dl_dlopen=yes
11906 else
11907   ac_cv_lib_dl_dlopen=no
11908 fi
11909 rm -f core conftest.err conftest.$ac_objext \
11910     conftest$ac_exeext conftest.$ac_ext
11911 LIBS=$ac_check_lib_save_LIBS
11912 fi
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11914 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11915 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11916   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11917 else
11918
11919     lt_cv_dlopen="dyld"
11920     lt_cv_dlopen_libs=
11921     lt_cv_dlopen_self=yes
11922
11923 fi
11924
11925     ;;
11926
11927   *)
11928     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11929 if test "x$ac_cv_func_shl_load" = xyes; then :
11930   lt_cv_dlopen="shl_load"
11931 else
11932   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11933 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11934 if ${ac_cv_lib_dld_shl_load+:} false; then :
11935   $as_echo_n "(cached) " >&6
11936 else
11937   ac_check_lib_save_LIBS=$LIBS
11938 LIBS="-ldld  $LIBS"
11939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11940 /* end confdefs.h.  */
11941
11942 /* Override any GCC internal prototype to avoid an error.
11943    Use char because int might match the return type of a GCC
11944    builtin and then its argument prototype would still apply.  */
11945 #ifdef __cplusplus
11946 extern "C"
11947 #endif
11948 char shl_load ();
11949 int
11950 main ()
11951 {
11952 return shl_load ();
11953   ;
11954   return 0;
11955 }
11956 _ACEOF
11957 if ac_fn_c_try_link "$LINENO"; then :
11958   ac_cv_lib_dld_shl_load=yes
11959 else
11960   ac_cv_lib_dld_shl_load=no
11961 fi
11962 rm -f core conftest.err conftest.$ac_objext \
11963     conftest$ac_exeext conftest.$ac_ext
11964 LIBS=$ac_check_lib_save_LIBS
11965 fi
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11967 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11968 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11969   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11970 else
11971   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11972 if test "x$ac_cv_func_dlopen" = xyes; then :
11973   lt_cv_dlopen="dlopen"
11974 else
11975   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11976 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11977 if ${ac_cv_lib_dl_dlopen+:} false; then :
11978   $as_echo_n "(cached) " >&6
11979 else
11980   ac_check_lib_save_LIBS=$LIBS
11981 LIBS="-ldl  $LIBS"
11982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11983 /* end confdefs.h.  */
11984
11985 /* Override any GCC internal prototype to avoid an error.
11986    Use char because int might match the return type of a GCC
11987    builtin and then its argument prototype would still apply.  */
11988 #ifdef __cplusplus
11989 extern "C"
11990 #endif
11991 char dlopen ();
11992 int
11993 main ()
11994 {
11995 return dlopen ();
11996   ;
11997   return 0;
11998 }
11999 _ACEOF
12000 if ac_fn_c_try_link "$LINENO"; then :
12001   ac_cv_lib_dl_dlopen=yes
12002 else
12003   ac_cv_lib_dl_dlopen=no
12004 fi
12005 rm -f core conftest.err conftest.$ac_objext \
12006     conftest$ac_exeext conftest.$ac_ext
12007 LIBS=$ac_check_lib_save_LIBS
12008 fi
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12010 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12011 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12012   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12013 else
12014   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12015 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12016 if ${ac_cv_lib_svld_dlopen+:} false; then :
12017   $as_echo_n "(cached) " >&6
12018 else
12019   ac_check_lib_save_LIBS=$LIBS
12020 LIBS="-lsvld  $LIBS"
12021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12022 /* end confdefs.h.  */
12023
12024 /* Override any GCC internal prototype to avoid an error.
12025    Use char because int might match the return type of a GCC
12026    builtin and then its argument prototype would still apply.  */
12027 #ifdef __cplusplus
12028 extern "C"
12029 #endif
12030 char dlopen ();
12031 int
12032 main ()
12033 {
12034 return dlopen ();
12035   ;
12036   return 0;
12037 }
12038 _ACEOF
12039 if ac_fn_c_try_link "$LINENO"; then :
12040   ac_cv_lib_svld_dlopen=yes
12041 else
12042   ac_cv_lib_svld_dlopen=no
12043 fi
12044 rm -f core conftest.err conftest.$ac_objext \
12045     conftest$ac_exeext conftest.$ac_ext
12046 LIBS=$ac_check_lib_save_LIBS
12047 fi
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12049 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12050 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12051   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12052 else
12053   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12054 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12055 if ${ac_cv_lib_dld_dld_link+:} false; then :
12056   $as_echo_n "(cached) " >&6
12057 else
12058   ac_check_lib_save_LIBS=$LIBS
12059 LIBS="-ldld  $LIBS"
12060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12061 /* end confdefs.h.  */
12062
12063 /* Override any GCC internal prototype to avoid an error.
12064    Use char because int might match the return type of a GCC
12065    builtin and then its argument prototype would still apply.  */
12066 #ifdef __cplusplus
12067 extern "C"
12068 #endif
12069 char dld_link ();
12070 int
12071 main ()
12072 {
12073 return dld_link ();
12074   ;
12075   return 0;
12076 }
12077 _ACEOF
12078 if ac_fn_c_try_link "$LINENO"; then :
12079   ac_cv_lib_dld_dld_link=yes
12080 else
12081   ac_cv_lib_dld_dld_link=no
12082 fi
12083 rm -f core conftest.err conftest.$ac_objext \
12084     conftest$ac_exeext conftest.$ac_ext
12085 LIBS=$ac_check_lib_save_LIBS
12086 fi
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12088 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12089 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12090   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12091 fi
12092
12093
12094 fi
12095
12096
12097 fi
12098
12099
12100 fi
12101
12102
12103 fi
12104
12105
12106 fi
12107
12108     ;;
12109   esac
12110
12111   if test "x$lt_cv_dlopen" != xno; then
12112     enable_dlopen=yes
12113   else
12114     enable_dlopen=no
12115   fi
12116
12117   case $lt_cv_dlopen in
12118   dlopen)
12119     save_CPPFLAGS="$CPPFLAGS"
12120     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12121
12122     save_LDFLAGS="$LDFLAGS"
12123     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12124
12125     save_LIBS="$LIBS"
12126     LIBS="$lt_cv_dlopen_libs $LIBS"
12127
12128     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12129 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12130 if ${lt_cv_dlopen_self+:} false; then :
12131   $as_echo_n "(cached) " >&6
12132 else
12133           if test "$cross_compiling" = yes; then :
12134   lt_cv_dlopen_self=cross
12135 else
12136   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12137   lt_status=$lt_dlunknown
12138   cat > conftest.$ac_ext <<_LT_EOF
12139 #line $LINENO "configure"
12140 #include "confdefs.h"
12141
12142 #if HAVE_DLFCN_H
12143 #include <dlfcn.h>
12144 #endif
12145
12146 #include <stdio.h>
12147
12148 #ifdef RTLD_GLOBAL
12149 #  define LT_DLGLOBAL           RTLD_GLOBAL
12150 #else
12151 #  ifdef DL_GLOBAL
12152 #    define LT_DLGLOBAL         DL_GLOBAL
12153 #  else
12154 #    define LT_DLGLOBAL         0
12155 #  endif
12156 #endif
12157
12158 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12159    find out it does not work in some platform. */
12160 #ifndef LT_DLLAZY_OR_NOW
12161 #  ifdef RTLD_LAZY
12162 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12163 #  else
12164 #    ifdef DL_LAZY
12165 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12166 #    else
12167 #      ifdef RTLD_NOW
12168 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12169 #      else
12170 #        ifdef DL_NOW
12171 #          define LT_DLLAZY_OR_NOW      DL_NOW
12172 #        else
12173 #          define LT_DLLAZY_OR_NOW      0
12174 #        endif
12175 #      endif
12176 #    endif
12177 #  endif
12178 #endif
12179
12180 /* When -fvisbility=hidden is used, assume the code has been annotated
12181    correspondingly for the symbols needed.  */
12182 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12183 int fnord () __attribute__((visibility("default")));
12184 #endif
12185
12186 int fnord () { return 42; }
12187 int main ()
12188 {
12189   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12190   int status = $lt_dlunknown;
12191
12192   if (self)
12193     {
12194       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12195       else
12196         {
12197           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12198           else puts (dlerror ());
12199         }
12200       /* dlclose (self); */
12201     }
12202   else
12203     puts (dlerror ());
12204
12205   return status;
12206 }
12207 _LT_EOF
12208   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12209   (eval $ac_link) 2>&5
12210   ac_status=$?
12211   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12212   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12213     (./conftest; exit; ) >&5 2>/dev/null
12214     lt_status=$?
12215     case x$lt_status in
12216       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12217       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12218       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12219     esac
12220   else :
12221     # compilation failed
12222     lt_cv_dlopen_self=no
12223   fi
12224 fi
12225 rm -fr conftest*
12226
12227
12228 fi
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12230 $as_echo "$lt_cv_dlopen_self" >&6; }
12231
12232     if test "x$lt_cv_dlopen_self" = xyes; then
12233       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12234       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12235 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12236 if ${lt_cv_dlopen_self_static+:} false; then :
12237   $as_echo_n "(cached) " >&6
12238 else
12239           if test "$cross_compiling" = yes; then :
12240   lt_cv_dlopen_self_static=cross
12241 else
12242   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12243   lt_status=$lt_dlunknown
12244   cat > conftest.$ac_ext <<_LT_EOF
12245 #line $LINENO "configure"
12246 #include "confdefs.h"
12247
12248 #if HAVE_DLFCN_H
12249 #include <dlfcn.h>
12250 #endif
12251
12252 #include <stdio.h>
12253
12254 #ifdef RTLD_GLOBAL
12255 #  define LT_DLGLOBAL           RTLD_GLOBAL
12256 #else
12257 #  ifdef DL_GLOBAL
12258 #    define LT_DLGLOBAL         DL_GLOBAL
12259 #  else
12260 #    define LT_DLGLOBAL         0
12261 #  endif
12262 #endif
12263
12264 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12265    find out it does not work in some platform. */
12266 #ifndef LT_DLLAZY_OR_NOW
12267 #  ifdef RTLD_LAZY
12268 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12269 #  else
12270 #    ifdef DL_LAZY
12271 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12272 #    else
12273 #      ifdef RTLD_NOW
12274 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12275 #      else
12276 #        ifdef DL_NOW
12277 #          define LT_DLLAZY_OR_NOW      DL_NOW
12278 #        else
12279 #          define LT_DLLAZY_OR_NOW      0
12280 #        endif
12281 #      endif
12282 #    endif
12283 #  endif
12284 #endif
12285
12286 /* When -fvisbility=hidden is used, assume the code has been annotated
12287    correspondingly for the symbols needed.  */
12288 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12289 int fnord () __attribute__((visibility("default")));
12290 #endif
12291
12292 int fnord () { return 42; }
12293 int main ()
12294 {
12295   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12296   int status = $lt_dlunknown;
12297
12298   if (self)
12299     {
12300       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12301       else
12302         {
12303           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12304           else puts (dlerror ());
12305         }
12306       /* dlclose (self); */
12307     }
12308   else
12309     puts (dlerror ());
12310
12311   return status;
12312 }
12313 _LT_EOF
12314   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12315   (eval $ac_link) 2>&5
12316   ac_status=$?
12317   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12318   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12319     (./conftest; exit; ) >&5 2>/dev/null
12320     lt_status=$?
12321     case x$lt_status in
12322       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12323       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12324       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12325     esac
12326   else :
12327     # compilation failed
12328     lt_cv_dlopen_self_static=no
12329   fi
12330 fi
12331 rm -fr conftest*
12332
12333
12334 fi
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12336 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12337     fi
12338
12339     CPPFLAGS="$save_CPPFLAGS"
12340     LDFLAGS="$save_LDFLAGS"
12341     LIBS="$save_LIBS"
12342     ;;
12343   esac
12344
12345   case $lt_cv_dlopen_self in
12346   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12347   *) enable_dlopen_self=unknown ;;
12348   esac
12349
12350   case $lt_cv_dlopen_self_static in
12351   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12352   *) enable_dlopen_self_static=unknown ;;
12353   esac
12354 fi
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372 striplib=
12373 old_striplib=
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12375 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12376 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12377   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12378   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12380 $as_echo "yes" >&6; }
12381 else
12382 # FIXME - insert some real tests, host_os isn't really good enough
12383   case $host_os in
12384   darwin*)
12385     if test -n "$STRIP" ; then
12386       striplib="$STRIP -x"
12387       old_striplib="$STRIP -S"
12388       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12389 $as_echo "yes" >&6; }
12390     else
12391       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12392 $as_echo "no" >&6; }
12393     fi
12394     ;;
12395   *)
12396     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12397 $as_echo "no" >&6; }
12398     ;;
12399   esac
12400 fi
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413   # Report which library types will actually be built
12414   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12415 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12417 $as_echo "$can_build_shared" >&6; }
12418
12419   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12420 $as_echo_n "checking whether to build shared libraries... " >&6; }
12421   test "$can_build_shared" = "no" && enable_shared=no
12422
12423   # On AIX, shared libraries and static libraries use the same namespace, and
12424   # are all built from PIC.
12425   case $host_os in
12426   aix3*)
12427     test "$enable_shared" = yes && enable_static=no
12428     if test -n "$RANLIB"; then
12429       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12430       postinstall_cmds='$RANLIB $lib'
12431     fi
12432     ;;
12433
12434   aix[4-9]*)
12435     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12436       test "$enable_shared" = yes && enable_static=no
12437     fi
12438     ;;
12439   esac
12440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12441 $as_echo "$enable_shared" >&6; }
12442
12443   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12444 $as_echo_n "checking whether to build static libraries... " >&6; }
12445   # Make sure either enable_shared or enable_static is yes.
12446   test "$enable_shared" = yes || enable_static=yes
12447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12448 $as_echo "$enable_static" >&6; }
12449
12450
12451
12452
12453 fi
12454 ac_ext=c
12455 ac_cpp='$CPP $CPPFLAGS'
12456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12459
12460 CC="$lt_save_CC"
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476         ac_config_commands="$ac_config_commands libtool"
12477
12478
12479
12480
12481 # Only expand once:
12482
12483
12484 if test -n "$ac_tool_prefix"; then
12485   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
12486 set dummy ${ac_tool_prefix}windres; ac_word=$2
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12488 $as_echo_n "checking for $ac_word... " >&6; }
12489 if ${ac_cv_prog_RC+:} false; then :
12490   $as_echo_n "(cached) " >&6
12491 else
12492   if test -n "$RC"; then
12493   ac_cv_prog_RC="$RC" # Let the user override the test.
12494 else
12495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12496 for as_dir in $PATH
12497 do
12498   IFS=$as_save_IFS
12499   test -z "$as_dir" && as_dir=.
12500     for ac_exec_ext in '' $ac_executable_extensions; do
12501   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12502     ac_cv_prog_RC="${ac_tool_prefix}windres"
12503     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12504     break 2
12505   fi
12506 done
12507   done
12508 IFS=$as_save_IFS
12509
12510 fi
12511 fi
12512 RC=$ac_cv_prog_RC
12513 if test -n "$RC"; then
12514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
12515 $as_echo "$RC" >&6; }
12516 else
12517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12518 $as_echo "no" >&6; }
12519 fi
12520
12521
12522 fi
12523 if test -z "$ac_cv_prog_RC"; then
12524   ac_ct_RC=$RC
12525   # Extract the first word of "windres", so it can be a program name with args.
12526 set dummy windres; ac_word=$2
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12528 $as_echo_n "checking for $ac_word... " >&6; }
12529 if ${ac_cv_prog_ac_ct_RC+:} false; then :
12530   $as_echo_n "(cached) " >&6
12531 else
12532   if test -n "$ac_ct_RC"; then
12533   ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
12534 else
12535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12536 for as_dir in $PATH
12537 do
12538   IFS=$as_save_IFS
12539   test -z "$as_dir" && as_dir=.
12540     for ac_exec_ext in '' $ac_executable_extensions; do
12541   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12542     ac_cv_prog_ac_ct_RC="windres"
12543     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12544     break 2
12545   fi
12546 done
12547   done
12548 IFS=$as_save_IFS
12549
12550 fi
12551 fi
12552 ac_ct_RC=$ac_cv_prog_ac_ct_RC
12553 if test -n "$ac_ct_RC"; then
12554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
12555 $as_echo "$ac_ct_RC" >&6; }
12556 else
12557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12558 $as_echo "no" >&6; }
12559 fi
12560
12561   if test "x$ac_ct_RC" = x; then
12562     RC=""
12563   else
12564     case $cross_compiling:$ac_tool_warned in
12565 yes:)
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12567 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12568 ac_tool_warned=yes ;;
12569 esac
12570     RC=$ac_ct_RC
12571   fi
12572 else
12573   RC="$ac_cv_prog_RC"
12574 fi
12575
12576
12577
12578
12579 # Source file extension for RC test sources.
12580 ac_ext=rc
12581
12582 # Object file extension for compiled RC test sources.
12583 objext=o
12584 objext_RC=$objext
12585
12586 # Code to be used in simple compile tests
12587 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
12588
12589 # Code to be used in simple link tests
12590 lt_simple_link_test_code="$lt_simple_compile_test_code"
12591
12592 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12593
12594
12595
12596
12597
12598
12599 # If no C compiler was specified, use CC.
12600 LTCC=${LTCC-"$CC"}
12601
12602 # If no C compiler flags were specified, use CFLAGS.
12603 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12604
12605 # Allow CC to be a program name with arguments.
12606 compiler=$CC
12607
12608
12609 # save warnings/boilerplate of simple test code
12610 ac_outfile=conftest.$ac_objext
12611 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12612 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12613 _lt_compiler_boilerplate=`cat conftest.err`
12614 $RM conftest*
12615
12616 ac_outfile=conftest.$ac_objext
12617 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12618 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12619 _lt_linker_boilerplate=`cat conftest.err`
12620 $RM -r conftest*
12621
12622
12623 # Allow CC to be a program name with arguments.
12624 lt_save_CC="$CC"
12625 lt_save_CFLAGS=$CFLAGS
12626 lt_save_GCC=$GCC
12627 GCC=
12628 CC=${RC-"windres"}
12629 CFLAGS=
12630 compiler=$CC
12631 compiler_RC=$CC
12632 for cc_temp in $compiler""; do
12633   case $cc_temp in
12634     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12635     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12636     \-*) ;;
12637     *) break;;
12638   esac
12639 done
12640 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12641
12642 lt_cv_prog_compiler_c_o_RC=yes
12643
12644 if test -n "$compiler"; then
12645   :
12646
12647
12648
12649 fi
12650
12651 GCC=$lt_save_GCC
12652 ac_ext=c
12653 ac_cpp='$CPP $CPPFLAGS'
12654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12657
12658 CC=$lt_save_CC
12659 CFLAGS=$lt_save_CFLAGS
12660
12661
12662
12663 # We need to compile and run a program on the build machine.
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc for build" >&5
12665 $as_echo_n "checking for cc for build... " >&6; }
12666 if test "$cross_compiling" = "yes"; then
12667   CC_FOR_BUILD="${CC_FOR_BUILD-cc}"
12668 else
12669   CC_FOR_BUILD="${CC_FOR_BUILD-$CC}"
12670 fi
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
12672 $as_echo "$CC_FOR_BUILD" >&6; }
12673
12674
12675
12676
12677
12678
12679 # Note, that autogen.sh greps for the next line.
12680
12681
12682   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12683 $as_echo_n "checking whether NLS is requested... " >&6; }
12684     # Check whether --enable-nls was given.
12685 if test "${enable_nls+set}" = set; then :
12686   enableval=$enable_nls; USE_NLS=$enableval
12687 else
12688   USE_NLS=yes
12689 fi
12690
12691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12692 $as_echo "$USE_NLS" >&6; }
12693
12694
12695
12696
12697       GETTEXT_MACRO_VERSION=0.17
12698
12699
12700
12701
12702 # Prepare PATH_SEPARATOR.
12703 # The user is always right.
12704 if test "${PATH_SEPARATOR+set}" != set; then
12705   echo "#! /bin/sh" >conf$$.sh
12706   echo  "exit 0"   >>conf$$.sh
12707   chmod +x conf$$.sh
12708   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12709     PATH_SEPARATOR=';'
12710   else
12711     PATH_SEPARATOR=:
12712   fi
12713   rm -f conf$$.sh
12714 fi
12715
12716 # Find out how to test for executable files. Don't use a zero-byte file,
12717 # as systems may use methods other than mode bits to determine executability.
12718 cat >conf$$.file <<_ASEOF
12719 #! /bin/sh
12720 exit 0
12721 _ASEOF
12722 chmod +x conf$$.file
12723 if test -x conf$$.file >/dev/null 2>&1; then
12724   ac_executable_p="test -x"
12725 else
12726   ac_executable_p="test -f"
12727 fi
12728 rm -f conf$$.file
12729
12730 # Extract the first word of "msgfmt", so it can be a program name with args.
12731 set dummy msgfmt; ac_word=$2
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12733 $as_echo_n "checking for $ac_word... " >&6; }
12734 if ${ac_cv_path_MSGFMT+:} false; then :
12735   $as_echo_n "(cached) " >&6
12736 else
12737   case "$MSGFMT" in
12738   [\\/]* | ?:[\\/]*)
12739     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12740     ;;
12741   *)
12742     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12743     for ac_dir in $PATH; do
12744       IFS="$ac_save_IFS"
12745       test -z "$ac_dir" && ac_dir=.
12746       for ac_exec_ext in '' $ac_executable_extensions; do
12747         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12748           echo "$as_me: trying $ac_dir/$ac_word..." >&5
12749           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
12750      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12751             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12752             break 2
12753           fi
12754         fi
12755       done
12756     done
12757     IFS="$ac_save_IFS"
12758   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12759     ;;
12760 esac
12761 fi
12762 MSGFMT="$ac_cv_path_MSGFMT"
12763 if test "$MSGFMT" != ":"; then
12764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12765 $as_echo "$MSGFMT" >&6; }
12766 else
12767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12768 $as_echo "no" >&6; }
12769 fi
12770
12771   # Extract the first word of "gmsgfmt", so it can be a program name with args.
12772 set dummy gmsgfmt; ac_word=$2
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12774 $as_echo_n "checking for $ac_word... " >&6; }
12775 if ${ac_cv_path_GMSGFMT+:} false; then :
12776   $as_echo_n "(cached) " >&6
12777 else
12778   case $GMSGFMT in
12779   [\\/]* | ?:[\\/]*)
12780   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12781   ;;
12782   *)
12783   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12784 for as_dir in $PATH
12785 do
12786   IFS=$as_save_IFS
12787   test -z "$as_dir" && as_dir=.
12788     for ac_exec_ext in '' $ac_executable_extensions; do
12789   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12790     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12791     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12792     break 2
12793   fi
12794 done
12795   done
12796 IFS=$as_save_IFS
12797
12798   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12799   ;;
12800 esac
12801 fi
12802 GMSGFMT=$ac_cv_path_GMSGFMT
12803 if test -n "$GMSGFMT"; then
12804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12805 $as_echo "$GMSGFMT" >&6; }
12806 else
12807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12808 $as_echo "no" >&6; }
12809 fi
12810
12811
12812
12813     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12814     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
12815     *) MSGFMT_015=$MSGFMT ;;
12816   esac
12817
12818   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12819     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
12820     *) GMSGFMT_015=$GMSGFMT ;;
12821   esac
12822
12823
12824
12825 # Prepare PATH_SEPARATOR.
12826 # The user is always right.
12827 if test "${PATH_SEPARATOR+set}" != set; then
12828   echo "#! /bin/sh" >conf$$.sh
12829   echo  "exit 0"   >>conf$$.sh
12830   chmod +x conf$$.sh
12831   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12832     PATH_SEPARATOR=';'
12833   else
12834     PATH_SEPARATOR=:
12835   fi
12836   rm -f conf$$.sh
12837 fi
12838
12839 # Find out how to test for executable files. Don't use a zero-byte file,
12840 # as systems may use methods other than mode bits to determine executability.
12841 cat >conf$$.file <<_ASEOF
12842 #! /bin/sh
12843 exit 0
12844 _ASEOF
12845 chmod +x conf$$.file
12846 if test -x conf$$.file >/dev/null 2>&1; then
12847   ac_executable_p="test -x"
12848 else
12849   ac_executable_p="test -f"
12850 fi
12851 rm -f conf$$.file
12852
12853 # Extract the first word of "xgettext", so it can be a program name with args.
12854 set dummy xgettext; ac_word=$2
12855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12856 $as_echo_n "checking for $ac_word... " >&6; }
12857 if ${ac_cv_path_XGETTEXT+:} false; then :
12858   $as_echo_n "(cached) " >&6
12859 else
12860   case "$XGETTEXT" in
12861   [\\/]* | ?:[\\/]*)
12862     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12863     ;;
12864   *)
12865     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12866     for ac_dir in $PATH; do
12867       IFS="$ac_save_IFS"
12868       test -z "$ac_dir" && ac_dir=.
12869       for ac_exec_ext in '' $ac_executable_extensions; do
12870         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12871           echo "$as_me: trying $ac_dir/$ac_word..." >&5
12872           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
12873      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12874             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12875             break 2
12876           fi
12877         fi
12878       done
12879     done
12880     IFS="$ac_save_IFS"
12881   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12882     ;;
12883 esac
12884 fi
12885 XGETTEXT="$ac_cv_path_XGETTEXT"
12886 if test "$XGETTEXT" != ":"; then
12887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12888 $as_echo "$XGETTEXT" >&6; }
12889 else
12890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12891 $as_echo "no" >&6; }
12892 fi
12893
12894     rm -f messages.po
12895
12896     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12897     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
12898     *) XGETTEXT_015=$XGETTEXT ;;
12899   esac
12900
12901
12902
12903 # Prepare PATH_SEPARATOR.
12904 # The user is always right.
12905 if test "${PATH_SEPARATOR+set}" != set; then
12906   echo "#! /bin/sh" >conf$$.sh
12907   echo  "exit 0"   >>conf$$.sh
12908   chmod +x conf$$.sh
12909   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12910     PATH_SEPARATOR=';'
12911   else
12912     PATH_SEPARATOR=:
12913   fi
12914   rm -f conf$$.sh
12915 fi
12916
12917 # Find out how to test for executable files. Don't use a zero-byte file,
12918 # as systems may use methods other than mode bits to determine executability.
12919 cat >conf$$.file <<_ASEOF
12920 #! /bin/sh
12921 exit 0
12922 _ASEOF
12923 chmod +x conf$$.file
12924 if test -x conf$$.file >/dev/null 2>&1; then
12925   ac_executable_p="test -x"
12926 else
12927   ac_executable_p="test -f"
12928 fi
12929 rm -f conf$$.file
12930
12931 # Extract the first word of "msgmerge", so it can be a program name with args.
12932 set dummy msgmerge; ac_word=$2
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12934 $as_echo_n "checking for $ac_word... " >&6; }
12935 if ${ac_cv_path_MSGMERGE+:} false; then :
12936   $as_echo_n "(cached) " >&6
12937 else
12938   case "$MSGMERGE" in
12939   [\\/]* | ?:[\\/]*)
12940     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12941     ;;
12942   *)
12943     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12944     for ac_dir in $PATH; do
12945       IFS="$ac_save_IFS"
12946       test -z "$ac_dir" && ac_dir=.
12947       for ac_exec_ext in '' $ac_executable_extensions; do
12948         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12949           echo "$as_me: trying $ac_dir/$ac_word..." >&5
12950           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
12951             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12952             break 2
12953           fi
12954         fi
12955       done
12956     done
12957     IFS="$ac_save_IFS"
12958   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12959     ;;
12960 esac
12961 fi
12962 MSGMERGE="$ac_cv_path_MSGMERGE"
12963 if test "$MSGMERGE" != ":"; then
12964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12965 $as_echo "$MSGMERGE" >&6; }
12966 else
12967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12968 $as_echo "no" >&6; }
12969 fi
12970
12971
12972         test -n "$localedir" || localedir='${datadir}/locale'
12973
12974
12975     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
12976
12977
12978   ac_config_commands="$ac_config_commands po-directories"
12979
12980
12981
12982       if test "X$prefix" = "XNONE"; then
12983     acl_final_prefix="$ac_default_prefix"
12984   else
12985     acl_final_prefix="$prefix"
12986   fi
12987   if test "X$exec_prefix" = "XNONE"; then
12988     acl_final_exec_prefix='${prefix}'
12989   else
12990     acl_final_exec_prefix="$exec_prefix"
12991   fi
12992   acl_save_prefix="$prefix"
12993   prefix="$acl_final_prefix"
12994   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
12995   prefix="$acl_save_prefix"
12996
12997
12998 # Check whether --with-gnu-ld was given.
12999 if test "${with_gnu_ld+set}" = set; then :
13000   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13001 else
13002   with_gnu_ld=no
13003 fi
13004
13005 # Prepare PATH_SEPARATOR.
13006 # The user is always right.
13007 if test "${PATH_SEPARATOR+set}" != set; then
13008   echo "#! /bin/sh" >conf$$.sh
13009   echo  "exit 0"   >>conf$$.sh
13010   chmod +x conf$$.sh
13011   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13012     PATH_SEPARATOR=';'
13013   else
13014     PATH_SEPARATOR=:
13015   fi
13016   rm -f conf$$.sh
13017 fi
13018 ac_prog=ld
13019 if test "$GCC" = yes; then
13020   # Check if gcc -print-prog-name=ld gives a path.
13021   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
13022 $as_echo_n "checking for ld used by GCC... " >&6; }
13023   case $host in
13024   *-*-mingw*)
13025     # gcc leaves a trailing carriage return which upsets mingw
13026     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13027   *)
13028     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13029   esac
13030   case $ac_prog in
13031     # Accept absolute paths.
13032     [\\/]* | [A-Za-z]:[\\/]*)
13033       re_direlt='/[^/][^/]*/\.\./'
13034       # Canonicalize the path of ld
13035       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
13036       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13037         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13038       done
13039       test -z "$LD" && LD="$ac_prog"
13040       ;;
13041   "")
13042     # If it fails, then pretend we aren't using GCC.
13043     ac_prog=ld
13044     ;;
13045   *)
13046     # If it is relative, then search for the first ld in PATH.
13047     with_gnu_ld=unknown
13048     ;;
13049   esac
13050 elif test "$with_gnu_ld" = yes; then
13051   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13052 $as_echo_n "checking for GNU ld... " >&6; }
13053 else
13054   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13055 $as_echo_n "checking for non-GNU ld... " >&6; }
13056 fi
13057 if ${acl_cv_path_LD+:} false; then :
13058   $as_echo_n "(cached) " >&6
13059 else
13060   if test -z "$LD"; then
13061   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
13062   for ac_dir in $PATH; do
13063     test -z "$ac_dir" && ac_dir=.
13064     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13065       acl_cv_path_LD="$ac_dir/$ac_prog"
13066       # Check to see if the program is GNU ld.  I'd rather use --version,
13067       # but apparently some GNU ld's only accept -v.
13068       # Break only if it was the GNU/non-GNU ld that we prefer.
13069       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
13070       *GNU* | *'with BFD'*)
13071         test "$with_gnu_ld" != no && break ;;
13072       *)
13073         test "$with_gnu_ld" != yes && break ;;
13074       esac
13075     fi
13076   done
13077   IFS="$ac_save_ifs"
13078 else
13079   acl_cv_path_LD="$LD" # Let the user override the test with a path.
13080 fi
13081 fi
13082
13083 LD="$acl_cv_path_LD"
13084 if test -n "$LD"; then
13085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13086 $as_echo "$LD" >&6; }
13087 else
13088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13089 $as_echo "no" >&6; }
13090 fi
13091 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13093 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13094 if ${acl_cv_prog_gnu_ld+:} false; then :
13095   $as_echo_n "(cached) " >&6
13096 else
13097   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13098 case `$LD -v 2>&1 </dev/null` in
13099 *GNU* | *'with BFD'*)
13100   acl_cv_prog_gnu_ld=yes ;;
13101 *)
13102   acl_cv_prog_gnu_ld=no ;;
13103 esac
13104 fi
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
13106 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
13107 with_gnu_ld=$acl_cv_prog_gnu_ld
13108
13109
13110
13111
13112                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13113 $as_echo_n "checking for shared library run path origin... " >&6; }
13114 if ${acl_cv_rpath+:} false; then :
13115   $as_echo_n "(cached) " >&6
13116 else
13117
13118     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13119     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13120     . ./conftest.sh
13121     rm -f ./conftest.sh
13122     acl_cv_rpath=done
13123
13124 fi
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13126 $as_echo "$acl_cv_rpath" >&6; }
13127   wl="$acl_cv_wl"
13128   acl_libext="$acl_cv_libext"
13129   acl_shlibext="$acl_cv_shlibext"
13130   acl_libname_spec="$acl_cv_libname_spec"
13131   acl_library_names_spec="$acl_cv_library_names_spec"
13132   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13133   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13134   acl_hardcode_direct="$acl_cv_hardcode_direct"
13135   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
13136     # Check whether --enable-rpath was given.
13137 if test "${enable_rpath+set}" = set; then :
13138   enableval=$enable_rpath; :
13139 else
13140   enable_rpath=yes
13141 fi
13142
13143
13144
13145                   acl_libdirstem=lib
13146   searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
13147   if test -n "$searchpath"; then
13148     acl_save_IFS="${IFS=        }"; IFS=":"
13149     for searchdir in $searchpath; do
13150       if test -d "$searchdir"; then
13151         case "$searchdir" in
13152           */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
13153           *) searchdir=`cd "$searchdir" && pwd`
13154              case "$searchdir" in
13155                */lib64 ) acl_libdirstem=lib64 ;;
13156              esac ;;
13157         esac
13158       fi
13159     done
13160     IFS="$acl_save_IFS"
13161   fi
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171     use_additional=yes
13172
13173   acl_save_prefix="$prefix"
13174   prefix="$acl_final_prefix"
13175   acl_save_exec_prefix="$exec_prefix"
13176   exec_prefix="$acl_final_exec_prefix"
13177
13178     eval additional_includedir=\"$includedir\"
13179     eval additional_libdir=\"$libdir\"
13180
13181   exec_prefix="$acl_save_exec_prefix"
13182   prefix="$acl_save_prefix"
13183
13184
13185 # Check whether --with-libiconv-prefix was given.
13186 if test "${with_libiconv_prefix+set}" = set; then :
13187   withval=$with_libiconv_prefix;
13188     if test "X$withval" = "Xno"; then
13189       use_additional=no
13190     else
13191       if test "X$withval" = "X"; then
13192
13193   acl_save_prefix="$prefix"
13194   prefix="$acl_final_prefix"
13195   acl_save_exec_prefix="$exec_prefix"
13196   exec_prefix="$acl_final_exec_prefix"
13197
13198           eval additional_includedir=\"$includedir\"
13199           eval additional_libdir=\"$libdir\"
13200
13201   exec_prefix="$acl_save_exec_prefix"
13202   prefix="$acl_save_prefix"
13203
13204       else
13205         additional_includedir="$withval/include"
13206         additional_libdir="$withval/$acl_libdirstem"
13207       fi
13208     fi
13209
13210 fi
13211
13212       LIBICONV=
13213   LTLIBICONV=
13214   INCICONV=
13215   LIBICONV_PREFIX=
13216   rpathdirs=
13217   ltrpathdirs=
13218   names_already_handled=
13219   names_next_round='iconv '
13220   while test -n "$names_next_round"; do
13221     names_this_round="$names_next_round"
13222     names_next_round=
13223     for name in $names_this_round; do
13224       already_handled=
13225       for n in $names_already_handled; do
13226         if test "$n" = "$name"; then
13227           already_handled=yes
13228           break
13229         fi
13230       done
13231       if test -z "$already_handled"; then
13232         names_already_handled="$names_already_handled $name"
13233                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13234         eval value=\"\$HAVE_LIB$uppername\"
13235         if test -n "$value"; then
13236           if test "$value" = yes; then
13237             eval value=\"\$LIB$uppername\"
13238             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13239             eval value=\"\$LTLIB$uppername\"
13240             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13241           else
13242                                     :
13243           fi
13244         else
13245                               found_dir=
13246           found_la=
13247           found_so=
13248           found_a=
13249           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
13250           if test -n "$acl_shlibext"; then
13251             shrext=".$acl_shlibext"             # typically: shrext=.so
13252           else
13253             shrext=
13254           fi
13255           if test $use_additional = yes; then
13256             dir="$additional_libdir"
13257                                     if test -n "$acl_shlibext"; then
13258               if test -f "$dir/$libname$shrext"; then
13259                 found_dir="$dir"
13260                 found_so="$dir/$libname$shrext"
13261               else
13262                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13263                   ver=`(cd "$dir" && \
13264                         for f in "$libname$shrext".*; do echo "$f"; done \
13265                         | sed -e "s,^$libname$shrext\\\\.,," \
13266                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13267                         | sed 1q ) 2>/dev/null`
13268                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13269                     found_dir="$dir"
13270                     found_so="$dir/$libname$shrext.$ver"
13271                   fi
13272                 else
13273                   eval library_names=\"$acl_library_names_spec\"
13274                   for f in $library_names; do
13275                     if test -f "$dir/$f"; then
13276                       found_dir="$dir"
13277                       found_so="$dir/$f"
13278                       break
13279                     fi
13280                   done
13281                 fi
13282               fi
13283             fi
13284                         if test "X$found_dir" = "X"; then
13285               if test -f "$dir/$libname.$acl_libext"; then
13286                 found_dir="$dir"
13287                 found_a="$dir/$libname.$acl_libext"
13288               fi
13289             fi
13290             if test "X$found_dir" != "X"; then
13291               if test -f "$dir/$libname.la"; then
13292                 found_la="$dir/$libname.la"
13293               fi
13294             fi
13295           fi
13296           if test "X$found_dir" = "X"; then
13297             for x in $LDFLAGS $LTLIBICONV; do
13298
13299   acl_save_prefix="$prefix"
13300   prefix="$acl_final_prefix"
13301   acl_save_exec_prefix="$exec_prefix"
13302   exec_prefix="$acl_final_exec_prefix"
13303   eval x=\"$x\"
13304   exec_prefix="$acl_save_exec_prefix"
13305   prefix="$acl_save_prefix"
13306
13307               case "$x" in
13308                 -L*)
13309                   dir=`echo "X$x" | sed -e 's/^X-L//'`
13310                                     if test -n "$acl_shlibext"; then
13311                     if test -f "$dir/$libname$shrext"; then
13312                       found_dir="$dir"
13313                       found_so="$dir/$libname$shrext"
13314                     else
13315                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13316                         ver=`(cd "$dir" && \
13317                               for f in "$libname$shrext".*; do echo "$f"; done \
13318                               | sed -e "s,^$libname$shrext\\\\.,," \
13319                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13320                               | sed 1q ) 2>/dev/null`
13321                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13322                           found_dir="$dir"
13323                           found_so="$dir/$libname$shrext.$ver"
13324                         fi
13325                       else
13326                         eval library_names=\"$acl_library_names_spec\"
13327                         for f in $library_names; do
13328                           if test -f "$dir/$f"; then
13329                             found_dir="$dir"
13330                             found_so="$dir/$f"
13331                             break
13332                           fi
13333                         done
13334                       fi
13335                     fi
13336                   fi
13337                                     if test "X$found_dir" = "X"; then
13338                     if test -f "$dir/$libname.$acl_libext"; then
13339                       found_dir="$dir"
13340                       found_a="$dir/$libname.$acl_libext"
13341                     fi
13342                   fi
13343                   if test "X$found_dir" != "X"; then
13344                     if test -f "$dir/$libname.la"; then
13345                       found_la="$dir/$libname.la"
13346                     fi
13347                   fi
13348                   ;;
13349               esac
13350               if test "X$found_dir" != "X"; then
13351                 break
13352               fi
13353             done
13354           fi
13355           if test "X$found_dir" != "X"; then
13356                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13357             if test "X$found_so" != "X"; then
13358                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
13359                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13360               else
13361                                                                                 haveit=
13362                 for x in $ltrpathdirs; do
13363                   if test "X$x" = "X$found_dir"; then
13364                     haveit=yes
13365                     break
13366                   fi
13367                 done
13368                 if test -z "$haveit"; then
13369                   ltrpathdirs="$ltrpathdirs $found_dir"
13370                 fi
13371                                 if test "$acl_hardcode_direct" = yes; then
13372                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13373                 else
13374                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
13375                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13376                                                             haveit=
13377                     for x in $rpathdirs; do
13378                       if test "X$x" = "X$found_dir"; then
13379                         haveit=yes
13380                         break
13381                       fi
13382                     done
13383                     if test -z "$haveit"; then
13384                       rpathdirs="$rpathdirs $found_dir"
13385                     fi
13386                   else
13387                                                                                 haveit=
13388                     for x in $LDFLAGS $LIBICONV; do
13389
13390   acl_save_prefix="$prefix"
13391   prefix="$acl_final_prefix"
13392   acl_save_exec_prefix="$exec_prefix"
13393   exec_prefix="$acl_final_exec_prefix"
13394   eval x=\"$x\"
13395   exec_prefix="$acl_save_exec_prefix"
13396   prefix="$acl_save_prefix"
13397
13398                       if test "X$x" = "X-L$found_dir"; then
13399                         haveit=yes
13400                         break
13401                       fi
13402                     done
13403                     if test -z "$haveit"; then
13404                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
13405                     fi
13406                     if test "$acl_hardcode_minus_L" != no; then
13407                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13408                     else
13409                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13410                     fi
13411                   fi
13412                 fi
13413               fi
13414             else
13415               if test "X$found_a" != "X"; then
13416                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
13417               else
13418                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
13419               fi
13420             fi
13421                         additional_includedir=
13422             case "$found_dir" in
13423               */$acl_libdirstem | */$acl_libdirstem/)
13424                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13425                 LIBICONV_PREFIX="$basedir"
13426                 additional_includedir="$basedir/include"
13427                 ;;
13428             esac
13429             if test "X$additional_includedir" != "X"; then
13430                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
13431                 haveit=
13432                 if test "X$additional_includedir" = "X/usr/local/include"; then
13433                   if test -n "$GCC"; then
13434                     case $host_os in
13435                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13436                     esac
13437                   fi
13438                 fi
13439                 if test -z "$haveit"; then
13440                   for x in $CPPFLAGS $INCICONV; do
13441
13442   acl_save_prefix="$prefix"
13443   prefix="$acl_final_prefix"
13444   acl_save_exec_prefix="$exec_prefix"
13445   exec_prefix="$acl_final_exec_prefix"
13446   eval x=\"$x\"
13447   exec_prefix="$acl_save_exec_prefix"
13448   prefix="$acl_save_prefix"
13449
13450                     if test "X$x" = "X-I$additional_includedir"; then
13451                       haveit=yes
13452                       break
13453                     fi
13454                   done
13455                   if test -z "$haveit"; then
13456                     if test -d "$additional_includedir"; then
13457                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
13458                     fi
13459                   fi
13460                 fi
13461               fi
13462             fi
13463                         if test -n "$found_la"; then
13464                                                         save_libdir="$libdir"
13465               case "$found_la" in
13466                 */* | *\\*) . "$found_la" ;;
13467                 *) . "./$found_la" ;;
13468               esac
13469               libdir="$save_libdir"
13470                             for dep in $dependency_libs; do
13471                 case "$dep" in
13472                   -L*)
13473                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13474                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
13475                       haveit=
13476                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
13477                         if test -n "$GCC"; then
13478                           case $host_os in
13479                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13480                           esac
13481                         fi
13482                       fi
13483                       if test -z "$haveit"; then
13484                         haveit=
13485                         for x in $LDFLAGS $LIBICONV; do
13486
13487   acl_save_prefix="$prefix"
13488   prefix="$acl_final_prefix"
13489   acl_save_exec_prefix="$exec_prefix"
13490   exec_prefix="$acl_final_exec_prefix"
13491   eval x=\"$x\"
13492   exec_prefix="$acl_save_exec_prefix"
13493   prefix="$acl_save_prefix"
13494
13495                           if test "X$x" = "X-L$additional_libdir"; then
13496                             haveit=yes
13497                             break
13498                           fi
13499                         done
13500                         if test -z "$haveit"; then
13501                           if test -d "$additional_libdir"; then
13502                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
13503                           fi
13504                         fi
13505                         haveit=
13506                         for x in $LDFLAGS $LTLIBICONV; do
13507
13508   acl_save_prefix="$prefix"
13509   prefix="$acl_final_prefix"
13510   acl_save_exec_prefix="$exec_prefix"
13511   exec_prefix="$acl_final_exec_prefix"
13512   eval x=\"$x\"
13513   exec_prefix="$acl_save_exec_prefix"
13514   prefix="$acl_save_prefix"
13515
13516                           if test "X$x" = "X-L$additional_libdir"; then
13517                             haveit=yes
13518                             break
13519                           fi
13520                         done
13521                         if test -z "$haveit"; then
13522                           if test -d "$additional_libdir"; then
13523                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
13524                           fi
13525                         fi
13526                       fi
13527                     fi
13528                     ;;
13529                   -R*)
13530                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
13531                     if test "$enable_rpath" != no; then
13532                                                                   haveit=
13533                       for x in $rpathdirs; do
13534                         if test "X$x" = "X$dir"; then
13535                           haveit=yes
13536                           break
13537                         fi
13538                       done
13539                       if test -z "$haveit"; then
13540                         rpathdirs="$rpathdirs $dir"
13541                       fi
13542                                                                   haveit=
13543                       for x in $ltrpathdirs; do
13544                         if test "X$x" = "X$dir"; then
13545                           haveit=yes
13546                           break
13547                         fi
13548                       done
13549                       if test -z "$haveit"; then
13550                         ltrpathdirs="$ltrpathdirs $dir"
13551                       fi
13552                     fi
13553                     ;;
13554                   -l*)
13555                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13556                     ;;
13557                   *.la)
13558                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13559                     ;;
13560                   *)
13561                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
13562                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
13563                     ;;
13564                 esac
13565               done
13566             fi
13567           else
13568                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13569             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
13570           fi
13571         fi
13572       fi
13573     done
13574   done
13575   if test "X$rpathdirs" != "X"; then
13576     if test -n "$acl_hardcode_libdir_separator"; then
13577                         alldirs=
13578       for found_dir in $rpathdirs; do
13579         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
13580       done
13581             acl_save_libdir="$libdir"
13582       libdir="$alldirs"
13583       eval flag=\"$acl_hardcode_libdir_flag_spec\"
13584       libdir="$acl_save_libdir"
13585       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13586     else
13587             for found_dir in $rpathdirs; do
13588         acl_save_libdir="$libdir"
13589         libdir="$found_dir"
13590         eval flag=\"$acl_hardcode_libdir_flag_spec\"
13591         libdir="$acl_save_libdir"
13592         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13593       done
13594     fi
13595   fi
13596   if test "X$ltrpathdirs" != "X"; then
13597             for found_dir in $ltrpathdirs; do
13598       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
13599     done
13600   fi
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
13627 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
13628 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
13629   $as_echo_n "(cached) " >&6
13630 else
13631   gt_save_LIBS="$LIBS"
13632      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
13633      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13634 /* end confdefs.h.  */
13635 #include <CoreFoundation/CFPreferences.h>
13636 int
13637 main ()
13638 {
13639 CFPreferencesCopyAppValue(NULL, NULL)
13640   ;
13641   return 0;
13642 }
13643 _ACEOF
13644 if ac_fn_c_try_link "$LINENO"; then :
13645   gt_cv_func_CFPreferencesCopyAppValue=yes
13646 else
13647   gt_cv_func_CFPreferencesCopyAppValue=no
13648 fi
13649 rm -f core conftest.err conftest.$ac_objext \
13650     conftest$ac_exeext conftest.$ac_ext
13651      LIBS="$gt_save_LIBS"
13652 fi
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
13654 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
13655   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
13656
13657 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
13658
13659   fi
13660     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
13661 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
13662 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
13663   $as_echo_n "(cached) " >&6
13664 else
13665   gt_save_LIBS="$LIBS"
13666      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
13667      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13668 /* end confdefs.h.  */
13669 #include <CoreFoundation/CFLocale.h>
13670 int
13671 main ()
13672 {
13673 CFLocaleCopyCurrent();
13674   ;
13675   return 0;
13676 }
13677 _ACEOF
13678 if ac_fn_c_try_link "$LINENO"; then :
13679   gt_cv_func_CFLocaleCopyCurrent=yes
13680 else
13681   gt_cv_func_CFLocaleCopyCurrent=no
13682 fi
13683 rm -f core conftest.err conftest.$ac_objext \
13684     conftest$ac_exeext conftest.$ac_ext
13685      LIBS="$gt_save_LIBS"
13686 fi
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
13688 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
13689   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
13690
13691 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
13692
13693   fi
13694   INTL_MACOSX_LIBS=
13695   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
13696     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
13697   fi
13698
13699
13700
13701
13702
13703
13704   LIBINTL=
13705   LTLIBINTL=
13706   POSUB=
13707
13708     case " $gt_needs " in
13709     *" need-formatstring-macros "*) gt_api_version=3 ;;
13710     *" need-ngettext "*) gt_api_version=2 ;;
13711     *) gt_api_version=1 ;;
13712   esac
13713   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
13714   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
13715
13716     if test "$USE_NLS" = "yes"; then
13717     gt_use_preinstalled_gnugettext=no
13718
13719
13720         if test $gt_api_version -ge 3; then
13721           gt_revision_test_code='
13722 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13723 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
13724 #endif
13725 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
13726 '
13727         else
13728           gt_revision_test_code=
13729         fi
13730         if test $gt_api_version -ge 2; then
13731           gt_expression_test_code=' + * ngettext ("", "", 0)'
13732         else
13733           gt_expression_test_code=
13734         fi
13735
13736         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
13737 $as_echo_n "checking for GNU gettext in libc... " >&6; }
13738 if eval \${$gt_func_gnugettext_libc+:} false; then :
13739   $as_echo_n "(cached) " >&6
13740 else
13741   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13742 /* end confdefs.h.  */
13743 #include <libintl.h>
13744 $gt_revision_test_code
13745 extern int _nl_msg_cat_cntr;
13746 extern int *_nl_domain_bindings;
13747 int
13748 main ()
13749 {
13750 bindtextdomain ("", "");
13751 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
13752   ;
13753   return 0;
13754 }
13755 _ACEOF
13756 if ac_fn_c_try_link "$LINENO"; then :
13757   eval "$gt_func_gnugettext_libc=yes"
13758 else
13759   eval "$gt_func_gnugettext_libc=no"
13760 fi
13761 rm -f core conftest.err conftest.$ac_objext \
13762     conftest$ac_exeext conftest.$ac_ext
13763 fi
13764 eval ac_res=\$$gt_func_gnugettext_libc
13765                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13766 $as_echo "$ac_res" >&6; }
13767
13768         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
13769
13770
13771
13772
13773
13774           am_save_CPPFLAGS="$CPPFLAGS"
13775
13776   for element in $INCICONV; do
13777     haveit=
13778     for x in $CPPFLAGS; do
13779
13780   acl_save_prefix="$prefix"
13781   prefix="$acl_final_prefix"
13782   acl_save_exec_prefix="$exec_prefix"
13783   exec_prefix="$acl_final_exec_prefix"
13784   eval x=\"$x\"
13785   exec_prefix="$acl_save_exec_prefix"
13786   prefix="$acl_save_prefix"
13787
13788       if test "X$x" = "X$element"; then
13789         haveit=yes
13790         break
13791       fi
13792     done
13793     if test -z "$haveit"; then
13794       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13795     fi
13796   done
13797
13798
13799   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
13800 $as_echo_n "checking for iconv... " >&6; }
13801 if ${am_cv_func_iconv+:} false; then :
13802   $as_echo_n "(cached) " >&6
13803 else
13804
13805     am_cv_func_iconv="no, consider installing GNU libiconv"
13806     am_cv_lib_iconv=no
13807     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13808 /* end confdefs.h.  */
13809 #include <stdlib.h>
13810 #include <iconv.h>
13811 int
13812 main ()
13813 {
13814 iconv_t cd = iconv_open("","");
13815        iconv(cd,NULL,NULL,NULL,NULL);
13816        iconv_close(cd);
13817   ;
13818   return 0;
13819 }
13820 _ACEOF
13821 if ac_fn_c_try_link "$LINENO"; then :
13822   am_cv_func_iconv=yes
13823 fi
13824 rm -f core conftest.err conftest.$ac_objext \
13825     conftest$ac_exeext conftest.$ac_ext
13826     if test "$am_cv_func_iconv" != yes; then
13827       am_save_LIBS="$LIBS"
13828       LIBS="$LIBS $LIBICONV"
13829       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13830 /* end confdefs.h.  */
13831 #include <stdlib.h>
13832 #include <iconv.h>
13833 int
13834 main ()
13835 {
13836 iconv_t cd = iconv_open("","");
13837          iconv(cd,NULL,NULL,NULL,NULL);
13838          iconv_close(cd);
13839   ;
13840   return 0;
13841 }
13842 _ACEOF
13843 if ac_fn_c_try_link "$LINENO"; then :
13844   am_cv_lib_iconv=yes
13845         am_cv_func_iconv=yes
13846 fi
13847 rm -f core conftest.err conftest.$ac_objext \
13848     conftest$ac_exeext conftest.$ac_ext
13849       LIBS="$am_save_LIBS"
13850     fi
13851
13852 fi
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
13854 $as_echo "$am_cv_func_iconv" >&6; }
13855   if test "$am_cv_func_iconv" = yes; then
13856     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
13857 $as_echo_n "checking for working iconv... " >&6; }
13858 if ${am_cv_func_iconv_works+:} false; then :
13859   $as_echo_n "(cached) " >&6
13860 else
13861
13862             am_save_LIBS="$LIBS"
13863       if test $am_cv_lib_iconv = yes; then
13864         LIBS="$LIBS $LIBICONV"
13865       fi
13866       if test "$cross_compiling" = yes; then :
13867   case "$host_os" in
13868            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
13869            *)            am_cv_func_iconv_works="guessing yes" ;;
13870          esac
13871 else
13872   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13873 /* end confdefs.h.  */
13874
13875 #include <iconv.h>
13876 #include <string.h>
13877 int main ()
13878 {
13879   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
13880      returns.  */
13881   {
13882     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
13883     if (cd_utf8_to_88591 != (iconv_t)(-1))
13884       {
13885         static const char input[] = "\342\202\254"; /* EURO SIGN */
13886         char buf[10];
13887         const char *inptr = input;
13888         size_t inbytesleft = strlen (input);
13889         char *outptr = buf;
13890         size_t outbytesleft = sizeof (buf);
13891         size_t res = iconv (cd_utf8_to_88591,
13892                             (char **) &inptr, &inbytesleft,
13893                             &outptr, &outbytesleft);
13894         if (res == 0)
13895           return 1;
13896       }
13897   }
13898 #if 0 /* This bug could be worked around by the caller.  */
13899   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
13900   {
13901     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
13902     if (cd_88591_to_utf8 != (iconv_t)(-1))
13903       {
13904         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
13905         char buf[50];
13906         const char *inptr = input;
13907         size_t inbytesleft = strlen (input);
13908         char *outptr = buf;
13909         size_t outbytesleft = sizeof (buf);
13910         size_t res = iconv (cd_88591_to_utf8,
13911                             (char **) &inptr, &inbytesleft,
13912                             &outptr, &outbytesleft);
13913         if ((int)res > 0)
13914           return 1;
13915       }
13916   }
13917 #endif
13918   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
13919      provided.  */
13920   if (/* Try standardized names.  */
13921       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
13922       /* Try IRIX, OSF/1 names.  */
13923       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
13924       /* Try AIX names.  */
13925       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
13926       /* Try HP-UX names.  */
13927       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
13928     return 1;
13929   return 0;
13930 }
13931 _ACEOF
13932 if ac_fn_c_try_run "$LINENO"; then :
13933   am_cv_func_iconv_works=yes
13934 else
13935   am_cv_func_iconv_works=no
13936 fi
13937 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13938   conftest.$ac_objext conftest.beam conftest.$ac_ext
13939 fi
13940
13941       LIBS="$am_save_LIBS"
13942
13943 fi
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
13945 $as_echo "$am_cv_func_iconv_works" >&6; }
13946     case "$am_cv_func_iconv_works" in
13947       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
13948       *)   am_func_iconv=yes ;;
13949     esac
13950   else
13951     am_func_iconv=no am_cv_lib_iconv=no
13952   fi
13953   if test "$am_func_iconv" = yes; then
13954
13955 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
13956
13957   fi
13958   if test "$am_cv_lib_iconv" = yes; then
13959     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
13960 $as_echo_n "checking how to link with libiconv... " >&6; }
13961     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
13962 $as_echo "$LIBICONV" >&6; }
13963   else
13964             CPPFLAGS="$am_save_CPPFLAGS"
13965     LIBICONV=
13966     LTLIBICONV=
13967   fi
13968
13969
13970
13971
13972
13973
13974
13975
13976     use_additional=yes
13977
13978   acl_save_prefix="$prefix"
13979   prefix="$acl_final_prefix"
13980   acl_save_exec_prefix="$exec_prefix"
13981   exec_prefix="$acl_final_exec_prefix"
13982
13983     eval additional_includedir=\"$includedir\"
13984     eval additional_libdir=\"$libdir\"
13985
13986   exec_prefix="$acl_save_exec_prefix"
13987   prefix="$acl_save_prefix"
13988
13989
13990 # Check whether --with-libintl-prefix was given.
13991 if test "${with_libintl_prefix+set}" = set; then :
13992   withval=$with_libintl_prefix;
13993     if test "X$withval" = "Xno"; then
13994       use_additional=no
13995     else
13996       if test "X$withval" = "X"; then
13997
13998   acl_save_prefix="$prefix"
13999   prefix="$acl_final_prefix"
14000   acl_save_exec_prefix="$exec_prefix"
14001   exec_prefix="$acl_final_exec_prefix"
14002
14003           eval additional_includedir=\"$includedir\"
14004           eval additional_libdir=\"$libdir\"
14005
14006   exec_prefix="$acl_save_exec_prefix"
14007   prefix="$acl_save_prefix"
14008
14009       else
14010         additional_includedir="$withval/include"
14011         additional_libdir="$withval/$acl_libdirstem"
14012       fi
14013     fi
14014
14015 fi
14016
14017       LIBINTL=
14018   LTLIBINTL=
14019   INCINTL=
14020   LIBINTL_PREFIX=
14021   rpathdirs=
14022   ltrpathdirs=
14023   names_already_handled=
14024   names_next_round='intl '
14025   while test -n "$names_next_round"; do
14026     names_this_round="$names_next_round"
14027     names_next_round=
14028     for name in $names_this_round; do
14029       already_handled=
14030       for n in $names_already_handled; do
14031         if test "$n" = "$name"; then
14032           already_handled=yes
14033           break
14034         fi
14035       done
14036       if test -z "$already_handled"; then
14037         names_already_handled="$names_already_handled $name"
14038                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14039         eval value=\"\$HAVE_LIB$uppername\"
14040         if test -n "$value"; then
14041           if test "$value" = yes; then
14042             eval value=\"\$LIB$uppername\"
14043             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
14044             eval value=\"\$LTLIB$uppername\"
14045             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
14046           else
14047                                     :
14048           fi
14049         else
14050                               found_dir=
14051           found_la=
14052           found_so=
14053           found_a=
14054           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
14055           if test -n "$acl_shlibext"; then
14056             shrext=".$acl_shlibext"             # typically: shrext=.so
14057           else
14058             shrext=
14059           fi
14060           if test $use_additional = yes; then
14061             dir="$additional_libdir"
14062                                     if test -n "$acl_shlibext"; then
14063               if test -f "$dir/$libname$shrext"; then
14064                 found_dir="$dir"
14065                 found_so="$dir/$libname$shrext"
14066               else
14067                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14068                   ver=`(cd "$dir" && \
14069                         for f in "$libname$shrext".*; do echo "$f"; done \
14070                         | sed -e "s,^$libname$shrext\\\\.,," \
14071                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14072                         | sed 1q ) 2>/dev/null`
14073                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14074                     found_dir="$dir"
14075                     found_so="$dir/$libname$shrext.$ver"
14076                   fi
14077                 else
14078                   eval library_names=\"$acl_library_names_spec\"
14079                   for f in $library_names; do
14080                     if test -f "$dir/$f"; then
14081                       found_dir="$dir"
14082                       found_so="$dir/$f"
14083                       break
14084                     fi
14085                   done
14086                 fi
14087               fi
14088             fi
14089                         if test "X$found_dir" = "X"; then
14090               if test -f "$dir/$libname.$acl_libext"; then
14091                 found_dir="$dir"
14092                 found_a="$dir/$libname.$acl_libext"
14093               fi
14094             fi
14095             if test "X$found_dir" != "X"; then
14096               if test -f "$dir/$libname.la"; then
14097                 found_la="$dir/$libname.la"
14098               fi
14099             fi
14100           fi
14101           if test "X$found_dir" = "X"; then
14102             for x in $LDFLAGS $LTLIBINTL; do
14103
14104   acl_save_prefix="$prefix"
14105   prefix="$acl_final_prefix"
14106   acl_save_exec_prefix="$exec_prefix"
14107   exec_prefix="$acl_final_exec_prefix"
14108   eval x=\"$x\"
14109   exec_prefix="$acl_save_exec_prefix"
14110   prefix="$acl_save_prefix"
14111
14112               case "$x" in
14113                 -L*)
14114                   dir=`echo "X$x" | sed -e 's/^X-L//'`
14115                                     if test -n "$acl_shlibext"; then
14116                     if test -f "$dir/$libname$shrext"; then
14117                       found_dir="$dir"
14118                       found_so="$dir/$libname$shrext"
14119                     else
14120                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14121                         ver=`(cd "$dir" && \
14122                               for f in "$libname$shrext".*; do echo "$f"; done \
14123                               | sed -e "s,^$libname$shrext\\\\.,," \
14124                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14125                               | sed 1q ) 2>/dev/null`
14126                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14127                           found_dir="$dir"
14128                           found_so="$dir/$libname$shrext.$ver"
14129                         fi
14130                       else
14131                         eval library_names=\"$acl_library_names_spec\"
14132                         for f in $library_names; do
14133                           if test -f "$dir/$f"; then
14134                             found_dir="$dir"
14135                             found_so="$dir/$f"
14136                             break
14137                           fi
14138                         done
14139                       fi
14140                     fi
14141                   fi
14142                                     if test "X$found_dir" = "X"; then
14143                     if test -f "$dir/$libname.$acl_libext"; then
14144                       found_dir="$dir"
14145                       found_a="$dir/$libname.$acl_libext"
14146                     fi
14147                   fi
14148                   if test "X$found_dir" != "X"; then
14149                     if test -f "$dir/$libname.la"; then
14150                       found_la="$dir/$libname.la"
14151                     fi
14152                   fi
14153                   ;;
14154               esac
14155               if test "X$found_dir" != "X"; then
14156                 break
14157               fi
14158             done
14159           fi
14160           if test "X$found_dir" != "X"; then
14161                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14162             if test "X$found_so" != "X"; then
14163                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
14164                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14165               else
14166                                                                                 haveit=
14167                 for x in $ltrpathdirs; do
14168                   if test "X$x" = "X$found_dir"; then
14169                     haveit=yes
14170                     break
14171                   fi
14172                 done
14173                 if test -z "$haveit"; then
14174                   ltrpathdirs="$ltrpathdirs $found_dir"
14175                 fi
14176                                 if test "$acl_hardcode_direct" = yes; then
14177                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14178                 else
14179                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
14180                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14181                                                             haveit=
14182                     for x in $rpathdirs; do
14183                       if test "X$x" = "X$found_dir"; then
14184                         haveit=yes
14185                         break
14186                       fi
14187                     done
14188                     if test -z "$haveit"; then
14189                       rpathdirs="$rpathdirs $found_dir"
14190                     fi
14191                   else
14192                                                                                 haveit=
14193                     for x in $LDFLAGS $LIBINTL; do
14194
14195   acl_save_prefix="$prefix"
14196   prefix="$acl_final_prefix"
14197   acl_save_exec_prefix="$exec_prefix"
14198   exec_prefix="$acl_final_exec_prefix"
14199   eval x=\"$x\"
14200   exec_prefix="$acl_save_exec_prefix"
14201   prefix="$acl_save_prefix"
14202
14203                       if test "X$x" = "X-L$found_dir"; then
14204                         haveit=yes
14205                         break
14206                       fi
14207                     done
14208                     if test -z "$haveit"; then
14209                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14210                     fi
14211                     if test "$acl_hardcode_minus_L" != no; then
14212                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14213                     else
14214                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14215                     fi
14216                   fi
14217                 fi
14218               fi
14219             else
14220               if test "X$found_a" != "X"; then
14221                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
14222               else
14223                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14224               fi
14225             fi
14226                         additional_includedir=
14227             case "$found_dir" in
14228               */$acl_libdirstem | */$acl_libdirstem/)
14229                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14230                 LIBINTL_PREFIX="$basedir"
14231                 additional_includedir="$basedir/include"
14232                 ;;
14233             esac
14234             if test "X$additional_includedir" != "X"; then
14235                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
14236                 haveit=
14237                 if test "X$additional_includedir" = "X/usr/local/include"; then
14238                   if test -n "$GCC"; then
14239                     case $host_os in
14240                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14241                     esac
14242                   fi
14243                 fi
14244                 if test -z "$haveit"; then
14245                   for x in $CPPFLAGS $INCINTL; do
14246
14247   acl_save_prefix="$prefix"
14248   prefix="$acl_final_prefix"
14249   acl_save_exec_prefix="$exec_prefix"
14250   exec_prefix="$acl_final_exec_prefix"
14251   eval x=\"$x\"
14252   exec_prefix="$acl_save_exec_prefix"
14253   prefix="$acl_save_prefix"
14254
14255                     if test "X$x" = "X-I$additional_includedir"; then
14256                       haveit=yes
14257                       break
14258                     fi
14259                   done
14260                   if test -z "$haveit"; then
14261                     if test -d "$additional_includedir"; then
14262                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14263                     fi
14264                   fi
14265                 fi
14266               fi
14267             fi
14268                         if test -n "$found_la"; then
14269                                                         save_libdir="$libdir"
14270               case "$found_la" in
14271                 */* | *\\*) . "$found_la" ;;
14272                 *) . "./$found_la" ;;
14273               esac
14274               libdir="$save_libdir"
14275                             for dep in $dependency_libs; do
14276                 case "$dep" in
14277                   -L*)
14278                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14279                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
14280                       haveit=
14281                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
14282                         if test -n "$GCC"; then
14283                           case $host_os in
14284                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14285                           esac
14286                         fi
14287                       fi
14288                       if test -z "$haveit"; then
14289                         haveit=
14290                         for x in $LDFLAGS $LIBINTL; do
14291
14292   acl_save_prefix="$prefix"
14293   prefix="$acl_final_prefix"
14294   acl_save_exec_prefix="$exec_prefix"
14295   exec_prefix="$acl_final_exec_prefix"
14296   eval x=\"$x\"
14297   exec_prefix="$acl_save_exec_prefix"
14298   prefix="$acl_save_prefix"
14299
14300                           if test "X$x" = "X-L$additional_libdir"; then
14301                             haveit=yes
14302                             break
14303                           fi
14304                         done
14305                         if test -z "$haveit"; then
14306                           if test -d "$additional_libdir"; then
14307                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
14308                           fi
14309                         fi
14310                         haveit=
14311                         for x in $LDFLAGS $LTLIBINTL; do
14312
14313   acl_save_prefix="$prefix"
14314   prefix="$acl_final_prefix"
14315   acl_save_exec_prefix="$exec_prefix"
14316   exec_prefix="$acl_final_exec_prefix"
14317   eval x=\"$x\"
14318   exec_prefix="$acl_save_exec_prefix"
14319   prefix="$acl_save_prefix"
14320
14321                           if test "X$x" = "X-L$additional_libdir"; then
14322                             haveit=yes
14323                             break
14324                           fi
14325                         done
14326                         if test -z "$haveit"; then
14327                           if test -d "$additional_libdir"; then
14328                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
14329                           fi
14330                         fi
14331                       fi
14332                     fi
14333                     ;;
14334                   -R*)
14335                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
14336                     if test "$enable_rpath" != no; then
14337                                                                   haveit=
14338                       for x in $rpathdirs; do
14339                         if test "X$x" = "X$dir"; then
14340                           haveit=yes
14341                           break
14342                         fi
14343                       done
14344                       if test -z "$haveit"; then
14345                         rpathdirs="$rpathdirs $dir"
14346                       fi
14347                                                                   haveit=
14348                       for x in $ltrpathdirs; do
14349                         if test "X$x" = "X$dir"; then
14350                           haveit=yes
14351                           break
14352                         fi
14353                       done
14354                       if test -z "$haveit"; then
14355                         ltrpathdirs="$ltrpathdirs $dir"
14356                       fi
14357                     fi
14358                     ;;
14359                   -l*)
14360                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14361                     ;;
14362                   *.la)
14363                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14364                     ;;
14365                   *)
14366                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
14367                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14368                     ;;
14369                 esac
14370               done
14371             fi
14372           else
14373                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14374             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14375           fi
14376         fi
14377       fi
14378     done
14379   done
14380   if test "X$rpathdirs" != "X"; then
14381     if test -n "$acl_hardcode_libdir_separator"; then
14382                         alldirs=
14383       for found_dir in $rpathdirs; do
14384         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
14385       done
14386             acl_save_libdir="$libdir"
14387       libdir="$alldirs"
14388       eval flag=\"$acl_hardcode_libdir_flag_spec\"
14389       libdir="$acl_save_libdir"
14390       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14391     else
14392             for found_dir in $rpathdirs; do
14393         acl_save_libdir="$libdir"
14394         libdir="$found_dir"
14395         eval flag=\"$acl_hardcode_libdir_flag_spec\"
14396         libdir="$acl_save_libdir"
14397         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14398       done
14399     fi
14400   fi
14401   if test "X$ltrpathdirs" != "X"; then
14402             for found_dir in $ltrpathdirs; do
14403       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14404     done
14405   fi
14406
14407           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
14408 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
14409 if eval \${$gt_func_gnugettext_libintl+:} false; then :
14410   $as_echo_n "(cached) " >&6
14411 else
14412   gt_save_CPPFLAGS="$CPPFLAGS"
14413             CPPFLAGS="$CPPFLAGS $INCINTL"
14414             gt_save_LIBS="$LIBS"
14415             LIBS="$LIBS $LIBINTL"
14416                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14417 /* end confdefs.h.  */
14418 #include <libintl.h>
14419 $gt_revision_test_code
14420 extern int _nl_msg_cat_cntr;
14421 extern
14422 #ifdef __cplusplus
14423 "C"
14424 #endif
14425 const char *_nl_expand_alias (const char *);
14426 int
14427 main ()
14428 {
14429 bindtextdomain ("", "");
14430 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14431   ;
14432   return 0;
14433 }
14434 _ACEOF
14435 if ac_fn_c_try_link "$LINENO"; then :
14436   eval "$gt_func_gnugettext_libintl=yes"
14437 else
14438   eval "$gt_func_gnugettext_libintl=no"
14439 fi
14440 rm -f core conftest.err conftest.$ac_objext \
14441     conftest$ac_exeext conftest.$ac_ext
14442                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
14443               LIBS="$LIBS $LIBICONV"
14444               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14445 /* end confdefs.h.  */
14446 #include <libintl.h>
14447 $gt_revision_test_code
14448 extern int _nl_msg_cat_cntr;
14449 extern
14450 #ifdef __cplusplus
14451 "C"
14452 #endif
14453 const char *_nl_expand_alias (const char *);
14454 int
14455 main ()
14456 {
14457 bindtextdomain ("", "");
14458 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14459   ;
14460   return 0;
14461 }
14462 _ACEOF
14463 if ac_fn_c_try_link "$LINENO"; then :
14464   LIBINTL="$LIBINTL $LIBICONV"
14465                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
14466                 eval "$gt_func_gnugettext_libintl=yes"
14467
14468 fi
14469 rm -f core conftest.err conftest.$ac_objext \
14470     conftest$ac_exeext conftest.$ac_ext
14471             fi
14472             CPPFLAGS="$gt_save_CPPFLAGS"
14473             LIBS="$gt_save_LIBS"
14474 fi
14475 eval ac_res=\$$gt_func_gnugettext_libintl
14476                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14477 $as_echo "$ac_res" >&6; }
14478         fi
14479
14480                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
14481            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
14482                 && test "$PACKAGE" != gettext-runtime \
14483                 && test "$PACKAGE" != gettext-tools; }; then
14484           gt_use_preinstalled_gnugettext=yes
14485         else
14486                     LIBINTL=
14487           LTLIBINTL=
14488           INCINTL=
14489         fi
14490
14491
14492
14493     if test -n "$INTL_MACOSX_LIBS"; then
14494       if test "$gt_use_preinstalled_gnugettext" = "yes" \
14495          || test "$nls_cv_use_gnu_gettext" = "yes"; then
14496                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
14497         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
14498       fi
14499     fi
14500
14501     if test "$gt_use_preinstalled_gnugettext" = "yes" \
14502        || test "$nls_cv_use_gnu_gettext" = "yes"; then
14503
14504 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
14505
14506     else
14507       USE_NLS=no
14508     fi
14509   fi
14510
14511   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
14512 $as_echo_n "checking whether to use NLS... " >&6; }
14513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14514 $as_echo "$USE_NLS" >&6; }
14515   if test "$USE_NLS" = "yes"; then
14516     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
14517 $as_echo_n "checking where the gettext function comes from... " >&6; }
14518     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14519       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14520         gt_source="external libintl"
14521       else
14522         gt_source="libc"
14523       fi
14524     else
14525       gt_source="included intl directory"
14526     fi
14527     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
14528 $as_echo "$gt_source" >&6; }
14529   fi
14530
14531   if test "$USE_NLS" = "yes"; then
14532
14533     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14534       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14535         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
14536 $as_echo_n "checking how to link with libintl... " >&6; }
14537         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
14538 $as_echo "$LIBINTL" >&6; }
14539
14540   for element in $INCINTL; do
14541     haveit=
14542     for x in $CPPFLAGS; do
14543
14544   acl_save_prefix="$prefix"
14545   prefix="$acl_final_prefix"
14546   acl_save_exec_prefix="$exec_prefix"
14547   exec_prefix="$acl_final_exec_prefix"
14548   eval x=\"$x\"
14549   exec_prefix="$acl_save_exec_prefix"
14550   prefix="$acl_save_prefix"
14551
14552       if test "X$x" = "X$element"; then
14553         haveit=yes
14554         break
14555       fi
14556     done
14557     if test -z "$haveit"; then
14558       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14559     fi
14560   done
14561
14562       fi
14563
14564
14565 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
14566
14567
14568 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
14569
14570     fi
14571
14572         POSUB=po
14573   fi
14574
14575
14576
14577     INTLLIBS="$LIBINTL"
14578
14579
14580
14581
14582
14583
14584
14585 # Checks for header files.
14586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14587 $as_echo_n "checking for ANSI C header files... " >&6; }
14588 if ${ac_cv_header_stdc+:} false; then :
14589   $as_echo_n "(cached) " >&6
14590 else
14591   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14592 /* end confdefs.h.  */
14593 #include <stdlib.h>
14594 #include <stdarg.h>
14595 #include <string.h>
14596 #include <float.h>
14597
14598 int
14599 main ()
14600 {
14601
14602   ;
14603   return 0;
14604 }
14605 _ACEOF
14606 if ac_fn_c_try_compile "$LINENO"; then :
14607   ac_cv_header_stdc=yes
14608 else
14609   ac_cv_header_stdc=no
14610 fi
14611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14612
14613 if test $ac_cv_header_stdc = yes; then
14614   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14615   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14616 /* end confdefs.h.  */
14617 #include <string.h>
14618
14619 _ACEOF
14620 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14621   $EGREP "memchr" >/dev/null 2>&1; then :
14622
14623 else
14624   ac_cv_header_stdc=no
14625 fi
14626 rm -f conftest*
14627
14628 fi
14629
14630 if test $ac_cv_header_stdc = yes; then
14631   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14632   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14633 /* end confdefs.h.  */
14634 #include <stdlib.h>
14635
14636 _ACEOF
14637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14638   $EGREP "free" >/dev/null 2>&1; then :
14639
14640 else
14641   ac_cv_header_stdc=no
14642 fi
14643 rm -f conftest*
14644
14645 fi
14646
14647 if test $ac_cv_header_stdc = yes; then
14648   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14649   if test "$cross_compiling" = yes; then :
14650   :
14651 else
14652   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14653 /* end confdefs.h.  */
14654 #include <ctype.h>
14655 #include <stdlib.h>
14656 #if ((' ' & 0x0FF) == 0x020)
14657 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14658 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14659 #else
14660 # define ISLOWER(c) \
14661                    (('a' <= (c) && (c) <= 'i') \
14662                      || ('j' <= (c) && (c) <= 'r') \
14663                      || ('s' <= (c) && (c) <= 'z'))
14664 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14665 #endif
14666
14667 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14668 int
14669 main ()
14670 {
14671   int i;
14672   for (i = 0; i < 256; i++)
14673     if (XOR (islower (i), ISLOWER (i))
14674         || toupper (i) != TOUPPER (i))
14675       return 2;
14676   return 0;
14677 }
14678 _ACEOF
14679 if ac_fn_c_try_run "$LINENO"; then :
14680
14681 else
14682   ac_cv_header_stdc=no
14683 fi
14684 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14685   conftest.$ac_objext conftest.beam conftest.$ac_ext
14686 fi
14687
14688 fi
14689 fi
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14691 $as_echo "$ac_cv_header_stdc" >&6; }
14692 if test $ac_cv_header_stdc = yes; then
14693
14694 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14695
14696 fi
14697
14698 for ac_header in stdlib.h locale.h
14699 do :
14700   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14701 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14702 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14703   cat >>confdefs.h <<_ACEOF
14704 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14705 _ACEOF
14706
14707 fi
14708
14709 done
14710
14711 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
14712 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
14713   ac_have_decl=1
14714 else
14715   ac_have_decl=0
14716 fi
14717
14718 cat >>confdefs.h <<_ACEOF
14719 #define HAVE_DECL_STRERROR_R $ac_have_decl
14720 _ACEOF
14721
14722 for ac_func in strerror_r
14723 do :
14724   ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
14725 if test "x$ac_cv_func_strerror_r" = xyes; then :
14726   cat >>confdefs.h <<_ACEOF
14727 #define HAVE_STRERROR_R 1
14728 _ACEOF
14729
14730 fi
14731 done
14732
14733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
14734 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
14735 if ${ac_cv_func_strerror_r_char_p+:} false; then :
14736   $as_echo_n "(cached) " >&6
14737 else
14738
14739     ac_cv_func_strerror_r_char_p=no
14740     if test $ac_cv_have_decl_strerror_r = yes; then
14741       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14742 /* end confdefs.h.  */
14743 $ac_includes_default
14744 int
14745 main ()
14746 {
14747
14748           char buf[100];
14749           char x = *strerror_r (0, buf, sizeof buf);
14750           char *p = strerror_r (0, buf, sizeof buf);
14751           return !p || x;
14752
14753   ;
14754   return 0;
14755 }
14756 _ACEOF
14757 if ac_fn_c_try_compile "$LINENO"; then :
14758   ac_cv_func_strerror_r_char_p=yes
14759 fi
14760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14761     else
14762       # strerror_r is not declared.  Choose between
14763       # systems that have relatively inaccessible declarations for the
14764       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
14765       # former has a strerror_r that returns char*, while the latter
14766       # has a strerror_r that returns `int'.
14767       # This test should segfault on the DEC system.
14768       if test "$cross_compiling" = yes; then :
14769   :
14770 else
14771   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14772 /* end confdefs.h.  */
14773 $ac_includes_default
14774         extern char *strerror_r ();
14775 int
14776 main ()
14777 {
14778 char buf[100];
14779           char x = *strerror_r (0, buf, sizeof buf);
14780           return ! isalpha (x);
14781   ;
14782   return 0;
14783 }
14784 _ACEOF
14785 if ac_fn_c_try_run "$LINENO"; then :
14786   ac_cv_func_strerror_r_char_p=yes
14787 fi
14788 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14789   conftest.$ac_objext conftest.beam conftest.$ac_ext
14790 fi
14791
14792     fi
14793
14794 fi
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
14796 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
14797 if test $ac_cv_func_strerror_r_char_p = yes; then
14798
14799 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
14800
14801 fi
14802
14803 case "${host_os}" in
14804      solaris*)
14805      # All versions of Solaris from 2.4 have a thread-safe strerror().
14806      # Since Solaris 10, in addition strerror_r() exists.
14807      ;;
14808      *)
14809      ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
14810 if test "x$ac_cv_func_strerror_r" = xyes; then :
14811
14812 else
14813   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Without strerror_r, gpg_strerror_r might not be thread-safe" >&5
14814 $as_echo "$as_me: WARNING: Without strerror_r, gpg_strerror_r might not be thread-safe" >&2;}
14815 fi
14816
14817      ;;
14818 esac
14819
14820 for ac_func in flockfile
14821 do :
14822   ac_fn_c_check_func "$LINENO" "flockfile" "ac_cv_func_flockfile"
14823 if test "x$ac_cv_func_flockfile" = xyes; then :
14824   cat >>confdefs.h <<_ACEOF
14825 #define HAVE_FLOCKFILE 1
14826 _ACEOF
14827
14828 fi
14829 done
14830
14831
14832
14833 # Checks for typedefs, structures, and compiler characteristics.
14834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14835 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14836 if ${ac_cv_c_const+:} false; then :
14837   $as_echo_n "(cached) " >&6
14838 else
14839   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14840 /* end confdefs.h.  */
14841
14842 int
14843 main ()
14844 {
14845
14846 #ifndef __cplusplus
14847   /* Ultrix mips cc rejects this sort of thing.  */
14848   typedef int charset[2];
14849   const charset cs = { 0, 0 };
14850   /* SunOS 4.1.1 cc rejects this.  */
14851   char const *const *pcpcc;
14852   char **ppc;
14853   /* NEC SVR4.0.2 mips cc rejects this.  */
14854   struct point {int x, y;};
14855   static struct point const zero = {0,0};
14856   /* AIX XL C 1.02.0.0 rejects this.
14857      It does not let you subtract one const X* pointer from another in
14858      an arm of an if-expression whose if-part is not a constant
14859      expression */
14860   const char *g = "string";
14861   pcpcc = &g + (g ? g-g : 0);
14862   /* HPUX 7.0 cc rejects these. */
14863   ++pcpcc;
14864   ppc = (char**) pcpcc;
14865   pcpcc = (char const *const *) ppc;
14866   { /* SCO 3.2v4 cc rejects this sort of thing.  */
14867     char tx;
14868     char *t = &tx;
14869     char const *s = 0 ? (char *) 0 : (char const *) 0;
14870
14871     *t++ = 0;
14872     if (s) return 0;
14873   }
14874   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14875     int x[] = {25, 17};
14876     const int *foo = &x[0];
14877     ++foo;
14878   }
14879   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14880     typedef const int *iptr;
14881     iptr p = 0;
14882     ++p;
14883   }
14884   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
14885        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14886     struct s { int j; const int *ap[3]; } bx;
14887     struct s *b = &bx; b->j = 5;
14888   }
14889   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14890     const int foo = 10;
14891     if (!foo) return 0;
14892   }
14893   return !cs[0] && !zero.x;
14894 #endif
14895
14896   ;
14897   return 0;
14898 }
14899 _ACEOF
14900 if ac_fn_c_try_compile "$LINENO"; then :
14901   ac_cv_c_const=yes
14902 else
14903   ac_cv_c_const=no
14904 fi
14905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14906 fi
14907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14908 $as_echo "$ac_cv_c_const" >&6; }
14909 if test $ac_cv_c_const = no; then
14910
14911 $as_echo "#define const /**/" >>confdefs.h
14912
14913 fi
14914
14915
14916
14917 # Check for thread library.
14918 #
14919 # Windows has always thread support; thus we don't bother to test for
14920 # it as it may lead to false results when cross building.
14921 if test "$have_w32_system" = yes; then
14922   $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
14923
14924   LIBTHREAD=
14925   LTLIBTHREAD=
14926   LIBMULTITHREAD=
14927   LTLIBMULTITHREAD=
14928   THREADLIB_CPPFLAGS=""
14929
14930
14931
14932
14933 else
14934
14935
14936   gl_threads_api=none
14937   LIBTHREAD=
14938   LTLIBTHREAD=
14939   LIBMULTITHREAD=
14940   LTLIBMULTITHREAD=
14941   if test "$gl_use_threads" != no; then
14942         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
14943 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
14944 if ${gl_cv_have_weak+:} false; then :
14945   $as_echo_n "(cached) " >&6
14946 else
14947   gl_cv_have_weak=no
14948               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14949 /* end confdefs.h.  */
14950 extern void xyzzy ();
14951 #pragma weak xyzzy
14952 int
14953 main ()
14954 {
14955 xyzzy();
14956   ;
14957   return 0;
14958 }
14959 _ACEOF
14960 if ac_fn_c_try_link "$LINENO"; then :
14961   gl_cv_have_weak=maybe
14962 fi
14963 rm -f core conftest.err conftest.$ac_objext \
14964     conftest$ac_exeext conftest.$ac_ext
14965        if test $gl_cv_have_weak = maybe; then
14966                            if test "$cross_compiling" = yes; then :
14967                           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14968 /* end confdefs.h.  */
14969 #ifdef __ELF__
14970                Extensible Linking Format
14971                #endif
14972
14973 _ACEOF
14974 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14975   $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
14976   gl_cv_have_weak="guessing yes"
14977 else
14978   gl_cv_have_weak="guessing no"
14979 fi
14980 rm -f conftest*
14981
14982
14983 else
14984   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14985 /* end confdefs.h.  */
14986
14987 #include <stdio.h>
14988 #pragma weak fputs
14989 int main ()
14990 {
14991   return (fputs == NULL);
14992 }
14993 _ACEOF
14994 if ac_fn_c_try_run "$LINENO"; then :
14995   gl_cv_have_weak=yes
14996 else
14997   gl_cv_have_weak=no
14998 fi
14999 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15000   conftest.$ac_objext conftest.beam conftest.$ac_ext
15001 fi
15002
15003        fi
15004
15005 fi
15006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
15007 $as_echo "$gl_cv_have_weak" >&6; }
15008     if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
15009       # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
15010       # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
15011       ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
15012 if test "x$ac_cv_header_pthread_h" = xyes; then :
15013   gl_have_pthread_h=yes
15014 else
15015   gl_have_pthread_h=no
15016 fi
15017
15018
15019       if test "$gl_have_pthread_h" = yes; then
15020         # Other possible tests:
15021         #   -lpthreads (FSU threads, PCthreads)
15022         #   -lgthreads
15023         gl_have_pthread=
15024         # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
15025         # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
15026         # the second one only in libpthread, and lock.c needs it.
15027         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15028 /* end confdefs.h.  */
15029 #include <pthread.h>
15030 int
15031 main ()
15032 {
15033 pthread_mutex_lock((pthread_mutex_t*)0);
15034                pthread_mutexattr_init((pthread_mutexattr_t*)0);
15035   ;
15036   return 0;
15037 }
15038 _ACEOF
15039 if ac_fn_c_try_link "$LINENO"; then :
15040   gl_have_pthread=yes
15041 fi
15042 rm -f core conftest.err conftest.$ac_objext \
15043     conftest$ac_exeext conftest.$ac_ext
15044         # Test for libpthread by looking for pthread_kill. (Not pthread_self,
15045         # since it is defined as a macro on OSF/1.)
15046         if test -n "$gl_have_pthread"; then
15047           # The program links fine without libpthread. But it may actually
15048           # need to link with libpthread in order to create multiple threads.
15049           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
15050 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
15051 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
15052   $as_echo_n "(cached) " >&6
15053 else
15054   ac_check_lib_save_LIBS=$LIBS
15055 LIBS="-lpthread  $LIBS"
15056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15057 /* end confdefs.h.  */
15058
15059 /* Override any GCC internal prototype to avoid an error.
15060    Use char because int might match the return type of a GCC
15061    builtin and then its argument prototype would still apply.  */
15062 #ifdef __cplusplus
15063 extern "C"
15064 #endif
15065 char pthread_kill ();
15066 int
15067 main ()
15068 {
15069 return pthread_kill ();
15070   ;
15071   return 0;
15072 }
15073 _ACEOF
15074 if ac_fn_c_try_link "$LINENO"; then :
15075   ac_cv_lib_pthread_pthread_kill=yes
15076 else
15077   ac_cv_lib_pthread_pthread_kill=no
15078 fi
15079 rm -f core conftest.err conftest.$ac_objext \
15080     conftest$ac_exeext conftest.$ac_ext
15081 LIBS=$ac_check_lib_save_LIBS
15082 fi
15083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
15084 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
15085 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
15086   LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
15087              # On Solaris and HP-UX, most pthread functions exist also in libc.
15088              # Therefore pthread_in_use() needs to actually try to create a
15089              # thread: pthread_create from libc will fail, whereas
15090              # pthread_create will actually create a thread.
15091              case "$host_os" in
15092                solaris* | hpux*)
15093
15094 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
15095
15096              esac
15097
15098 fi
15099
15100         else
15101           # Some library is needed. Try libpthread and libc_r.
15102           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
15103 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
15104 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
15105   $as_echo_n "(cached) " >&6
15106 else
15107   ac_check_lib_save_LIBS=$LIBS
15108 LIBS="-lpthread  $LIBS"
15109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15110 /* end confdefs.h.  */
15111
15112 /* Override any GCC internal prototype to avoid an error.
15113    Use char because int might match the return type of a GCC
15114    builtin and then its argument prototype would still apply.  */
15115 #ifdef __cplusplus
15116 extern "C"
15117 #endif
15118 char pthread_kill ();
15119 int
15120 main ()
15121 {
15122 return pthread_kill ();
15123   ;
15124   return 0;
15125 }
15126 _ACEOF
15127 if ac_fn_c_try_link "$LINENO"; then :
15128   ac_cv_lib_pthread_pthread_kill=yes
15129 else
15130   ac_cv_lib_pthread_pthread_kill=no
15131 fi
15132 rm -f core conftest.err conftest.$ac_objext \
15133     conftest$ac_exeext conftest.$ac_ext
15134 LIBS=$ac_check_lib_save_LIBS
15135 fi
15136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
15137 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
15138 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
15139   gl_have_pthread=yes
15140              LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
15141              LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
15142 fi
15143
15144           if test -z "$gl_have_pthread"; then
15145             # For FreeBSD 4.
15146             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
15147 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
15148 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
15149   $as_echo_n "(cached) " >&6
15150 else
15151   ac_check_lib_save_LIBS=$LIBS
15152 LIBS="-lc_r  $LIBS"
15153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15154 /* end confdefs.h.  */
15155
15156 /* Override any GCC internal prototype to avoid an error.
15157    Use char because int might match the return type of a GCC
15158    builtin and then its argument prototype would still apply.  */
15159 #ifdef __cplusplus
15160 extern "C"
15161 #endif
15162 char pthread_kill ();
15163 int
15164 main ()
15165 {
15166 return pthread_kill ();
15167   ;
15168   return 0;
15169 }
15170 _ACEOF
15171 if ac_fn_c_try_link "$LINENO"; then :
15172   ac_cv_lib_c_r_pthread_kill=yes
15173 else
15174   ac_cv_lib_c_r_pthread_kill=no
15175 fi
15176 rm -f core conftest.err conftest.$ac_objext \
15177     conftest$ac_exeext conftest.$ac_ext
15178 LIBS=$ac_check_lib_save_LIBS
15179 fi
15180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
15181 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
15182 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
15183   gl_have_pthread=yes
15184                LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
15185                LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
15186 fi
15187
15188           fi
15189         fi
15190         if test -n "$gl_have_pthread"; then
15191           gl_threads_api=posix
15192
15193 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
15194
15195           if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
15196             if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
15197
15198 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
15199
15200               LIBTHREAD=
15201               LTLIBTHREAD=
15202             fi
15203           fi
15204         fi
15205       fi
15206     fi
15207     if test -z "$gl_have_pthread"; then
15208       if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
15209         gl_have_solaristhread=
15210         gl_save_LIBS="$LIBS"
15211         LIBS="$LIBS -lthread"
15212         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15213 /* end confdefs.h.  */
15214
15215 #include <thread.h>
15216 #include <synch.h>
15217
15218 int
15219 main ()
15220 {
15221 thr_self();
15222   ;
15223   return 0;
15224 }
15225 _ACEOF
15226 if ac_fn_c_try_link "$LINENO"; then :
15227   gl_have_solaristhread=yes
15228 fi
15229 rm -f core conftest.err conftest.$ac_objext \
15230     conftest$ac_exeext conftest.$ac_ext
15231         LIBS="$gl_save_LIBS"
15232         if test -n "$gl_have_solaristhread"; then
15233           gl_threads_api=solaris
15234           LIBTHREAD=-lthread
15235           LTLIBTHREAD=-lthread
15236           LIBMULTITHREAD="$LIBTHREAD"
15237           LTLIBMULTITHREAD="$LTLIBTHREAD"
15238
15239 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
15240
15241           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
15242
15243 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
15244
15245             LIBTHREAD=
15246             LTLIBTHREAD=
15247           fi
15248         fi
15249       fi
15250     fi
15251     if test -z "$gl_have_pthread"; then
15252       case "$gl_use_threads" in
15253         yes | windows | win32) # The 'win32' is for backward compatibility.
15254           if { case "$host_os" in
15255                  mingw*) true;;
15256                  *) false;;
15257                esac
15258              }; then
15259             gl_threads_api=windows
15260
15261 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
15262
15263           fi
15264           ;;
15265       esac
15266     fi
15267   fi
15268   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
15269 $as_echo_n "checking for multithread API to use... " >&6; }
15270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
15271 $as_echo "$gl_threads_api" >&6; }
15272
15273
15274
15275
15276
15277
15278
15279
15280
15281
15282
15283   if test "$gl_threads_api" = posix; then
15284     # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
15285     # pthread_rwlock_* functions.
15286     ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
15287 "
15288 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
15289
15290 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
15291
15292 fi
15293
15294     # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
15295     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15296 /* end confdefs.h.  */
15297
15298       #include <pthread.h>
15299 int
15300 main ()
15301 {
15302
15303 #if __FreeBSD__ == 4
15304 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
15305 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
15306        && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
15307 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
15308 #else
15309 int x = (int)PTHREAD_MUTEX_RECURSIVE;
15310 return !x;
15311 #endif
15312
15313   ;
15314   return 0;
15315 }
15316 _ACEOF
15317 if ac_fn_c_try_compile "$LINENO"; then :
15318
15319 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
15320
15321 fi
15322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15323   fi
15324   :
15325
15326   if test "$gl_threads_api" = posix; then
15327     # The cast to long int works around a bug in the HP C Compiler
15328 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15329 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15330 # This bug is HP SR number 8606223364.
15331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_mutex_t" >&5
15332 $as_echo_n "checking size of pthread_mutex_t... " >&6; }
15333 if ${ac_cv_sizeof_pthread_mutex_t+:} false; then :
15334   $as_echo_n "(cached) " >&6
15335 else
15336   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_mutex_t))" "ac_cv_sizeof_pthread_mutex_t"        "$ac_includes_default
15337                                       #include <pthread.h>
15338 "; then :
15339
15340 else
15341   if test "$ac_cv_type_pthread_mutex_t" = yes; then
15342      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15343 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15344 as_fn_error 77 "cannot compute sizeof (pthread_mutex_t)
15345 See \`config.log' for more details" "$LINENO" 5; }
15346    else
15347      ac_cv_sizeof_pthread_mutex_t=0
15348    fi
15349 fi
15350
15351 fi
15352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_mutex_t" >&5
15353 $as_echo "$ac_cv_sizeof_pthread_mutex_t" >&6; }
15354
15355
15356
15357 cat >>confdefs.h <<_ACEOF
15358 #define SIZEOF_PTHREAD_MUTEX_T $ac_cv_sizeof_pthread_mutex_t
15359 _ACEOF
15360
15361
15362   fi
15363 fi
15364
15365
15366 # Substitution used for gpg-error-config
15367 GPG_ERROR_CONFIG_LIBS="-lgpg-error"
15368 if test "x$LIBTHREAD" != x; then
15369   GPG_ERROR_CONFIG_LIBS="${GPG_ERROR_CONFIG_LIBS} ${LIBTHREAD}"
15370 fi
15371 if test "x$LIBMULTITHREAD" != x; then
15372   GPG_ERROR_CONFIG_MT_LIBS="${LIBMULTITHREAD}"
15373 else
15374   GPG_ERROR_CONFIG_MT_LIBS=""
15375 fi
15376 GPG_ERROR_CONFIG_CFLAGS=""
15377 if test "x$THREADLIB_CPPFLAGS" != x; then
15378   GPG_ERROR_CONFIG_MT_CFLAGS="${THREADLIB_CPPFLAGS}"
15379 else
15380   GPG_ERROR_CONFIG_MT_CFLAGS=""
15381 fi
15382 GPG_ERROR_CONFIG_ISUBDIRAFTER=""
15383 GPG_ERROR_CONFIG_HOST="$host"
15384
15385
15386
15387
15388
15389
15390
15391
15392 # Special defines for certain platforms
15393 if test "$have_w32_system" = yes; then
15394
15395 $as_echo "#define HAVE_W32_SYSTEM 1" >>confdefs.h
15396
15397     if test "$have_w64_system" = yes; then
15398
15399 $as_echo "#define HAVE_W64_SYSTEM 1" >>confdefs.h
15400
15401     fi
15402     if test "$have_w32ce_system" = yes; then
15403
15404 $as_echo "#define HAVE_W32CE_SYSTEM 1" >>confdefs.h
15405
15406       GPG_ERROR_CONFIG_ISUBDIRAFTER="gpg-extra"
15407     fi
15408 fi
15409  if test "$have_w32_system" = yes; then
15410   HAVE_W32_SYSTEM_TRUE=
15411   HAVE_W32_SYSTEM_FALSE='#'
15412 else
15413   HAVE_W32_SYSTEM_TRUE='#'
15414   HAVE_W32_SYSTEM_FALSE=
15415 fi
15416
15417  if test "$have_w64_system" = yes; then
15418   HAVE_W64_SYSTEM_TRUE=
15419   HAVE_W64_SYSTEM_FALSE='#'
15420 else
15421   HAVE_W64_SYSTEM_TRUE='#'
15422   HAVE_W64_SYSTEM_FALSE=
15423 fi
15424
15425  if test "$have_w32ce_system" = yes; then
15426   HAVE_W32CE_SYSTEM_TRUE=
15427   HAVE_W32CE_SYSTEM_FALSE='#'
15428 else
15429   HAVE_W32CE_SYSTEM_TRUE='#'
15430   HAVE_W32CE_SYSTEM_FALSE=
15431 fi
15432
15433  if test x$cross_compiling = xyes; then
15434   CROSS_COMPILING_TRUE=
15435   CROSS_COMPILING_FALSE='#'
15436 else
15437   CROSS_COMPILING_TRUE='#'
15438   CROSS_COMPILING_FALSE=
15439 fi
15440
15441
15442
15443 cat >>confdefs.h <<_ACEOF
15444 #define HOST_TRIPLET_STRING "$host"
15445 _ACEOF
15446
15447
15448
15449 #
15450 # Provide information about the build.
15451 #
15452 BUILD_REVISION="1900266"
15453
15454
15455 cat >>confdefs.h <<_ACEOF
15456 #define BUILD_REVISION "$BUILD_REVISION"
15457 _ACEOF
15458
15459
15460 BUILD_FILEVERSION=`echo "$PACKAGE_VERSION"|sed 's/\([0-9.]*\).*/\1./;s/\./,/g'`
15461 BUILD_FILEVERSION="${BUILD_FILEVERSION}0,6400"
15462
15463
15464 BUILD_TIMESTAMP=`date -u +%Y-%m-%dT%H:%M+0000 2>/dev/null || date`
15465
15466
15467 cat >>confdefs.h <<_ACEOF
15468 #define BUILD_TIMESTAMP "$BUILD_TIMESTAMP"
15469 _ACEOF
15470
15471
15472
15473
15474 # Check whether --enable-languages was given.
15475 if test "${enable_languages+set}" = set; then :
15476   enableval=$enable_languages;
15477 fi
15478
15479  if test "x$enable_languages" != xno; then
15480   LANGUAGES_SOME_TRUE=
15481   LANGUAGES_SOME_FALSE='#'
15482 else
15483   LANGUAGES_SOME_TRUE='#'
15484   LANGUAGES_SOME_FALSE=
15485 fi
15486
15487
15488
15489 # Substitution
15490 ac_config_files="$ac_config_files Makefile"
15491
15492 ac_config_files="$ac_config_files po/Makefile.in m4/Makefile"
15493
15494 ac_config_files="$ac_config_files src/Makefile tests/Makefile"
15495
15496 ac_config_files="$ac_config_files lang/Makefile lang/cl/Makefile lang/cl/gpg-error.asd"
15497
15498 ac_config_files="$ac_config_files src/versioninfo.rc"
15499
15500 ac_config_files="$ac_config_files src/gpg-error-config"
15501
15502
15503 cat >confcache <<\_ACEOF
15504 # This file is a shell script that caches the results of configure
15505 # tests run on this system so they can be shared between configure
15506 # scripts and configure runs, see configure's option --config-cache.
15507 # It is not useful on other systems.  If it contains results you don't
15508 # want to keep, you may remove or edit it.
15509 #
15510 # config.status only pays attention to the cache file if you give it
15511 # the --recheck option to rerun configure.
15512 #
15513 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15514 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15515 # following values.
15516
15517 _ACEOF
15518
15519 # The following way of writing the cache mishandles newlines in values,
15520 # but we know of no workaround that is simple, portable, and efficient.
15521 # So, we kill variables containing newlines.
15522 # Ultrix sh set writes to stderr and can't be redirected directly,
15523 # and sets the high bit in the cache file unless we assign to the vars.
15524 (
15525   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15526     eval ac_val=\$$ac_var
15527     case $ac_val in #(
15528     *${as_nl}*)
15529       case $ac_var in #(
15530       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15531 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15532       esac
15533       case $ac_var in #(
15534       _ | IFS | as_nl) ;; #(
15535       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15536       *) { eval $ac_var=; unset $ac_var;} ;;
15537       esac ;;
15538     esac
15539   done
15540
15541   (set) 2>&1 |
15542     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15543     *${as_nl}ac_space=\ *)
15544       # `set' does not quote correctly, so add quotes: double-quote
15545       # substitution turns \\\\ into \\, and sed turns \\ into \.
15546       sed -n \
15547         "s/'/'\\\\''/g;
15548           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15549       ;; #(
15550     *)
15551       # `set' quotes correctly as required by POSIX, so do not add quotes.
15552       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15553       ;;
15554     esac |
15555     sort
15556 ) |
15557   sed '
15558      /^ac_cv_env_/b end
15559      t clear
15560      :clear
15561      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15562      t end
15563      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15564      :end' >>confcache
15565 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15566   if test -w "$cache_file"; then
15567     if test "x$cache_file" != "x/dev/null"; then
15568       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15569 $as_echo "$as_me: updating cache $cache_file" >&6;}
15570       if test ! -f "$cache_file" || test -h "$cache_file"; then
15571         cat confcache >"$cache_file"
15572       else
15573         case $cache_file in #(
15574         */* | ?:*)
15575           mv -f confcache "$cache_file"$$ &&
15576           mv -f "$cache_file"$$ "$cache_file" ;; #(
15577         *)
15578           mv -f confcache "$cache_file" ;;
15579         esac
15580       fi
15581     fi
15582   else
15583     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15584 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15585   fi
15586 fi
15587 rm -f confcache
15588
15589 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15590 # Let make expand exec_prefix.
15591 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15592
15593 DEFS=-DHAVE_CONFIG_H
15594
15595 ac_libobjs=
15596 ac_ltlibobjs=
15597 U=
15598 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15599   # 1. Remove the extension, and $U if already installed.
15600   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15601   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15602   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15603   #    will be set to the directory where LIBOBJS objects are built.
15604   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15605   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15606 done
15607 LIBOBJS=$ac_libobjs
15608
15609 LTLIBOBJS=$ac_ltlibobjs
15610
15611
15612  if test -n "$EXEEXT"; then
15613   am__EXEEXT_TRUE=
15614   am__EXEEXT_FALSE='#'
15615 else
15616   am__EXEEXT_TRUE='#'
15617   am__EXEEXT_FALSE=
15618 fi
15619
15620 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15621   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15622 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15623 fi
15624 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15625   as_fn_error $? "conditional \"AMDEP\" was never defined.
15626 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15627 fi
15628 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15629   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15630 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15631 fi
15632 if test -z "${HAVE_W32_SYSTEM_TRUE}" && test -z "${HAVE_W32_SYSTEM_FALSE}"; then
15633   as_fn_error $? "conditional \"HAVE_W32_SYSTEM\" was never defined.
15634 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15635 fi
15636 if test -z "${HAVE_W64_SYSTEM_TRUE}" && test -z "${HAVE_W64_SYSTEM_FALSE}"; then
15637   as_fn_error $? "conditional \"HAVE_W64_SYSTEM\" was never defined.
15638 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15639 fi
15640 if test -z "${HAVE_W32CE_SYSTEM_TRUE}" && test -z "${HAVE_W32CE_SYSTEM_FALSE}"; then
15641   as_fn_error $? "conditional \"HAVE_W32CE_SYSTEM\" was never defined.
15642 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15643 fi
15644 if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
15645   as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
15646 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15647 fi
15648 if test -z "${LANGUAGES_SOME_TRUE}" && test -z "${LANGUAGES_SOME_FALSE}"; then
15649   as_fn_error $? "conditional \"LANGUAGES_SOME\" was never defined.
15650 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15651 fi
15652
15653 : "${CONFIG_STATUS=./config.status}"
15654 ac_write_fail=0
15655 ac_clean_files_save=$ac_clean_files
15656 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15657 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15658 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15659 as_write_fail=0
15660 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15661 #! $SHELL
15662 # Generated by $as_me.
15663 # Run this file to recreate the current configuration.
15664 # Compiler output produced by configure, useful for debugging
15665 # configure, is in config.log if it exists.
15666
15667 debug=false
15668 ac_cs_recheck=false
15669 ac_cs_silent=false
15670
15671 SHELL=\${CONFIG_SHELL-$SHELL}
15672 export SHELL
15673 _ASEOF
15674 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15675 ## -------------------- ##
15676 ## M4sh Initialization. ##
15677 ## -------------------- ##
15678
15679 # Be more Bourne compatible
15680 DUALCASE=1; export DUALCASE # for MKS sh
15681 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15682   emulate sh
15683   NULLCMD=:
15684   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15685   # is contrary to our usage.  Disable this feature.
15686   alias -g '${1+"$@"}'='"$@"'
15687   setopt NO_GLOB_SUBST
15688 else
15689   case `(set -o) 2>/dev/null` in #(
15690   *posix*) :
15691     set -o posix ;; #(
15692   *) :
15693      ;;
15694 esac
15695 fi
15696
15697
15698 as_nl='
15699 '
15700 export as_nl
15701 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15702 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15703 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15704 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15705 # Prefer a ksh shell builtin over an external printf program on Solaris,
15706 # but without wasting forks for bash or zsh.
15707 if test -z "$BASH_VERSION$ZSH_VERSION" \
15708     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15709   as_echo='print -r --'
15710   as_echo_n='print -rn --'
15711 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15712   as_echo='printf %s\n'
15713   as_echo_n='printf %s'
15714 else
15715   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15716     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15717     as_echo_n='/usr/ucb/echo -n'
15718   else
15719     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15720     as_echo_n_body='eval
15721       arg=$1;
15722       case $arg in #(
15723       *"$as_nl"*)
15724         expr "X$arg" : "X\\(.*\\)$as_nl";
15725         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15726       esac;
15727       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15728     '
15729     export as_echo_n_body
15730     as_echo_n='sh -c $as_echo_n_body as_echo'
15731   fi
15732   export as_echo_body
15733   as_echo='sh -c $as_echo_body as_echo'
15734 fi
15735
15736 # The user is always right.
15737 if test "${PATH_SEPARATOR+set}" != set; then
15738   PATH_SEPARATOR=:
15739   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15740     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15741       PATH_SEPARATOR=';'
15742   }
15743 fi
15744
15745
15746 # IFS
15747 # We need space, tab and new line, in precisely that order.  Quoting is
15748 # there to prevent editors from complaining about space-tab.
15749 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15750 # splitting by setting IFS to empty value.)
15751 IFS=" ""        $as_nl"
15752
15753 # Find who we are.  Look in the path if we contain no directory separator.
15754 as_myself=
15755 case $0 in #((
15756   *[\\/]* ) as_myself=$0 ;;
15757   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15758 for as_dir in $PATH
15759 do
15760   IFS=$as_save_IFS
15761   test -z "$as_dir" && as_dir=.
15762     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15763   done
15764 IFS=$as_save_IFS
15765
15766      ;;
15767 esac
15768 # We did not find ourselves, most probably we were run as `sh COMMAND'
15769 # in which case we are not to be found in the path.
15770 if test "x$as_myself" = x; then
15771   as_myself=$0
15772 fi
15773 if test ! -f "$as_myself"; then
15774   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15775   exit 1
15776 fi
15777
15778 # Unset variables that we do not need and which cause bugs (e.g. in
15779 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15780 # suppresses any "Segmentation fault" message there.  '((' could
15781 # trigger a bug in pdksh 5.2.14.
15782 for as_var in BASH_ENV ENV MAIL MAILPATH
15783 do eval test x\${$as_var+set} = xset \
15784   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15785 done
15786 PS1='$ '
15787 PS2='> '
15788 PS4='+ '
15789
15790 # NLS nuisances.
15791 LC_ALL=C
15792 export LC_ALL
15793 LANGUAGE=C
15794 export LANGUAGE
15795
15796 # CDPATH.
15797 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15798
15799
15800 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15801 # ----------------------------------------
15802 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15803 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15804 # script with STATUS, using 1 if that was 0.
15805 as_fn_error ()
15806 {
15807   as_status=$1; test $as_status -eq 0 && as_status=1
15808   if test "$4"; then
15809     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15810     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15811   fi
15812   $as_echo "$as_me: error: $2" >&2
15813   as_fn_exit $as_status
15814 } # as_fn_error
15815
15816
15817 # as_fn_set_status STATUS
15818 # -----------------------
15819 # Set $? to STATUS, without forking.
15820 as_fn_set_status ()
15821 {
15822   return $1
15823 } # as_fn_set_status
15824
15825 # as_fn_exit STATUS
15826 # -----------------
15827 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15828 as_fn_exit ()
15829 {
15830   set +e
15831   as_fn_set_status $1
15832   exit $1
15833 } # as_fn_exit
15834
15835 # as_fn_unset VAR
15836 # ---------------
15837 # Portably unset VAR.
15838 as_fn_unset ()
15839 {
15840   { eval $1=; unset $1;}
15841 }
15842 as_unset=as_fn_unset
15843 # as_fn_append VAR VALUE
15844 # ----------------------
15845 # Append the text in VALUE to the end of the definition contained in VAR. Take
15846 # advantage of any shell optimizations that allow amortized linear growth over
15847 # repeated appends, instead of the typical quadratic growth present in naive
15848 # implementations.
15849 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15850   eval 'as_fn_append ()
15851   {
15852     eval $1+=\$2
15853   }'
15854 else
15855   as_fn_append ()
15856   {
15857     eval $1=\$$1\$2
15858   }
15859 fi # as_fn_append
15860
15861 # as_fn_arith ARG...
15862 # ------------------
15863 # Perform arithmetic evaluation on the ARGs, and store the result in the
15864 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15865 # must be portable across $(()) and expr.
15866 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15867   eval 'as_fn_arith ()
15868   {
15869     as_val=$(( $* ))
15870   }'
15871 else
15872   as_fn_arith ()
15873   {
15874     as_val=`expr "$@" || test $? -eq 1`
15875   }
15876 fi # as_fn_arith
15877
15878
15879 if expr a : '\(a\)' >/dev/null 2>&1 &&
15880    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15881   as_expr=expr
15882 else
15883   as_expr=false
15884 fi
15885
15886 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15887   as_basename=basename
15888 else
15889   as_basename=false
15890 fi
15891
15892 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15893   as_dirname=dirname
15894 else
15895   as_dirname=false
15896 fi
15897
15898 as_me=`$as_basename -- "$0" ||
15899 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15900          X"$0" : 'X\(//\)$' \| \
15901          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15902 $as_echo X/"$0" |
15903     sed '/^.*\/\([^/][^/]*\)\/*$/{
15904             s//\1/
15905             q
15906           }
15907           /^X\/\(\/\/\)$/{
15908             s//\1/
15909             q
15910           }
15911           /^X\/\(\/\).*/{
15912             s//\1/
15913             q
15914           }
15915           s/.*/./; q'`
15916
15917 # Avoid depending upon Character Ranges.
15918 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15919 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15920 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15921 as_cr_digits='0123456789'
15922 as_cr_alnum=$as_cr_Letters$as_cr_digits
15923
15924 ECHO_C= ECHO_N= ECHO_T=
15925 case `echo -n x` in #(((((
15926 -n*)
15927   case `echo 'xy\c'` in
15928   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15929   xy)  ECHO_C='\c';;
15930   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15931        ECHO_T=' ';;
15932   esac;;
15933 *)
15934   ECHO_N='-n';;
15935 esac
15936
15937 rm -f conf$$ conf$$.exe conf$$.file
15938 if test -d conf$$.dir; then
15939   rm -f conf$$.dir/conf$$.file
15940 else
15941   rm -f conf$$.dir
15942   mkdir conf$$.dir 2>/dev/null
15943 fi
15944 if (echo >conf$$.file) 2>/dev/null; then
15945   if ln -s conf$$.file conf$$ 2>/dev/null; then
15946     as_ln_s='ln -s'
15947     # ... but there are two gotchas:
15948     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15949     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15950     # In both cases, we have to default to `cp -pR'.
15951     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15952       as_ln_s='cp -pR'
15953   elif ln conf$$.file conf$$ 2>/dev/null; then
15954     as_ln_s=ln
15955   else
15956     as_ln_s='cp -pR'
15957   fi
15958 else
15959   as_ln_s='cp -pR'
15960 fi
15961 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15962 rmdir conf$$.dir 2>/dev/null
15963
15964
15965 # as_fn_mkdir_p
15966 # -------------
15967 # Create "$as_dir" as a directory, including parents if necessary.
15968 as_fn_mkdir_p ()
15969 {
15970
15971   case $as_dir in #(
15972   -*) as_dir=./$as_dir;;
15973   esac
15974   test -d "$as_dir" || eval $as_mkdir_p || {
15975     as_dirs=
15976     while :; do
15977       case $as_dir in #(
15978       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15979       *) as_qdir=$as_dir;;
15980       esac
15981       as_dirs="'$as_qdir' $as_dirs"
15982       as_dir=`$as_dirname -- "$as_dir" ||
15983 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15984          X"$as_dir" : 'X\(//\)[^/]' \| \
15985          X"$as_dir" : 'X\(//\)$' \| \
15986          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15987 $as_echo X"$as_dir" |
15988     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15989             s//\1/
15990             q
15991           }
15992           /^X\(\/\/\)[^/].*/{
15993             s//\1/
15994             q
15995           }
15996           /^X\(\/\/\)$/{
15997             s//\1/
15998             q
15999           }
16000           /^X\(\/\).*/{
16001             s//\1/
16002             q
16003           }
16004           s/.*/./; q'`
16005       test -d "$as_dir" && break
16006     done
16007     test -z "$as_dirs" || eval "mkdir $as_dirs"
16008   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16009
16010
16011 } # as_fn_mkdir_p
16012 if mkdir -p . 2>/dev/null; then
16013   as_mkdir_p='mkdir -p "$as_dir"'
16014 else
16015   test -d ./-p && rmdir ./-p
16016   as_mkdir_p=false
16017 fi
16018
16019
16020 # as_fn_executable_p FILE
16021 # -----------------------
16022 # Test if FILE is an executable regular file.
16023 as_fn_executable_p ()
16024 {
16025   test -f "$1" && test -x "$1"
16026 } # as_fn_executable_p
16027 as_test_x='test -x'
16028 as_executable_p=as_fn_executable_p
16029
16030 # Sed expression to map a string onto a valid CPP name.
16031 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16032
16033 # Sed expression to map a string onto a valid variable name.
16034 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16035
16036
16037 exec 6>&1
16038 ## ----------------------------------- ##
16039 ## Main body of $CONFIG_STATUS script. ##
16040 ## ----------------------------------- ##
16041 _ASEOF
16042 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16043
16044 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16045 # Save the log message, to keep $0 and so on meaningful, and to
16046 # report actual input values of CONFIG_FILES etc. instead of their
16047 # values after options handling.
16048 ac_log="
16049 This file was extended by libgpg-error $as_me 1.13, which was
16050 generated by GNU Autoconf 2.69.  Invocation command line was
16051
16052   CONFIG_FILES    = $CONFIG_FILES
16053   CONFIG_HEADERS  = $CONFIG_HEADERS
16054   CONFIG_LINKS    = $CONFIG_LINKS
16055   CONFIG_COMMANDS = $CONFIG_COMMANDS
16056   $ $0 $@
16057
16058 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16059 "
16060
16061 _ACEOF
16062
16063 case $ac_config_files in *"
16064 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16065 esac
16066
16067 case $ac_config_headers in *"
16068 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16069 esac
16070
16071
16072 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16073 # Files that config.status was made for.
16074 config_files="$ac_config_files"
16075 config_headers="$ac_config_headers"
16076 config_commands="$ac_config_commands"
16077
16078 _ACEOF
16079
16080 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16081 ac_cs_usage="\
16082 \`$as_me' instantiates files and other configuration actions
16083 from templates according to the current configuration.  Unless the files
16084 and actions are specified as TAGs, all are instantiated by default.
16085
16086 Usage: $0 [OPTION]... [TAG]...
16087
16088   -h, --help       print this help, then exit
16089   -V, --version    print version number and configuration settings, then exit
16090       --config     print configuration, then exit
16091   -q, --quiet, --silent
16092                    do not print progress messages
16093   -d, --debug      don't remove temporary files
16094       --recheck    update $as_me by reconfiguring in the same conditions
16095       --file=FILE[:TEMPLATE]
16096                    instantiate the configuration file FILE
16097       --header=FILE[:TEMPLATE]
16098                    instantiate the configuration header FILE
16099
16100 Configuration files:
16101 $config_files
16102
16103 Configuration headers:
16104 $config_headers
16105
16106 Configuration commands:
16107 $config_commands
16108
16109 Report bugs to <http://bugs.gnupg.org>."
16110
16111 _ACEOF
16112 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16113 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16114 ac_cs_version="\\
16115 libgpg-error config.status 1.13
16116 configured by $0, generated by GNU Autoconf 2.69,
16117   with options \\"\$ac_cs_config\\"
16118
16119 Copyright (C) 2012 Free Software Foundation, Inc.
16120 This config.status script is free software; the Free Software Foundation
16121 gives unlimited permission to copy, distribute and modify it."
16122
16123 ac_pwd='$ac_pwd'
16124 srcdir='$srcdir'
16125 INSTALL='$INSTALL'
16126 MKDIR_P='$MKDIR_P'
16127 AWK='$AWK'
16128 test -n "\$AWK" || AWK=awk
16129 _ACEOF
16130
16131 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16132 # The default lists apply if the user does not specify any file.
16133 ac_need_defaults=:
16134 while test $# != 0
16135 do
16136   case $1 in
16137   --*=?*)
16138     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16139     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16140     ac_shift=:
16141     ;;
16142   --*=)
16143     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16144     ac_optarg=
16145     ac_shift=:
16146     ;;
16147   *)
16148     ac_option=$1
16149     ac_optarg=$2
16150     ac_shift=shift
16151     ;;
16152   esac
16153
16154   case $ac_option in
16155   # Handling of the options.
16156   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16157     ac_cs_recheck=: ;;
16158   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16159     $as_echo "$ac_cs_version"; exit ;;
16160   --config | --confi | --conf | --con | --co | --c )
16161     $as_echo "$ac_cs_config"; exit ;;
16162   --debug | --debu | --deb | --de | --d | -d )
16163     debug=: ;;
16164   --file | --fil | --fi | --f )
16165     $ac_shift
16166     case $ac_optarg in
16167     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16168     '') as_fn_error $? "missing file argument" ;;
16169     esac
16170     as_fn_append CONFIG_FILES " '$ac_optarg'"
16171     ac_need_defaults=false;;
16172   --header | --heade | --head | --hea )
16173     $ac_shift
16174     case $ac_optarg in
16175     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16176     esac
16177     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16178     ac_need_defaults=false;;
16179   --he | --h)
16180     # Conflict between --help and --header
16181     as_fn_error $? "ambiguous option: \`$1'
16182 Try \`$0 --help' for more information.";;
16183   --help | --hel | -h )
16184     $as_echo "$ac_cs_usage"; exit ;;
16185   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16186   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16187     ac_cs_silent=: ;;
16188
16189   # This is an error.
16190   -*) as_fn_error $? "unrecognized option: \`$1'
16191 Try \`$0 --help' for more information." ;;
16192
16193   *) as_fn_append ac_config_targets " $1"
16194      ac_need_defaults=false ;;
16195
16196   esac
16197   shift
16198 done
16199
16200 ac_configure_extra_args=
16201
16202 if $ac_cs_silent; then
16203   exec 6>/dev/null
16204   ac_configure_extra_args="$ac_configure_extra_args --silent"
16205 fi
16206
16207 _ACEOF
16208 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16209 if \$ac_cs_recheck; then
16210   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16211   shift
16212   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16213   CONFIG_SHELL='$SHELL'
16214   export CONFIG_SHELL
16215   exec "\$@"
16216 fi
16217
16218 _ACEOF
16219 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16220 exec 5>>config.log
16221 {
16222   echo
16223   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16224 ## Running $as_me. ##
16225 _ASBOX
16226   $as_echo "$ac_log"
16227 } >&5
16228
16229 _ACEOF
16230 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16231 #
16232 # INIT-COMMANDS
16233 #
16234 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16235
16236
16237 # The HP-UX ksh and POSIX shell print the target directory to stdout
16238 # if CDPATH is set.
16239 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16240
16241 sed_quote_subst='$sed_quote_subst'
16242 double_quote_subst='$double_quote_subst'
16243 delay_variable_subst='$delay_variable_subst'
16244 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16245 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16246 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
16247 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16248 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16249 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16250 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16251 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16252 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16253 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16254 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16255 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16256 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16257 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16258 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16259 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16260 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16261 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16262 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16263 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16264 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16265 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16266 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16267 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16268 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16269 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16270 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16271 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16272 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16273 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16274 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16275 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16276 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16277 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16278 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16279 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16280 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16281 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16282 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16283 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16284 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16285 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16286 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16287 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16288 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16289 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16290 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16291 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16292 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16293 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16294 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16295 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16296 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16297 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16298 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16299 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16300 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16301 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"`'
16302 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16303 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16304 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16305 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16306 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16307 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16308 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16309 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16310 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16311 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16312 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16313 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16314 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16315 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16316 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16317 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16318 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16319 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16320 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16321 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16322 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16323 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16324 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16325 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16326 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16327 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16328 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16329 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16330 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16331 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16332 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16333 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16334 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16335 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16336 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16337 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16338 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16339 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16340 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16341 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16342 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16343 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16344 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16345 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16346 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16347 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16348 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16349 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16350 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16351 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16352 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16353 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16354 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16355 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16356 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16357 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16358 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16359 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16360 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16361 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16362 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16363 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16364 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16365 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16366 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16367 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16368 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16369 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16370 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16371 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16372 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16373 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16374 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16375 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
16376 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
16377 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
16378 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
16379 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
16380 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
16381 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
16382 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
16383 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
16384 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
16385 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
16386 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
16387 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
16388 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
16389 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
16390 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
16391 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
16392 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
16393 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
16394 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
16395 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
16396 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
16397 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
16398 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
16399 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
16400 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
16401 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
16402 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
16403 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
16404 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
16405 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
16406 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
16407 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
16408 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
16409 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
16410 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
16411 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
16412 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
16413 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
16414 postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
16415 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
16416 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
16417
16418 LTCC='$LTCC'
16419 LTCFLAGS='$LTCFLAGS'
16420 compiler='$compiler_DEFAULT'
16421
16422 # A function that is used when there is no print builtin or printf.
16423 func_fallback_echo ()
16424 {
16425   eval 'cat <<_LTECHO_EOF
16426 \$1
16427 _LTECHO_EOF'
16428 }
16429
16430 # Quote evaled strings.
16431 for var in AS \
16432 DLLTOOL \
16433 OBJDUMP \
16434 SHELL \
16435 ECHO \
16436 PATH_SEPARATOR \
16437 SED \
16438 GREP \
16439 EGREP \
16440 FGREP \
16441 LD \
16442 NM \
16443 LN_S \
16444 lt_SP2NL \
16445 lt_NL2SP \
16446 reload_flag \
16447 deplibs_check_method \
16448 file_magic_cmd \
16449 file_magic_glob \
16450 want_nocaseglob \
16451 sharedlib_from_linklib_cmd \
16452 AR \
16453 AR_FLAGS \
16454 archiver_list_spec \
16455 STRIP \
16456 RANLIB \
16457 CC \
16458 CFLAGS \
16459 compiler \
16460 lt_cv_sys_global_symbol_pipe \
16461 lt_cv_sys_global_symbol_to_cdecl \
16462 lt_cv_sys_global_symbol_to_c_name_address \
16463 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16464 nm_file_list_spec \
16465 lt_prog_compiler_no_builtin_flag \
16466 lt_prog_compiler_pic \
16467 lt_prog_compiler_wl \
16468 lt_prog_compiler_static \
16469 lt_cv_prog_compiler_c_o \
16470 need_locks \
16471 MANIFEST_TOOL \
16472 DSYMUTIL \
16473 NMEDIT \
16474 LIPO \
16475 OTOOL \
16476 OTOOL64 \
16477 shrext_cmds \
16478 export_dynamic_flag_spec \
16479 whole_archive_flag_spec \
16480 compiler_needs_object \
16481 with_gnu_ld \
16482 allow_undefined_flag \
16483 no_undefined_flag \
16484 hardcode_libdir_flag_spec \
16485 hardcode_libdir_separator \
16486 exclude_expsyms \
16487 include_expsyms \
16488 file_list_spec \
16489 variables_saved_for_relink \
16490 libname_spec \
16491 library_names_spec \
16492 soname_spec \
16493 install_override_mode \
16494 finish_eval \
16495 old_striplib \
16496 striplib \
16497 LD_RC \
16498 reload_flag_RC \
16499 compiler_RC \
16500 lt_prog_compiler_no_builtin_flag_RC \
16501 lt_prog_compiler_pic_RC \
16502 lt_prog_compiler_wl_RC \
16503 lt_prog_compiler_static_RC \
16504 lt_cv_prog_compiler_c_o_RC \
16505 export_dynamic_flag_spec_RC \
16506 whole_archive_flag_spec_RC \
16507 compiler_needs_object_RC \
16508 with_gnu_ld_RC \
16509 allow_undefined_flag_RC \
16510 no_undefined_flag_RC \
16511 hardcode_libdir_flag_spec_RC \
16512 hardcode_libdir_separator_RC \
16513 exclude_expsyms_RC \
16514 include_expsyms_RC \
16515 file_list_spec_RC; do
16516     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16517     *[\\\\\\\`\\"\\\$]*)
16518       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16519       ;;
16520     *)
16521       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16522       ;;
16523     esac
16524 done
16525
16526 # Double-quote double-evaled strings.
16527 for var in reload_cmds \
16528 old_postinstall_cmds \
16529 old_postuninstall_cmds \
16530 old_archive_cmds \
16531 extract_expsyms_cmds \
16532 old_archive_from_new_cmds \
16533 old_archive_from_expsyms_cmds \
16534 archive_cmds \
16535 archive_expsym_cmds \
16536 module_cmds \
16537 module_expsym_cmds \
16538 export_symbols_cmds \
16539 prelink_cmds \
16540 postlink_cmds \
16541 postinstall_cmds \
16542 postuninstall_cmds \
16543 finish_cmds \
16544 sys_lib_search_path_spec \
16545 sys_lib_dlsearch_path_spec \
16546 reload_cmds_RC \
16547 old_archive_cmds_RC \
16548 old_archive_from_new_cmds_RC \
16549 old_archive_from_expsyms_cmds_RC \
16550 archive_cmds_RC \
16551 archive_expsym_cmds_RC \
16552 module_cmds_RC \
16553 module_expsym_cmds_RC \
16554 export_symbols_cmds_RC \
16555 prelink_cmds_RC \
16556 postlink_cmds_RC; do
16557     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16558     *[\\\\\\\`\\"\\\$]*)
16559       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16560       ;;
16561     *)
16562       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16563       ;;
16564     esac
16565 done
16566
16567 ac_aux_dir='$ac_aux_dir'
16568 xsi_shell='$xsi_shell'
16569 lt_shell_append='$lt_shell_append'
16570
16571 # See if we are running on zsh, and set the options which allow our
16572 # commands through without removal of \ escapes INIT.
16573 if test -n "\${ZSH_VERSION+set}" ; then
16574    setopt NO_GLOB_SUBST
16575 fi
16576
16577
16578     PACKAGE='$PACKAGE'
16579     VERSION='$VERSION'
16580     TIMESTAMP='$TIMESTAMP'
16581     RM='$RM'
16582     ofile='$ofile'
16583
16584
16585
16586
16587
16588 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
16589     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
16590     # from automake < 1.5.
16591     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
16592     # Capture the value of LINGUAS because we need it to compute CATALOGS.
16593     LINGUAS="${LINGUAS-%UNSET%}"
16594
16595
16596 _ACEOF
16597
16598 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16599
16600 # Handling of arguments.
16601 for ac_config_target in $ac_config_targets
16602 do
16603   case $ac_config_target in
16604     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16605     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16606     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16607     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
16608     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16609     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
16610     "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
16611     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16612     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
16613     "lang/Makefile") CONFIG_FILES="$CONFIG_FILES lang/Makefile" ;;
16614     "lang/cl/Makefile") CONFIG_FILES="$CONFIG_FILES lang/cl/Makefile" ;;
16615     "lang/cl/gpg-error.asd") CONFIG_FILES="$CONFIG_FILES lang/cl/gpg-error.asd" ;;
16616     "src/versioninfo.rc") CONFIG_FILES="$CONFIG_FILES src/versioninfo.rc" ;;
16617     "src/gpg-error-config") CONFIG_FILES="$CONFIG_FILES src/gpg-error-config" ;;
16618
16619   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16620   esac
16621 done
16622
16623
16624 # If the user did not use the arguments to specify the items to instantiate,
16625 # then the envvar interface is used.  Set only those that are not.
16626 # We use the long form for the default assignment because of an extremely
16627 # bizarre bug on SunOS 4.1.3.
16628 if $ac_need_defaults; then
16629   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16630   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16631   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16632 fi
16633
16634 # Have a temporary directory for convenience.  Make it in the build tree
16635 # simply because there is no reason against having it here, and in addition,
16636 # creating and moving files from /tmp can sometimes cause problems.
16637 # Hook for its removal unless debugging.
16638 # Note that there is a small window in which the directory will not be cleaned:
16639 # after its creation but before its name has been assigned to `$tmp'.
16640 $debug ||
16641 {
16642   tmp= ac_tmp=
16643   trap 'exit_status=$?
16644   : "${ac_tmp:=$tmp}"
16645   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16646 ' 0
16647   trap 'as_fn_exit 1' 1 2 13 15
16648 }
16649 # Create a (secure) tmp directory for tmp files.
16650
16651 {
16652   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16653   test -d "$tmp"
16654 }  ||
16655 {
16656   tmp=./conf$$-$RANDOM
16657   (umask 077 && mkdir "$tmp")
16658 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16659 ac_tmp=$tmp
16660
16661 # Set up the scripts for CONFIG_FILES section.
16662 # No need to generate them if there are no CONFIG_FILES.
16663 # This happens for instance with `./config.status config.h'.
16664 if test -n "$CONFIG_FILES"; then
16665
16666
16667 ac_cr=`echo X | tr X '\015'`
16668 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16669 # But we know of no other shell where ac_cr would be empty at this
16670 # point, so we can use a bashism as a fallback.
16671 if test "x$ac_cr" = x; then
16672   eval ac_cr=\$\'\\r\'
16673 fi
16674 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16675 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16676   ac_cs_awk_cr='\\r'
16677 else
16678   ac_cs_awk_cr=$ac_cr
16679 fi
16680
16681 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16682 _ACEOF
16683
16684
16685 {
16686   echo "cat >conf$$subs.awk <<_ACEOF" &&
16687   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16688   echo "_ACEOF"
16689 } >conf$$subs.sh ||
16690   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16691 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16692 ac_delim='%!_!# '
16693 for ac_last_try in false false false false false :; do
16694   . ./conf$$subs.sh ||
16695     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16696
16697   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16698   if test $ac_delim_n = $ac_delim_num; then
16699     break
16700   elif $ac_last_try; then
16701     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16702   else
16703     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16704   fi
16705 done
16706 rm -f conf$$subs.sh
16707
16708 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16709 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16710 _ACEOF
16711 sed -n '
16712 h
16713 s/^/S["/; s/!.*/"]=/
16714 p
16715 g
16716 s/^[^!]*!//
16717 :repl
16718 t repl
16719 s/'"$ac_delim"'$//
16720 t delim
16721 :nl
16722 h
16723 s/\(.\{148\}\)..*/\1/
16724 t more1
16725 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16726 p
16727 n
16728 b repl
16729 :more1
16730 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16731 p
16732 g
16733 s/.\{148\}//
16734 t nl
16735 :delim
16736 h
16737 s/\(.\{148\}\)..*/\1/
16738 t more2
16739 s/["\\]/\\&/g; s/^/"/; s/$/"/
16740 p
16741 b
16742 :more2
16743 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16744 p
16745 g
16746 s/.\{148\}//
16747 t delim
16748 ' <conf$$subs.awk | sed '
16749 /^[^""]/{
16750   N
16751   s/\n//
16752 }
16753 ' >>$CONFIG_STATUS || ac_write_fail=1
16754 rm -f conf$$subs.awk
16755 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16756 _ACAWK
16757 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16758   for (key in S) S_is_set[key] = 1
16759   FS = "\a"
16760
16761 }
16762 {
16763   line = $ 0
16764   nfields = split(line, field, "@")
16765   substed = 0
16766   len = length(field[1])
16767   for (i = 2; i < nfields; i++) {
16768     key = field[i]
16769     keylen = length(key)
16770     if (S_is_set[key]) {
16771       value = S[key]
16772       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16773       len += length(value) + length(field[++i])
16774       substed = 1
16775     } else
16776       len += 1 + keylen
16777   }
16778
16779   print line
16780 }
16781
16782 _ACAWK
16783 _ACEOF
16784 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16785 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16786   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16787 else
16788   cat
16789 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16790   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16791 _ACEOF
16792
16793 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16794 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16795 # trailing colons and then remove the whole line if VPATH becomes empty
16796 # (actually we leave an empty line to preserve line numbers).
16797 if test "x$srcdir" = x.; then
16798   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
16799 h
16800 s///
16801 s/^/:/
16802 s/[      ]*$/:/
16803 s/:\$(srcdir):/:/g
16804 s/:\${srcdir}:/:/g
16805 s/:@srcdir@:/:/g
16806 s/^:*//
16807 s/:*$//
16808 x
16809 s/\(=[   ]*\).*/\1/
16810 G
16811 s/\n//
16812 s/^[^=]*=[       ]*$//
16813 }'
16814 fi
16815
16816 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16817 fi # test -n "$CONFIG_FILES"
16818
16819 # Set up the scripts for CONFIG_HEADERS section.
16820 # No need to generate them if there are no CONFIG_HEADERS.
16821 # This happens for instance with `./config.status Makefile'.
16822 if test -n "$CONFIG_HEADERS"; then
16823 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16824 BEGIN {
16825 _ACEOF
16826
16827 # Transform confdefs.h into an awk script `defines.awk', embedded as
16828 # here-document in config.status, that substitutes the proper values into
16829 # config.h.in to produce config.h.
16830
16831 # Create a delimiter string that does not exist in confdefs.h, to ease
16832 # handling of long lines.
16833 ac_delim='%!_!# '
16834 for ac_last_try in false false :; do
16835   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16836   if test -z "$ac_tt"; then
16837     break
16838   elif $ac_last_try; then
16839     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16840   else
16841     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16842   fi
16843 done
16844
16845 # For the awk script, D is an array of macro values keyed by name,
16846 # likewise P contains macro parameters if any.  Preserve backslash
16847 # newline sequences.
16848
16849 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16850 sed -n '
16851 s/.\{148\}/&'"$ac_delim"'/g
16852 t rset
16853 :rset
16854 s/^[     ]*#[    ]*define[       ][      ]*/ /
16855 t def
16856 d
16857 :def
16858 s/\\$//
16859 t bsnl
16860 s/["\\]/\\&/g
16861 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16862 D["\1"]=" \3"/p
16863 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16864 d
16865 :bsnl
16866 s/["\\]/\\&/g
16867 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16868 D["\1"]=" \3\\\\\\n"\\/p
16869 t cont
16870 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16871 t cont
16872 d
16873 :cont
16874 n
16875 s/.\{148\}/&'"$ac_delim"'/g
16876 t clear
16877 :clear
16878 s/\\$//
16879 t bsnlc
16880 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16881 d
16882 :bsnlc
16883 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16884 b cont
16885 ' <confdefs.h | sed '
16886 s/'"$ac_delim"'/"\\\
16887 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16888
16889 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16890   for (key in D) D_is_set[key] = 1
16891   FS = "\a"
16892 }
16893 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16894   line = \$ 0
16895   split(line, arg, " ")
16896   if (arg[1] == "#") {
16897     defundef = arg[2]
16898     mac1 = arg[3]
16899   } else {
16900     defundef = substr(arg[1], 2)
16901     mac1 = arg[2]
16902   }
16903   split(mac1, mac2, "(") #)
16904   macro = mac2[1]
16905   prefix = substr(line, 1, index(line, defundef) - 1)
16906   if (D_is_set[macro]) {
16907     # Preserve the white space surrounding the "#".
16908     print prefix "define", macro P[macro] D[macro]
16909     next
16910   } else {
16911     # Replace #undef with comments.  This is necessary, for example,
16912     # in the case of _POSIX_SOURCE, which is predefined and required
16913     # on some systems where configure will not decide to define it.
16914     if (defundef == "undef") {
16915       print "/*", prefix defundef, macro, "*/"
16916       next
16917     }
16918   }
16919 }
16920 { print }
16921 _ACAWK
16922 _ACEOF
16923 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16924   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16925 fi # test -n "$CONFIG_HEADERS"
16926
16927
16928 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16929 shift
16930 for ac_tag
16931 do
16932   case $ac_tag in
16933   :[FHLC]) ac_mode=$ac_tag; continue;;
16934   esac
16935   case $ac_mode$ac_tag in
16936   :[FHL]*:*);;
16937   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16938   :[FH]-) ac_tag=-:-;;
16939   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16940   esac
16941   ac_save_IFS=$IFS
16942   IFS=:
16943   set x $ac_tag
16944   IFS=$ac_save_IFS
16945   shift
16946   ac_file=$1
16947   shift
16948
16949   case $ac_mode in
16950   :L) ac_source=$1;;
16951   :[FH])
16952     ac_file_inputs=
16953     for ac_f
16954     do
16955       case $ac_f in
16956       -) ac_f="$ac_tmp/stdin";;
16957       *) # Look for the file first in the build tree, then in the source tree
16958          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16959          # because $ac_f cannot contain `:'.
16960          test -f "$ac_f" ||
16961            case $ac_f in
16962            [\\/$]*) false;;
16963            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16964            esac ||
16965            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16966       esac
16967       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16968       as_fn_append ac_file_inputs " '$ac_f'"
16969     done
16970
16971     # Let's still pretend it is `configure' which instantiates (i.e., don't
16972     # use $as_me), people would be surprised to read:
16973     #    /* config.h.  Generated by config.status.  */
16974     configure_input='Generated from '`
16975           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16976         `' by configure.'
16977     if test x"$ac_file" != x-; then
16978       configure_input="$ac_file.  $configure_input"
16979       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16980 $as_echo "$as_me: creating $ac_file" >&6;}
16981     fi
16982     # Neutralize special characters interpreted by sed in replacement strings.
16983     case $configure_input in #(
16984     *\&* | *\|* | *\\* )
16985        ac_sed_conf_input=`$as_echo "$configure_input" |
16986        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16987     *) ac_sed_conf_input=$configure_input;;
16988     esac
16989
16990     case $ac_tag in
16991     *:-:* | *:-) cat >"$ac_tmp/stdin" \
16992       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16993     esac
16994     ;;
16995   esac
16996
16997   ac_dir=`$as_dirname -- "$ac_file" ||
16998 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16999          X"$ac_file" : 'X\(//\)[^/]' \| \
17000          X"$ac_file" : 'X\(//\)$' \| \
17001          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17002 $as_echo X"$ac_file" |
17003     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17004             s//\1/
17005             q
17006           }
17007           /^X\(\/\/\)[^/].*/{
17008             s//\1/
17009             q
17010           }
17011           /^X\(\/\/\)$/{
17012             s//\1/
17013             q
17014           }
17015           /^X\(\/\).*/{
17016             s//\1/
17017             q
17018           }
17019           s/.*/./; q'`
17020   as_dir="$ac_dir"; as_fn_mkdir_p
17021   ac_builddir=.
17022
17023 case "$ac_dir" in
17024 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17025 *)
17026   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17027   # A ".." for each directory in $ac_dir_suffix.
17028   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17029   case $ac_top_builddir_sub in
17030   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17031   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17032   esac ;;
17033 esac
17034 ac_abs_top_builddir=$ac_pwd
17035 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17036 # for backward compatibility:
17037 ac_top_builddir=$ac_top_build_prefix
17038
17039 case $srcdir in
17040   .)  # We are building in place.
17041     ac_srcdir=.
17042     ac_top_srcdir=$ac_top_builddir_sub
17043     ac_abs_top_srcdir=$ac_pwd ;;
17044   [\\/]* | ?:[\\/]* )  # Absolute name.
17045     ac_srcdir=$srcdir$ac_dir_suffix;
17046     ac_top_srcdir=$srcdir
17047     ac_abs_top_srcdir=$srcdir ;;
17048   *) # Relative name.
17049     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17050     ac_top_srcdir=$ac_top_build_prefix$srcdir
17051     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17052 esac
17053 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17054
17055
17056   case $ac_mode in
17057   :F)
17058   #
17059   # CONFIG_FILE
17060   #
17061
17062   case $INSTALL in
17063   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17064   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17065   esac
17066   ac_MKDIR_P=$MKDIR_P
17067   case $MKDIR_P in
17068   [\\/$]* | ?:[\\/]* ) ;;
17069   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17070   esac
17071 _ACEOF
17072
17073 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17074 # If the template does not know about datarootdir, expand it.
17075 # FIXME: This hack should be removed a few years after 2.60.
17076 ac_datarootdir_hack=; ac_datarootdir_seen=
17077 ac_sed_dataroot='
17078 /datarootdir/ {
17079   p
17080   q
17081 }
17082 /@datadir@/p
17083 /@docdir@/p
17084 /@infodir@/p
17085 /@localedir@/p
17086 /@mandir@/p'
17087 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17088 *datarootdir*) ac_datarootdir_seen=yes;;
17089 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17090   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17091 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17092 _ACEOF
17093 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17094   ac_datarootdir_hack='
17095   s&@datadir@&$datadir&g
17096   s&@docdir@&$docdir&g
17097   s&@infodir@&$infodir&g
17098   s&@localedir@&$localedir&g
17099   s&@mandir@&$mandir&g
17100   s&\\\${datarootdir}&$datarootdir&g' ;;
17101 esac
17102 _ACEOF
17103
17104 # Neutralize VPATH when `$srcdir' = `.'.
17105 # Shell code in configure.ac might set extrasub.
17106 # FIXME: do we really want to maintain this feature?
17107 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17108 ac_sed_extra="$ac_vpsub
17109 $extrasub
17110 _ACEOF
17111 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17112 :t
17113 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17114 s|@configure_input@|$ac_sed_conf_input|;t t
17115 s&@top_builddir@&$ac_top_builddir_sub&;t t
17116 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17117 s&@srcdir@&$ac_srcdir&;t t
17118 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17119 s&@top_srcdir@&$ac_top_srcdir&;t t
17120 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17121 s&@builddir@&$ac_builddir&;t t
17122 s&@abs_builddir@&$ac_abs_builddir&;t t
17123 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17124 s&@INSTALL@&$ac_INSTALL&;t t
17125 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17126 $ac_datarootdir_hack
17127 "
17128 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17129   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17130
17131 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17132   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17133   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
17134       "$ac_tmp/out"`; test -z "$ac_out"; } &&
17135   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17136 which seems to be undefined.  Please make sure it is defined" >&5
17137 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17138 which seems to be undefined.  Please make sure it is defined" >&2;}
17139
17140   rm -f "$ac_tmp/stdin"
17141   case $ac_file in
17142   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17143   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17144   esac \
17145   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17146  ;;
17147   :H)
17148   #
17149   # CONFIG_HEADER
17150   #
17151   if test x"$ac_file" != x-; then
17152     {
17153       $as_echo "/* $configure_input  */" \
17154       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17155     } >"$ac_tmp/config.h" \
17156       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17157     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17158       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17159 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17160     else
17161       rm -f "$ac_file"
17162       mv "$ac_tmp/config.h" "$ac_file" \
17163         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17164     fi
17165   else
17166     $as_echo "/* $configure_input  */" \
17167       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17168       || as_fn_error $? "could not create -" "$LINENO" 5
17169   fi
17170 # Compute "$ac_file"'s index in $config_headers.
17171 _am_arg="$ac_file"
17172 _am_stamp_count=1
17173 for _am_header in $config_headers :; do
17174   case $_am_header in
17175     $_am_arg | $_am_arg:* )
17176       break ;;
17177     * )
17178       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17179   esac
17180 done
17181 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17182 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17183          X"$_am_arg" : 'X\(//\)[^/]' \| \
17184          X"$_am_arg" : 'X\(//\)$' \| \
17185          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17186 $as_echo X"$_am_arg" |
17187     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17188             s//\1/
17189             q
17190           }
17191           /^X\(\/\/\)[^/].*/{
17192             s//\1/
17193             q
17194           }
17195           /^X\(\/\/\)$/{
17196             s//\1/
17197             q
17198           }
17199           /^X\(\/\).*/{
17200             s//\1/
17201             q
17202           }
17203           s/.*/./; q'`/stamp-h$_am_stamp_count
17204  ;;
17205
17206   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17207 $as_echo "$as_me: executing $ac_file commands" >&6;}
17208  ;;
17209   esac
17210
17211
17212   case $ac_file$ac_mode in
17213     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17214   # Autoconf 2.62 quotes --file arguments for eval, but not when files
17215   # are listed without --file.  Let's play safe and only enable the eval
17216   # if we detect the quoting.
17217   case $CONFIG_FILES in
17218   *\'*) eval set x "$CONFIG_FILES" ;;
17219   *)   set x $CONFIG_FILES ;;
17220   esac
17221   shift
17222   for mf
17223   do
17224     # Strip MF so we end up with the name of the file.
17225     mf=`echo "$mf" | sed -e 's/:.*$//'`
17226     # Check whether this is an Automake generated Makefile or not.
17227     # We used to match only the files named `Makefile.in', but
17228     # some people rename them; so instead we look at the file content.
17229     # Grep'ing the first line is not enough: some people post-process
17230     # each Makefile.in and add a new line on top of each file to say so.
17231     # Grep'ing the whole file is not good either: AIX grep has a line
17232     # limit of 2048, but all sed's we know have understand at least 4000.
17233     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17234       dirpart=`$as_dirname -- "$mf" ||
17235 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17236          X"$mf" : 'X\(//\)[^/]' \| \
17237          X"$mf" : 'X\(//\)$' \| \
17238          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17239 $as_echo X"$mf" |
17240     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17241             s//\1/
17242             q
17243           }
17244           /^X\(\/\/\)[^/].*/{
17245             s//\1/
17246             q
17247           }
17248           /^X\(\/\/\)$/{
17249             s//\1/
17250             q
17251           }
17252           /^X\(\/\).*/{
17253             s//\1/
17254             q
17255           }
17256           s/.*/./; q'`
17257     else
17258       continue
17259     fi
17260     # Extract the definition of DEPDIR, am__include, and am__quote
17261     # from the Makefile without running `make'.
17262     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17263     test -z "$DEPDIR" && continue
17264     am__include=`sed -n 's/^am__include = //p' < "$mf"`
17265     test -z "am__include" && continue
17266     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17267     # When using ansi2knr, U may be empty or an underscore; expand it
17268     U=`sed -n 's/^U = //p' < "$mf"`
17269     # Find all dependency output files, they are included files with
17270     # $(DEPDIR) in their names.  We invoke sed twice because it is the
17271     # simplest approach to changing $(DEPDIR) to its actual value in the
17272     # expansion.
17273     for file in `sed -n "
17274       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17275          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17276       # Make sure the directory exists.
17277       test -f "$dirpart/$file" && continue
17278       fdir=`$as_dirname -- "$file" ||
17279 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17280          X"$file" : 'X\(//\)[^/]' \| \
17281          X"$file" : 'X\(//\)$' \| \
17282          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17283 $as_echo X"$file" |
17284     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17285             s//\1/
17286             q
17287           }
17288           /^X\(\/\/\)[^/].*/{
17289             s//\1/
17290             q
17291           }
17292           /^X\(\/\/\)$/{
17293             s//\1/
17294             q
17295           }
17296           /^X\(\/\).*/{
17297             s//\1/
17298             q
17299           }
17300           s/.*/./; q'`
17301       as_dir=$dirpart/$fdir; as_fn_mkdir_p
17302       # echo "creating $dirpart/$file"
17303       echo '# dummy' > "$dirpart/$file"
17304     done
17305   done
17306 }
17307  ;;
17308     "libtool":C)
17309
17310     # See if we are running on zsh, and set the options which allow our
17311     # commands through without removal of \ escapes.
17312     if test -n "${ZSH_VERSION+set}" ; then
17313       setopt NO_GLOB_SUBST
17314     fi
17315
17316     cfgfile="${ofile}T"
17317     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17318     $RM "$cfgfile"
17319
17320     cat <<_LT_EOF >> "$cfgfile"
17321 #! $SHELL
17322
17323 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17324 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17325 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17326 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17327 #
17328 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17329 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
17330 #                 Foundation, Inc.
17331 #   Written by Gordon Matzigkeit, 1996
17332 #
17333 #   This file is part of GNU Libtool.
17334 #
17335 # GNU Libtool is free software; you can redistribute it and/or
17336 # modify it under the terms of the GNU General Public License as
17337 # published by the Free Software Foundation; either version 2 of
17338 # the License, or (at your option) any later version.
17339 #
17340 # As a special exception to the GNU General Public License,
17341 # if you distribute this file as part of a program or library that
17342 # is built using GNU Libtool, you may include this file under the
17343 # same distribution terms that you use for the rest of that program.
17344 #
17345 # GNU Libtool is distributed in the hope that it will be useful,
17346 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17347 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17348 # GNU General Public License for more details.
17349 #
17350 # You should have received a copy of the GNU General Public License
17351 # along with GNU Libtool; see the file COPYING.  If not, a copy
17352 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17353 # obtained by writing to the Free Software Foundation, Inc.,
17354 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17355
17356
17357 # The names of the tagged configurations supported by this script.
17358 available_tags="RC "
17359
17360 # ### BEGIN LIBTOOL CONFIG
17361
17362 # Which release of libtool.m4 was used?
17363 macro_version=$macro_version
17364 macro_revision=$macro_revision
17365
17366 # Assembler program.
17367 AS=$lt_AS
17368
17369 # DLL creation program.
17370 DLLTOOL=$lt_DLLTOOL
17371
17372 # Object dumper program.
17373 OBJDUMP=$lt_OBJDUMP
17374
17375 # Whether or not to build static libraries.
17376 build_old_libs=$enable_static
17377
17378 # Whether or not to build shared libraries.
17379 build_libtool_libs=$enable_shared
17380
17381 # What type of objects to build.
17382 pic_mode=$pic_mode
17383
17384 # Whether or not to optimize for fast installation.
17385 fast_install=$enable_fast_install
17386
17387 # Shell to use when invoking shell scripts.
17388 SHELL=$lt_SHELL
17389
17390 # An echo program that protects backslashes.
17391 ECHO=$lt_ECHO
17392
17393 # The PATH separator for the build system.
17394 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17395
17396 # The host system.
17397 host_alias=$host_alias
17398 host=$host
17399 host_os=$host_os
17400
17401 # The build system.
17402 build_alias=$build_alias
17403 build=$build
17404 build_os=$build_os
17405
17406 # A sed program that does not truncate output.
17407 SED=$lt_SED
17408
17409 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17410 Xsed="\$SED -e 1s/^X//"
17411
17412 # A grep program that handles long lines.
17413 GREP=$lt_GREP
17414
17415 # An ERE matcher.
17416 EGREP=$lt_EGREP
17417
17418 # A literal string matcher.
17419 FGREP=$lt_FGREP
17420
17421 # A BSD- or MS-compatible name lister.
17422 NM=$lt_NM
17423
17424 # Whether we need soft or hard links.
17425 LN_S=$lt_LN_S
17426
17427 # What is the maximum length of a command?
17428 max_cmd_len=$max_cmd_len
17429
17430 # Object file suffix (normally "o").
17431 objext=$ac_objext
17432
17433 # Executable file suffix (normally "").
17434 exeext=$exeext
17435
17436 # whether the shell understands "unset".
17437 lt_unset=$lt_unset
17438
17439 # turn spaces into newlines.
17440 SP2NL=$lt_lt_SP2NL
17441
17442 # turn newlines into spaces.
17443 NL2SP=$lt_lt_NL2SP
17444
17445 # convert \$build file names to \$host format.
17446 to_host_file_cmd=$lt_cv_to_host_file_cmd
17447
17448 # convert \$build files to toolchain format.
17449 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17450
17451 # Method to check whether dependent libraries are shared objects.
17452 deplibs_check_method=$lt_deplibs_check_method
17453
17454 # Command to use when deplibs_check_method = "file_magic".
17455 file_magic_cmd=$lt_file_magic_cmd
17456
17457 # How to find potential files when deplibs_check_method = "file_magic".
17458 file_magic_glob=$lt_file_magic_glob
17459
17460 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17461 want_nocaseglob=$lt_want_nocaseglob
17462
17463 # Command to associate shared and link libraries.
17464 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17465
17466 # The archiver.
17467 AR=$lt_AR
17468
17469 # Flags to create an archive.
17470 AR_FLAGS=$lt_AR_FLAGS
17471
17472 # How to feed a file listing to the archiver.
17473 archiver_list_spec=$lt_archiver_list_spec
17474
17475 # A symbol stripping program.
17476 STRIP=$lt_STRIP
17477
17478 # Commands used to install an old-style archive.
17479 RANLIB=$lt_RANLIB
17480 old_postinstall_cmds=$lt_old_postinstall_cmds
17481 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17482
17483 # Whether to use a lock for old archive extraction.
17484 lock_old_archive_extraction=$lock_old_archive_extraction
17485
17486 # A C compiler.
17487 LTCC=$lt_CC
17488
17489 # LTCC compiler flags.
17490 LTCFLAGS=$lt_CFLAGS
17491
17492 # Take the output of nm and produce a listing of raw symbols and C names.
17493 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17494
17495 # Transform the output of nm in a proper C declaration.
17496 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17497
17498 # Transform the output of nm in a C name address pair.
17499 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17500
17501 # Transform the output of nm in a C name address pair when lib prefix is needed.
17502 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17503
17504 # Specify filename containing input files for \$NM.
17505 nm_file_list_spec=$lt_nm_file_list_spec
17506
17507 # The root where to search for dependent libraries,and in which our libraries should be installed.
17508 lt_sysroot=$lt_sysroot
17509
17510 # The name of the directory that contains temporary libtool files.
17511 objdir=$objdir
17512
17513 # Used to examine libraries when file_magic_cmd begins with "file".
17514 MAGIC_CMD=$MAGIC_CMD
17515
17516 # Must we lock files when doing compilation?
17517 need_locks=$lt_need_locks
17518
17519 # Manifest tool.
17520 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17521
17522 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17523 DSYMUTIL=$lt_DSYMUTIL
17524
17525 # Tool to change global to local symbols on Mac OS X.
17526 NMEDIT=$lt_NMEDIT
17527
17528 # Tool to manipulate fat objects and archives on Mac OS X.
17529 LIPO=$lt_LIPO
17530
17531 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17532 OTOOL=$lt_OTOOL
17533
17534 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17535 OTOOL64=$lt_OTOOL64
17536
17537 # Old archive suffix (normally "a").
17538 libext=$libext
17539
17540 # Shared library suffix (normally ".so").
17541 shrext_cmds=$lt_shrext_cmds
17542
17543 # The commands to extract the exported symbol list from a shared archive.
17544 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17545
17546 # Variables whose values should be saved in libtool wrapper scripts and
17547 # restored at link time.
17548 variables_saved_for_relink=$lt_variables_saved_for_relink
17549
17550 # Do we need the "lib" prefix for modules?
17551 need_lib_prefix=$need_lib_prefix
17552
17553 # Do we need a version for libraries?
17554 need_version=$need_version
17555
17556 # Library versioning type.
17557 version_type=$version_type
17558
17559 # Shared library runtime path variable.
17560 runpath_var=$runpath_var
17561
17562 # Shared library path variable.
17563 shlibpath_var=$shlibpath_var
17564
17565 # Is shlibpath searched before the hard-coded library search path?
17566 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17567
17568 # Format of library name prefix.
17569 libname_spec=$lt_libname_spec
17570
17571 # List of archive names.  First name is the real one, the rest are links.
17572 # The last name is the one that the linker finds with -lNAME
17573 library_names_spec=$lt_library_names_spec
17574
17575 # The coded name of the library, if different from the real name.
17576 soname_spec=$lt_soname_spec
17577
17578 # Permission mode override for installation of shared libraries.
17579 install_override_mode=$lt_install_override_mode
17580
17581 # Command to use after installation of a shared archive.
17582 postinstall_cmds=$lt_postinstall_cmds
17583
17584 # Command to use after uninstallation of a shared archive.
17585 postuninstall_cmds=$lt_postuninstall_cmds
17586
17587 # Commands used to finish a libtool library installation in a directory.
17588 finish_cmds=$lt_finish_cmds
17589
17590 # As "finish_cmds", except a single script fragment to be evaled but
17591 # not shown.
17592 finish_eval=$lt_finish_eval
17593
17594 # Whether we should hardcode library paths into libraries.
17595 hardcode_into_libs=$hardcode_into_libs
17596
17597 # Compile-time system search path for libraries.
17598 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17599
17600 # Run-time system search path for libraries.
17601 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17602
17603 # Whether dlopen is supported.
17604 dlopen_support=$enable_dlopen
17605
17606 # Whether dlopen of programs is supported.
17607 dlopen_self=$enable_dlopen_self
17608
17609 # Whether dlopen of statically linked programs is supported.
17610 dlopen_self_static=$enable_dlopen_self_static
17611
17612 # Commands to strip libraries.
17613 old_striplib=$lt_old_striplib
17614 striplib=$lt_striplib
17615
17616
17617 # The linker used to build libraries.
17618 LD=$lt_LD
17619
17620 # How to create reloadable object files.
17621 reload_flag=$lt_reload_flag
17622 reload_cmds=$lt_reload_cmds
17623
17624 # Commands used to build an old-style archive.
17625 old_archive_cmds=$lt_old_archive_cmds
17626
17627 # A language specific compiler.
17628 CC=$lt_compiler
17629
17630 # Is the compiler the GNU compiler?
17631 with_gcc=$GCC
17632
17633 # Compiler flag to turn off builtin functions.
17634 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17635
17636 # Additional compiler flags for building library objects.
17637 pic_flag=$lt_lt_prog_compiler_pic
17638
17639 # How to pass a linker flag through the compiler.
17640 wl=$lt_lt_prog_compiler_wl
17641
17642 # Compiler flag to prevent dynamic linking.
17643 link_static_flag=$lt_lt_prog_compiler_static
17644
17645 # Does compiler simultaneously support -c and -o options?
17646 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17647
17648 # Whether or not to add -lc for building shared libraries.
17649 build_libtool_need_lc=$archive_cmds_need_lc
17650
17651 # Whether or not to disallow shared libs when runtime libs are static.
17652 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17653
17654 # Compiler flag to allow reflexive dlopens.
17655 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17656
17657 # Compiler flag to generate shared objects directly from archives.
17658 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17659
17660 # Whether the compiler copes with passing no objects directly.
17661 compiler_needs_object=$lt_compiler_needs_object
17662
17663 # Create an old-style archive from a shared archive.
17664 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17665
17666 # Create a temporary old-style archive to link instead of a shared archive.
17667 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17668
17669 # Commands used to build a shared archive.
17670 archive_cmds=$lt_archive_cmds
17671 archive_expsym_cmds=$lt_archive_expsym_cmds
17672
17673 # Commands used to build a loadable module if different from building
17674 # a shared archive.
17675 module_cmds=$lt_module_cmds
17676 module_expsym_cmds=$lt_module_expsym_cmds
17677
17678 # Whether we are building with GNU ld or not.
17679 with_gnu_ld=$lt_with_gnu_ld
17680
17681 # Flag that allows shared libraries with undefined symbols to be built.
17682 allow_undefined_flag=$lt_allow_undefined_flag
17683
17684 # Flag that enforces no undefined symbols.
17685 no_undefined_flag=$lt_no_undefined_flag
17686
17687 # Flag to hardcode \$libdir into a binary during linking.
17688 # This must work even if \$libdir does not exist
17689 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17690
17691 # Whether we need a single "-rpath" flag with a separated argument.
17692 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17693
17694 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17695 # DIR into the resulting binary.
17696 hardcode_direct=$hardcode_direct
17697
17698 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17699 # DIR into the resulting binary and the resulting library dependency is
17700 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17701 # library is relocated.
17702 hardcode_direct_absolute=$hardcode_direct_absolute
17703
17704 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17705 # into the resulting binary.
17706 hardcode_minus_L=$hardcode_minus_L
17707
17708 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17709 # into the resulting binary.
17710 hardcode_shlibpath_var=$hardcode_shlibpath_var
17711
17712 # Set to "yes" if building a shared library automatically hardcodes DIR
17713 # into the library and all subsequent libraries and executables linked
17714 # against it.
17715 hardcode_automatic=$hardcode_automatic
17716
17717 # Set to yes if linker adds runtime paths of dependent libraries
17718 # to runtime path list.
17719 inherit_rpath=$inherit_rpath
17720
17721 # Whether libtool must link a program against all its dependency libraries.
17722 link_all_deplibs=$link_all_deplibs
17723
17724 # Set to "yes" if exported symbols are required.
17725 always_export_symbols=$always_export_symbols
17726
17727 # The commands to list exported symbols.
17728 export_symbols_cmds=$lt_export_symbols_cmds
17729
17730 # Symbols that should not be listed in the preloaded symbols.
17731 exclude_expsyms=$lt_exclude_expsyms
17732
17733 # Symbols that must always be exported.
17734 include_expsyms=$lt_include_expsyms
17735
17736 # Commands necessary for linking programs (against libraries) with templates.
17737 prelink_cmds=$lt_prelink_cmds
17738
17739 # Commands necessary for finishing linking programs.
17740 postlink_cmds=$lt_postlink_cmds
17741
17742 # Specify filename containing input files.
17743 file_list_spec=$lt_file_list_spec
17744
17745 # How to hardcode a shared library path into an executable.
17746 hardcode_action=$hardcode_action
17747
17748 # ### END LIBTOOL CONFIG
17749
17750 _LT_EOF
17751
17752   case $host_os in
17753   aix3*)
17754     cat <<\_LT_EOF >> "$cfgfile"
17755 # AIX sometimes has problems with the GCC collect2 program.  For some
17756 # reason, if we set the COLLECT_NAMES environment variable, the problems
17757 # vanish in a puff of smoke.
17758 if test "X${COLLECT_NAMES+set}" != Xset; then
17759   COLLECT_NAMES=
17760   export COLLECT_NAMES
17761 fi
17762 _LT_EOF
17763     ;;
17764   esac
17765
17766
17767 ltmain="$ac_aux_dir/ltmain.sh"
17768
17769
17770   # We use sed instead of cat because bash on DJGPP gets confused if
17771   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17772   # text mode, it properly converts lines to CR/LF.  This bash problem
17773   # is reportedly fixed, but why not run on old versions too?
17774   sed '$q' "$ltmain" >> "$cfgfile" \
17775      || (rm -f "$cfgfile"; exit 1)
17776
17777   if test x"$xsi_shell" = xyes; then
17778   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17779 func_dirname ()\
17780 {\
17781 \    case ${1} in\
17782 \      */*) func_dirname_result="${1%/*}${2}" ;;\
17783 \      *  ) func_dirname_result="${3}" ;;\
17784 \    esac\
17785 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17786   && mv -f "$cfgfile.tmp" "$cfgfile" \
17787     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17788 test 0 -eq $? || _lt_function_replace_fail=:
17789
17790
17791   sed -e '/^func_basename ()$/,/^} # func_basename /c\
17792 func_basename ()\
17793 {\
17794 \    func_basename_result="${1##*/}"\
17795 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17796   && mv -f "$cfgfile.tmp" "$cfgfile" \
17797     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17798 test 0 -eq $? || _lt_function_replace_fail=:
17799
17800
17801   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17802 func_dirname_and_basename ()\
17803 {\
17804 \    case ${1} in\
17805 \      */*) func_dirname_result="${1%/*}${2}" ;;\
17806 \      *  ) func_dirname_result="${3}" ;;\
17807 \    esac\
17808 \    func_basename_result="${1##*/}"\
17809 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17810   && mv -f "$cfgfile.tmp" "$cfgfile" \
17811     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17812 test 0 -eq $? || _lt_function_replace_fail=:
17813
17814
17815   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17816 func_stripname ()\
17817 {\
17818 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17819 \    # positional parameters, so assign one to ordinary parameter first.\
17820 \    func_stripname_result=${3}\
17821 \    func_stripname_result=${func_stripname_result#"${1}"}\
17822 \    func_stripname_result=${func_stripname_result%"${2}"}\
17823 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17824   && mv -f "$cfgfile.tmp" "$cfgfile" \
17825     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17826 test 0 -eq $? || _lt_function_replace_fail=:
17827
17828
17829   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17830 func_split_long_opt ()\
17831 {\
17832 \    func_split_long_opt_name=${1%%=*}\
17833 \    func_split_long_opt_arg=${1#*=}\
17834 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17835   && mv -f "$cfgfile.tmp" "$cfgfile" \
17836     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17837 test 0 -eq $? || _lt_function_replace_fail=:
17838
17839
17840   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17841 func_split_short_opt ()\
17842 {\
17843 \    func_split_short_opt_arg=${1#??}\
17844 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17845 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17846   && mv -f "$cfgfile.tmp" "$cfgfile" \
17847     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17848 test 0 -eq $? || _lt_function_replace_fail=:
17849
17850
17851   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17852 func_lo2o ()\
17853 {\
17854 \    case ${1} in\
17855 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17856 \      *)    func_lo2o_result=${1} ;;\
17857 \    esac\
17858 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17859   && mv -f "$cfgfile.tmp" "$cfgfile" \
17860     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17861 test 0 -eq $? || _lt_function_replace_fail=:
17862
17863
17864   sed -e '/^func_xform ()$/,/^} # func_xform /c\
17865 func_xform ()\
17866 {\
17867     func_xform_result=${1%.*}.lo\
17868 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17869   && mv -f "$cfgfile.tmp" "$cfgfile" \
17870     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17871 test 0 -eq $? || _lt_function_replace_fail=:
17872
17873
17874   sed -e '/^func_arith ()$/,/^} # func_arith /c\
17875 func_arith ()\
17876 {\
17877     func_arith_result=$(( $* ))\
17878 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17879   && mv -f "$cfgfile.tmp" "$cfgfile" \
17880     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17881 test 0 -eq $? || _lt_function_replace_fail=:
17882
17883
17884   sed -e '/^func_len ()$/,/^} # func_len /c\
17885 func_len ()\
17886 {\
17887     func_len_result=${#1}\
17888 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17889   && mv -f "$cfgfile.tmp" "$cfgfile" \
17890     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17891 test 0 -eq $? || _lt_function_replace_fail=:
17892
17893 fi
17894
17895 if test x"$lt_shell_append" = xyes; then
17896   sed -e '/^func_append ()$/,/^} # func_append /c\
17897 func_append ()\
17898 {\
17899     eval "${1}+=\\${2}"\
17900 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17901   && mv -f "$cfgfile.tmp" "$cfgfile" \
17902     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17903 test 0 -eq $? || _lt_function_replace_fail=:
17904
17905
17906   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17907 func_append_quoted ()\
17908 {\
17909 \    func_quote_for_eval "${2}"\
17910 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17911 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17912   && mv -f "$cfgfile.tmp" "$cfgfile" \
17913     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17914 test 0 -eq $? || _lt_function_replace_fail=:
17915
17916
17917   # Save a `func_append' function call where possible by direct use of '+='
17918   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17919     && mv -f "$cfgfile.tmp" "$cfgfile" \
17920       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17921   test 0 -eq $? || _lt_function_replace_fail=:
17922 else
17923   # Save a `func_append' function call even when '+=' is not available
17924   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17925     && mv -f "$cfgfile.tmp" "$cfgfile" \
17926       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17927   test 0 -eq $? || _lt_function_replace_fail=:
17928 fi
17929
17930 if test x"$_lt_function_replace_fail" = x":"; then
17931   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17932 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17933 fi
17934
17935
17936    mv -f "$cfgfile" "$ofile" ||
17937     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17938   chmod +x "$ofile"
17939
17940
17941     cat <<_LT_EOF >> "$ofile"
17942
17943 # ### BEGIN LIBTOOL TAG CONFIG: RC
17944
17945 # The linker used to build libraries.
17946 LD=$lt_LD_RC
17947
17948 # How to create reloadable object files.
17949 reload_flag=$lt_reload_flag_RC
17950 reload_cmds=$lt_reload_cmds_RC
17951
17952 # Commands used to build an old-style archive.
17953 old_archive_cmds=$lt_old_archive_cmds_RC
17954
17955 # A language specific compiler.
17956 CC=$lt_compiler_RC
17957
17958 # Is the compiler the GNU compiler?
17959 with_gcc=$GCC_RC
17960
17961 # Compiler flag to turn off builtin functions.
17962 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17963
17964 # Additional compiler flags for building library objects.
17965 pic_flag=$lt_lt_prog_compiler_pic_RC
17966
17967 # How to pass a linker flag through the compiler.
17968 wl=$lt_lt_prog_compiler_wl_RC
17969
17970 # Compiler flag to prevent dynamic linking.
17971 link_static_flag=$lt_lt_prog_compiler_static_RC
17972
17973 # Does compiler simultaneously support -c and -o options?
17974 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17975
17976 # Whether or not to add -lc for building shared libraries.
17977 build_libtool_need_lc=$archive_cmds_need_lc_RC
17978
17979 # Whether or not to disallow shared libs when runtime libs are static.
17980 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17981
17982 # Compiler flag to allow reflexive dlopens.
17983 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17984
17985 # Compiler flag to generate shared objects directly from archives.
17986 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17987
17988 # Whether the compiler copes with passing no objects directly.
17989 compiler_needs_object=$lt_compiler_needs_object_RC
17990
17991 # Create an old-style archive from a shared archive.
17992 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17993
17994 # Create a temporary old-style archive to link instead of a shared archive.
17995 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
17996
17997 # Commands used to build a shared archive.
17998 archive_cmds=$lt_archive_cmds_RC
17999 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18000
18001 # Commands used to build a loadable module if different from building
18002 # a shared archive.
18003 module_cmds=$lt_module_cmds_RC
18004 module_expsym_cmds=$lt_module_expsym_cmds_RC
18005
18006 # Whether we are building with GNU ld or not.
18007 with_gnu_ld=$lt_with_gnu_ld_RC
18008
18009 # Flag that allows shared libraries with undefined symbols to be built.
18010 allow_undefined_flag=$lt_allow_undefined_flag_RC
18011
18012 # Flag that enforces no undefined symbols.
18013 no_undefined_flag=$lt_no_undefined_flag_RC
18014
18015 # Flag to hardcode \$libdir into a binary during linking.
18016 # This must work even if \$libdir does not exist
18017 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18018
18019 # Whether we need a single "-rpath" flag with a separated argument.
18020 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18021
18022 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18023 # DIR into the resulting binary.
18024 hardcode_direct=$hardcode_direct_RC
18025
18026 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18027 # DIR into the resulting binary and the resulting library dependency is
18028 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18029 # library is relocated.
18030 hardcode_direct_absolute=$hardcode_direct_absolute_RC
18031
18032 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18033 # into the resulting binary.
18034 hardcode_minus_L=$hardcode_minus_L_RC
18035
18036 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18037 # into the resulting binary.
18038 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18039
18040 # Set to "yes" if building a shared library automatically hardcodes DIR
18041 # into the library and all subsequent libraries and executables linked
18042 # against it.
18043 hardcode_automatic=$hardcode_automatic_RC
18044
18045 # Set to yes if linker adds runtime paths of dependent libraries
18046 # to runtime path list.
18047 inherit_rpath=$inherit_rpath_RC
18048
18049 # Whether libtool must link a program against all its dependency libraries.
18050 link_all_deplibs=$link_all_deplibs_RC
18051
18052 # Set to "yes" if exported symbols are required.
18053 always_export_symbols=$always_export_symbols_RC
18054
18055 # The commands to list exported symbols.
18056 export_symbols_cmds=$lt_export_symbols_cmds_RC
18057
18058 # Symbols that should not be listed in the preloaded symbols.
18059 exclude_expsyms=$lt_exclude_expsyms_RC
18060
18061 # Symbols that must always be exported.
18062 include_expsyms=$lt_include_expsyms_RC
18063
18064 # Commands necessary for linking programs (against libraries) with templates.
18065 prelink_cmds=$lt_prelink_cmds_RC
18066
18067 # Commands necessary for finishing linking programs.
18068 postlink_cmds=$lt_postlink_cmds_RC
18069
18070 # Specify filename containing input files.
18071 file_list_spec=$lt_file_list_spec_RC
18072
18073 # How to hardcode a shared library path into an executable.
18074 hardcode_action=$hardcode_action_RC
18075
18076 # ### END LIBTOOL TAG CONFIG: RC
18077 _LT_EOF
18078
18079  ;;
18080     "po-directories":C)
18081     for ac_file in $CONFIG_FILES; do
18082       # Support "outfile[:infile[:infile...]]"
18083       case "$ac_file" in
18084         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18085       esac
18086       # PO directories have a Makefile.in generated from Makefile.in.in.
18087       case "$ac_file" in */Makefile.in)
18088         # Adjust a relative srcdir.
18089         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
18090         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
18091         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
18092         # In autoconf-2.13 it is called $ac_given_srcdir.
18093         # In autoconf-2.50 it is called $srcdir.
18094         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
18095         case "$ac_given_srcdir" in
18096           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
18097           /*) top_srcdir="$ac_given_srcdir" ;;
18098           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
18099         esac
18100         # Treat a directory as a PO directory if and only if it has a
18101         # POTFILES.in file. This allows packages to have multiple PO
18102         # directories under different names or in different locations.
18103         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
18104           rm -f "$ac_dir/POTFILES"
18105           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
18106           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
18107           POMAKEFILEDEPS="POTFILES.in"
18108           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
18109           # on $ac_dir but don't depend on user-specified configuration
18110           # parameters.
18111           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
18112             # The LINGUAS file contains the set of available languages.
18113             if test -n "$OBSOLETE_ALL_LINGUAS"; then
18114               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
18115             fi
18116             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
18117             # Hide the ALL_LINGUAS assigment from automake < 1.5.
18118             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
18119             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
18120           else
18121             # The set of available languages was given in configure.in.
18122             # Hide the ALL_LINGUAS assigment from automake < 1.5.
18123             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
18124           fi
18125           # Compute POFILES
18126           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
18127           # Compute UPDATEPOFILES
18128           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
18129           # Compute DUMMYPOFILES
18130           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
18131           # Compute GMOFILES
18132           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
18133           case "$ac_given_srcdir" in
18134             .) srcdirpre= ;;
18135             *) srcdirpre='$(srcdir)/' ;;
18136           esac
18137           POFILES=
18138           UPDATEPOFILES=
18139           DUMMYPOFILES=
18140           GMOFILES=
18141           for lang in $ALL_LINGUAS; do
18142             POFILES="$POFILES $srcdirpre$lang.po"
18143             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
18144             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
18145             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
18146           done
18147           # CATALOGS depends on both $ac_dir and the user's LINGUAS
18148           # environment variable.
18149           INST_LINGUAS=
18150           if test -n "$ALL_LINGUAS"; then
18151             for presentlang in $ALL_LINGUAS; do
18152               useit=no
18153               if test "%UNSET%" != "$LINGUAS"; then
18154                 desiredlanguages="$LINGUAS"
18155               else
18156                 desiredlanguages="$ALL_LINGUAS"
18157               fi
18158               for desiredlang in $desiredlanguages; do
18159                 # Use the presentlang catalog if desiredlang is
18160                 #   a. equal to presentlang, or
18161                 #   b. a variant of presentlang (because in this case,
18162                 #      presentlang can be used as a fallback for messages
18163                 #      which are not translated in the desiredlang catalog).
18164                 case "$desiredlang" in
18165                   "$presentlang"*) useit=yes;;
18166                 esac
18167               done
18168               if test $useit = yes; then
18169                 INST_LINGUAS="$INST_LINGUAS $presentlang"
18170               fi
18171             done
18172           fi
18173           CATALOGS=
18174           if test -n "$INST_LINGUAS"; then
18175             for lang in $INST_LINGUAS; do
18176               CATALOGS="$CATALOGS $lang.gmo"
18177             done
18178           fi
18179           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
18180           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
18181           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
18182             if test -f "$f"; then
18183               case "$f" in
18184                 *.orig | *.bak | *~) ;;
18185                 *) cat "$f" >> "$ac_dir/Makefile" ;;
18186               esac
18187             fi
18188           done
18189         fi
18190         ;;
18191       esac
18192     done ;;
18193     "src/gpg-error-config":F) chmod +x src/gpg-error-config ;;
18194
18195   esac
18196 done # for ac_tag
18197
18198
18199 as_fn_exit 0
18200 _ACEOF
18201 ac_clean_files=$ac_clean_files_save
18202
18203 test $ac_write_fail = 0 ||
18204   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18205
18206
18207 # configure is writing to config.log, and then calls config.status.
18208 # config.status does its own redirection, appending to config.log.
18209 # Unfortunately, on DOS this fails, as config.log is still kept open
18210 # by configure, so config.status won't be able to write to it; its
18211 # output is simply discarded.  So we exec the FD to /dev/null,
18212 # effectively closing config.log, so it can be properly (re)opened and
18213 # appended to by config.status.  When coming back to configure, we
18214 # need to make the FD available again.
18215 if test "$no_create" != yes; then
18216   ac_cs_success=:
18217   ac_config_status_args=
18218   test "$silent" = yes &&
18219     ac_config_status_args="$ac_config_status_args --quiet"
18220   exec 5>/dev/null
18221   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18222   exec 5>>config.log
18223   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18224   # would make configure fail if this is the last instruction.
18225   $ac_cs_success || as_fn_exit 1
18226 fi
18227 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18228   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18229 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18230 fi
18231
18232
18233 echo "
18234         $PACKAGE_NAME-$PACKAGE_VERSION prepared for make
18235
18236         Revision: 1900266  (6400)
18237         Platform: $host
18238
18239 "