Migration from openssl-1.0.2 to openssl-1.1.1
[platform/upstream/liboauth.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for liboauth -.
4 #
5 # Report bugs to <robin AT gareus DOT 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 # Copyright (C) Robin Gareus 2007-2012
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96   *[\\/]* ) as_myself=$0 ;;
97   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100   IFS=$as_save_IFS
101   test -z "$as_dir" && as_dir=.
102     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103   done
104 IFS=$as_save_IFS
105
106      ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111   as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115   exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there.  '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 # Use a proper internal environment variable to ensure we don't fall
140   # into an infinite loop, continuously re-executing ourselves.
141   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
142     _as_can_reexec=no; export _as_can_reexec;
143     # We cannot yet assume a decent shell, so we have to provide a
144 # neutralization value for shells without unset; and this also
145 # works around shells that cannot unset nonexistent variables.
146 # Preserve -v and -x to the replacement shell.
147 BASH_ENV=/dev/null
148 ENV=/dev/null
149 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
150 case $- in # ((((
151   *v*x* | *x*v* ) as_opts=-vx ;;
152   *v* ) as_opts=-v ;;
153   *x* ) as_opts=-x ;;
154   * ) as_opts= ;;
155 esac
156 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
157 # Admittedly, this is quite paranoid, since all the known shells bail
158 # out after a failed `exec'.
159 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 as_fn_exit 255
161   fi
162   # We don't want this to propagate to other subprocesses.
163           { _as_can_reexec=; unset _as_can_reexec;}
164 if test "x$CONFIG_SHELL" = x; then
165   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166   emulate sh
167   NULLCMD=:
168   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
169   # is contrary to our usage.  Disable this feature.
170   alias -g '\${1+\"\$@\"}'='\"\$@\"'
171   setopt NO_GLOB_SUBST
172 else
173   case \`(set -o) 2>/dev/null\` in #(
174   *posix*) :
175     set -o posix ;; #(
176   *) :
177      ;;
178 esac
179 fi
180 "
181   as_required="as_fn_return () { (exit \$1); }
182 as_fn_success () { as_fn_return 0; }
183 as_fn_failure () { as_fn_return 1; }
184 as_fn_ret_success () { return 0; }
185 as_fn_ret_failure () { return 1; }
186
187 exitcode=0
188 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
189 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
190 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
191 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
192 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193
194 else
195   exitcode=1; echo positional parameters were not saved.
196 fi
197 test x\$exitcode = x0 || exit 1
198 test -x / || exit 1"
199   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
200   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
201   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
202   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
203
204   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
205     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
206     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
208     PATH=/empty FPATH=/empty; export PATH FPATH
209     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
210       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
211 test \$(( 1 + 1 )) = 2 || exit 1"
212   if (eval "$as_required") 2>/dev/null; then :
213   as_have_required=yes
214 else
215   as_have_required=no
216 fi
217   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218
219 else
220   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
221 as_found=false
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   as_found=:
227   case $as_dir in #(
228          /*)
229            for as_base in sh bash ksh sh5; do
230              # Try only shells that exist, to save several forks.
231              as_shell=$as_dir/$as_base
232              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
233                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   CONFIG_SHELL=$as_shell as_have_required=yes
235                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
236   break 2
237 fi
238 fi
239            done;;
240        esac
241   as_found=false
242 done
243 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
244               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
245   CONFIG_SHELL=$SHELL as_have_required=yes
246 fi; }
247 IFS=$as_save_IFS
248
249
250       if test "x$CONFIG_SHELL" != x; then :
251   export CONFIG_SHELL
252              # We cannot yet assume a decent shell, so we have to provide a
253 # neutralization value for shells without unset; and this also
254 # works around shells that cannot unset nonexistent variables.
255 # Preserve -v and -x to the replacement shell.
256 BASH_ENV=/dev/null
257 ENV=/dev/null
258 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
259 case $- in # ((((
260   *v*x* | *x*v* ) as_opts=-vx ;;
261   *v* ) as_opts=-v ;;
262   *x* ) as_opts=-x ;;
263   * ) as_opts= ;;
264 esac
265 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
266 # Admittedly, this is quite paranoid, since all the known shells bail
267 # out after a failed `exec'.
268 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
269 exit 255
270 fi
271
272     if test x$as_have_required = xno; then :
273   $as_echo "$0: This script requires a shell more modern than all"
274   $as_echo "$0: the shells that I found on your system."
275   if test x${ZSH_VERSION+set} = xset ; then
276     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
277     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
278   else
279     $as_echo "$0: Please tell bug-autoconf@gnu.org and robin AT gareus
280 $0: DOT org about your system, including any error possibly
281 $0: output before this message. Then install a modern
282 $0: shell, or manually run the script under such a shell if
283 $0: you do have one."
284   fi
285   exit 1
286 fi
287 fi
288 fi
289 SHELL=${CONFIG_SHELL-/bin/sh}
290 export SHELL
291 # Unset more variables known to interfere with behavior of common tools.
292 CLICOLOR_FORCE= GREP_OPTIONS=
293 unset CLICOLOR_FORCE GREP_OPTIONS
294
295 ## --------------------- ##
296 ## M4sh Shell Functions. ##
297 ## --------------------- ##
298 # as_fn_unset VAR
299 # ---------------
300 # Portably unset VAR.
301 as_fn_unset ()
302 {
303   { eval $1=; unset $1;}
304 }
305 as_unset=as_fn_unset
306
307 # as_fn_set_status STATUS
308 # -----------------------
309 # Set $? to STATUS, without forking.
310 as_fn_set_status ()
311 {
312   return $1
313 } # as_fn_set_status
314
315 # as_fn_exit STATUS
316 # -----------------
317 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318 as_fn_exit ()
319 {
320   set +e
321   as_fn_set_status $1
322   exit $1
323 } # as_fn_exit
324
325 # as_fn_mkdir_p
326 # -------------
327 # Create "$as_dir" as a directory, including parents if necessary.
328 as_fn_mkdir_p ()
329 {
330
331   case $as_dir in #(
332   -*) as_dir=./$as_dir;;
333   esac
334   test -d "$as_dir" || eval $as_mkdir_p || {
335     as_dirs=
336     while :; do
337       case $as_dir in #(
338       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339       *) as_qdir=$as_dir;;
340       esac
341       as_dirs="'$as_qdir' $as_dirs"
342       as_dir=`$as_dirname -- "$as_dir" ||
343 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
344          X"$as_dir" : 'X\(//\)[^/]' \| \
345          X"$as_dir" : 'X\(//\)$' \| \
346          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
347 $as_echo X"$as_dir" |
348     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
349             s//\1/
350             q
351           }
352           /^X\(\/\/\)[^/].*/{
353             s//\1/
354             q
355           }
356           /^X\(\/\/\)$/{
357             s//\1/
358             q
359           }
360           /^X\(\/\).*/{
361             s//\1/
362             q
363           }
364           s/.*/./; q'`
365       test -d "$as_dir" && break
366     done
367     test -z "$as_dirs" || eval "mkdir $as_dirs"
368   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
369
370
371 } # as_fn_mkdir_p
372
373 # as_fn_executable_p FILE
374 # -----------------------
375 # Test if FILE is an executable regular file.
376 as_fn_executable_p ()
377 {
378   test -f "$1" && test -x "$1"
379 } # as_fn_executable_p
380 # as_fn_append VAR VALUE
381 # ----------------------
382 # Append the text in VALUE to the end of the definition contained in VAR. Take
383 # advantage of any shell optimizations that allow amortized linear growth over
384 # repeated appends, instead of the typical quadratic growth present in naive
385 # implementations.
386 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
387   eval 'as_fn_append ()
388   {
389     eval $1+=\$2
390   }'
391 else
392   as_fn_append ()
393   {
394     eval $1=\$$1\$2
395   }
396 fi # as_fn_append
397
398 # as_fn_arith ARG...
399 # ------------------
400 # Perform arithmetic evaluation on the ARGs, and store the result in the
401 # global $as_val. Take advantage of shells that can avoid forks. The arguments
402 # must be portable across $(()) and expr.
403 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
404   eval 'as_fn_arith ()
405   {
406     as_val=$(( $* ))
407   }'
408 else
409   as_fn_arith ()
410   {
411     as_val=`expr "$@" || test $? -eq 1`
412   }
413 fi # as_fn_arith
414
415
416 # as_fn_error STATUS ERROR [LINENO LOG_FD]
417 # ----------------------------------------
418 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
419 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
420 # script with STATUS, using 1 if that was 0.
421 as_fn_error ()
422 {
423   as_status=$1; test $as_status -eq 0 && as_status=1
424   if test "$4"; then
425     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
426     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
427   fi
428   $as_echo "$as_me: error: $2" >&2
429   as_fn_exit $as_status
430 } # as_fn_error
431
432 if expr a : '\(a\)' >/dev/null 2>&1 &&
433    test "X`expr 00001 : '.*\(...\)'`" = X001; then
434   as_expr=expr
435 else
436   as_expr=false
437 fi
438
439 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440   as_basename=basename
441 else
442   as_basename=false
443 fi
444
445 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
446   as_dirname=dirname
447 else
448   as_dirname=false
449 fi
450
451 as_me=`$as_basename -- "$0" ||
452 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
453          X"$0" : 'X\(//\)$' \| \
454          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
455 $as_echo X/"$0" |
456     sed '/^.*\/\([^/][^/]*\)\/*$/{
457             s//\1/
458             q
459           }
460           /^X\/\(\/\/\)$/{
461             s//\1/
462             q
463           }
464           /^X\/\(\/\).*/{
465             s//\1/
466             q
467           }
468           s/.*/./; q'`
469
470 # Avoid depending upon Character Ranges.
471 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
472 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
473 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
474 as_cr_digits='0123456789'
475 as_cr_alnum=$as_cr_Letters$as_cr_digits
476
477
478   as_lineno_1=$LINENO as_lineno_1a=$LINENO
479   as_lineno_2=$LINENO as_lineno_2a=$LINENO
480   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
481   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
482   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
483   sed -n '
484     p
485     /[$]LINENO/=
486   ' <$as_myself |
487     sed '
488       s/[$]LINENO.*/&-/
489       t lineno
490       b
491       :lineno
492       N
493       :loop
494       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
495       t loop
496       s/-\n.*//
497     ' >$as_me.lineno &&
498   chmod +x "$as_me.lineno" ||
499     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
500
501   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
502   # already done that, so ensure we don't try to do so again and fall
503   # in an infinite loop.  This has already happened in practice.
504   _as_can_reexec=no; export _as_can_reexec
505   # Don't try to exec as it changes $[0], causing all sort of problems
506   # (the dirname of $[0] is not the place where we might find the
507   # original and so on.  Autoconf is especially sensitive to this).
508   . "./$as_me.lineno"
509   # Exit status is that of the last command.
510   exit
511 }
512
513 ECHO_C= ECHO_N= ECHO_T=
514 case `echo -n x` in #(((((
515 -n*)
516   case `echo 'xy\c'` in
517   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
518   xy)  ECHO_C='\c';;
519   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
520        ECHO_T=' ';;
521   esac;;
522 *)
523   ECHO_N='-n';;
524 esac
525
526 rm -f conf$$ conf$$.exe conf$$.file
527 if test -d conf$$.dir; then
528   rm -f conf$$.dir/conf$$.file
529 else
530   rm -f conf$$.dir
531   mkdir conf$$.dir 2>/dev/null
532 fi
533 if (echo >conf$$.file) 2>/dev/null; then
534   if ln -s conf$$.file conf$$ 2>/dev/null; then
535     as_ln_s='ln -s'
536     # ... but there are two gotchas:
537     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
538     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
539     # In both cases, we have to default to `cp -pR'.
540     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
541       as_ln_s='cp -pR'
542   elif ln conf$$.file conf$$ 2>/dev/null; then
543     as_ln_s=ln
544   else
545     as_ln_s='cp -pR'
546   fi
547 else
548   as_ln_s='cp -pR'
549 fi
550 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
551 rmdir conf$$.dir 2>/dev/null
552
553 if mkdir -p . 2>/dev/null; then
554   as_mkdir_p='mkdir -p "$as_dir"'
555 else
556   test -d ./-p && rmdir ./-p
557   as_mkdir_p=false
558 fi
559
560 as_test_x='test -x'
561 as_executable_p=as_fn_executable_p
562
563 # Sed expression to map a string onto a valid CPP name.
564 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
565
566 # Sed expression to map a string onto a valid variable name.
567 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
568
569 SHELL=${CONFIG_SHELL-/bin/sh}
570
571
572 test -n "$DJDIR" || exec 7<&0 </dev/null
573 exec 6>&1
574
575 # Name of the host.
576 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
577 # so uname gets run too.
578 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
579
580 #
581 # Initializations.
582 #
583 ac_default_prefix=/usr/local
584 ac_clean_files=
585 ac_config_libobj_dir=.
586 LIBOBJS=
587 cross_compiling=no
588 subdirs=
589 MFLAGS=
590 MAKEFLAGS=
591
592 # Identity of this package.
593 PACKAGE_NAME='liboauth'
594 PACKAGE_TARNAME='liboauth'
595 PACKAGE_VERSION='-'
596 PACKAGE_STRING='liboauth -'
597 PACKAGE_BUGREPORT='robin AT gareus DOT org'
598 PACKAGE_URL='http://liboauth.sourceforge.net/'
599
600 ac_unique_file="src/oauth.c"
601 # Factoring default headers for most tests.
602 ac_includes_default="\
603 #include <stdio.h>
604 #ifdef HAVE_SYS_TYPES_H
605 # include <sys/types.h>
606 #endif
607 #ifdef HAVE_SYS_STAT_H
608 # include <sys/stat.h>
609 #endif
610 #ifdef STDC_HEADERS
611 # include <stdlib.h>
612 # include <stddef.h>
613 #else
614 # ifdef HAVE_STDLIB_H
615 #  include <stdlib.h>
616 # endif
617 #endif
618 #ifdef HAVE_STRING_H
619 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
620 #  include <memory.h>
621 # endif
622 # include <string.h>
623 #endif
624 #ifdef HAVE_STRINGS_H
625 # include <strings.h>
626 #endif
627 #ifdef HAVE_INTTYPES_H
628 # include <inttypes.h>
629 #endif
630 #ifdef HAVE_STDINT_H
631 # include <stdint.h>
632 #endif
633 #ifdef HAVE_UNISTD_H
634 # include <unistd.h>
635 #endif"
636
637 ac_subst_vars='am__EXEEXT_FALSE
638 am__EXEEXT_TRUE
639 LTLIBOBJS
640 subdirs
641 PC_LIB
642 PC_REQ
643 PERL
644 DOTPATH
645 HAVEDOT
646 DOT
647 DOXYGEN
648 HASH_CFLAGS
649 HASH_LIBS
650 NSS_LIBS
651 NSS_CFLAGS
652 CURL_LIBS
653 CURL_CFLAGS
654 PKG_CONFIG_LIBDIR
655 PKG_CONFIG_PATH
656 PKG_CONFIG
657 CURLCMD
658 LIBOAUTH_LDFLAGS
659 LIBOAUTH_CFLAGS
660 EXESUF
661 TEST_UNICODE
662 LIBOBJS
663 ALLOCA
664 AS
665 CPP
666 OTOOL64
667 OTOOL
668 LIPO
669 NMEDIT
670 DSYMUTIL
671 MANIFEST_TOOL
672 RANLIB
673 ac_ct_AR
674 AR
675 DLLTOOL
676 OBJDUMP
677 NM
678 ac_ct_DUMPBIN
679 DUMPBIN
680 LD
681 FGREP
682 EGREP
683 GREP
684 LIBTOOL
685 LN_S
686 am__fastdepCC_FALSE
687 am__fastdepCC_TRUE
688 CCDEPMODE
689 am__nodep
690 AMDEPBACKSLASH
691 AMDEP_FALSE
692 AMDEP_TRUE
693 am__quote
694 am__include
695 DEPDIR
696 OBJEXT
697 EXEEXT
698 ac_ct_CC
699 CPPFLAGS
700 LDFLAGS
701 CFLAGS
702 CC
703 ISODATE
704 VERSION_INFO
705 am__untar
706 am__tar
707 AMTAR
708 am__leading_dot
709 SET_MAKE
710 AWK
711 mkdir_p
712 MKDIR_P
713 INSTALL_STRIP_PROGRAM
714 STRIP
715 install_sh
716 MAKEINFO
717 AUTOHEADER
718 AUTOMAKE
719 AUTOCONF
720 ACLOCAL
721 VERSION
722 PACKAGE
723 CYGPATH_W
724 am__isrc
725 INSTALL_DATA
726 INSTALL_SCRIPT
727 INSTALL_PROGRAM
728 target_os
729 target_vendor
730 target_cpu
731 target
732 host_os
733 host_vendor
734 host_cpu
735 host
736 build_os
737 build_vendor
738 build_cpu
739 build
740 SED
741 target_alias
742 host_alias
743 build_alias
744 LIBS
745 ECHO_T
746 ECHO_N
747 ECHO_C
748 DEFS
749 mandir
750 localedir
751 libdir
752 psdir
753 pdfdir
754 dvidir
755 htmldir
756 infodir
757 docdir
758 oldincludedir
759 includedir
760 localstatedir
761 sharedstatedir
762 sysconfdir
763 datadir
764 datarootdir
765 libexecdir
766 sbindir
767 bindir
768 program_transform_name
769 prefix
770 exec_prefix
771 PACKAGE_URL
772 PACKAGE_BUGREPORT
773 PACKAGE_STRING
774 PACKAGE_VERSION
775 PACKAGE_TARNAME
776 PACKAGE_NAME
777 PATH_SEPARATOR
778 SHELL'
779 ac_subst_files=''
780 ac_user_opts='
781 enable_option_checking
782 enable_dependency_tracking
783 enable_shared
784 enable_static
785 with_pic
786 enable_fast_install
787 with_gnu_ld
788 with_sysroot
789 enable_libtool_lock
790 enable_curl
791 enable_libcurl
792 enable_builtinhash
793 enable_nss
794 with_curltimeout
795 '
796       ac_precious_vars='build_alias
797 host_alias
798 target_alias
799 CC
800 CFLAGS
801 LDFLAGS
802 LIBS
803 CPPFLAGS
804 CPP
805 PKG_CONFIG
806 PKG_CONFIG_PATH
807 PKG_CONFIG_LIBDIR
808 CURL_CFLAGS
809 CURL_LIBS
810 NSS_CFLAGS
811 NSS_LIBS
812 DOXYGEN
813 DOT
814 PERL'
815
816
817 # Initialize some variables set by options.
818 ac_init_help=
819 ac_init_version=false
820 ac_unrecognized_opts=
821 ac_unrecognized_sep=
822 # The variables have the same names as the options, with
823 # dashes changed to underlines.
824 cache_file=/dev/null
825 exec_prefix=NONE
826 no_create=
827 no_recursion=
828 prefix=NONE
829 program_prefix=NONE
830 program_suffix=NONE
831 program_transform_name=s,x,x,
832 silent=
833 site=
834 srcdir=
835 verbose=
836 x_includes=NONE
837 x_libraries=NONE
838
839 # Installation directory options.
840 # These are left unexpanded so users can "make install exec_prefix=/foo"
841 # and all the variables that are supposed to be based on exec_prefix
842 # by default will actually change.
843 # Use braces instead of parens because sh, perl, etc. also accept them.
844 # (The list follows the same order as the GNU Coding Standards.)
845 bindir='${exec_prefix}/bin'
846 sbindir='${exec_prefix}/sbin'
847 libexecdir='${exec_prefix}/libexec'
848 datarootdir='${prefix}/share'
849 datadir='${datarootdir}'
850 sysconfdir='${prefix}/etc'
851 sharedstatedir='${prefix}/com'
852 localstatedir='${prefix}/var'
853 includedir='${prefix}/include'
854 oldincludedir='/usr/include'
855 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
856 infodir='${datarootdir}/info'
857 htmldir='${docdir}'
858 dvidir='${docdir}'
859 pdfdir='${docdir}'
860 psdir='${docdir}'
861 libdir='${exec_prefix}/lib'
862 localedir='${datarootdir}/locale'
863 mandir='${datarootdir}/man'
864
865 ac_prev=
866 ac_dashdash=
867 for ac_option
868 do
869   # If the previous option needs an argument, assign it.
870   if test -n "$ac_prev"; then
871     eval $ac_prev=\$ac_option
872     ac_prev=
873     continue
874   fi
875
876   case $ac_option in
877   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
878   *=)   ac_optarg= ;;
879   *)    ac_optarg=yes ;;
880   esac
881
882   # Accept the important Cygnus configure options, so we can diagnose typos.
883
884   case $ac_dashdash$ac_option in
885   --)
886     ac_dashdash=yes ;;
887
888   -bindir | --bindir | --bindi | --bind | --bin | --bi)
889     ac_prev=bindir ;;
890   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
891     bindir=$ac_optarg ;;
892
893   -build | --build | --buil | --bui | --bu)
894     ac_prev=build_alias ;;
895   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
896     build_alias=$ac_optarg ;;
897
898   -cache-file | --cache-file | --cache-fil | --cache-fi \
899   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
900     ac_prev=cache_file ;;
901   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
902   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
903     cache_file=$ac_optarg ;;
904
905   --config-cache | -C)
906     cache_file=config.cache ;;
907
908   -datadir | --datadir | --datadi | --datad)
909     ac_prev=datadir ;;
910   -datadir=* | --datadir=* | --datadi=* | --datad=*)
911     datadir=$ac_optarg ;;
912
913   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
914   | --dataroo | --dataro | --datar)
915     ac_prev=datarootdir ;;
916   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
917   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
918     datarootdir=$ac_optarg ;;
919
920   -disable-* | --disable-*)
921     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
922     # Reject names that are not valid shell variable names.
923     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
924       as_fn_error $? "invalid feature name: $ac_useropt"
925     ac_useropt_orig=$ac_useropt
926     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
927     case $ac_user_opts in
928       *"
929 "enable_$ac_useropt"
930 "*) ;;
931       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
932          ac_unrecognized_sep=', ';;
933     esac
934     eval enable_$ac_useropt=no ;;
935
936   -docdir | --docdir | --docdi | --doc | --do)
937     ac_prev=docdir ;;
938   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
939     docdir=$ac_optarg ;;
940
941   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
942     ac_prev=dvidir ;;
943   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
944     dvidir=$ac_optarg ;;
945
946   -enable-* | --enable-*)
947     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
948     # Reject names that are not valid shell variable names.
949     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
950       as_fn_error $? "invalid feature name: $ac_useropt"
951     ac_useropt_orig=$ac_useropt
952     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
953     case $ac_user_opts in
954       *"
955 "enable_$ac_useropt"
956 "*) ;;
957       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
958          ac_unrecognized_sep=', ';;
959     esac
960     eval enable_$ac_useropt=\$ac_optarg ;;
961
962   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
963   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
964   | --exec | --exe | --ex)
965     ac_prev=exec_prefix ;;
966   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
967   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
968   | --exec=* | --exe=* | --ex=*)
969     exec_prefix=$ac_optarg ;;
970
971   -gas | --gas | --ga | --g)
972     # Obsolete; use --with-gas.
973     with_gas=yes ;;
974
975   -help | --help | --hel | --he | -h)
976     ac_init_help=long ;;
977   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
978     ac_init_help=recursive ;;
979   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
980     ac_init_help=short ;;
981
982   -host | --host | --hos | --ho)
983     ac_prev=host_alias ;;
984   -host=* | --host=* | --hos=* | --ho=*)
985     host_alias=$ac_optarg ;;
986
987   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
988     ac_prev=htmldir ;;
989   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
990   | --ht=*)
991     htmldir=$ac_optarg ;;
992
993   -includedir | --includedir | --includedi | --included | --include \
994   | --includ | --inclu | --incl | --inc)
995     ac_prev=includedir ;;
996   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
997   | --includ=* | --inclu=* | --incl=* | --inc=*)
998     includedir=$ac_optarg ;;
999
1000   -infodir | --infodir | --infodi | --infod | --info | --inf)
1001     ac_prev=infodir ;;
1002   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1003     infodir=$ac_optarg ;;
1004
1005   -libdir | --libdir | --libdi | --libd)
1006     ac_prev=libdir ;;
1007   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1008     libdir=$ac_optarg ;;
1009
1010   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1011   | --libexe | --libex | --libe)
1012     ac_prev=libexecdir ;;
1013   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1014   | --libexe=* | --libex=* | --libe=*)
1015     libexecdir=$ac_optarg ;;
1016
1017   -localedir | --localedir | --localedi | --localed | --locale)
1018     ac_prev=localedir ;;
1019   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1020     localedir=$ac_optarg ;;
1021
1022   -localstatedir | --localstatedir | --localstatedi | --localstated \
1023   | --localstate | --localstat | --localsta | --localst | --locals)
1024     ac_prev=localstatedir ;;
1025   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1026   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1027     localstatedir=$ac_optarg ;;
1028
1029   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1030     ac_prev=mandir ;;
1031   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1032     mandir=$ac_optarg ;;
1033
1034   -nfp | --nfp | --nf)
1035     # Obsolete; use --without-fp.
1036     with_fp=no ;;
1037
1038   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1039   | --no-cr | --no-c | -n)
1040     no_create=yes ;;
1041
1042   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1043   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1044     no_recursion=yes ;;
1045
1046   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1047   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1048   | --oldin | --oldi | --old | --ol | --o)
1049     ac_prev=oldincludedir ;;
1050   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1051   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1052   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1053     oldincludedir=$ac_optarg ;;
1054
1055   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1056     ac_prev=prefix ;;
1057   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1058     prefix=$ac_optarg ;;
1059
1060   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1061   | --program-pre | --program-pr | --program-p)
1062     ac_prev=program_prefix ;;
1063   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1064   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1065     program_prefix=$ac_optarg ;;
1066
1067   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1068   | --program-suf | --program-su | --program-s)
1069     ac_prev=program_suffix ;;
1070   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1071   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1072     program_suffix=$ac_optarg ;;
1073
1074   -program-transform-name | --program-transform-name \
1075   | --program-transform-nam | --program-transform-na \
1076   | --program-transform-n | --program-transform- \
1077   | --program-transform | --program-transfor \
1078   | --program-transfo | --program-transf \
1079   | --program-trans | --program-tran \
1080   | --progr-tra | --program-tr | --program-t)
1081     ac_prev=program_transform_name ;;
1082   -program-transform-name=* | --program-transform-name=* \
1083   | --program-transform-nam=* | --program-transform-na=* \
1084   | --program-transform-n=* | --program-transform-=* \
1085   | --program-transform=* | --program-transfor=* \
1086   | --program-transfo=* | --program-transf=* \
1087   | --program-trans=* | --program-tran=* \
1088   | --progr-tra=* | --program-tr=* | --program-t=*)
1089     program_transform_name=$ac_optarg ;;
1090
1091   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1092     ac_prev=pdfdir ;;
1093   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1094     pdfdir=$ac_optarg ;;
1095
1096   -psdir | --psdir | --psdi | --psd | --ps)
1097     ac_prev=psdir ;;
1098   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1099     psdir=$ac_optarg ;;
1100
1101   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1102   | -silent | --silent | --silen | --sile | --sil)
1103     silent=yes ;;
1104
1105   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1106     ac_prev=sbindir ;;
1107   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1108   | --sbi=* | --sb=*)
1109     sbindir=$ac_optarg ;;
1110
1111   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1112   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1113   | --sharedst | --shareds | --shared | --share | --shar \
1114   | --sha | --sh)
1115     ac_prev=sharedstatedir ;;
1116   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1117   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1118   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1119   | --sha=* | --sh=*)
1120     sharedstatedir=$ac_optarg ;;
1121
1122   -site | --site | --sit)
1123     ac_prev=site ;;
1124   -site=* | --site=* | --sit=*)
1125     site=$ac_optarg ;;
1126
1127   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1128     ac_prev=srcdir ;;
1129   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1130     srcdir=$ac_optarg ;;
1131
1132   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1133   | --syscon | --sysco | --sysc | --sys | --sy)
1134     ac_prev=sysconfdir ;;
1135   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1136   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1137     sysconfdir=$ac_optarg ;;
1138
1139   -target | --target | --targe | --targ | --tar | --ta | --t)
1140     ac_prev=target_alias ;;
1141   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1142     target_alias=$ac_optarg ;;
1143
1144   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1145     verbose=yes ;;
1146
1147   -version | --version | --versio | --versi | --vers | -V)
1148     ac_init_version=: ;;
1149
1150   -with-* | --with-*)
1151     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1152     # Reject names that are not valid shell variable names.
1153     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1154       as_fn_error $? "invalid package name: $ac_useropt"
1155     ac_useropt_orig=$ac_useropt
1156     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1157     case $ac_user_opts in
1158       *"
1159 "with_$ac_useropt"
1160 "*) ;;
1161       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1162          ac_unrecognized_sep=', ';;
1163     esac
1164     eval with_$ac_useropt=\$ac_optarg ;;
1165
1166   -without-* | --without-*)
1167     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1168     # Reject names that are not valid shell variable names.
1169     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1170       as_fn_error $? "invalid package name: $ac_useropt"
1171     ac_useropt_orig=$ac_useropt
1172     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1173     case $ac_user_opts in
1174       *"
1175 "with_$ac_useropt"
1176 "*) ;;
1177       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1178          ac_unrecognized_sep=', ';;
1179     esac
1180     eval with_$ac_useropt=no ;;
1181
1182   --x)
1183     # Obsolete; use --with-x.
1184     with_x=yes ;;
1185
1186   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1187   | --x-incl | --x-inc | --x-in | --x-i)
1188     ac_prev=x_includes ;;
1189   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1190   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1191     x_includes=$ac_optarg ;;
1192
1193   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1194   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1195     ac_prev=x_libraries ;;
1196   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1197   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1198     x_libraries=$ac_optarg ;;
1199
1200   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1201 Try \`$0 --help' for more information"
1202     ;;
1203
1204   *=*)
1205     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1206     # Reject names that are not valid shell variable names.
1207     case $ac_envvar in #(
1208       '' | [0-9]* | *[!_$as_cr_alnum]* )
1209       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1210     esac
1211     eval $ac_envvar=\$ac_optarg
1212     export $ac_envvar ;;
1213
1214   *)
1215     # FIXME: should be removed in autoconf 3.0.
1216     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1217     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1218       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1219     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1220     ;;
1221
1222   esac
1223 done
1224
1225 if test -n "$ac_prev"; then
1226   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1227   as_fn_error $? "missing argument to $ac_option"
1228 fi
1229
1230 if test -n "$ac_unrecognized_opts"; then
1231   case $enable_option_checking in
1232     no) ;;
1233     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1234     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1235   esac
1236 fi
1237
1238 # Check all directory arguments for consistency.
1239 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1240                 datadir sysconfdir sharedstatedir localstatedir includedir \
1241                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1242                 libdir localedir mandir
1243 do
1244   eval ac_val=\$$ac_var
1245   # Remove trailing slashes.
1246   case $ac_val in
1247     */ )
1248       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1249       eval $ac_var=\$ac_val;;
1250   esac
1251   # Be sure to have absolute directory names.
1252   case $ac_val in
1253     [\\/$]* | ?:[\\/]* )  continue;;
1254     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1255   esac
1256   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1257 done
1258
1259 # There might be people who depend on the old broken behavior: `$host'
1260 # used to hold the argument of --host etc.
1261 # FIXME: To remove some day.
1262 build=$build_alias
1263 host=$host_alias
1264 target=$target_alias
1265
1266 # FIXME: To remove some day.
1267 if test "x$host_alias" != x; then
1268   if test "x$build_alias" = x; then
1269     cross_compiling=maybe
1270   elif test "x$build_alias" != "x$host_alias"; then
1271     cross_compiling=yes
1272   fi
1273 fi
1274
1275 ac_tool_prefix=
1276 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1277
1278 test "$silent" = yes && exec 6>/dev/null
1279
1280
1281 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1282 ac_ls_di=`ls -di .` &&
1283 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1284   as_fn_error $? "working directory cannot be determined"
1285 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1286   as_fn_error $? "pwd does not report name of working directory"
1287
1288
1289 # Find the source files, if location was not specified.
1290 if test -z "$srcdir"; then
1291   ac_srcdir_defaulted=yes
1292   # Try the directory containing this script, then the parent directory.
1293   ac_confdir=`$as_dirname -- "$as_myself" ||
1294 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1295          X"$as_myself" : 'X\(//\)[^/]' \| \
1296          X"$as_myself" : 'X\(//\)$' \| \
1297          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1298 $as_echo X"$as_myself" |
1299     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1300             s//\1/
1301             q
1302           }
1303           /^X\(\/\/\)[^/].*/{
1304             s//\1/
1305             q
1306           }
1307           /^X\(\/\/\)$/{
1308             s//\1/
1309             q
1310           }
1311           /^X\(\/\).*/{
1312             s//\1/
1313             q
1314           }
1315           s/.*/./; q'`
1316   srcdir=$ac_confdir
1317   if test ! -r "$srcdir/$ac_unique_file"; then
1318     srcdir=..
1319   fi
1320 else
1321   ac_srcdir_defaulted=no
1322 fi
1323 if test ! -r "$srcdir/$ac_unique_file"; then
1324   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1325   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1326 fi
1327 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1328 ac_abs_confdir=`(
1329         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1330         pwd)`
1331 # When building in place, set srcdir=.
1332 if test "$ac_abs_confdir" = "$ac_pwd"; then
1333   srcdir=.
1334 fi
1335 # Remove unnecessary trailing slashes from srcdir.
1336 # Double slashes in file names in object file debugging info
1337 # mess up M-x gdb in Emacs.
1338 case $srcdir in
1339 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1340 esac
1341 for ac_var in $ac_precious_vars; do
1342   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1343   eval ac_env_${ac_var}_value=\$${ac_var}
1344   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1345   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1346 done
1347
1348 #
1349 # Report the --help message.
1350 #
1351 if test "$ac_init_help" = "long"; then
1352   # Omit some internal or obsolete options to make the list less imposing.
1353   # This message is too long to be a string in the A/UX 3.1 sh.
1354   cat <<_ACEOF
1355 \`configure' configures liboauth - to adapt to many kinds of systems.
1356
1357 Usage: $0 [OPTION]... [VAR=VALUE]...
1358
1359 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1360 VAR=VALUE.  See below for descriptions of some of the useful variables.
1361
1362 Defaults for the options are specified in brackets.
1363
1364 Configuration:
1365   -h, --help              display this help and exit
1366       --help=short        display options specific to this package
1367       --help=recursive    display the short help of all the included packages
1368   -V, --version           display version information and exit
1369   -q, --quiet, --silent   do not print \`checking ...' messages
1370       --cache-file=FILE   cache test results in FILE [disabled]
1371   -C, --config-cache      alias for \`--cache-file=config.cache'
1372   -n, --no-create         do not create output files
1373       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1374
1375 Installation directories:
1376   --prefix=PREFIX         install architecture-independent files in PREFIX
1377                           [$ac_default_prefix]
1378   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1379                           [PREFIX]
1380
1381 By default, \`make install' will install all the files in
1382 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1383 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1384 for instance \`--prefix=\$HOME'.
1385
1386 For better control, use the options below.
1387
1388 Fine tuning of the installation directories:
1389   --bindir=DIR            user executables [EPREFIX/bin]
1390   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1391   --libexecdir=DIR        program executables [EPREFIX/libexec]
1392   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1393   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1394   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1395   --libdir=DIR            object code libraries [EPREFIX/lib]
1396   --includedir=DIR        C header files [PREFIX/include]
1397   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1398   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1399   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1400   --infodir=DIR           info documentation [DATAROOTDIR/info]
1401   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1402   --mandir=DIR            man documentation [DATAROOTDIR/man]
1403   --docdir=DIR            documentation root [DATAROOTDIR/doc/liboauth]
1404   --htmldir=DIR           html documentation [DOCDIR]
1405   --dvidir=DIR            dvi documentation [DOCDIR]
1406   --pdfdir=DIR            pdf documentation [DOCDIR]
1407   --psdir=DIR             ps documentation [DOCDIR]
1408 _ACEOF
1409
1410   cat <<\_ACEOF
1411
1412 Program names:
1413   --program-prefix=PREFIX            prepend PREFIX to installed program names
1414   --program-suffix=SUFFIX            append SUFFIX to installed program names
1415   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1416
1417 System types:
1418   --build=BUILD     configure for building on BUILD [guessed]
1419   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1420   --target=TARGET   configure for building compilers for TARGET [HOST]
1421 _ACEOF
1422 fi
1423
1424 if test -n "$ac_init_help"; then
1425   case $ac_init_help in
1426      short | recursive ) echo "Configuration of liboauth -:";;
1427    esac
1428   cat <<\_ACEOF
1429
1430 Optional Features:
1431   --disable-option-checking  ignore unrecognized --enable/--with options
1432   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1433   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1434   --disable-dependency-tracking  speeds up one-time build
1435   --enable-dependency-tracking   do not reject slow dependency extractors
1436   --enable-shared[=PKGS]  build shared libraries [default=yes]
1437   --enable-static[=PKGS]  build static libraries [default=yes]
1438   --enable-fast-install[=PKGS]
1439                           optimize for fast installation [default=yes]
1440   --disable-libtool-lock  avoid locking (might break parallel builds)
1441   --disable-curl          do not use (command-line) curl
1442   --disable-libcurl       do not use libcurl
1443   --enable-builtinhash    do use neither NSS nor OpenSSL: only HMAC/SHA1
1444                           signatures - no RSA/PK11
1445   --enable-nss            use NSS instead of OpenSSL
1446
1447 Optional Packages:
1448   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1449   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1450   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1451                           both]
1452   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1453   --with-sysroot=DIR Search for dependent libraries within DIR
1454                         (or the compiler's sysroot if not specified).
1455   --with-curltimeout[=<int>]
1456                           use CURLOPT_TIMEOUT with libcurl HTTP requests.
1457                           Timeout is given in seconds (default=60). Note:
1458                           using this option also sets CURLOPT_NOSIGNAL. see
1459                           http://curl.haxx.se/libcurl/c/curl_easy_setopt.html#CURLOPTTIMEOUT
1460
1461 Some influential environment variables:
1462   CC          C compiler command
1463   CFLAGS      C compiler flags
1464   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1465               nonstandard directory <lib dir>
1466   LIBS        libraries to pass to the linker, e.g. -l<library>
1467   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1468               you have headers in a nonstandard directory <include dir>
1469   CPP         C preprocessor
1470   PKG_CONFIG  path to pkg-config utility
1471   PKG_CONFIG_PATH
1472               directories to add to pkg-config's search path
1473   PKG_CONFIG_LIBDIR
1474               path overriding pkg-config's built-in search path
1475   CURL_CFLAGS C compiler flags for CURL, overriding pkg-config
1476   CURL_LIBS   linker flags for CURL, overriding pkg-config
1477   NSS_CFLAGS  C compiler flags for NSS, overriding pkg-config
1478   NSS_LIBS    linker flags for NSS, overriding pkg-config
1479   DOXYGEN     Doxygen
1480   DOT         The 'dot' program from graphviz
1481   PERL        Perl
1482
1483 Use these variables to override the choices made by `configure' or to help
1484 it to find libraries and programs with nonstandard names/locations.
1485
1486 Report bugs to <robin AT gareus DOT org>.
1487 liboauth home page: <http://liboauth.sourceforge.net/>.
1488 _ACEOF
1489 ac_status=$?
1490 fi
1491
1492 if test "$ac_init_help" = "recursive"; then
1493   # If there are subdirs, report their specific --help.
1494   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1495     test -d "$ac_dir" ||
1496       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1497       continue
1498     ac_builddir=.
1499
1500 case "$ac_dir" in
1501 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1502 *)
1503   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1504   # A ".." for each directory in $ac_dir_suffix.
1505   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1506   case $ac_top_builddir_sub in
1507   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1508   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1509   esac ;;
1510 esac
1511 ac_abs_top_builddir=$ac_pwd
1512 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1513 # for backward compatibility:
1514 ac_top_builddir=$ac_top_build_prefix
1515
1516 case $srcdir in
1517   .)  # We are building in place.
1518     ac_srcdir=.
1519     ac_top_srcdir=$ac_top_builddir_sub
1520     ac_abs_top_srcdir=$ac_pwd ;;
1521   [\\/]* | ?:[\\/]* )  # Absolute name.
1522     ac_srcdir=$srcdir$ac_dir_suffix;
1523     ac_top_srcdir=$srcdir
1524     ac_abs_top_srcdir=$srcdir ;;
1525   *) # Relative name.
1526     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1527     ac_top_srcdir=$ac_top_build_prefix$srcdir
1528     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1529 esac
1530 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1531
1532     cd "$ac_dir" || { ac_status=$?; continue; }
1533     # Check for guested configure.
1534     if test -f "$ac_srcdir/configure.gnu"; then
1535       echo &&
1536       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1537     elif test -f "$ac_srcdir/configure"; then
1538       echo &&
1539       $SHELL "$ac_srcdir/configure" --help=recursive
1540     else
1541       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1542     fi || ac_status=$?
1543     cd "$ac_pwd" || { ac_status=$?; break; }
1544   done
1545 fi
1546
1547 test -n "$ac_init_help" && exit $ac_status
1548 if $ac_init_version; then
1549   cat <<\_ACEOF
1550 liboauth configure -
1551 generated by GNU Autoconf 2.69
1552
1553 Copyright (C) 2012 Free Software Foundation, Inc.
1554 This configure script is free software; the Free Software Foundation
1555 gives unlimited permission to copy, distribute and modify it.
1556
1557 Copyright (C) Robin Gareus 2007-2012
1558 _ACEOF
1559   exit
1560 fi
1561
1562 ## ------------------------ ##
1563 ## Autoconf initialization. ##
1564 ## ------------------------ ##
1565
1566 # ac_fn_c_try_compile LINENO
1567 # --------------------------
1568 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1569 ac_fn_c_try_compile ()
1570 {
1571   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1572   rm -f conftest.$ac_objext
1573   if { { ac_try="$ac_compile"
1574 case "(($ac_try" in
1575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1576   *) ac_try_echo=$ac_try;;
1577 esac
1578 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1579 $as_echo "$ac_try_echo"; } >&5
1580   (eval "$ac_compile") 2>conftest.err
1581   ac_status=$?
1582   if test -s conftest.err; then
1583     grep -v '^ *+' conftest.err >conftest.er1
1584     cat conftest.er1 >&5
1585     mv -f conftest.er1 conftest.err
1586   fi
1587   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1588   test $ac_status = 0; } && {
1589          test -z "$ac_c_werror_flag" ||
1590          test ! -s conftest.err
1591        } && test -s conftest.$ac_objext; then :
1592   ac_retval=0
1593 else
1594   $as_echo "$as_me: failed program was:" >&5
1595 sed 's/^/| /' conftest.$ac_ext >&5
1596
1597         ac_retval=1
1598 fi
1599   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1600   as_fn_set_status $ac_retval
1601
1602 } # ac_fn_c_try_compile
1603
1604 # ac_fn_c_try_link LINENO
1605 # -----------------------
1606 # Try to link conftest.$ac_ext, and return whether this succeeded.
1607 ac_fn_c_try_link ()
1608 {
1609   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1610   rm -f conftest.$ac_objext conftest$ac_exeext
1611   if { { ac_try="$ac_link"
1612 case "(($ac_try" in
1613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1614   *) ac_try_echo=$ac_try;;
1615 esac
1616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1617 $as_echo "$ac_try_echo"; } >&5
1618   (eval "$ac_link") 2>conftest.err
1619   ac_status=$?
1620   if test -s conftest.err; then
1621     grep -v '^ *+' conftest.err >conftest.er1
1622     cat conftest.er1 >&5
1623     mv -f conftest.er1 conftest.err
1624   fi
1625   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1626   test $ac_status = 0; } && {
1627          test -z "$ac_c_werror_flag" ||
1628          test ! -s conftest.err
1629        } && test -s conftest$ac_exeext && {
1630          test "$cross_compiling" = yes ||
1631          test -x conftest$ac_exeext
1632        }; then :
1633   ac_retval=0
1634 else
1635   $as_echo "$as_me: failed program was:" >&5
1636 sed 's/^/| /' conftest.$ac_ext >&5
1637
1638         ac_retval=1
1639 fi
1640   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1641   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1642   # interfere with the next link command; also delete a directory that is
1643   # left behind by Apple's compiler.  We do this before executing the actions.
1644   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1645   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1646   as_fn_set_status $ac_retval
1647
1648 } # ac_fn_c_try_link
1649
1650 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1651 # -------------------------------------------------------
1652 # Tests whether HEADER exists and can be compiled using the include files in
1653 # INCLUDES, setting the cache variable VAR accordingly.
1654 ac_fn_c_check_header_compile ()
1655 {
1656   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1657   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1658 $as_echo_n "checking for $2... " >&6; }
1659 if eval \${$3+:} false; then :
1660   $as_echo_n "(cached) " >&6
1661 else
1662   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1663 /* end confdefs.h.  */
1664 $4
1665 #include <$2>
1666 _ACEOF
1667 if ac_fn_c_try_compile "$LINENO"; then :
1668   eval "$3=yes"
1669 else
1670   eval "$3=no"
1671 fi
1672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1673 fi
1674 eval ac_res=\$$3
1675                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1676 $as_echo "$ac_res" >&6; }
1677   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1678
1679 } # ac_fn_c_check_header_compile
1680
1681 # ac_fn_c_try_cpp LINENO
1682 # ----------------------
1683 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1684 ac_fn_c_try_cpp ()
1685 {
1686   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687   if { { ac_try="$ac_cpp conftest.$ac_ext"
1688 case "(($ac_try" in
1689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690   *) ac_try_echo=$ac_try;;
1691 esac
1692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693 $as_echo "$ac_try_echo"; } >&5
1694   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1695   ac_status=$?
1696   if test -s conftest.err; then
1697     grep -v '^ *+' conftest.err >conftest.er1
1698     cat conftest.er1 >&5
1699     mv -f conftest.er1 conftest.err
1700   fi
1701   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702   test $ac_status = 0; } > conftest.i && {
1703          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1704          test ! -s conftest.err
1705        }; then :
1706   ac_retval=0
1707 else
1708   $as_echo "$as_me: failed program was:" >&5
1709 sed 's/^/| /' conftest.$ac_ext >&5
1710
1711     ac_retval=1
1712 fi
1713   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1714   as_fn_set_status $ac_retval
1715
1716 } # ac_fn_c_try_cpp
1717
1718 # ac_fn_c_try_run LINENO
1719 # ----------------------
1720 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1721 # that executables *can* be run.
1722 ac_fn_c_try_run ()
1723 {
1724   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725   if { { ac_try="$ac_link"
1726 case "(($ac_try" in
1727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1728   *) ac_try_echo=$ac_try;;
1729 esac
1730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731 $as_echo "$ac_try_echo"; } >&5
1732   (eval "$ac_link") 2>&5
1733   ac_status=$?
1734   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1735   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1736   { { case "(($ac_try" in
1737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1738   *) ac_try_echo=$ac_try;;
1739 esac
1740 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1741 $as_echo "$ac_try_echo"; } >&5
1742   (eval "$ac_try") 2>&5
1743   ac_status=$?
1744   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1745   test $ac_status = 0; }; }; then :
1746   ac_retval=0
1747 else
1748   $as_echo "$as_me: program exited with status $ac_status" >&5
1749        $as_echo "$as_me: failed program was:" >&5
1750 sed 's/^/| /' conftest.$ac_ext >&5
1751
1752        ac_retval=$ac_status
1753 fi
1754   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1755   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1756   as_fn_set_status $ac_retval
1757
1758 } # ac_fn_c_try_run
1759
1760 # ac_fn_c_check_func LINENO FUNC VAR
1761 # ----------------------------------
1762 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1763 ac_fn_c_check_func ()
1764 {
1765   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1766   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1767 $as_echo_n "checking for $2... " >&6; }
1768 if eval \${$3+:} false; then :
1769   $as_echo_n "(cached) " >&6
1770 else
1771   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1772 /* end confdefs.h.  */
1773 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1774    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1775 #define $2 innocuous_$2
1776
1777 /* System header to define __stub macros and hopefully few prototypes,
1778     which can conflict with char $2 (); below.
1779     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1780     <limits.h> exists even on freestanding compilers.  */
1781
1782 #ifdef __STDC__
1783 # include <limits.h>
1784 #else
1785 # include <assert.h>
1786 #endif
1787
1788 #undef $2
1789
1790 /* Override any GCC internal prototype to avoid an error.
1791    Use char because int might match the return type of a GCC
1792    builtin and then its argument prototype would still apply.  */
1793 #ifdef __cplusplus
1794 extern "C"
1795 #endif
1796 char $2 ();
1797 /* The GNU C library defines this for functions which it implements
1798     to always fail with ENOSYS.  Some functions are actually named
1799     something starting with __ and the normal name is an alias.  */
1800 #if defined __stub_$2 || defined __stub___$2
1801 choke me
1802 #endif
1803
1804 int
1805 main ()
1806 {
1807 return $2 ();
1808   ;
1809   return 0;
1810 }
1811 _ACEOF
1812 if ac_fn_c_try_link "$LINENO"; then :
1813   eval "$3=yes"
1814 else
1815   eval "$3=no"
1816 fi
1817 rm -f core conftest.err conftest.$ac_objext \
1818     conftest$ac_exeext conftest.$ac_ext
1819 fi
1820 eval ac_res=\$$3
1821                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1822 $as_echo "$ac_res" >&6; }
1823   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1824
1825 } # ac_fn_c_check_func
1826
1827 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1828 # -------------------------------------------------------
1829 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1830 # the include files in INCLUDES and setting the cache variable VAR
1831 # accordingly.
1832 ac_fn_c_check_header_mongrel ()
1833 {
1834   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835   if eval \${$3+:} false; then :
1836   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1837 $as_echo_n "checking for $2... " >&6; }
1838 if eval \${$3+:} false; then :
1839   $as_echo_n "(cached) " >&6
1840 fi
1841 eval ac_res=\$$3
1842                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1843 $as_echo "$ac_res" >&6; }
1844 else
1845   # Is the header compilable?
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1847 $as_echo_n "checking $2 usability... " >&6; }
1848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1849 /* end confdefs.h.  */
1850 $4
1851 #include <$2>
1852 _ACEOF
1853 if ac_fn_c_try_compile "$LINENO"; then :
1854   ac_header_compiler=yes
1855 else
1856   ac_header_compiler=no
1857 fi
1858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1860 $as_echo "$ac_header_compiler" >&6; }
1861
1862 # Is the header present?
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1864 $as_echo_n "checking $2 presence... " >&6; }
1865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1866 /* end confdefs.h.  */
1867 #include <$2>
1868 _ACEOF
1869 if ac_fn_c_try_cpp "$LINENO"; then :
1870   ac_header_preproc=yes
1871 else
1872   ac_header_preproc=no
1873 fi
1874 rm -f conftest.err conftest.i conftest.$ac_ext
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1876 $as_echo "$ac_header_preproc" >&6; }
1877
1878 # So?  What about this header?
1879 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1880   yes:no: )
1881     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1882 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1883     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1884 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1885     ;;
1886   no:yes:* )
1887     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1888 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1889     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1890 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1891     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1892 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1893     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1894 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1895     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1896 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1897 ( $as_echo "## -------------------------------------- ##
1898 ## Report this to robin AT gareus DOT org ##
1899 ## -------------------------------------- ##"
1900      ) | sed "s/^/$as_me: WARNING:     /" >&2
1901     ;;
1902 esac
1903   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1904 $as_echo_n "checking for $2... " >&6; }
1905 if eval \${$3+:} false; then :
1906   $as_echo_n "(cached) " >&6
1907 else
1908   eval "$3=\$ac_header_compiler"
1909 fi
1910 eval ac_res=\$$3
1911                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1912 $as_echo "$ac_res" >&6; }
1913 fi
1914   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1915
1916 } # ac_fn_c_check_header_mongrel
1917
1918 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1919 # -------------------------------------------
1920 # Tests whether TYPE exists after having included INCLUDES, setting cache
1921 # variable VAR accordingly.
1922 ac_fn_c_check_type ()
1923 {
1924   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1925   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1926 $as_echo_n "checking for $2... " >&6; }
1927 if eval \${$3+:} false; then :
1928   $as_echo_n "(cached) " >&6
1929 else
1930   eval "$3=no"
1931   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1932 /* end confdefs.h.  */
1933 $4
1934 int
1935 main ()
1936 {
1937 if (sizeof ($2))
1938          return 0;
1939   ;
1940   return 0;
1941 }
1942 _ACEOF
1943 if ac_fn_c_try_compile "$LINENO"; then :
1944   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1945 /* end confdefs.h.  */
1946 $4
1947 int
1948 main ()
1949 {
1950 if (sizeof (($2)))
1951             return 0;
1952   ;
1953   return 0;
1954 }
1955 _ACEOF
1956 if ac_fn_c_try_compile "$LINENO"; then :
1957
1958 else
1959   eval "$3=yes"
1960 fi
1961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1962 fi
1963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1964 fi
1965 eval ac_res=\$$3
1966                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1967 $as_echo "$ac_res" >&6; }
1968   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1969
1970 } # ac_fn_c_check_type
1971
1972 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1973 # ----------------------------------------------------
1974 # Tries to find if the field MEMBER exists in type AGGR, after including
1975 # INCLUDES, setting cache variable VAR accordingly.
1976 ac_fn_c_check_member ()
1977 {
1978   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1979   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1980 $as_echo_n "checking for $2.$3... " >&6; }
1981 if eval \${$4+:} false; then :
1982   $as_echo_n "(cached) " >&6
1983 else
1984   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1985 /* end confdefs.h.  */
1986 $5
1987 int
1988 main ()
1989 {
1990 static $2 ac_aggr;
1991 if (ac_aggr.$3)
1992 return 0;
1993   ;
1994   return 0;
1995 }
1996 _ACEOF
1997 if ac_fn_c_try_compile "$LINENO"; then :
1998   eval "$4=yes"
1999 else
2000   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2001 /* end confdefs.h.  */
2002 $5
2003 int
2004 main ()
2005 {
2006 static $2 ac_aggr;
2007 if (sizeof ac_aggr.$3)
2008 return 0;
2009   ;
2010   return 0;
2011 }
2012 _ACEOF
2013 if ac_fn_c_try_compile "$LINENO"; then :
2014   eval "$4=yes"
2015 else
2016   eval "$4=no"
2017 fi
2018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2019 fi
2020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2021 fi
2022 eval ac_res=\$$4
2023                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2024 $as_echo "$ac_res" >&6; }
2025   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2026
2027 } # ac_fn_c_check_member
2028 cat >config.log <<_ACEOF
2029 This file contains any messages produced by compilers while
2030 running configure, to aid debugging if configure makes a mistake.
2031
2032 It was created by liboauth $as_me -, which was
2033 generated by GNU Autoconf 2.69.  Invocation command line was
2034
2035   $ $0 $@
2036
2037 _ACEOF
2038 exec 5>>config.log
2039 {
2040 cat <<_ASUNAME
2041 ## --------- ##
2042 ## Platform. ##
2043 ## --------- ##
2044
2045 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2046 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2047 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2048 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2049 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2050
2051 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2052 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2053
2054 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2055 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2056 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2057 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2058 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2059 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2060 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2061
2062 _ASUNAME
2063
2064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2065 for as_dir in $PATH
2066 do
2067   IFS=$as_save_IFS
2068   test -z "$as_dir" && as_dir=.
2069     $as_echo "PATH: $as_dir"
2070   done
2071 IFS=$as_save_IFS
2072
2073 } >&5
2074
2075 cat >&5 <<_ACEOF
2076
2077
2078 ## ----------- ##
2079 ## Core tests. ##
2080 ## ----------- ##
2081
2082 _ACEOF
2083
2084
2085 # Keep a trace of the command line.
2086 # Strip out --no-create and --no-recursion so they do not pile up.
2087 # Strip out --silent because we don't want to record it for future runs.
2088 # Also quote any args containing shell meta-characters.
2089 # Make two passes to allow for proper duplicate-argument suppression.
2090 ac_configure_args=
2091 ac_configure_args0=
2092 ac_configure_args1=
2093 ac_must_keep_next=false
2094 for ac_pass in 1 2
2095 do
2096   for ac_arg
2097   do
2098     case $ac_arg in
2099     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2100     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2101     | -silent | --silent | --silen | --sile | --sil)
2102       continue ;;
2103     *\'*)
2104       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2105     esac
2106     case $ac_pass in
2107     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2108     2)
2109       as_fn_append ac_configure_args1 " '$ac_arg'"
2110       if test $ac_must_keep_next = true; then
2111         ac_must_keep_next=false # Got value, back to normal.
2112       else
2113         case $ac_arg in
2114           *=* | --config-cache | -C | -disable-* | --disable-* \
2115           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2116           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2117           | -with-* | --with-* | -without-* | --without-* | --x)
2118             case "$ac_configure_args0 " in
2119               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2120             esac
2121             ;;
2122           -* ) ac_must_keep_next=true ;;
2123         esac
2124       fi
2125       as_fn_append ac_configure_args " '$ac_arg'"
2126       ;;
2127     esac
2128   done
2129 done
2130 { ac_configure_args0=; unset ac_configure_args0;}
2131 { ac_configure_args1=; unset ac_configure_args1;}
2132
2133 # When interrupted or exit'd, cleanup temporary files, and complete
2134 # config.log.  We remove comments because anyway the quotes in there
2135 # would cause problems or look ugly.
2136 # WARNING: Use '\'' to represent an apostrophe within the trap.
2137 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2138 trap 'exit_status=$?
2139   # Save into config.log some information that might help in debugging.
2140   {
2141     echo
2142
2143     $as_echo "## ---------------- ##
2144 ## Cache variables. ##
2145 ## ---------------- ##"
2146     echo
2147     # The following way of writing the cache mishandles newlines in values,
2148 (
2149   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2150     eval ac_val=\$$ac_var
2151     case $ac_val in #(
2152     *${as_nl}*)
2153       case $ac_var in #(
2154       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2155 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2156       esac
2157       case $ac_var in #(
2158       _ | IFS | as_nl) ;; #(
2159       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2160       *) { eval $ac_var=; unset $ac_var;} ;;
2161       esac ;;
2162     esac
2163   done
2164   (set) 2>&1 |
2165     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2166     *${as_nl}ac_space=\ *)
2167       sed -n \
2168         "s/'\''/'\''\\\\'\'''\''/g;
2169           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2170       ;; #(
2171     *)
2172       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2173       ;;
2174     esac |
2175     sort
2176 )
2177     echo
2178
2179     $as_echo "## ----------------- ##
2180 ## Output variables. ##
2181 ## ----------------- ##"
2182     echo
2183     for ac_var in $ac_subst_vars
2184     do
2185       eval ac_val=\$$ac_var
2186       case $ac_val in
2187       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2188       esac
2189       $as_echo "$ac_var='\''$ac_val'\''"
2190     done | sort
2191     echo
2192
2193     if test -n "$ac_subst_files"; then
2194       $as_echo "## ------------------- ##
2195 ## File substitutions. ##
2196 ## ------------------- ##"
2197       echo
2198       for ac_var in $ac_subst_files
2199       do
2200         eval ac_val=\$$ac_var
2201         case $ac_val in
2202         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2203         esac
2204         $as_echo "$ac_var='\''$ac_val'\''"
2205       done | sort
2206       echo
2207     fi
2208
2209     if test -s confdefs.h; then
2210       $as_echo "## ----------- ##
2211 ## confdefs.h. ##
2212 ## ----------- ##"
2213       echo
2214       cat confdefs.h
2215       echo
2216     fi
2217     test "$ac_signal" != 0 &&
2218       $as_echo "$as_me: caught signal $ac_signal"
2219     $as_echo "$as_me: exit $exit_status"
2220   } >&5
2221   rm -f core *.core core.conftest.* &&
2222     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2223     exit $exit_status
2224 ' 0
2225 for ac_signal in 1 2 13 15; do
2226   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2227 done
2228 ac_signal=0
2229
2230 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2231 rm -f -r conftest* confdefs.h
2232
2233 $as_echo "/* confdefs.h */" > confdefs.h
2234
2235 # Predefined preprocessor variables.
2236
2237 cat >>confdefs.h <<_ACEOF
2238 #define PACKAGE_NAME "$PACKAGE_NAME"
2239 _ACEOF
2240
2241 cat >>confdefs.h <<_ACEOF
2242 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2243 _ACEOF
2244
2245 cat >>confdefs.h <<_ACEOF
2246 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2247 _ACEOF
2248
2249 cat >>confdefs.h <<_ACEOF
2250 #define PACKAGE_STRING "$PACKAGE_STRING"
2251 _ACEOF
2252
2253 cat >>confdefs.h <<_ACEOF
2254 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2255 _ACEOF
2256
2257 cat >>confdefs.h <<_ACEOF
2258 #define PACKAGE_URL "$PACKAGE_URL"
2259 _ACEOF
2260
2261
2262 # Let the site file select an alternate cache file if it wants to.
2263 # Prefer an explicitly selected file to automatically selected ones.
2264 ac_site_file1=NONE
2265 ac_site_file2=NONE
2266 if test -n "$CONFIG_SITE"; then
2267   # We do not want a PATH search for config.site.
2268   case $CONFIG_SITE in #((
2269     -*)  ac_site_file1=./$CONFIG_SITE;;
2270     */*) ac_site_file1=$CONFIG_SITE;;
2271     *)   ac_site_file1=./$CONFIG_SITE;;
2272   esac
2273 elif test "x$prefix" != xNONE; then
2274   ac_site_file1=$prefix/share/config.site
2275   ac_site_file2=$prefix/etc/config.site
2276 else
2277   ac_site_file1=$ac_default_prefix/share/config.site
2278   ac_site_file2=$ac_default_prefix/etc/config.site
2279 fi
2280 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2281 do
2282   test "x$ac_site_file" = xNONE && continue
2283   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2284     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2285 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2286     sed 's/^/| /' "$ac_site_file" >&5
2287     . "$ac_site_file" \
2288       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2289 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2290 as_fn_error $? "failed to load site script $ac_site_file
2291 See \`config.log' for more details" "$LINENO" 5; }
2292   fi
2293 done
2294
2295 if test -r "$cache_file"; then
2296   # Some versions of bash will fail to source /dev/null (special files
2297   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2298   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2299     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2300 $as_echo "$as_me: loading cache $cache_file" >&6;}
2301     case $cache_file in
2302       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2303       *)                      . "./$cache_file";;
2304     esac
2305   fi
2306 else
2307   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2308 $as_echo "$as_me: creating cache $cache_file" >&6;}
2309   >$cache_file
2310 fi
2311
2312 # Check that the precious variables saved in the cache have kept the same
2313 # value.
2314 ac_cache_corrupted=false
2315 for ac_var in $ac_precious_vars; do
2316   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2317   eval ac_new_set=\$ac_env_${ac_var}_set
2318   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2319   eval ac_new_val=\$ac_env_${ac_var}_value
2320   case $ac_old_set,$ac_new_set in
2321     set,)
2322       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2323 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2324       ac_cache_corrupted=: ;;
2325     ,set)
2326       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2327 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2328       ac_cache_corrupted=: ;;
2329     ,);;
2330     *)
2331       if test "x$ac_old_val" != "x$ac_new_val"; then
2332         # differences in whitespace do not lead to failure.
2333         ac_old_val_w=`echo x $ac_old_val`
2334         ac_new_val_w=`echo x $ac_new_val`
2335         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2336           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2337 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2338           ac_cache_corrupted=:
2339         else
2340           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2341 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2342           eval $ac_var=\$ac_old_val
2343         fi
2344         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2345 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2346         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2347 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2348       fi;;
2349   esac
2350   # Pass precious variables to config.status.
2351   if test "$ac_new_set" = set; then
2352     case $ac_new_val in
2353     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2354     *) ac_arg=$ac_var=$ac_new_val ;;
2355     esac
2356     case " $ac_configure_args " in
2357       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2358       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2359     esac
2360   fi
2361 done
2362 if $ac_cache_corrupted; then
2363   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2365   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2366 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2367   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2368 fi
2369 ## -------------------- ##
2370 ## Main body of script. ##
2371 ## -------------------- ##
2372
2373 ac_ext=c
2374 ac_cpp='$CPP $CPPFLAGS'
2375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2378
2379
2380 #AM_MAINTAINER_MODE
2381
2382 # Extract the first word of "sed", so it can be a program name with args.
2383 set dummy sed; ac_word=$2
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2385 $as_echo_n "checking for $ac_word... " >&6; }
2386 if ${ac_cv_path_SED+:} false; then :
2387   $as_echo_n "(cached) " >&6
2388 else
2389   case $SED in
2390   [\\/]* | ?:[\\/]*)
2391   ac_cv_path_SED="$SED" # Let the user override the test with a path.
2392   ;;
2393   *)
2394   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2395 as_dummy="$PATH:/bin:/usr/bin:/usr/local/bin"
2396 for as_dir in $as_dummy
2397 do
2398   IFS=$as_save_IFS
2399   test -z "$as_dir" && as_dir=.
2400     for ac_exec_ext in '' $ac_executable_extensions; do
2401   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2402     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
2403     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2404     break 2
2405   fi
2406 done
2407   done
2408 IFS=$as_save_IFS
2409
2410   test -z "$ac_cv_path_SED" && ac_cv_path_SED=""""
2411   ;;
2412 esac
2413 fi
2414 SED=$ac_cv_path_SED
2415 if test -n "$SED"; then
2416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
2417 $as_echo "$SED" >&6; }
2418 else
2419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2420 $as_echo "no" >&6; }
2421 fi
2422
2423
2424 if test -z "$SED"; then
2425   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: sed was not found" >&5
2426 $as_echo "$as_me: WARNING: sed was not found" >&2;}
2427 fi
2428
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking liboauth version" >&5
2430 $as_echo_n "checking liboauth version... " >&6; }
2431 VERSION=`$SED -ne 's/^#define LIBOAUTH_VERSION "\(.*\)"/\1/p' ${srcdir}/src/oauth.h 2>/dev/null`
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VERSION" >&5
2433 $as_echo "$VERSION" >&6; }
2434 if test -z "$VERSION"; then
2435   as_fn_error $? "version number can not be retrieved from src/oauth.h" "$LINENO" 5
2436 fi
2437
2438 VERSION_CUR=`$SED -ne 's/^#define LIBOAUTH_CUR *\([0-9]*\)/\1/p' ${srcdir}/src/oauth.h 2>/dev/null`
2439 VERSION_REV=`$SED -ne 's/^#define LIBOAUTH_REV *\([0-9]*\)/\1/p' ${srcdir}/src/oauth.h 2>/dev/null`
2440 VERSION_AGE=`$SED -ne 's/^#define LIBOAUTH_AGE *\([0-9]*\)/\1/p' ${srcdir}/src/oauth.h 2>/dev/null`
2441 VERSION_INFO=${VERSION_CUR}:${VERSION_REV}:${VERSION_AGE}
2442
2443
2444 ac_config_commands="$ac_config_commands tests/atconfig"
2445
2446 ac_aux_dir=
2447 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2448   if test -f "$ac_dir/install-sh"; then
2449     ac_aux_dir=$ac_dir
2450     ac_install_sh="$ac_aux_dir/install-sh -c"
2451     break
2452   elif test -f "$ac_dir/install.sh"; then
2453     ac_aux_dir=$ac_dir
2454     ac_install_sh="$ac_aux_dir/install.sh -c"
2455     break
2456   elif test -f "$ac_dir/shtool"; then
2457     ac_aux_dir=$ac_dir
2458     ac_install_sh="$ac_aux_dir/shtool install -c"
2459     break
2460   fi
2461 done
2462 if test -z "$ac_aux_dir"; then
2463   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2464 fi
2465
2466 # These three variables are undocumented and unsupported,
2467 # and are intended to be withdrawn in a future Autoconf release.
2468 # They can cause serious problems if a builder's source tree is in a directory
2469 # whose full name contains unusual characters.
2470 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2471 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2472 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2473
2474
2475 # Make sure we can run config.sub.
2476 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2477   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2478
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2480 $as_echo_n "checking build system type... " >&6; }
2481 if ${ac_cv_build+:} false; then :
2482   $as_echo_n "(cached) " >&6
2483 else
2484   ac_build_alias=$build_alias
2485 test "x$ac_build_alias" = x &&
2486   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2487 test "x$ac_build_alias" = x &&
2488   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2489 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2490   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2491
2492 fi
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2494 $as_echo "$ac_cv_build" >&6; }
2495 case $ac_cv_build in
2496 *-*-*) ;;
2497 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2498 esac
2499 build=$ac_cv_build
2500 ac_save_IFS=$IFS; IFS='-'
2501 set x $ac_cv_build
2502 shift
2503 build_cpu=$1
2504 build_vendor=$2
2505 shift; shift
2506 # Remember, the first character of IFS is used to create $*,
2507 # except with old shells:
2508 build_os=$*
2509 IFS=$ac_save_IFS
2510 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2511
2512
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2514 $as_echo_n "checking host system type... " >&6; }
2515 if ${ac_cv_host+:} false; then :
2516   $as_echo_n "(cached) " >&6
2517 else
2518   if test "x$host_alias" = x; then
2519   ac_cv_host=$ac_cv_build
2520 else
2521   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2522     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2523 fi
2524
2525 fi
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2527 $as_echo "$ac_cv_host" >&6; }
2528 case $ac_cv_host in
2529 *-*-*) ;;
2530 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2531 esac
2532 host=$ac_cv_host
2533 ac_save_IFS=$IFS; IFS='-'
2534 set x $ac_cv_host
2535 shift
2536 host_cpu=$1
2537 host_vendor=$2
2538 shift; shift
2539 # Remember, the first character of IFS is used to create $*,
2540 # except with old shells:
2541 host_os=$*
2542 IFS=$ac_save_IFS
2543 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2544
2545
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2547 $as_echo_n "checking target system type... " >&6; }
2548 if ${ac_cv_target+:} false; then :
2549   $as_echo_n "(cached) " >&6
2550 else
2551   if test "x$target_alias" = x; then
2552   ac_cv_target=$ac_cv_host
2553 else
2554   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2555     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2556 fi
2557
2558 fi
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2560 $as_echo "$ac_cv_target" >&6; }
2561 case $ac_cv_target in
2562 *-*-*) ;;
2563 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2564 esac
2565 target=$ac_cv_target
2566 ac_save_IFS=$IFS; IFS='-'
2567 set x $ac_cv_target
2568 shift
2569 target_cpu=$1
2570 target_vendor=$2
2571 shift; shift
2572 # Remember, the first character of IFS is used to create $*,
2573 # except with old shells:
2574 target_os=$*
2575 IFS=$ac_save_IFS
2576 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2577
2578
2579 # The aliases save the names the user supplied, while $host etc.
2580 # will get canonicalized.
2581 test -n "$target_alias" &&
2582   test "$program_prefix$program_suffix$program_transform_name" = \
2583     NONENONEs,x,x, &&
2584   program_prefix=${target_alias}-
2585
2586 am__api_version='1.11'
2587
2588 # Find a good install program.  We prefer a C program (faster),
2589 # so one script is as good as another.  But avoid the broken or
2590 # incompatible versions:
2591 # SysV /etc/install, /usr/sbin/install
2592 # SunOS /usr/etc/install
2593 # IRIX /sbin/install
2594 # AIX /bin/install
2595 # AmigaOS /C/install, which installs bootblocks on floppy discs
2596 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2597 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2598 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2599 # OS/2's system install, which has a completely different semantic
2600 # ./install, which can be erroneously created by make from ./install.sh.
2601 # Reject install programs that cannot install multiple files.
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2603 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2604 if test -z "$INSTALL"; then
2605 if ${ac_cv_path_install+:} false; then :
2606   $as_echo_n "(cached) " >&6
2607 else
2608   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2609 for as_dir in $PATH
2610 do
2611   IFS=$as_save_IFS
2612   test -z "$as_dir" && as_dir=.
2613     # Account for people who put trailing slashes in PATH elements.
2614 case $as_dir/ in #((
2615   ./ | .// | /[cC]/* | \
2616   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2617   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2618   /usr/ucb/* ) ;;
2619   *)
2620     # OSF1 and SCO ODT 3.0 have their own names for install.
2621     # Don't use installbsd from OSF since it installs stuff as root
2622     # by default.
2623     for ac_prog in ginstall scoinst install; do
2624       for ac_exec_ext in '' $ac_executable_extensions; do
2625         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2626           if test $ac_prog = install &&
2627             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2628             # AIX install.  It has an incompatible calling convention.
2629             :
2630           elif test $ac_prog = install &&
2631             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2632             # program-specific install script used by HP pwplus--don't use.
2633             :
2634           else
2635             rm -rf conftest.one conftest.two conftest.dir
2636             echo one > conftest.one
2637             echo two > conftest.two
2638             mkdir conftest.dir
2639             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2640               test -s conftest.one && test -s conftest.two &&
2641               test -s conftest.dir/conftest.one &&
2642               test -s conftest.dir/conftest.two
2643             then
2644               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2645               break 3
2646             fi
2647           fi
2648         fi
2649       done
2650     done
2651     ;;
2652 esac
2653
2654   done
2655 IFS=$as_save_IFS
2656
2657 rm -rf conftest.one conftest.two conftest.dir
2658
2659 fi
2660   if test "${ac_cv_path_install+set}" = set; then
2661     INSTALL=$ac_cv_path_install
2662   else
2663     # As a last resort, use the slow shell script.  Don't cache a
2664     # value for INSTALL within a source directory, because that will
2665     # break other packages using the cache if that directory is
2666     # removed, or if the value is a relative name.
2667     INSTALL=$ac_install_sh
2668   fi
2669 fi
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2671 $as_echo "$INSTALL" >&6; }
2672
2673 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2674 # It thinks the first close brace ends the variable substitution.
2675 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2676
2677 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2678
2679 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2680
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2682 $as_echo_n "checking whether build environment is sane... " >&6; }
2683 # Just in case
2684 sleep 1
2685 echo timestamp > conftest.file
2686 # Reject unsafe characters in $srcdir or the absolute working directory
2687 # name.  Accept space and tab only in the latter.
2688 am_lf='
2689 '
2690 case `pwd` in
2691   *[\\\"\#\$\&\'\`$am_lf]*)
2692     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2693 esac
2694 case $srcdir in
2695   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2696     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2697 esac
2698
2699 # Do `set' in a subshell so we don't clobber the current shell's
2700 # arguments.  Must try -L first in case configure is actually a
2701 # symlink; some systems play weird games with the mod time of symlinks
2702 # (eg FreeBSD returns the mod time of the symlink's containing
2703 # directory).
2704 if (
2705    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2706    if test "$*" = "X"; then
2707       # -L didn't work.
2708       set X `ls -t "$srcdir/configure" conftest.file`
2709    fi
2710    rm -f conftest.file
2711    if test "$*" != "X $srcdir/configure conftest.file" \
2712       && test "$*" != "X conftest.file $srcdir/configure"; then
2713
2714       # If neither matched, then we have a broken ls.  This can happen
2715       # if, for instance, CONFIG_SHELL is bash and it inherits a
2716       # broken ls alias from the environment.  This has actually
2717       # happened.  Such a system could not be considered "sane".
2718       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2719 alias in your environment" "$LINENO" 5
2720    fi
2721
2722    test "$2" = conftest.file
2723    )
2724 then
2725    # Ok.
2726    :
2727 else
2728    as_fn_error $? "newly created file is older than distributed files!
2729 Check your system clock" "$LINENO" 5
2730 fi
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2732 $as_echo "yes" >&6; }
2733 test "$program_prefix" != NONE &&
2734   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2735 # Use a double $ so make ignores it.
2736 test "$program_suffix" != NONE &&
2737   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2738 # Double any \ or $.
2739 # By default was `s,x,x', remove it if useless.
2740 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2741 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2742
2743 # expand $ac_aux_dir to an absolute path
2744 am_aux_dir=`cd $ac_aux_dir && pwd`
2745
2746 if test x"${MISSING+set}" != xset; then
2747   case $am_aux_dir in
2748   *\ * | *\     *)
2749     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2750   *)
2751     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2752   esac
2753 fi
2754 # Use eval to expand $SHELL
2755 if eval "$MISSING --run true"; then
2756   am_missing_run="$MISSING --run "
2757 else
2758   am_missing_run=
2759   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2760 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2761 fi
2762
2763 if test x"${install_sh}" != xset; then
2764   case $am_aux_dir in
2765   *\ * | *\     *)
2766     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2767   *)
2768     install_sh="\${SHELL} $am_aux_dir/install-sh"
2769   esac
2770 fi
2771
2772 # Installed binaries are usually stripped using `strip' when the user
2773 # run `make install-strip'.  However `strip' might not be the right
2774 # tool to use in cross-compilation environments, therefore Automake
2775 # will honor the `STRIP' environment variable to overrule this program.
2776 if test "$cross_compiling" != no; then
2777   if test -n "$ac_tool_prefix"; then
2778   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2779 set dummy ${ac_tool_prefix}strip; ac_word=$2
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2781 $as_echo_n "checking for $ac_word... " >&6; }
2782 if ${ac_cv_prog_STRIP+:} false; then :
2783   $as_echo_n "(cached) " >&6
2784 else
2785   if test -n "$STRIP"; then
2786   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2787 else
2788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789 for as_dir in $PATH
2790 do
2791   IFS=$as_save_IFS
2792   test -z "$as_dir" && as_dir=.
2793     for ac_exec_ext in '' $ac_executable_extensions; do
2794   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2795     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2796     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2797     break 2
2798   fi
2799 done
2800   done
2801 IFS=$as_save_IFS
2802
2803 fi
2804 fi
2805 STRIP=$ac_cv_prog_STRIP
2806 if test -n "$STRIP"; then
2807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2808 $as_echo "$STRIP" >&6; }
2809 else
2810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2811 $as_echo "no" >&6; }
2812 fi
2813
2814
2815 fi
2816 if test -z "$ac_cv_prog_STRIP"; then
2817   ac_ct_STRIP=$STRIP
2818   # Extract the first word of "strip", so it can be a program name with args.
2819 set dummy strip; ac_word=$2
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2821 $as_echo_n "checking for $ac_word... " >&6; }
2822 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2823   $as_echo_n "(cached) " >&6
2824 else
2825   if test -n "$ac_ct_STRIP"; then
2826   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2827 else
2828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829 for as_dir in $PATH
2830 do
2831   IFS=$as_save_IFS
2832   test -z "$as_dir" && as_dir=.
2833     for ac_exec_ext in '' $ac_executable_extensions; do
2834   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2835     ac_cv_prog_ac_ct_STRIP="strip"
2836     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2837     break 2
2838   fi
2839 done
2840   done
2841 IFS=$as_save_IFS
2842
2843 fi
2844 fi
2845 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2846 if test -n "$ac_ct_STRIP"; then
2847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2848 $as_echo "$ac_ct_STRIP" >&6; }
2849 else
2850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2851 $as_echo "no" >&6; }
2852 fi
2853
2854   if test "x$ac_ct_STRIP" = x; then
2855     STRIP=":"
2856   else
2857     case $cross_compiling:$ac_tool_warned in
2858 yes:)
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2860 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2861 ac_tool_warned=yes ;;
2862 esac
2863     STRIP=$ac_ct_STRIP
2864   fi
2865 else
2866   STRIP="$ac_cv_prog_STRIP"
2867 fi
2868
2869 fi
2870 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2871
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2873 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2874 if test -z "$MKDIR_P"; then
2875   if ${ac_cv_path_mkdir+:} false; then :
2876   $as_echo_n "(cached) " >&6
2877 else
2878   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2879 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2880 do
2881   IFS=$as_save_IFS
2882   test -z "$as_dir" && as_dir=.
2883     for ac_prog in mkdir gmkdir; do
2884          for ac_exec_ext in '' $ac_executable_extensions; do
2885            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2886            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2887              'mkdir (GNU coreutils) '* | \
2888              'mkdir (coreutils) '* | \
2889              'mkdir (fileutils) '4.1*)
2890                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2891                break 3;;
2892            esac
2893          done
2894        done
2895   done
2896 IFS=$as_save_IFS
2897
2898 fi
2899
2900   test -d ./--version && rmdir ./--version
2901   if test "${ac_cv_path_mkdir+set}" = set; then
2902     MKDIR_P="$ac_cv_path_mkdir -p"
2903   else
2904     # As a last resort, use the slow shell script.  Don't cache a
2905     # value for MKDIR_P within a source directory, because that will
2906     # break other packages using the cache if that directory is
2907     # removed, or if the value is a relative name.
2908     MKDIR_P="$ac_install_sh -d"
2909   fi
2910 fi
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2912 $as_echo "$MKDIR_P" >&6; }
2913
2914 mkdir_p="$MKDIR_P"
2915 case $mkdir_p in
2916   [\\/$]* | ?:[\\/]*) ;;
2917   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2918 esac
2919
2920 for ac_prog in gawk mawk nawk awk
2921 do
2922   # Extract the first word of "$ac_prog", so it can be a program name with args.
2923 set dummy $ac_prog; ac_word=$2
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2925 $as_echo_n "checking for $ac_word... " >&6; }
2926 if ${ac_cv_prog_AWK+:} false; then :
2927   $as_echo_n "(cached) " >&6
2928 else
2929   if test -n "$AWK"; then
2930   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2931 else
2932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2933 for as_dir in $PATH
2934 do
2935   IFS=$as_save_IFS
2936   test -z "$as_dir" && as_dir=.
2937     for ac_exec_ext in '' $ac_executable_extensions; do
2938   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2939     ac_cv_prog_AWK="$ac_prog"
2940     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2941     break 2
2942   fi
2943 done
2944   done
2945 IFS=$as_save_IFS
2946
2947 fi
2948 fi
2949 AWK=$ac_cv_prog_AWK
2950 if test -n "$AWK"; then
2951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2952 $as_echo "$AWK" >&6; }
2953 else
2954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2955 $as_echo "no" >&6; }
2956 fi
2957
2958
2959   test -n "$AWK" && break
2960 done
2961
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2963 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2964 set x ${MAKE-make}
2965 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2966 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2967   $as_echo_n "(cached) " >&6
2968 else
2969   cat >conftest.make <<\_ACEOF
2970 SHELL = /bin/sh
2971 all:
2972         @echo '@@@%%%=$(MAKE)=@@@%%%'
2973 _ACEOF
2974 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2975 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2976   *@@@%%%=?*=@@@%%%*)
2977     eval ac_cv_prog_make_${ac_make}_set=yes;;
2978   *)
2979     eval ac_cv_prog_make_${ac_make}_set=no;;
2980 esac
2981 rm -f conftest.make
2982 fi
2983 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2985 $as_echo "yes" >&6; }
2986   SET_MAKE=
2987 else
2988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2989 $as_echo "no" >&6; }
2990   SET_MAKE="MAKE=${MAKE-make}"
2991 fi
2992
2993 rm -rf .tst 2>/dev/null
2994 mkdir .tst 2>/dev/null
2995 if test -d .tst; then
2996   am__leading_dot=.
2997 else
2998   am__leading_dot=_
2999 fi
3000 rmdir .tst 2>/dev/null
3001
3002 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3003   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3004   # is not polluted with repeated "-I."
3005   am__isrc=' -I$(srcdir)'
3006   # test to see if srcdir already configured
3007   if test -f $srcdir/config.status; then
3008     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3009   fi
3010 fi
3011
3012 # test whether we have cygpath
3013 if test -z "$CYGPATH_W"; then
3014   if (cygpath --version) >/dev/null 2>/dev/null; then
3015     CYGPATH_W='cygpath -w'
3016   else
3017     CYGPATH_W=echo
3018   fi
3019 fi
3020
3021
3022 # Define the identity of the package.
3023  PACKAGE=liboauth
3024  VERSION=$VERSION
3025
3026
3027 cat >>confdefs.h <<_ACEOF
3028 #define PACKAGE "$PACKAGE"
3029 _ACEOF
3030
3031
3032 cat >>confdefs.h <<_ACEOF
3033 #define VERSION "$VERSION"
3034 _ACEOF
3035
3036 # Some tools Automake needs.
3037
3038 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3039
3040
3041 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3042
3043
3044 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3045
3046
3047 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3048
3049
3050 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3051
3052 # We need awk for the "check" target.  The system "awk" is bad on
3053 # some platforms.
3054 # Always define AMTAR for backward compatibility.  Yes, it's still used
3055 # in the wild :-(  We should find a proper way to deprecate it ...
3056 AMTAR='$${TAR-tar}'
3057
3058 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3059
3060
3061
3062
3063
3064
3065 ac_config_headers="$ac_config_headers src/config.h"
3066
3067
3068
3069
3070 ISODATE=`date +%Y-%m-%d`
3071
3072
3073
3074
3075
3076 ac_ext=c
3077 ac_cpp='$CPP $CPPFLAGS'
3078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3081 if test -n "$ac_tool_prefix"; then
3082   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3083 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3085 $as_echo_n "checking for $ac_word... " >&6; }
3086 if ${ac_cv_prog_CC+:} false; then :
3087   $as_echo_n "(cached) " >&6
3088 else
3089   if test -n "$CC"; then
3090   ac_cv_prog_CC="$CC" # Let the user override the test.
3091 else
3092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3093 for as_dir in $PATH
3094 do
3095   IFS=$as_save_IFS
3096   test -z "$as_dir" && as_dir=.
3097     for ac_exec_ext in '' $ac_executable_extensions; do
3098   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3099     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3100     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3101     break 2
3102   fi
3103 done
3104   done
3105 IFS=$as_save_IFS
3106
3107 fi
3108 fi
3109 CC=$ac_cv_prog_CC
3110 if test -n "$CC"; then
3111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3112 $as_echo "$CC" >&6; }
3113 else
3114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3115 $as_echo "no" >&6; }
3116 fi
3117
3118
3119 fi
3120 if test -z "$ac_cv_prog_CC"; then
3121   ac_ct_CC=$CC
3122   # Extract the first word of "gcc", so it can be a program name with args.
3123 set dummy gcc; ac_word=$2
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3125 $as_echo_n "checking for $ac_word... " >&6; }
3126 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3127   $as_echo_n "(cached) " >&6
3128 else
3129   if test -n "$ac_ct_CC"; then
3130   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3131 else
3132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3133 for as_dir in $PATH
3134 do
3135   IFS=$as_save_IFS
3136   test -z "$as_dir" && as_dir=.
3137     for ac_exec_ext in '' $ac_executable_extensions; do
3138   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3139     ac_cv_prog_ac_ct_CC="gcc"
3140     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3141     break 2
3142   fi
3143 done
3144   done
3145 IFS=$as_save_IFS
3146
3147 fi
3148 fi
3149 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3150 if test -n "$ac_ct_CC"; then
3151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3152 $as_echo "$ac_ct_CC" >&6; }
3153 else
3154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3155 $as_echo "no" >&6; }
3156 fi
3157
3158   if test "x$ac_ct_CC" = x; then
3159     CC=""
3160   else
3161     case $cross_compiling:$ac_tool_warned in
3162 yes:)
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3164 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3165 ac_tool_warned=yes ;;
3166 esac
3167     CC=$ac_ct_CC
3168   fi
3169 else
3170   CC="$ac_cv_prog_CC"
3171 fi
3172
3173 if test -z "$CC"; then
3174           if test -n "$ac_tool_prefix"; then
3175     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3176 set dummy ${ac_tool_prefix}cc; ac_word=$2
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3178 $as_echo_n "checking for $ac_word... " >&6; }
3179 if ${ac_cv_prog_CC+:} false; then :
3180   $as_echo_n "(cached) " >&6
3181 else
3182   if test -n "$CC"; then
3183   ac_cv_prog_CC="$CC" # Let the user override the test.
3184 else
3185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3186 for as_dir in $PATH
3187 do
3188   IFS=$as_save_IFS
3189   test -z "$as_dir" && as_dir=.
3190     for ac_exec_ext in '' $ac_executable_extensions; do
3191   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3192     ac_cv_prog_CC="${ac_tool_prefix}cc"
3193     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3194     break 2
3195   fi
3196 done
3197   done
3198 IFS=$as_save_IFS
3199
3200 fi
3201 fi
3202 CC=$ac_cv_prog_CC
3203 if test -n "$CC"; then
3204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3205 $as_echo "$CC" >&6; }
3206 else
3207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3208 $as_echo "no" >&6; }
3209 fi
3210
3211
3212   fi
3213 fi
3214 if test -z "$CC"; then
3215   # Extract the first word of "cc", so it can be a program name with args.
3216 set dummy cc; ac_word=$2
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3218 $as_echo_n "checking for $ac_word... " >&6; }
3219 if ${ac_cv_prog_CC+:} false; then :
3220   $as_echo_n "(cached) " >&6
3221 else
3222   if test -n "$CC"; then
3223   ac_cv_prog_CC="$CC" # Let the user override the test.
3224 else
3225   ac_prog_rejected=no
3226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3227 for as_dir in $PATH
3228 do
3229   IFS=$as_save_IFS
3230   test -z "$as_dir" && as_dir=.
3231     for ac_exec_ext in '' $ac_executable_extensions; do
3232   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3233     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3234        ac_prog_rejected=yes
3235        continue
3236      fi
3237     ac_cv_prog_CC="cc"
3238     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3239     break 2
3240   fi
3241 done
3242   done
3243 IFS=$as_save_IFS
3244
3245 if test $ac_prog_rejected = yes; then
3246   # We found a bogon in the path, so make sure we never use it.
3247   set dummy $ac_cv_prog_CC
3248   shift
3249   if test $# != 0; then
3250     # We chose a different compiler from the bogus one.
3251     # However, it has the same basename, so the bogon will be chosen
3252     # first if we set CC to just the basename; use the full file name.
3253     shift
3254     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3255   fi
3256 fi
3257 fi
3258 fi
3259 CC=$ac_cv_prog_CC
3260 if test -n "$CC"; then
3261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3262 $as_echo "$CC" >&6; }
3263 else
3264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3265 $as_echo "no" >&6; }
3266 fi
3267
3268
3269 fi
3270 if test -z "$CC"; then
3271   if test -n "$ac_tool_prefix"; then
3272   for ac_prog in cl.exe
3273   do
3274     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3275 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3277 $as_echo_n "checking for $ac_word... " >&6; }
3278 if ${ac_cv_prog_CC+:} false; then :
3279   $as_echo_n "(cached) " >&6
3280 else
3281   if test -n "$CC"; then
3282   ac_cv_prog_CC="$CC" # Let the user override the test.
3283 else
3284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3285 for as_dir in $PATH
3286 do
3287   IFS=$as_save_IFS
3288   test -z "$as_dir" && as_dir=.
3289     for ac_exec_ext in '' $ac_executable_extensions; do
3290   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3291     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3292     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3293     break 2
3294   fi
3295 done
3296   done
3297 IFS=$as_save_IFS
3298
3299 fi
3300 fi
3301 CC=$ac_cv_prog_CC
3302 if test -n "$CC"; then
3303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3304 $as_echo "$CC" >&6; }
3305 else
3306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3307 $as_echo "no" >&6; }
3308 fi
3309
3310
3311     test -n "$CC" && break
3312   done
3313 fi
3314 if test -z "$CC"; then
3315   ac_ct_CC=$CC
3316   for ac_prog in cl.exe
3317 do
3318   # Extract the first word of "$ac_prog", so it can be a program name with args.
3319 set dummy $ac_prog; ac_word=$2
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3321 $as_echo_n "checking for $ac_word... " >&6; }
3322 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3323   $as_echo_n "(cached) " >&6
3324 else
3325   if test -n "$ac_ct_CC"; then
3326   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3327 else
3328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3329 for as_dir in $PATH
3330 do
3331   IFS=$as_save_IFS
3332   test -z "$as_dir" && as_dir=.
3333     for ac_exec_ext in '' $ac_executable_extensions; do
3334   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3335     ac_cv_prog_ac_ct_CC="$ac_prog"
3336     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3337     break 2
3338   fi
3339 done
3340   done
3341 IFS=$as_save_IFS
3342
3343 fi
3344 fi
3345 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3346 if test -n "$ac_ct_CC"; then
3347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3348 $as_echo "$ac_ct_CC" >&6; }
3349 else
3350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3351 $as_echo "no" >&6; }
3352 fi
3353
3354
3355   test -n "$ac_ct_CC" && break
3356 done
3357
3358   if test "x$ac_ct_CC" = x; then
3359     CC=""
3360   else
3361     case $cross_compiling:$ac_tool_warned in
3362 yes:)
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3364 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3365 ac_tool_warned=yes ;;
3366 esac
3367     CC=$ac_ct_CC
3368   fi
3369 fi
3370
3371 fi
3372
3373
3374 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3375 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3376 as_fn_error $? "no acceptable C compiler found in \$PATH
3377 See \`config.log' for more details" "$LINENO" 5; }
3378
3379 # Provide some information about the compiler.
3380 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3381 set X $ac_compile
3382 ac_compiler=$2
3383 for ac_option in --version -v -V -qversion; do
3384   { { ac_try="$ac_compiler $ac_option >&5"
3385 case "(($ac_try" in
3386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387   *) ac_try_echo=$ac_try;;
3388 esac
3389 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3390 $as_echo "$ac_try_echo"; } >&5
3391   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3392   ac_status=$?
3393   if test -s conftest.err; then
3394     sed '10a\
3395 ... rest of stderr output deleted ...
3396          10q' conftest.err >conftest.er1
3397     cat conftest.er1 >&5
3398   fi
3399   rm -f conftest.er1 conftest.err
3400   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3401   test $ac_status = 0; }
3402 done
3403
3404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3405 /* end confdefs.h.  */
3406
3407 int
3408 main ()
3409 {
3410
3411   ;
3412   return 0;
3413 }
3414 _ACEOF
3415 ac_clean_files_save=$ac_clean_files
3416 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3417 # Try to create an executable without -o first, disregard a.out.
3418 # It will help us diagnose broken compilers, and finding out an intuition
3419 # of exeext.
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3421 $as_echo_n "checking whether the C compiler works... " >&6; }
3422 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3423
3424 # The possible output files:
3425 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3426
3427 ac_rmfiles=
3428 for ac_file in $ac_files
3429 do
3430   case $ac_file in
3431     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3432     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3433   esac
3434 done
3435 rm -f $ac_rmfiles
3436
3437 if { { ac_try="$ac_link_default"
3438 case "(($ac_try" in
3439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3440   *) ac_try_echo=$ac_try;;
3441 esac
3442 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3443 $as_echo "$ac_try_echo"; } >&5
3444   (eval "$ac_link_default") 2>&5
3445   ac_status=$?
3446   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3447   test $ac_status = 0; }; then :
3448   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3449 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3450 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3451 # so that the user can short-circuit this test for compilers unknown to
3452 # Autoconf.
3453 for ac_file in $ac_files ''
3454 do
3455   test -f "$ac_file" || continue
3456   case $ac_file in
3457     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3458         ;;
3459     [ab].out )
3460         # We found the default executable, but exeext='' is most
3461         # certainly right.
3462         break;;
3463     *.* )
3464         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3465         then :; else
3466            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3467         fi
3468         # We set ac_cv_exeext here because the later test for it is not
3469         # safe: cross compilers may not add the suffix if given an `-o'
3470         # argument, so we may need to know it at that point already.
3471         # Even if this section looks crufty: it has the advantage of
3472         # actually working.
3473         break;;
3474     * )
3475         break;;
3476   esac
3477 done
3478 test "$ac_cv_exeext" = no && ac_cv_exeext=
3479
3480 else
3481   ac_file=''
3482 fi
3483 if test -z "$ac_file"; then :
3484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3485 $as_echo "no" >&6; }
3486 $as_echo "$as_me: failed program was:" >&5
3487 sed 's/^/| /' conftest.$ac_ext >&5
3488
3489 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3490 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3491 as_fn_error 77 "C compiler cannot create executables
3492 See \`config.log' for more details" "$LINENO" 5; }
3493 else
3494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3495 $as_echo "yes" >&6; }
3496 fi
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3498 $as_echo_n "checking for C compiler default output file name... " >&6; }
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3500 $as_echo "$ac_file" >&6; }
3501 ac_exeext=$ac_cv_exeext
3502
3503 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3504 ac_clean_files=$ac_clean_files_save
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3506 $as_echo_n "checking for suffix of executables... " >&6; }
3507 if { { ac_try="$ac_link"
3508 case "(($ac_try" in
3509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3510   *) ac_try_echo=$ac_try;;
3511 esac
3512 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3513 $as_echo "$ac_try_echo"; } >&5
3514   (eval "$ac_link") 2>&5
3515   ac_status=$?
3516   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3517   test $ac_status = 0; }; then :
3518   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3519 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3520 # work properly (i.e., refer to `conftest.exe'), while it won't with
3521 # `rm'.
3522 for ac_file in conftest.exe conftest conftest.*; do
3523   test -f "$ac_file" || continue
3524   case $ac_file in
3525     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3526     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3527           break;;
3528     * ) break;;
3529   esac
3530 done
3531 else
3532   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3533 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3534 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3535 See \`config.log' for more details" "$LINENO" 5; }
3536 fi
3537 rm -f conftest conftest$ac_cv_exeext
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3539 $as_echo "$ac_cv_exeext" >&6; }
3540
3541 rm -f conftest.$ac_ext
3542 EXEEXT=$ac_cv_exeext
3543 ac_exeext=$EXEEXT
3544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3545 /* end confdefs.h.  */
3546 #include <stdio.h>
3547 int
3548 main ()
3549 {
3550 FILE *f = fopen ("conftest.out", "w");
3551  return ferror (f) || fclose (f) != 0;
3552
3553   ;
3554   return 0;
3555 }
3556 _ACEOF
3557 ac_clean_files="$ac_clean_files conftest.out"
3558 # Check that the compiler produces executables we can run.  If not, either
3559 # the compiler is broken, or we cross compile.
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3561 $as_echo_n "checking whether we are cross compiling... " >&6; }
3562 if test "$cross_compiling" != yes; then
3563   { { ac_try="$ac_link"
3564 case "(($ac_try" in
3565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566   *) ac_try_echo=$ac_try;;
3567 esac
3568 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3569 $as_echo "$ac_try_echo"; } >&5
3570   (eval "$ac_link") 2>&5
3571   ac_status=$?
3572   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3573   test $ac_status = 0; }
3574   if { ac_try='./conftest$ac_cv_exeext'
3575   { { case "(($ac_try" in
3576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3577   *) ac_try_echo=$ac_try;;
3578 esac
3579 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3580 $as_echo "$ac_try_echo"; } >&5
3581   (eval "$ac_try") 2>&5
3582   ac_status=$?
3583   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3584   test $ac_status = 0; }; }; then
3585     cross_compiling=no
3586   else
3587     if test "$cross_compiling" = maybe; then
3588         cross_compiling=yes
3589     else
3590         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3591 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3592 as_fn_error $? "cannot run C compiled programs.
3593 If you meant to cross compile, use \`--host'.
3594 See \`config.log' for more details" "$LINENO" 5; }
3595     fi
3596   fi
3597 fi
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3599 $as_echo "$cross_compiling" >&6; }
3600
3601 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3602 ac_clean_files=$ac_clean_files_save
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3604 $as_echo_n "checking for suffix of object files... " >&6; }
3605 if ${ac_cv_objext+:} false; then :
3606   $as_echo_n "(cached) " >&6
3607 else
3608   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3609 /* end confdefs.h.  */
3610
3611 int
3612 main ()
3613 {
3614
3615   ;
3616   return 0;
3617 }
3618 _ACEOF
3619 rm -f conftest.o conftest.obj
3620 if { { ac_try="$ac_compile"
3621 case "(($ac_try" in
3622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3623   *) ac_try_echo=$ac_try;;
3624 esac
3625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3626 $as_echo "$ac_try_echo"; } >&5
3627   (eval "$ac_compile") 2>&5
3628   ac_status=$?
3629   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3630   test $ac_status = 0; }; then :
3631   for ac_file in conftest.o conftest.obj conftest.*; do
3632   test -f "$ac_file" || continue;
3633   case $ac_file in
3634     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3635     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3636        break;;
3637   esac
3638 done
3639 else
3640   $as_echo "$as_me: failed program was:" >&5
3641 sed 's/^/| /' conftest.$ac_ext >&5
3642
3643 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3644 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3645 as_fn_error $? "cannot compute suffix of object files: cannot compile
3646 See \`config.log' for more details" "$LINENO" 5; }
3647 fi
3648 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3649 fi
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3651 $as_echo "$ac_cv_objext" >&6; }
3652 OBJEXT=$ac_cv_objext
3653 ac_objext=$OBJEXT
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3655 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3656 if ${ac_cv_c_compiler_gnu+:} false; then :
3657   $as_echo_n "(cached) " >&6
3658 else
3659   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3660 /* end confdefs.h.  */
3661
3662 int
3663 main ()
3664 {
3665 #ifndef __GNUC__
3666        choke me
3667 #endif
3668
3669   ;
3670   return 0;
3671 }
3672 _ACEOF
3673 if ac_fn_c_try_compile "$LINENO"; then :
3674   ac_compiler_gnu=yes
3675 else
3676   ac_compiler_gnu=no
3677 fi
3678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3679 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3680
3681 fi
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3683 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3684 if test $ac_compiler_gnu = yes; then
3685   GCC=yes
3686 else
3687   GCC=
3688 fi
3689 ac_test_CFLAGS=${CFLAGS+set}
3690 ac_save_CFLAGS=$CFLAGS
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3692 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3693 if ${ac_cv_prog_cc_g+:} false; then :
3694   $as_echo_n "(cached) " >&6
3695 else
3696   ac_save_c_werror_flag=$ac_c_werror_flag
3697    ac_c_werror_flag=yes
3698    ac_cv_prog_cc_g=no
3699    CFLAGS="-g"
3700    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3701 /* end confdefs.h.  */
3702
3703 int
3704 main ()
3705 {
3706
3707   ;
3708   return 0;
3709 }
3710 _ACEOF
3711 if ac_fn_c_try_compile "$LINENO"; then :
3712   ac_cv_prog_cc_g=yes
3713 else
3714   CFLAGS=""
3715       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3716 /* end confdefs.h.  */
3717
3718 int
3719 main ()
3720 {
3721
3722   ;
3723   return 0;
3724 }
3725 _ACEOF
3726 if ac_fn_c_try_compile "$LINENO"; then :
3727
3728 else
3729   ac_c_werror_flag=$ac_save_c_werror_flag
3730          CFLAGS="-g"
3731          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3732 /* end confdefs.h.  */
3733
3734 int
3735 main ()
3736 {
3737
3738   ;
3739   return 0;
3740 }
3741 _ACEOF
3742 if ac_fn_c_try_compile "$LINENO"; then :
3743   ac_cv_prog_cc_g=yes
3744 fi
3745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3746 fi
3747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3748 fi
3749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3750    ac_c_werror_flag=$ac_save_c_werror_flag
3751 fi
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3753 $as_echo "$ac_cv_prog_cc_g" >&6; }
3754 if test "$ac_test_CFLAGS" = set; then
3755   CFLAGS=$ac_save_CFLAGS
3756 elif test $ac_cv_prog_cc_g = yes; then
3757   if test "$GCC" = yes; then
3758     CFLAGS="-g -O2"
3759   else
3760     CFLAGS="-g"
3761   fi
3762 else
3763   if test "$GCC" = yes; then
3764     CFLAGS="-O2"
3765   else
3766     CFLAGS=
3767   fi
3768 fi
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3770 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3771 if ${ac_cv_prog_cc_c89+:} false; then :
3772   $as_echo_n "(cached) " >&6
3773 else
3774   ac_cv_prog_cc_c89=no
3775 ac_save_CC=$CC
3776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3777 /* end confdefs.h.  */
3778 #include <stdarg.h>
3779 #include <stdio.h>
3780 struct stat;
3781 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3782 struct buf { int x; };
3783 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3784 static char *e (p, i)
3785      char **p;
3786      int i;
3787 {
3788   return p[i];
3789 }
3790 static char *f (char * (*g) (char **, int), char **p, ...)
3791 {
3792   char *s;
3793   va_list v;
3794   va_start (v,p);
3795   s = g (p, va_arg (v,int));
3796   va_end (v);
3797   return s;
3798 }
3799
3800 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3801    function prototypes and stuff, but not '\xHH' hex character constants.
3802    These don't provoke an error unfortunately, instead are silently treated
3803    as 'x'.  The following induces an error, until -std is added to get
3804    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3805    array size at least.  It's necessary to write '\x00'==0 to get something
3806    that's true only with -std.  */
3807 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3808
3809 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3810    inside strings and character constants.  */
3811 #define FOO(x) 'x'
3812 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3813
3814 int test (int i, double x);
3815 struct s1 {int (*f) (int a);};
3816 struct s2 {int (*f) (double a);};
3817 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3818 int argc;
3819 char **argv;
3820 int
3821 main ()
3822 {
3823 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3824   ;
3825   return 0;
3826 }
3827 _ACEOF
3828 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3829         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3830 do
3831   CC="$ac_save_CC $ac_arg"
3832   if ac_fn_c_try_compile "$LINENO"; then :
3833   ac_cv_prog_cc_c89=$ac_arg
3834 fi
3835 rm -f core conftest.err conftest.$ac_objext
3836   test "x$ac_cv_prog_cc_c89" != "xno" && break
3837 done
3838 rm -f conftest.$ac_ext
3839 CC=$ac_save_CC
3840
3841 fi
3842 # AC_CACHE_VAL
3843 case "x$ac_cv_prog_cc_c89" in
3844   x)
3845     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3846 $as_echo "none needed" >&6; } ;;
3847   xno)
3848     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3849 $as_echo "unsupported" >&6; } ;;
3850   *)
3851     CC="$CC $ac_cv_prog_cc_c89"
3852     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3853 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3854 esac
3855 if test "x$ac_cv_prog_cc_c89" != xno; then :
3856
3857 fi
3858
3859 ac_ext=c
3860 ac_cpp='$CPP $CPPFLAGS'
3861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3864 DEPDIR="${am__leading_dot}deps"
3865
3866 ac_config_commands="$ac_config_commands depfiles"
3867
3868
3869 am_make=${MAKE-make}
3870 cat > confinc << 'END'
3871 am__doit:
3872         @echo this is the am__doit target
3873 .PHONY: am__doit
3874 END
3875 # If we don't find an include directive, just comment out the code.
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3877 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3878 am__include="#"
3879 am__quote=
3880 _am_result=none
3881 # First try GNU make style include.
3882 echo "include confinc" > confmf
3883 # Ignore all kinds of additional output from `make'.
3884 case `$am_make -s -f confmf 2> /dev/null` in #(
3885 *the\ am__doit\ target*)
3886   am__include=include
3887   am__quote=
3888   _am_result=GNU
3889   ;;
3890 esac
3891 # Now try BSD make style include.
3892 if test "$am__include" = "#"; then
3893    echo '.include "confinc"' > confmf
3894    case `$am_make -s -f confmf 2> /dev/null` in #(
3895    *the\ am__doit\ target*)
3896      am__include=.include
3897      am__quote="\""
3898      _am_result=BSD
3899      ;;
3900    esac
3901 fi
3902
3903
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3905 $as_echo "$_am_result" >&6; }
3906 rm -f confinc confmf
3907
3908 # Check whether --enable-dependency-tracking was given.
3909 if test "${enable_dependency_tracking+set}" = set; then :
3910   enableval=$enable_dependency_tracking;
3911 fi
3912
3913 if test "x$enable_dependency_tracking" != xno; then
3914   am_depcomp="$ac_aux_dir/depcomp"
3915   AMDEPBACKSLASH='\'
3916   am__nodep='_no'
3917 fi
3918  if test "x$enable_dependency_tracking" != xno; then
3919   AMDEP_TRUE=
3920   AMDEP_FALSE='#'
3921 else
3922   AMDEP_TRUE='#'
3923   AMDEP_FALSE=
3924 fi
3925
3926
3927
3928 depcc="$CC"   am_compiler_list=
3929
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3931 $as_echo_n "checking dependency style of $depcc... " >&6; }
3932 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3933   $as_echo_n "(cached) " >&6
3934 else
3935   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3936   # We make a subdir and do the tests there.  Otherwise we can end up
3937   # making bogus files that we don't know about and never remove.  For
3938   # instance it was reported that on HP-UX the gcc test will end up
3939   # making a dummy file named `D' -- because `-MD' means `put the output
3940   # in D'.
3941   rm -rf conftest.dir
3942   mkdir conftest.dir
3943   # Copy depcomp to subdir because otherwise we won't find it if we're
3944   # using a relative directory.
3945   cp "$am_depcomp" conftest.dir
3946   cd conftest.dir
3947   # We will build objects and dependencies in a subdirectory because
3948   # it helps to detect inapplicable dependency modes.  For instance
3949   # both Tru64's cc and ICC support -MD to output dependencies as a
3950   # side effect of compilation, but ICC will put the dependencies in
3951   # the current directory while Tru64 will put them in the object
3952   # directory.
3953   mkdir sub
3954
3955   am_cv_CC_dependencies_compiler_type=none
3956   if test "$am_compiler_list" = ""; then
3957      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3958   fi
3959   am__universal=false
3960   case " $depcc " in #(
3961      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3962      esac
3963
3964   for depmode in $am_compiler_list; do
3965     # Setup a source with many dependencies, because some compilers
3966     # like to wrap large dependency lists on column 80 (with \), and
3967     # we should not choose a depcomp mode which is confused by this.
3968     #
3969     # We need to recreate these files for each test, as the compiler may
3970     # overwrite some of them when testing with obscure command lines.
3971     # This happens at least with the AIX C compiler.
3972     : > sub/conftest.c
3973     for i in 1 2 3 4 5 6; do
3974       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3975       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3976       # Solaris 8's {/usr,}/bin/sh.
3977       touch sub/conftst$i.h
3978     done
3979     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3980
3981     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3982     # mode.  It turns out that the SunPro C++ compiler does not properly
3983     # handle `-M -o', and we need to detect this.  Also, some Intel
3984     # versions had trouble with output in subdirs
3985     am__obj=sub/conftest.${OBJEXT-o}
3986     am__minus_obj="-o $am__obj"
3987     case $depmode in
3988     gcc)
3989       # This depmode causes a compiler race in universal mode.
3990       test "$am__universal" = false || continue
3991       ;;
3992     nosideeffect)
3993       # after this tag, mechanisms are not by side-effect, so they'll
3994       # only be used when explicitly requested
3995       if test "x$enable_dependency_tracking" = xyes; then
3996         continue
3997       else
3998         break
3999       fi
4000       ;;
4001     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4002       # This compiler won't grok `-c -o', but also, the minuso test has
4003       # not run yet.  These depmodes are late enough in the game, and
4004       # so weak that their functioning should not be impacted.
4005       am__obj=conftest.${OBJEXT-o}
4006       am__minus_obj=
4007       ;;
4008     none) break ;;
4009     esac
4010     if depmode=$depmode \
4011        source=sub/conftest.c object=$am__obj \
4012        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4013        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4014          >/dev/null 2>conftest.err &&
4015        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4016        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4017        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4018        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4019       # icc doesn't choke on unknown options, it will just issue warnings
4020       # or remarks (even with -Werror).  So we grep stderr for any message
4021       # that says an option was ignored or not supported.
4022       # When given -MP, icc 7.0 and 7.1 complain thusly:
4023       #   icc: Command line warning: ignoring option '-M'; no argument required
4024       # The diagnosis changed in icc 8.0:
4025       #   icc: Command line remark: option '-MP' not supported
4026       if (grep 'ignoring option' conftest.err ||
4027           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4028         am_cv_CC_dependencies_compiler_type=$depmode
4029         break
4030       fi
4031     fi
4032   done
4033
4034   cd ..
4035   rm -rf conftest.dir
4036 else
4037   am_cv_CC_dependencies_compiler_type=none
4038 fi
4039
4040 fi
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4042 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4043 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4044
4045  if
4046   test "x$enable_dependency_tracking" != xno \
4047   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4048   am__fastdepCC_TRUE=
4049   am__fastdepCC_FALSE='#'
4050 else
4051   am__fastdepCC_TRUE='#'
4052   am__fastdepCC_FALSE=
4053 fi
4054
4055
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4057 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4058 set x ${MAKE-make}
4059 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4060 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4061   $as_echo_n "(cached) " >&6
4062 else
4063   cat >conftest.make <<\_ACEOF
4064 SHELL = /bin/sh
4065 all:
4066         @echo '@@@%%%=$(MAKE)=@@@%%%'
4067 _ACEOF
4068 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4069 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4070   *@@@%%%=?*=@@@%%%*)
4071     eval ac_cv_prog_make_${ac_make}_set=yes;;
4072   *)
4073     eval ac_cv_prog_make_${ac_make}_set=no;;
4074 esac
4075 rm -f conftest.make
4076 fi
4077 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4079 $as_echo "yes" >&6; }
4080   SET_MAKE=
4081 else
4082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4083 $as_echo "no" >&6; }
4084   SET_MAKE="MAKE=${MAKE-make}"
4085 fi
4086
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4088 $as_echo_n "checking whether ln -s works... " >&6; }
4089 LN_S=$as_ln_s
4090 if test "$LN_S" = "ln -s"; then
4091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4092 $as_echo "yes" >&6; }
4093 else
4094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4095 $as_echo "no, using $LN_S" >&6; }
4096 fi
4097
4098 case `pwd` in
4099   *\ * | *\     *)
4100     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4101 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4102 esac
4103
4104
4105
4106 macro_version='2.4.2'
4107 macro_revision='1.3337'
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121 ltmain="$ac_aux_dir/ltmain.sh"
4122
4123 # Backslashify metacharacters that are still active within
4124 # double-quoted strings.
4125 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4126
4127 # Same as above, but do not quote variable references.
4128 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4129
4130 # Sed substitution to delay expansion of an escaped shell variable in a
4131 # double_quote_subst'ed string.
4132 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4133
4134 # Sed substitution to delay expansion of an escaped single quote.
4135 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4136
4137 # Sed substitution to avoid accidental globbing in evaled expressions
4138 no_glob_subst='s/\*/\\\*/g'
4139
4140 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4141 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4142 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4143
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4145 $as_echo_n "checking how to print strings... " >&6; }
4146 # Test print first, because it will be a builtin if present.
4147 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4148    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4149   ECHO='print -r --'
4150 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4151   ECHO='printf %s\n'
4152 else
4153   # Use this function as a fallback that always works.
4154   func_fallback_echo ()
4155   {
4156     eval 'cat <<_LTECHO_EOF
4157 $1
4158 _LTECHO_EOF'
4159   }
4160   ECHO='func_fallback_echo'
4161 fi
4162
4163 # func_echo_all arg...
4164 # Invoke $ECHO with all args, space-separated.
4165 func_echo_all ()
4166 {
4167     $ECHO ""
4168 }
4169
4170 case "$ECHO" in
4171   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4172 $as_echo "printf" >&6; } ;;
4173   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4174 $as_echo "print -r" >&6; } ;;
4175   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4176 $as_echo "cat" >&6; } ;;
4177 esac
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4193 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4194 if ${ac_cv_path_SED+:} false; then :
4195   $as_echo_n "(cached) " >&6
4196 else
4197             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4198      for ac_i in 1 2 3 4 5 6 7; do
4199        ac_script="$ac_script$as_nl$ac_script"
4200      done
4201      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4202      { ac_script=; unset ac_script;}
4203      if test -z "$SED"; then
4204   ac_path_SED_found=false
4205   # Loop through the user's path and test for each of PROGNAME-LIST
4206   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4207 for as_dir in $PATH
4208 do
4209   IFS=$as_save_IFS
4210   test -z "$as_dir" && as_dir=.
4211     for ac_prog in sed gsed; do
4212     for ac_exec_ext in '' $ac_executable_extensions; do
4213       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4214       as_fn_executable_p "$ac_path_SED" || continue
4215 # Check for GNU ac_path_SED and select it if it is found.
4216   # Check for GNU $ac_path_SED
4217 case `"$ac_path_SED" --version 2>&1` in
4218 *GNU*)
4219   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4220 *)
4221   ac_count=0
4222   $as_echo_n 0123456789 >"conftest.in"
4223   while :
4224   do
4225     cat "conftest.in" "conftest.in" >"conftest.tmp"
4226     mv "conftest.tmp" "conftest.in"
4227     cp "conftest.in" "conftest.nl"
4228     $as_echo '' >> "conftest.nl"
4229     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4230     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4231     as_fn_arith $ac_count + 1 && ac_count=$as_val
4232     if test $ac_count -gt ${ac_path_SED_max-0}; then
4233       # Best one so far, save it but keep looking for a better one
4234       ac_cv_path_SED="$ac_path_SED"
4235       ac_path_SED_max=$ac_count
4236     fi
4237     # 10*(2^10) chars as input seems more than enough
4238     test $ac_count -gt 10 && break
4239   done
4240   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4241 esac
4242
4243       $ac_path_SED_found && break 3
4244     done
4245   done
4246   done
4247 IFS=$as_save_IFS
4248   if test -z "$ac_cv_path_SED"; then
4249     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4250   fi
4251 else
4252   ac_cv_path_SED=$SED
4253 fi
4254
4255 fi
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4257 $as_echo "$ac_cv_path_SED" >&6; }
4258  SED="$ac_cv_path_SED"
4259   rm -f conftest.sed
4260
4261 test -z "$SED" && SED=sed
4262 Xsed="$SED -e 1s/^X//"
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4275 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4276 if ${ac_cv_path_GREP+:} false; then :
4277   $as_echo_n "(cached) " >&6
4278 else
4279   if test -z "$GREP"; then
4280   ac_path_GREP_found=false
4281   # Loop through the user's path and test for each of PROGNAME-LIST
4282   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4283 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4284 do
4285   IFS=$as_save_IFS
4286   test -z "$as_dir" && as_dir=.
4287     for ac_prog in grep ggrep; do
4288     for ac_exec_ext in '' $ac_executable_extensions; do
4289       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4290       as_fn_executable_p "$ac_path_GREP" || continue
4291 # Check for GNU ac_path_GREP and select it if it is found.
4292   # Check for GNU $ac_path_GREP
4293 case `"$ac_path_GREP" --version 2>&1` in
4294 *GNU*)
4295   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4296 *)
4297   ac_count=0
4298   $as_echo_n 0123456789 >"conftest.in"
4299   while :
4300   do
4301     cat "conftest.in" "conftest.in" >"conftest.tmp"
4302     mv "conftest.tmp" "conftest.in"
4303     cp "conftest.in" "conftest.nl"
4304     $as_echo 'GREP' >> "conftest.nl"
4305     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4306     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4307     as_fn_arith $ac_count + 1 && ac_count=$as_val
4308     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4309       # Best one so far, save it but keep looking for a better one
4310       ac_cv_path_GREP="$ac_path_GREP"
4311       ac_path_GREP_max=$ac_count
4312     fi
4313     # 10*(2^10) chars as input seems more than enough
4314     test $ac_count -gt 10 && break
4315   done
4316   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4317 esac
4318
4319       $ac_path_GREP_found && break 3
4320     done
4321   done
4322   done
4323 IFS=$as_save_IFS
4324   if test -z "$ac_cv_path_GREP"; then
4325     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4326   fi
4327 else
4328   ac_cv_path_GREP=$GREP
4329 fi
4330
4331 fi
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4333 $as_echo "$ac_cv_path_GREP" >&6; }
4334  GREP="$ac_cv_path_GREP"
4335
4336
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4338 $as_echo_n "checking for egrep... " >&6; }
4339 if ${ac_cv_path_EGREP+:} false; then :
4340   $as_echo_n "(cached) " >&6
4341 else
4342   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4343    then ac_cv_path_EGREP="$GREP -E"
4344    else
4345      if test -z "$EGREP"; then
4346   ac_path_EGREP_found=false
4347   # Loop through the user's path and test for each of PROGNAME-LIST
4348   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4349 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4350 do
4351   IFS=$as_save_IFS
4352   test -z "$as_dir" && as_dir=.
4353     for ac_prog in egrep; do
4354     for ac_exec_ext in '' $ac_executable_extensions; do
4355       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4356       as_fn_executable_p "$ac_path_EGREP" || continue
4357 # Check for GNU ac_path_EGREP and select it if it is found.
4358   # Check for GNU $ac_path_EGREP
4359 case `"$ac_path_EGREP" --version 2>&1` in
4360 *GNU*)
4361   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4362 *)
4363   ac_count=0
4364   $as_echo_n 0123456789 >"conftest.in"
4365   while :
4366   do
4367     cat "conftest.in" "conftest.in" >"conftest.tmp"
4368     mv "conftest.tmp" "conftest.in"
4369     cp "conftest.in" "conftest.nl"
4370     $as_echo 'EGREP' >> "conftest.nl"
4371     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4372     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4373     as_fn_arith $ac_count + 1 && ac_count=$as_val
4374     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4375       # Best one so far, save it but keep looking for a better one
4376       ac_cv_path_EGREP="$ac_path_EGREP"
4377       ac_path_EGREP_max=$ac_count
4378     fi
4379     # 10*(2^10) chars as input seems more than enough
4380     test $ac_count -gt 10 && break
4381   done
4382   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4383 esac
4384
4385       $ac_path_EGREP_found && break 3
4386     done
4387   done
4388   done
4389 IFS=$as_save_IFS
4390   if test -z "$ac_cv_path_EGREP"; then
4391     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4392   fi
4393 else
4394   ac_cv_path_EGREP=$EGREP
4395 fi
4396
4397    fi
4398 fi
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4400 $as_echo "$ac_cv_path_EGREP" >&6; }
4401  EGREP="$ac_cv_path_EGREP"
4402
4403
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4405 $as_echo_n "checking for fgrep... " >&6; }
4406 if ${ac_cv_path_FGREP+:} false; then :
4407   $as_echo_n "(cached) " >&6
4408 else
4409   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4410    then ac_cv_path_FGREP="$GREP -F"
4411    else
4412      if test -z "$FGREP"; then
4413   ac_path_FGREP_found=false
4414   # Loop through the user's path and test for each of PROGNAME-LIST
4415   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4416 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4417 do
4418   IFS=$as_save_IFS
4419   test -z "$as_dir" && as_dir=.
4420     for ac_prog in fgrep; do
4421     for ac_exec_ext in '' $ac_executable_extensions; do
4422       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4423       as_fn_executable_p "$ac_path_FGREP" || continue
4424 # Check for GNU ac_path_FGREP and select it if it is found.
4425   # Check for GNU $ac_path_FGREP
4426 case `"$ac_path_FGREP" --version 2>&1` in
4427 *GNU*)
4428   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4429 *)
4430   ac_count=0
4431   $as_echo_n 0123456789 >"conftest.in"
4432   while :
4433   do
4434     cat "conftest.in" "conftest.in" >"conftest.tmp"
4435     mv "conftest.tmp" "conftest.in"
4436     cp "conftest.in" "conftest.nl"
4437     $as_echo 'FGREP' >> "conftest.nl"
4438     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4439     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4440     as_fn_arith $ac_count + 1 && ac_count=$as_val
4441     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4442       # Best one so far, save it but keep looking for a better one
4443       ac_cv_path_FGREP="$ac_path_FGREP"
4444       ac_path_FGREP_max=$ac_count
4445     fi
4446     # 10*(2^10) chars as input seems more than enough
4447     test $ac_count -gt 10 && break
4448   done
4449   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4450 esac
4451
4452       $ac_path_FGREP_found && break 3
4453     done
4454   done
4455   done
4456 IFS=$as_save_IFS
4457   if test -z "$ac_cv_path_FGREP"; then
4458     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4459   fi
4460 else
4461   ac_cv_path_FGREP=$FGREP
4462 fi
4463
4464    fi
4465 fi
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4467 $as_echo "$ac_cv_path_FGREP" >&6; }
4468  FGREP="$ac_cv_path_FGREP"
4469
4470
4471 test -z "$GREP" && GREP=grep
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491 # Check whether --with-gnu-ld was given.
4492 if test "${with_gnu_ld+set}" = set; then :
4493   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4494 else
4495   with_gnu_ld=no
4496 fi
4497
4498 ac_prog=ld
4499 if test "$GCC" = yes; then
4500   # Check if gcc -print-prog-name=ld gives a path.
4501   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4502 $as_echo_n "checking for ld used by $CC... " >&6; }
4503   case $host in
4504   *-*-mingw*)
4505     # gcc leaves a trailing carriage return which upsets mingw
4506     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4507   *)
4508     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4509   esac
4510   case $ac_prog in
4511     # Accept absolute paths.
4512     [\\/]* | ?:[\\/]*)
4513       re_direlt='/[^/][^/]*/\.\./'
4514       # Canonicalize the pathname of ld
4515       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4516       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4517         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4518       done
4519       test -z "$LD" && LD="$ac_prog"
4520       ;;
4521   "")
4522     # If it fails, then pretend we aren't using GCC.
4523     ac_prog=ld
4524     ;;
4525   *)
4526     # If it is relative, then search for the first ld in PATH.
4527     with_gnu_ld=unknown
4528     ;;
4529   esac
4530 elif test "$with_gnu_ld" = yes; then
4531   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4532 $as_echo_n "checking for GNU ld... " >&6; }
4533 else
4534   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4535 $as_echo_n "checking for non-GNU ld... " >&6; }
4536 fi
4537 if ${lt_cv_path_LD+:} false; then :
4538   $as_echo_n "(cached) " >&6
4539 else
4540   if test -z "$LD"; then
4541   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4542   for ac_dir in $PATH; do
4543     IFS="$lt_save_ifs"
4544     test -z "$ac_dir" && ac_dir=.
4545     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4546       lt_cv_path_LD="$ac_dir/$ac_prog"
4547       # Check to see if the program is GNU ld.  I'd rather use --version,
4548       # but apparently some variants of GNU ld only accept -v.
4549       # Break only if it was the GNU/non-GNU ld that we prefer.
4550       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4551       *GNU* | *'with BFD'*)
4552         test "$with_gnu_ld" != no && break
4553         ;;
4554       *)
4555         test "$with_gnu_ld" != yes && break
4556         ;;
4557       esac
4558     fi
4559   done
4560   IFS="$lt_save_ifs"
4561 else
4562   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4563 fi
4564 fi
4565
4566 LD="$lt_cv_path_LD"
4567 if test -n "$LD"; then
4568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4569 $as_echo "$LD" >&6; }
4570 else
4571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4572 $as_echo "no" >&6; }
4573 fi
4574 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4576 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4577 if ${lt_cv_prog_gnu_ld+:} false; then :
4578   $as_echo_n "(cached) " >&6
4579 else
4580   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4581 case `$LD -v 2>&1 </dev/null` in
4582 *GNU* | *'with BFD'*)
4583   lt_cv_prog_gnu_ld=yes
4584   ;;
4585 *)
4586   lt_cv_prog_gnu_ld=no
4587   ;;
4588 esac
4589 fi
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4591 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4592 with_gnu_ld=$lt_cv_prog_gnu_ld
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4603 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4604 if ${lt_cv_path_NM+:} false; then :
4605   $as_echo_n "(cached) " >&6
4606 else
4607   if test -n "$NM"; then
4608   # Let the user override the test.
4609   lt_cv_path_NM="$NM"
4610 else
4611   lt_nm_to_check="${ac_tool_prefix}nm"
4612   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4613     lt_nm_to_check="$lt_nm_to_check nm"
4614   fi
4615   for lt_tmp_nm in $lt_nm_to_check; do
4616     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4617     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4618       IFS="$lt_save_ifs"
4619       test -z "$ac_dir" && ac_dir=.
4620       tmp_nm="$ac_dir/$lt_tmp_nm"
4621       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4622         # Check to see if the nm accepts a BSD-compat flag.
4623         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4624         #   nm: unknown option "B" ignored
4625         # Tru64's nm complains that /dev/null is an invalid object file
4626         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4627         */dev/null* | *'Invalid file or object type'*)
4628           lt_cv_path_NM="$tmp_nm -B"
4629           break
4630           ;;
4631         *)
4632           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4633           */dev/null*)
4634             lt_cv_path_NM="$tmp_nm -p"
4635             break
4636             ;;
4637           *)
4638             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4639             continue # so that we can try to find one that supports BSD flags
4640             ;;
4641           esac
4642           ;;
4643         esac
4644       fi
4645     done
4646     IFS="$lt_save_ifs"
4647   done
4648   : ${lt_cv_path_NM=no}
4649 fi
4650 fi
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4652 $as_echo "$lt_cv_path_NM" >&6; }
4653 if test "$lt_cv_path_NM" != "no"; then
4654   NM="$lt_cv_path_NM"
4655 else
4656   # Didn't find any BSD compatible name lister, look for dumpbin.
4657   if test -n "$DUMPBIN"; then :
4658     # Let the user override the test.
4659   else
4660     if test -n "$ac_tool_prefix"; then
4661   for ac_prog in dumpbin "link -dump"
4662   do
4663     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4664 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4666 $as_echo_n "checking for $ac_word... " >&6; }
4667 if ${ac_cv_prog_DUMPBIN+:} false; then :
4668   $as_echo_n "(cached) " >&6
4669 else
4670   if test -n "$DUMPBIN"; then
4671   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4672 else
4673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4674 for as_dir in $PATH
4675 do
4676   IFS=$as_save_IFS
4677   test -z "$as_dir" && as_dir=.
4678     for ac_exec_ext in '' $ac_executable_extensions; do
4679   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4680     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4681     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4682     break 2
4683   fi
4684 done
4685   done
4686 IFS=$as_save_IFS
4687
4688 fi
4689 fi
4690 DUMPBIN=$ac_cv_prog_DUMPBIN
4691 if test -n "$DUMPBIN"; then
4692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4693 $as_echo "$DUMPBIN" >&6; }
4694 else
4695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4696 $as_echo "no" >&6; }
4697 fi
4698
4699
4700     test -n "$DUMPBIN" && break
4701   done
4702 fi
4703 if test -z "$DUMPBIN"; then
4704   ac_ct_DUMPBIN=$DUMPBIN
4705   for ac_prog in dumpbin "link -dump"
4706 do
4707   # Extract the first word of "$ac_prog", so it can be a program name with args.
4708 set dummy $ac_prog; ac_word=$2
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4710 $as_echo_n "checking for $ac_word... " >&6; }
4711 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4712   $as_echo_n "(cached) " >&6
4713 else
4714   if test -n "$ac_ct_DUMPBIN"; then
4715   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4716 else
4717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4718 for as_dir in $PATH
4719 do
4720   IFS=$as_save_IFS
4721   test -z "$as_dir" && as_dir=.
4722     for ac_exec_ext in '' $ac_executable_extensions; do
4723   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4724     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4725     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4726     break 2
4727   fi
4728 done
4729   done
4730 IFS=$as_save_IFS
4731
4732 fi
4733 fi
4734 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4735 if test -n "$ac_ct_DUMPBIN"; then
4736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4737 $as_echo "$ac_ct_DUMPBIN" >&6; }
4738 else
4739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4740 $as_echo "no" >&6; }
4741 fi
4742
4743
4744   test -n "$ac_ct_DUMPBIN" && break
4745 done
4746
4747   if test "x$ac_ct_DUMPBIN" = x; then
4748     DUMPBIN=":"
4749   else
4750     case $cross_compiling:$ac_tool_warned in
4751 yes:)
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4753 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4754 ac_tool_warned=yes ;;
4755 esac
4756     DUMPBIN=$ac_ct_DUMPBIN
4757   fi
4758 fi
4759
4760     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4761     *COFF*)
4762       DUMPBIN="$DUMPBIN -symbols"
4763       ;;
4764     *)
4765       DUMPBIN=:
4766       ;;
4767     esac
4768   fi
4769
4770   if test "$DUMPBIN" != ":"; then
4771     NM="$DUMPBIN"
4772   fi
4773 fi
4774 test -z "$NM" && NM=nm
4775
4776
4777
4778
4779
4780
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4782 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4783 if ${lt_cv_nm_interface+:} false; then :
4784   $as_echo_n "(cached) " >&6
4785 else
4786   lt_cv_nm_interface="BSD nm"
4787   echo "int some_variable = 0;" > conftest.$ac_ext
4788   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4789   (eval "$ac_compile" 2>conftest.err)
4790   cat conftest.err >&5
4791   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4792   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4793   cat conftest.err >&5
4794   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4795   cat conftest.out >&5
4796   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4797     lt_cv_nm_interface="MS dumpbin"
4798   fi
4799   rm -f conftest*
4800 fi
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4802 $as_echo "$lt_cv_nm_interface" >&6; }
4803
4804 # find the maximum length of command line arguments
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4806 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4807 if ${lt_cv_sys_max_cmd_len+:} false; then :
4808   $as_echo_n "(cached) " >&6
4809 else
4810     i=0
4811   teststring="ABCD"
4812
4813   case $build_os in
4814   msdosdjgpp*)
4815     # On DJGPP, this test can blow up pretty badly due to problems in libc
4816     # (any single argument exceeding 2000 bytes causes a buffer overrun
4817     # during glob expansion).  Even if it were fixed, the result of this
4818     # check would be larger than it should be.
4819     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4820     ;;
4821
4822   gnu*)
4823     # Under GNU Hurd, this test is not required because there is
4824     # no limit to the length of command line arguments.
4825     # Libtool will interpret -1 as no limit whatsoever
4826     lt_cv_sys_max_cmd_len=-1;
4827     ;;
4828
4829   cygwin* | mingw* | cegcc*)
4830     # On Win9x/ME, this test blows up -- it succeeds, but takes
4831     # about 5 minutes as the teststring grows exponentially.
4832     # Worse, since 9x/ME are not pre-emptively multitasking,
4833     # you end up with a "frozen" computer, even though with patience
4834     # the test eventually succeeds (with a max line length of 256k).
4835     # Instead, let's just punt: use the minimum linelength reported by
4836     # all of the supported platforms: 8192 (on NT/2K/XP).
4837     lt_cv_sys_max_cmd_len=8192;
4838     ;;
4839
4840   mint*)
4841     # On MiNT this can take a long time and run out of memory.
4842     lt_cv_sys_max_cmd_len=8192;
4843     ;;
4844
4845   amigaos*)
4846     # On AmigaOS with pdksh, this test takes hours, literally.
4847     # So we just punt and use a minimum line length of 8192.
4848     lt_cv_sys_max_cmd_len=8192;
4849     ;;
4850
4851   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4852     # This has been around since 386BSD, at least.  Likely further.
4853     if test -x /sbin/sysctl; then
4854       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4855     elif test -x /usr/sbin/sysctl; then
4856       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4857     else
4858       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4859     fi
4860     # And add a safety zone
4861     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4862     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4863     ;;
4864
4865   interix*)
4866     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4867     lt_cv_sys_max_cmd_len=196608
4868     ;;
4869
4870   os2*)
4871     # The test takes a long time on OS/2.
4872     lt_cv_sys_max_cmd_len=8192
4873     ;;
4874
4875   osf*)
4876     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4877     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4878     # nice to cause kernel panics so lets avoid the loop below.
4879     # First set a reasonable default.
4880     lt_cv_sys_max_cmd_len=16384
4881     #
4882     if test -x /sbin/sysconfig; then
4883       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4884         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4885       esac
4886     fi
4887     ;;
4888   sco3.2v5*)
4889     lt_cv_sys_max_cmd_len=102400
4890     ;;
4891   sysv5* | sco5v6* | sysv4.2uw2*)
4892     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4893     if test -n "$kargmax"; then
4894       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4895     else
4896       lt_cv_sys_max_cmd_len=32768
4897     fi
4898     ;;
4899   *)
4900     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4901     if test -n "$lt_cv_sys_max_cmd_len"; then
4902       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4903       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4904     else
4905       # Make teststring a little bigger before we do anything with it.
4906       # a 1K string should be a reasonable start.
4907       for i in 1 2 3 4 5 6 7 8 ; do
4908         teststring=$teststring$teststring
4909       done
4910       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4911       # If test is not a shell built-in, we'll probably end up computing a
4912       # maximum length that is only half of the actual maximum length, but
4913       # we can't tell.
4914       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4915                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4916               test $i != 17 # 1/2 MB should be enough
4917       do
4918         i=`expr $i + 1`
4919         teststring=$teststring$teststring
4920       done
4921       # Only check the string length outside the loop.
4922       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4923       teststring=
4924       # Add a significant safety factor because C++ compilers can tack on
4925       # massive amounts of additional arguments before passing them to the
4926       # linker.  It appears as though 1/2 is a usable value.
4927       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4928     fi
4929     ;;
4930   esac
4931
4932 fi
4933
4934 if test -n $lt_cv_sys_max_cmd_len ; then
4935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4936 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4937 else
4938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4939 $as_echo "none" >&6; }
4940 fi
4941 max_cmd_len=$lt_cv_sys_max_cmd_len
4942
4943
4944
4945
4946
4947
4948 : ${CP="cp -f"}
4949 : ${MV="mv -f"}
4950 : ${RM="rm -f"}
4951
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4953 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4954 # Try some XSI features
4955 xsi_shell=no
4956 ( _lt_dummy="a/b/c"
4957   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4958       = c,a/b,b/c, \
4959     && eval 'test $(( 1 + 1 )) -eq 2 \
4960     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4961   && xsi_shell=yes
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4963 $as_echo "$xsi_shell" >&6; }
4964
4965
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4967 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4968 lt_shell_append=no
4969 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4970     >/dev/null 2>&1 \
4971   && lt_shell_append=yes
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4973 $as_echo "$lt_shell_append" >&6; }
4974
4975
4976 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4977   lt_unset=unset
4978 else
4979   lt_unset=false
4980 fi
4981
4982
4983
4984
4985
4986 # test EBCDIC or ASCII
4987 case `echo X|tr X '\101'` in
4988  A) # ASCII based system
4989     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4990   lt_SP2NL='tr \040 \012'
4991   lt_NL2SP='tr \015\012 \040\040'
4992   ;;
4993  *) # EBCDIC based system
4994   lt_SP2NL='tr \100 \n'
4995   lt_NL2SP='tr \r\n \100\100'
4996   ;;
4997 esac
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5008 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5009 if ${lt_cv_to_host_file_cmd+:} false; then :
5010   $as_echo_n "(cached) " >&6
5011 else
5012   case $host in
5013   *-*-mingw* )
5014     case $build in
5015       *-*-mingw* ) # actually msys
5016         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5017         ;;
5018       *-*-cygwin* )
5019         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5020         ;;
5021       * ) # otherwise, assume *nix
5022         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5023         ;;
5024     esac
5025     ;;
5026   *-*-cygwin* )
5027     case $build in
5028       *-*-mingw* ) # actually msys
5029         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5030         ;;
5031       *-*-cygwin* )
5032         lt_cv_to_host_file_cmd=func_convert_file_noop
5033         ;;
5034       * ) # otherwise, assume *nix
5035         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5036         ;;
5037     esac
5038     ;;
5039   * ) # unhandled hosts (and "normal" native builds)
5040     lt_cv_to_host_file_cmd=func_convert_file_noop
5041     ;;
5042 esac
5043
5044 fi
5045
5046 to_host_file_cmd=$lt_cv_to_host_file_cmd
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5048 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5049
5050
5051
5052
5053
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5055 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5056 if ${lt_cv_to_tool_file_cmd+:} false; then :
5057   $as_echo_n "(cached) " >&6
5058 else
5059   #assume ordinary cross tools, or native build.
5060 lt_cv_to_tool_file_cmd=func_convert_file_noop
5061 case $host in
5062   *-*-mingw* )
5063     case $build in
5064       *-*-mingw* ) # actually msys
5065         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5066         ;;
5067     esac
5068     ;;
5069 esac
5070
5071 fi
5072
5073 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5075 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5076
5077
5078
5079
5080
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5082 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5083 if ${lt_cv_ld_reload_flag+:} false; then :
5084   $as_echo_n "(cached) " >&6
5085 else
5086   lt_cv_ld_reload_flag='-r'
5087 fi
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5089 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5090 reload_flag=$lt_cv_ld_reload_flag
5091 case $reload_flag in
5092 "" | " "*) ;;
5093 *) reload_flag=" $reload_flag" ;;
5094 esac
5095 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5096 case $host_os in
5097   cygwin* | mingw* | pw32* | cegcc*)
5098     if test "$GCC" != yes; then
5099       reload_cmds=false
5100     fi
5101     ;;
5102   darwin*)
5103     if test "$GCC" = yes; then
5104       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5105     else
5106       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5107     fi
5108     ;;
5109 esac
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119 if test -n "$ac_tool_prefix"; then
5120   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5121 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5123 $as_echo_n "checking for $ac_word... " >&6; }
5124 if ${ac_cv_prog_OBJDUMP+:} false; then :
5125   $as_echo_n "(cached) " >&6
5126 else
5127   if test -n "$OBJDUMP"; then
5128   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5129 else
5130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5131 for as_dir in $PATH
5132 do
5133   IFS=$as_save_IFS
5134   test -z "$as_dir" && as_dir=.
5135     for ac_exec_ext in '' $ac_executable_extensions; do
5136   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5137     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5138     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5139     break 2
5140   fi
5141 done
5142   done
5143 IFS=$as_save_IFS
5144
5145 fi
5146 fi
5147 OBJDUMP=$ac_cv_prog_OBJDUMP
5148 if test -n "$OBJDUMP"; then
5149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5150 $as_echo "$OBJDUMP" >&6; }
5151 else
5152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5153 $as_echo "no" >&6; }
5154 fi
5155
5156
5157 fi
5158 if test -z "$ac_cv_prog_OBJDUMP"; then
5159   ac_ct_OBJDUMP=$OBJDUMP
5160   # Extract the first word of "objdump", so it can be a program name with args.
5161 set dummy objdump; ac_word=$2
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5163 $as_echo_n "checking for $ac_word... " >&6; }
5164 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5165   $as_echo_n "(cached) " >&6
5166 else
5167   if test -n "$ac_ct_OBJDUMP"; then
5168   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5169 else
5170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5171 for as_dir in $PATH
5172 do
5173   IFS=$as_save_IFS
5174   test -z "$as_dir" && as_dir=.
5175     for ac_exec_ext in '' $ac_executable_extensions; do
5176   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5177     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5178     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5179     break 2
5180   fi
5181 done
5182   done
5183 IFS=$as_save_IFS
5184
5185 fi
5186 fi
5187 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5188 if test -n "$ac_ct_OBJDUMP"; then
5189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5190 $as_echo "$ac_ct_OBJDUMP" >&6; }
5191 else
5192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5193 $as_echo "no" >&6; }
5194 fi
5195
5196   if test "x$ac_ct_OBJDUMP" = x; then
5197     OBJDUMP="false"
5198   else
5199     case $cross_compiling:$ac_tool_warned in
5200 yes:)
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5202 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5203 ac_tool_warned=yes ;;
5204 esac
5205     OBJDUMP=$ac_ct_OBJDUMP
5206   fi
5207 else
5208   OBJDUMP="$ac_cv_prog_OBJDUMP"
5209 fi
5210
5211 test -z "$OBJDUMP" && OBJDUMP=objdump
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5222 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5223 if ${lt_cv_deplibs_check_method+:} false; then :
5224   $as_echo_n "(cached) " >&6
5225 else
5226   lt_cv_file_magic_cmd='$MAGIC_CMD'
5227 lt_cv_file_magic_test_file=
5228 lt_cv_deplibs_check_method='unknown'
5229 # Need to set the preceding variable on all platforms that support
5230 # interlibrary dependencies.
5231 # 'none' -- dependencies not supported.
5232 # `unknown' -- same as none, but documents that we really don't know.
5233 # 'pass_all' -- all dependencies passed with no checks.
5234 # 'test_compile' -- check by making test program.
5235 # 'file_magic [[regex]]' -- check by looking for files in library path
5236 # which responds to the $file_magic_cmd with a given extended regex.
5237 # If you have `file' or equivalent on your system and you're not sure
5238 # whether `pass_all' will *always* work, you probably want this one.
5239
5240 case $host_os in
5241 aix[4-9]*)
5242   lt_cv_deplibs_check_method=pass_all
5243   ;;
5244
5245 beos*)
5246   lt_cv_deplibs_check_method=pass_all
5247   ;;
5248
5249 bsdi[45]*)
5250   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5251   lt_cv_file_magic_cmd='/usr/bin/file -L'
5252   lt_cv_file_magic_test_file=/shlib/libc.so
5253   ;;
5254
5255 cygwin*)
5256   # func_win32_libid is a shell function defined in ltmain.sh
5257   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5258   lt_cv_file_magic_cmd='func_win32_libid'
5259   ;;
5260
5261 mingw* | pw32*)
5262   # Base MSYS/MinGW do not provide the 'file' command needed by
5263   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5264   # unless we find 'file', for example because we are cross-compiling.
5265   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5266   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5267     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5268     lt_cv_file_magic_cmd='func_win32_libid'
5269   else
5270     # Keep this pattern in sync with the one in func_win32_libid.
5271     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5272     lt_cv_file_magic_cmd='$OBJDUMP -f'
5273   fi
5274   ;;
5275
5276 cegcc*)
5277   # use the weaker test based on 'objdump'. See mingw*.
5278   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5279   lt_cv_file_magic_cmd='$OBJDUMP -f'
5280   ;;
5281
5282 darwin* | rhapsody*)
5283   lt_cv_deplibs_check_method=pass_all
5284   ;;
5285
5286 freebsd* | dragonfly*)
5287   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5288     case $host_cpu in
5289     i*86 )
5290       # Not sure whether the presence of OpenBSD here was a mistake.
5291       # Let's accept both of them until this is cleared up.
5292       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5293       lt_cv_file_magic_cmd=/usr/bin/file
5294       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5295       ;;
5296     esac
5297   else
5298     lt_cv_deplibs_check_method=pass_all
5299   fi
5300   ;;
5301
5302 gnu*)
5303   lt_cv_deplibs_check_method=pass_all
5304   ;;
5305
5306 haiku*)
5307   lt_cv_deplibs_check_method=pass_all
5308   ;;
5309
5310 hpux10.20* | hpux11*)
5311   lt_cv_file_magic_cmd=/usr/bin/file
5312   case $host_cpu in
5313   ia64*)
5314     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5315     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5316     ;;
5317   hppa*64*)
5318     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]'
5319     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5320     ;;
5321   *)
5322     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5323     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5324     ;;
5325   esac
5326   ;;
5327
5328 interix[3-9]*)
5329   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5330   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5331   ;;
5332
5333 irix5* | irix6* | nonstopux*)
5334   case $LD in
5335   *-32|*"-32 ") libmagic=32-bit;;
5336   *-n32|*"-n32 ") libmagic=N32;;
5337   *-64|*"-64 ") libmagic=64-bit;;
5338   *) libmagic=never-match;;
5339   esac
5340   lt_cv_deplibs_check_method=pass_all
5341   ;;
5342
5343 # This must be glibc/ELF.
5344 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5345   lt_cv_deplibs_check_method=pass_all
5346   ;;
5347
5348 netbsd* | netbsdelf*-gnu)
5349   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5350     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5351   else
5352     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5353   fi
5354   ;;
5355
5356 newos6*)
5357   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5358   lt_cv_file_magic_cmd=/usr/bin/file
5359   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5360   ;;
5361
5362 *nto* | *qnx*)
5363   lt_cv_deplibs_check_method=pass_all
5364   ;;
5365
5366 openbsd*)
5367   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5368     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5369   else
5370     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5371   fi
5372   ;;
5373
5374 osf3* | osf4* | osf5*)
5375   lt_cv_deplibs_check_method=pass_all
5376   ;;
5377
5378 rdos*)
5379   lt_cv_deplibs_check_method=pass_all
5380   ;;
5381
5382 solaris*)
5383   lt_cv_deplibs_check_method=pass_all
5384   ;;
5385
5386 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5387   lt_cv_deplibs_check_method=pass_all
5388   ;;
5389
5390 sysv4 | sysv4.3*)
5391   case $host_vendor in
5392   motorola)
5393     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]'
5394     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5395     ;;
5396   ncr)
5397     lt_cv_deplibs_check_method=pass_all
5398     ;;
5399   sequent)
5400     lt_cv_file_magic_cmd='/bin/file'
5401     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5402     ;;
5403   sni)
5404     lt_cv_file_magic_cmd='/bin/file'
5405     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5406     lt_cv_file_magic_test_file=/lib/libc.so
5407     ;;
5408   siemens)
5409     lt_cv_deplibs_check_method=pass_all
5410     ;;
5411   pc)
5412     lt_cv_deplibs_check_method=pass_all
5413     ;;
5414   esac
5415   ;;
5416
5417 tpf*)
5418   lt_cv_deplibs_check_method=pass_all
5419   ;;
5420 esac
5421
5422 fi
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5424 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5425
5426 file_magic_glob=
5427 want_nocaseglob=no
5428 if test "$build" = "$host"; then
5429   case $host_os in
5430   mingw* | pw32*)
5431     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5432       want_nocaseglob=yes
5433     else
5434       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5435     fi
5436     ;;
5437   esac
5438 fi
5439
5440 file_magic_cmd=$lt_cv_file_magic_cmd
5441 deplibs_check_method=$lt_cv_deplibs_check_method
5442 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465 if test -n "$ac_tool_prefix"; then
5466   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5467 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5469 $as_echo_n "checking for $ac_word... " >&6; }
5470 if ${ac_cv_prog_DLLTOOL+:} false; then :
5471   $as_echo_n "(cached) " >&6
5472 else
5473   if test -n "$DLLTOOL"; then
5474   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5475 else
5476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5477 for as_dir in $PATH
5478 do
5479   IFS=$as_save_IFS
5480   test -z "$as_dir" && as_dir=.
5481     for ac_exec_ext in '' $ac_executable_extensions; do
5482   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5483     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5484     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5485     break 2
5486   fi
5487 done
5488   done
5489 IFS=$as_save_IFS
5490
5491 fi
5492 fi
5493 DLLTOOL=$ac_cv_prog_DLLTOOL
5494 if test -n "$DLLTOOL"; then
5495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5496 $as_echo "$DLLTOOL" >&6; }
5497 else
5498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5499 $as_echo "no" >&6; }
5500 fi
5501
5502
5503 fi
5504 if test -z "$ac_cv_prog_DLLTOOL"; then
5505   ac_ct_DLLTOOL=$DLLTOOL
5506   # Extract the first word of "dlltool", so it can be a program name with args.
5507 set dummy dlltool; ac_word=$2
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5509 $as_echo_n "checking for $ac_word... " >&6; }
5510 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5511   $as_echo_n "(cached) " >&6
5512 else
5513   if test -n "$ac_ct_DLLTOOL"; then
5514   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5515 else
5516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5517 for as_dir in $PATH
5518 do
5519   IFS=$as_save_IFS
5520   test -z "$as_dir" && as_dir=.
5521     for ac_exec_ext in '' $ac_executable_extensions; do
5522   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5523     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5524     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5525     break 2
5526   fi
5527 done
5528   done
5529 IFS=$as_save_IFS
5530
5531 fi
5532 fi
5533 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5534 if test -n "$ac_ct_DLLTOOL"; then
5535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5536 $as_echo "$ac_ct_DLLTOOL" >&6; }
5537 else
5538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5539 $as_echo "no" >&6; }
5540 fi
5541
5542   if test "x$ac_ct_DLLTOOL" = x; then
5543     DLLTOOL="false"
5544   else
5545     case $cross_compiling:$ac_tool_warned in
5546 yes:)
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5548 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5549 ac_tool_warned=yes ;;
5550 esac
5551     DLLTOOL=$ac_ct_DLLTOOL
5552   fi
5553 else
5554   DLLTOOL="$ac_cv_prog_DLLTOOL"
5555 fi
5556
5557 test -z "$DLLTOOL" && DLLTOOL=dlltool
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5569 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5570 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5571   $as_echo_n "(cached) " >&6
5572 else
5573   lt_cv_sharedlib_from_linklib_cmd='unknown'
5574
5575 case $host_os in
5576 cygwin* | mingw* | pw32* | cegcc*)
5577   # two different shell functions defined in ltmain.sh
5578   # decide which to use based on capabilities of $DLLTOOL
5579   case `$DLLTOOL --help 2>&1` in
5580   *--identify-strict*)
5581     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5582     ;;
5583   *)
5584     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5585     ;;
5586   esac
5587   ;;
5588 *)
5589   # fallback: assume linklib IS sharedlib
5590   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5591   ;;
5592 esac
5593
5594 fi
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5596 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5597 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5598 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5599
5600
5601
5602
5603
5604
5605
5606
5607 if test -n "$ac_tool_prefix"; then
5608   for ac_prog in ar
5609   do
5610     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5611 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5613 $as_echo_n "checking for $ac_word... " >&6; }
5614 if ${ac_cv_prog_AR+:} false; then :
5615   $as_echo_n "(cached) " >&6
5616 else
5617   if test -n "$AR"; then
5618   ac_cv_prog_AR="$AR" # Let the user override the test.
5619 else
5620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5621 for as_dir in $PATH
5622 do
5623   IFS=$as_save_IFS
5624   test -z "$as_dir" && as_dir=.
5625     for ac_exec_ext in '' $ac_executable_extensions; do
5626   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5627     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5628     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5629     break 2
5630   fi
5631 done
5632   done
5633 IFS=$as_save_IFS
5634
5635 fi
5636 fi
5637 AR=$ac_cv_prog_AR
5638 if test -n "$AR"; then
5639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5640 $as_echo "$AR" >&6; }
5641 else
5642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5643 $as_echo "no" >&6; }
5644 fi
5645
5646
5647     test -n "$AR" && break
5648   done
5649 fi
5650 if test -z "$AR"; then
5651   ac_ct_AR=$AR
5652   for ac_prog in ar
5653 do
5654   # Extract the first word of "$ac_prog", so it can be a program name with args.
5655 set dummy $ac_prog; ac_word=$2
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5657 $as_echo_n "checking for $ac_word... " >&6; }
5658 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5659   $as_echo_n "(cached) " >&6
5660 else
5661   if test -n "$ac_ct_AR"; then
5662   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5663 else
5664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5665 for as_dir in $PATH
5666 do
5667   IFS=$as_save_IFS
5668   test -z "$as_dir" && as_dir=.
5669     for ac_exec_ext in '' $ac_executable_extensions; do
5670   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5671     ac_cv_prog_ac_ct_AR="$ac_prog"
5672     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5673     break 2
5674   fi
5675 done
5676   done
5677 IFS=$as_save_IFS
5678
5679 fi
5680 fi
5681 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5682 if test -n "$ac_ct_AR"; then
5683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5684 $as_echo "$ac_ct_AR" >&6; }
5685 else
5686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5687 $as_echo "no" >&6; }
5688 fi
5689
5690
5691   test -n "$ac_ct_AR" && break
5692 done
5693
5694   if test "x$ac_ct_AR" = x; then
5695     AR="false"
5696   else
5697     case $cross_compiling:$ac_tool_warned in
5698 yes:)
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5700 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5701 ac_tool_warned=yes ;;
5702 esac
5703     AR=$ac_ct_AR
5704   fi
5705 fi
5706
5707 : ${AR=ar}
5708 : ${AR_FLAGS=cru}
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5721 $as_echo_n "checking for archiver @FILE support... " >&6; }
5722 if ${lt_cv_ar_at_file+:} false; then :
5723   $as_echo_n "(cached) " >&6
5724 else
5725   lt_cv_ar_at_file=no
5726    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5727 /* end confdefs.h.  */
5728
5729 int
5730 main ()
5731 {
5732
5733   ;
5734   return 0;
5735 }
5736 _ACEOF
5737 if ac_fn_c_try_compile "$LINENO"; then :
5738   echo conftest.$ac_objext > conftest.lst
5739       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5740       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5741   (eval $lt_ar_try) 2>&5
5742   ac_status=$?
5743   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5744   test $ac_status = 0; }
5745       if test "$ac_status" -eq 0; then
5746         # Ensure the archiver fails upon bogus file names.
5747         rm -f conftest.$ac_objext libconftest.a
5748         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5749   (eval $lt_ar_try) 2>&5
5750   ac_status=$?
5751   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5752   test $ac_status = 0; }
5753         if test "$ac_status" -ne 0; then
5754           lt_cv_ar_at_file=@
5755         fi
5756       fi
5757       rm -f conftest.* libconftest.a
5758
5759 fi
5760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5761
5762 fi
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5764 $as_echo "$lt_cv_ar_at_file" >&6; }
5765
5766 if test "x$lt_cv_ar_at_file" = xno; then
5767   archiver_list_spec=
5768 else
5769   archiver_list_spec=$lt_cv_ar_at_file
5770 fi
5771
5772
5773
5774
5775
5776
5777
5778 if test -n "$ac_tool_prefix"; then
5779   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5780 set dummy ${ac_tool_prefix}strip; ac_word=$2
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5782 $as_echo_n "checking for $ac_word... " >&6; }
5783 if ${ac_cv_prog_STRIP+:} false; then :
5784   $as_echo_n "(cached) " >&6
5785 else
5786   if test -n "$STRIP"; then
5787   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5788 else
5789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5790 for as_dir in $PATH
5791 do
5792   IFS=$as_save_IFS
5793   test -z "$as_dir" && as_dir=.
5794     for ac_exec_ext in '' $ac_executable_extensions; do
5795   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5796     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5797     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5798     break 2
5799   fi
5800 done
5801   done
5802 IFS=$as_save_IFS
5803
5804 fi
5805 fi
5806 STRIP=$ac_cv_prog_STRIP
5807 if test -n "$STRIP"; then
5808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5809 $as_echo "$STRIP" >&6; }
5810 else
5811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5812 $as_echo "no" >&6; }
5813 fi
5814
5815
5816 fi
5817 if test -z "$ac_cv_prog_STRIP"; then
5818   ac_ct_STRIP=$STRIP
5819   # Extract the first word of "strip", so it can be a program name with args.
5820 set dummy strip; ac_word=$2
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5822 $as_echo_n "checking for $ac_word... " >&6; }
5823 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5824   $as_echo_n "(cached) " >&6
5825 else
5826   if test -n "$ac_ct_STRIP"; then
5827   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5828 else
5829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5830 for as_dir in $PATH
5831 do
5832   IFS=$as_save_IFS
5833   test -z "$as_dir" && as_dir=.
5834     for ac_exec_ext in '' $ac_executable_extensions; do
5835   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5836     ac_cv_prog_ac_ct_STRIP="strip"
5837     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5838     break 2
5839   fi
5840 done
5841   done
5842 IFS=$as_save_IFS
5843
5844 fi
5845 fi
5846 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5847 if test -n "$ac_ct_STRIP"; then
5848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5849 $as_echo "$ac_ct_STRIP" >&6; }
5850 else
5851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5852 $as_echo "no" >&6; }
5853 fi
5854
5855   if test "x$ac_ct_STRIP" = x; then
5856     STRIP=":"
5857   else
5858     case $cross_compiling:$ac_tool_warned in
5859 yes:)
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5861 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5862 ac_tool_warned=yes ;;
5863 esac
5864     STRIP=$ac_ct_STRIP
5865   fi
5866 else
5867   STRIP="$ac_cv_prog_STRIP"
5868 fi
5869
5870 test -z "$STRIP" && STRIP=:
5871
5872
5873
5874
5875
5876
5877 if test -n "$ac_tool_prefix"; then
5878   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5879 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5881 $as_echo_n "checking for $ac_word... " >&6; }
5882 if ${ac_cv_prog_RANLIB+:} false; then :
5883   $as_echo_n "(cached) " >&6
5884 else
5885   if test -n "$RANLIB"; then
5886   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5887 else
5888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5889 for as_dir in $PATH
5890 do
5891   IFS=$as_save_IFS
5892   test -z "$as_dir" && as_dir=.
5893     for ac_exec_ext in '' $ac_executable_extensions; do
5894   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5895     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5896     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5897     break 2
5898   fi
5899 done
5900   done
5901 IFS=$as_save_IFS
5902
5903 fi
5904 fi
5905 RANLIB=$ac_cv_prog_RANLIB
5906 if test -n "$RANLIB"; then
5907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5908 $as_echo "$RANLIB" >&6; }
5909 else
5910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5911 $as_echo "no" >&6; }
5912 fi
5913
5914
5915 fi
5916 if test -z "$ac_cv_prog_RANLIB"; then
5917   ac_ct_RANLIB=$RANLIB
5918   # Extract the first word of "ranlib", so it can be a program name with args.
5919 set dummy ranlib; ac_word=$2
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5921 $as_echo_n "checking for $ac_word... " >&6; }
5922 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5923   $as_echo_n "(cached) " >&6
5924 else
5925   if test -n "$ac_ct_RANLIB"; then
5926   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5927 else
5928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5929 for as_dir in $PATH
5930 do
5931   IFS=$as_save_IFS
5932   test -z "$as_dir" && as_dir=.
5933     for ac_exec_ext in '' $ac_executable_extensions; do
5934   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5935     ac_cv_prog_ac_ct_RANLIB="ranlib"
5936     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5937     break 2
5938   fi
5939 done
5940   done
5941 IFS=$as_save_IFS
5942
5943 fi
5944 fi
5945 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5946 if test -n "$ac_ct_RANLIB"; then
5947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5948 $as_echo "$ac_ct_RANLIB" >&6; }
5949 else
5950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5951 $as_echo "no" >&6; }
5952 fi
5953
5954   if test "x$ac_ct_RANLIB" = x; then
5955     RANLIB=":"
5956   else
5957     case $cross_compiling:$ac_tool_warned in
5958 yes:)
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5960 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5961 ac_tool_warned=yes ;;
5962 esac
5963     RANLIB=$ac_ct_RANLIB
5964   fi
5965 else
5966   RANLIB="$ac_cv_prog_RANLIB"
5967 fi
5968
5969 test -z "$RANLIB" && RANLIB=:
5970
5971
5972
5973
5974
5975
5976 # Determine commands to create old-style static archives.
5977 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5978 old_postinstall_cmds='chmod 644 $oldlib'
5979 old_postuninstall_cmds=
5980
5981 if test -n "$RANLIB"; then
5982   case $host_os in
5983   openbsd*)
5984     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5985     ;;
5986   *)
5987     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5988     ;;
5989   esac
5990   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5991 fi
5992
5993 case $host_os in
5994   darwin*)
5995     lock_old_archive_extraction=yes ;;
5996   *)
5997     lock_old_archive_extraction=no ;;
5998 esac
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038 # If no C compiler was specified, use CC.
6039 LTCC=${LTCC-"$CC"}
6040
6041 # If no C compiler flags were specified, use CFLAGS.
6042 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6043
6044 # Allow CC to be a program name with arguments.
6045 compiler=$CC
6046
6047
6048 # Check for command to grab the raw symbol name followed by C symbol from nm.
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6050 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6051 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6052   $as_echo_n "(cached) " >&6
6053 else
6054
6055 # These are sane defaults that work on at least a few old systems.
6056 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6057
6058 # Character class describing NM global symbol codes.
6059 symcode='[BCDEGRST]'
6060
6061 # Regexp to match symbols that can be accessed directly from C.
6062 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6063
6064 # Define system-specific variables.
6065 case $host_os in
6066 aix*)
6067   symcode='[BCDT]'
6068   ;;
6069 cygwin* | mingw* | pw32* | cegcc*)
6070   symcode='[ABCDGISTW]'
6071   ;;
6072 hpux*)
6073   if test "$host_cpu" = ia64; then
6074     symcode='[ABCDEGRST]'
6075   fi
6076   ;;
6077 irix* | nonstopux*)
6078   symcode='[BCDEGRST]'
6079   ;;
6080 osf*)
6081   symcode='[BCDEGQRST]'
6082   ;;
6083 solaris*)
6084   symcode='[BDRT]'
6085   ;;
6086 sco3.2v5*)
6087   symcode='[DT]'
6088   ;;
6089 sysv4.2uw2*)
6090   symcode='[DT]'
6091   ;;
6092 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6093   symcode='[ABDT]'
6094   ;;
6095 sysv4)
6096   symcode='[DFNSTU]'
6097   ;;
6098 esac
6099
6100 # If we're using GNU nm, then use its standard symbol codes.
6101 case `$NM -V 2>&1` in
6102 *GNU* | *'with BFD'*)
6103   symcode='[ABCDGIRSTW]' ;;
6104 esac
6105
6106 # Transform an extracted symbol line into a proper C declaration.
6107 # Some systems (esp. on ia64) link data and code symbols differently,
6108 # so use this general approach.
6109 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6110
6111 # Transform an extracted symbol line into symbol name and symbol address
6112 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6113 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'"
6114
6115 # Handle CRLF in mingw tool chain
6116 opt_cr=
6117 case $build_os in
6118 mingw*)
6119   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6120   ;;
6121 esac
6122
6123 # Try without a prefix underscore, then with it.
6124 for ac_symprfx in "" "_"; do
6125
6126   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6127   symxfrm="\\1 $ac_symprfx\\2 \\2"
6128
6129   # Write the raw and C identifiers.
6130   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6131     # Fake it for dumpbin and say T for any non-static function
6132     # and D for any global variable.
6133     # Also find C++ and __fastcall symbols from MSVC++,
6134     # which start with @ or ?.
6135     lt_cv_sys_global_symbol_pipe="$AWK '"\
6136 "     {last_section=section; section=\$ 3};"\
6137 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6138 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6139 "     \$ 0!~/External *\|/{next};"\
6140 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6141 "     {if(hide[section]) next};"\
6142 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6143 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6144 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6145 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6146 "     ' prfx=^$ac_symprfx"
6147   else
6148     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6149   fi
6150   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6151
6152   # Check to see that the pipe works correctly.
6153   pipe_works=no
6154
6155   rm -f conftest*
6156   cat > conftest.$ac_ext <<_LT_EOF
6157 #ifdef __cplusplus
6158 extern "C" {
6159 #endif
6160 char nm_test_var;
6161 void nm_test_func(void);
6162 void nm_test_func(void){}
6163 #ifdef __cplusplus
6164 }
6165 #endif
6166 int main(){nm_test_var='a';nm_test_func();return(0);}
6167 _LT_EOF
6168
6169   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6170   (eval $ac_compile) 2>&5
6171   ac_status=$?
6172   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6173   test $ac_status = 0; }; then
6174     # Now try to grab the symbols.
6175     nlist=conftest.nm
6176     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6177   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6178   ac_status=$?
6179   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6180   test $ac_status = 0; } && test -s "$nlist"; then
6181       # Try sorting and uniquifying the output.
6182       if sort "$nlist" | uniq > "$nlist"T; then
6183         mv -f "$nlist"T "$nlist"
6184       else
6185         rm -f "$nlist"T
6186       fi
6187
6188       # Make sure that we snagged all the symbols we need.
6189       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6190         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6191           cat <<_LT_EOF > conftest.$ac_ext
6192 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6193 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6194 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6195    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6196 # define LT_DLSYM_CONST
6197 #elif defined(__osf__)
6198 /* This system does not cope well with relocations in const data.  */
6199 # define LT_DLSYM_CONST
6200 #else
6201 # define LT_DLSYM_CONST const
6202 #endif
6203
6204 #ifdef __cplusplus
6205 extern "C" {
6206 #endif
6207
6208 _LT_EOF
6209           # Now generate the symbol file.
6210           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6211
6212           cat <<_LT_EOF >> conftest.$ac_ext
6213
6214 /* The mapping between symbol names and symbols.  */
6215 LT_DLSYM_CONST struct {
6216   const char *name;
6217   void       *address;
6218 }
6219 lt__PROGRAM__LTX_preloaded_symbols[] =
6220 {
6221   { "@PROGRAM@", (void *) 0 },
6222 _LT_EOF
6223           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6224           cat <<\_LT_EOF >> conftest.$ac_ext
6225   {0, (void *) 0}
6226 };
6227
6228 /* This works around a problem in FreeBSD linker */
6229 #ifdef FREEBSD_WORKAROUND
6230 static const void *lt_preloaded_setup() {
6231   return lt__PROGRAM__LTX_preloaded_symbols;
6232 }
6233 #endif
6234
6235 #ifdef __cplusplus
6236 }
6237 #endif
6238 _LT_EOF
6239           # Now try linking the two files.
6240           mv conftest.$ac_objext conftstm.$ac_objext
6241           lt_globsym_save_LIBS=$LIBS
6242           lt_globsym_save_CFLAGS=$CFLAGS
6243           LIBS="conftstm.$ac_objext"
6244           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6245           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6246   (eval $ac_link) 2>&5
6247   ac_status=$?
6248   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6249   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6250             pipe_works=yes
6251           fi
6252           LIBS=$lt_globsym_save_LIBS
6253           CFLAGS=$lt_globsym_save_CFLAGS
6254         else
6255           echo "cannot find nm_test_func in $nlist" >&5
6256         fi
6257       else
6258         echo "cannot find nm_test_var in $nlist" >&5
6259       fi
6260     else
6261       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6262     fi
6263   else
6264     echo "$progname: failed program was:" >&5
6265     cat conftest.$ac_ext >&5
6266   fi
6267   rm -rf conftest* conftst*
6268
6269   # Do not use the global_symbol_pipe unless it works.
6270   if test "$pipe_works" = yes; then
6271     break
6272   else
6273     lt_cv_sys_global_symbol_pipe=
6274   fi
6275 done
6276
6277 fi
6278
6279 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6280   lt_cv_sys_global_symbol_to_cdecl=
6281 fi
6282 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6284 $as_echo "failed" >&6; }
6285 else
6286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6287 $as_echo "ok" >&6; }
6288 fi
6289
6290 # Response file support.
6291 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6292   nm_file_list_spec='@'
6293 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6294   nm_file_list_spec='@'
6295 fi
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6324 $as_echo_n "checking for sysroot... " >&6; }
6325
6326 # Check whether --with-sysroot was given.
6327 if test "${with_sysroot+set}" = set; then :
6328   withval=$with_sysroot;
6329 else
6330   with_sysroot=no
6331 fi
6332
6333
6334 lt_sysroot=
6335 case ${with_sysroot} in #(
6336  yes)
6337    if test "$GCC" = yes; then
6338      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6339    fi
6340    ;; #(
6341  /*)
6342    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6343    ;; #(
6344  no|'')
6345    ;; #(
6346  *)
6347    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6348 $as_echo "${with_sysroot}" >&6; }
6349    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6350    ;;
6351 esac
6352
6353  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6354 $as_echo "${lt_sysroot:-no}" >&6; }
6355
6356
6357
6358
6359
6360 # Check whether --enable-libtool-lock was given.
6361 if test "${enable_libtool_lock+set}" = set; then :
6362   enableval=$enable_libtool_lock;
6363 fi
6364
6365 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6366
6367 # Some flags need to be propagated to the compiler or linker for good
6368 # libtool support.
6369 case $host in
6370 ia64-*-hpux*)
6371   # Find out which ABI we are using.
6372   echo 'int i;' > conftest.$ac_ext
6373   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6374   (eval $ac_compile) 2>&5
6375   ac_status=$?
6376   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6377   test $ac_status = 0; }; then
6378     case `/usr/bin/file conftest.$ac_objext` in
6379       *ELF-32*)
6380         HPUX_IA64_MODE="32"
6381         ;;
6382       *ELF-64*)
6383         HPUX_IA64_MODE="64"
6384         ;;
6385     esac
6386   fi
6387   rm -rf conftest*
6388   ;;
6389 *-*-irix6*)
6390   # Find out which ABI we are using.
6391   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6392   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6393   (eval $ac_compile) 2>&5
6394   ac_status=$?
6395   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6396   test $ac_status = 0; }; then
6397     if test "$lt_cv_prog_gnu_ld" = yes; then
6398       case `/usr/bin/file conftest.$ac_objext` in
6399         *32-bit*)
6400           LD="${LD-ld} -melf32bsmip"
6401           ;;
6402         *N32*)
6403           LD="${LD-ld} -melf32bmipn32"
6404           ;;
6405         *64-bit*)
6406           LD="${LD-ld} -melf64bmip"
6407         ;;
6408       esac
6409     else
6410       case `/usr/bin/file conftest.$ac_objext` in
6411         *32-bit*)
6412           LD="${LD-ld} -32"
6413           ;;
6414         *N32*)
6415           LD="${LD-ld} -n32"
6416           ;;
6417         *64-bit*)
6418           LD="${LD-ld} -64"
6419           ;;
6420       esac
6421     fi
6422   fi
6423   rm -rf conftest*
6424   ;;
6425
6426 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6427 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6428   # Find out which ABI we are using.
6429   echo 'int i;' > conftest.$ac_ext
6430   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6431   (eval $ac_compile) 2>&5
6432   ac_status=$?
6433   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6434   test $ac_status = 0; }; then
6435     case `/usr/bin/file conftest.o` in
6436       *32-bit*)
6437         case $host in
6438           x86_64-*kfreebsd*-gnu)
6439             LD="${LD-ld} -m elf_i386_fbsd"
6440             ;;
6441           x86_64-*linux*)
6442             LD="${LD-ld} -m elf_i386"
6443             ;;
6444           ppc64-*linux*|powerpc64-*linux*)
6445             LD="${LD-ld} -m elf32ppclinux"
6446             ;;
6447           s390x-*linux*)
6448             LD="${LD-ld} -m elf_s390"
6449             ;;
6450           sparc64-*linux*)
6451             LD="${LD-ld} -m elf32_sparc"
6452             ;;
6453         esac
6454         ;;
6455       *64-bit*)
6456         case $host in
6457           x86_64-*kfreebsd*-gnu)
6458             LD="${LD-ld} -m elf_x86_64_fbsd"
6459             ;;
6460           x86_64-*linux*)
6461             LD="${LD-ld} -m elf_x86_64"
6462             ;;
6463           ppc*-*linux*|powerpc*-*linux*)
6464             LD="${LD-ld} -m elf64ppc"
6465             ;;
6466           s390*-*linux*|s390*-*tpf*)
6467             LD="${LD-ld} -m elf64_s390"
6468             ;;
6469           sparc*-*linux*)
6470             LD="${LD-ld} -m elf64_sparc"
6471             ;;
6472         esac
6473         ;;
6474     esac
6475   fi
6476   rm -rf conftest*
6477   ;;
6478
6479 *-*-sco3.2v5*)
6480   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6481   SAVE_CFLAGS="$CFLAGS"
6482   CFLAGS="$CFLAGS -belf"
6483   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6484 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6485 if ${lt_cv_cc_needs_belf+:} false; then :
6486   $as_echo_n "(cached) " >&6
6487 else
6488   ac_ext=c
6489 ac_cpp='$CPP $CPPFLAGS'
6490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6493
6494      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6495 /* end confdefs.h.  */
6496
6497 int
6498 main ()
6499 {
6500
6501   ;
6502   return 0;
6503 }
6504 _ACEOF
6505 if ac_fn_c_try_link "$LINENO"; then :
6506   lt_cv_cc_needs_belf=yes
6507 else
6508   lt_cv_cc_needs_belf=no
6509 fi
6510 rm -f core conftest.err conftest.$ac_objext \
6511     conftest$ac_exeext conftest.$ac_ext
6512      ac_ext=c
6513 ac_cpp='$CPP $CPPFLAGS'
6514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6517
6518 fi
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6520 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6521   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6522     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6523     CFLAGS="$SAVE_CFLAGS"
6524   fi
6525   ;;
6526 *-*solaris*)
6527   # Find out which ABI we are using.
6528   echo 'int i;' > conftest.$ac_ext
6529   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6530   (eval $ac_compile) 2>&5
6531   ac_status=$?
6532   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6533   test $ac_status = 0; }; then
6534     case `/usr/bin/file conftest.o` in
6535     *64-bit*)
6536       case $lt_cv_prog_gnu_ld in
6537       yes*)
6538         case $host in
6539         i?86-*-solaris*)
6540           LD="${LD-ld} -m elf_x86_64"
6541           ;;
6542         sparc*-*-solaris*)
6543           LD="${LD-ld} -m elf64_sparc"
6544           ;;
6545         esac
6546         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6547         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6548           LD="${LD-ld}_sol2"
6549         fi
6550         ;;
6551       *)
6552         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6553           LD="${LD-ld} -64"
6554         fi
6555         ;;
6556       esac
6557       ;;
6558     esac
6559   fi
6560   rm -rf conftest*
6561   ;;
6562 esac
6563
6564 need_locks="$enable_libtool_lock"
6565
6566 if test -n "$ac_tool_prefix"; then
6567   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6568 set dummy ${ac_tool_prefix}mt; ac_word=$2
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6570 $as_echo_n "checking for $ac_word... " >&6; }
6571 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6572   $as_echo_n "(cached) " >&6
6573 else
6574   if test -n "$MANIFEST_TOOL"; then
6575   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6576 else
6577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6578 for as_dir in $PATH
6579 do
6580   IFS=$as_save_IFS
6581   test -z "$as_dir" && as_dir=.
6582     for ac_exec_ext in '' $ac_executable_extensions; do
6583   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6584     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6585     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6586     break 2
6587   fi
6588 done
6589   done
6590 IFS=$as_save_IFS
6591
6592 fi
6593 fi
6594 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6595 if test -n "$MANIFEST_TOOL"; then
6596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6597 $as_echo "$MANIFEST_TOOL" >&6; }
6598 else
6599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6600 $as_echo "no" >&6; }
6601 fi
6602
6603
6604 fi
6605 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6606   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6607   # Extract the first word of "mt", so it can be a program name with args.
6608 set dummy mt; ac_word=$2
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6610 $as_echo_n "checking for $ac_word... " >&6; }
6611 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6612   $as_echo_n "(cached) " >&6
6613 else
6614   if test -n "$ac_ct_MANIFEST_TOOL"; then
6615   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6616 else
6617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6618 for as_dir in $PATH
6619 do
6620   IFS=$as_save_IFS
6621   test -z "$as_dir" && as_dir=.
6622     for ac_exec_ext in '' $ac_executable_extensions; do
6623   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6624     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6625     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6626     break 2
6627   fi
6628 done
6629   done
6630 IFS=$as_save_IFS
6631
6632 fi
6633 fi
6634 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6635 if test -n "$ac_ct_MANIFEST_TOOL"; then
6636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6637 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6638 else
6639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6640 $as_echo "no" >&6; }
6641 fi
6642
6643   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6644     MANIFEST_TOOL=":"
6645   else
6646     case $cross_compiling:$ac_tool_warned in
6647 yes:)
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6649 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6650 ac_tool_warned=yes ;;
6651 esac
6652     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6653   fi
6654 else
6655   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6656 fi
6657
6658 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6660 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6661 if ${lt_cv_path_mainfest_tool+:} false; then :
6662   $as_echo_n "(cached) " >&6
6663 else
6664   lt_cv_path_mainfest_tool=no
6665   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6666   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6667   cat conftest.err >&5
6668   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6669     lt_cv_path_mainfest_tool=yes
6670   fi
6671   rm -f conftest*
6672 fi
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6674 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6675 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6676   MANIFEST_TOOL=:
6677 fi
6678
6679
6680
6681
6682
6683
6684   case $host_os in
6685     rhapsody* | darwin*)
6686     if test -n "$ac_tool_prefix"; then
6687   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6688 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6690 $as_echo_n "checking for $ac_word... " >&6; }
6691 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6692   $as_echo_n "(cached) " >&6
6693 else
6694   if test -n "$DSYMUTIL"; then
6695   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6696 else
6697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6698 for as_dir in $PATH
6699 do
6700   IFS=$as_save_IFS
6701   test -z "$as_dir" && as_dir=.
6702     for ac_exec_ext in '' $ac_executable_extensions; do
6703   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6704     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6705     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6706     break 2
6707   fi
6708 done
6709   done
6710 IFS=$as_save_IFS
6711
6712 fi
6713 fi
6714 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6715 if test -n "$DSYMUTIL"; then
6716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6717 $as_echo "$DSYMUTIL" >&6; }
6718 else
6719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6720 $as_echo "no" >&6; }
6721 fi
6722
6723
6724 fi
6725 if test -z "$ac_cv_prog_DSYMUTIL"; then
6726   ac_ct_DSYMUTIL=$DSYMUTIL
6727   # Extract the first word of "dsymutil", so it can be a program name with args.
6728 set dummy dsymutil; ac_word=$2
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6730 $as_echo_n "checking for $ac_word... " >&6; }
6731 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6732   $as_echo_n "(cached) " >&6
6733 else
6734   if test -n "$ac_ct_DSYMUTIL"; then
6735   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6736 else
6737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6738 for as_dir in $PATH
6739 do
6740   IFS=$as_save_IFS
6741   test -z "$as_dir" && as_dir=.
6742     for ac_exec_ext in '' $ac_executable_extensions; do
6743   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6744     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6745     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6746     break 2
6747   fi
6748 done
6749   done
6750 IFS=$as_save_IFS
6751
6752 fi
6753 fi
6754 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6755 if test -n "$ac_ct_DSYMUTIL"; then
6756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6757 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6758 else
6759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6760 $as_echo "no" >&6; }
6761 fi
6762
6763   if test "x$ac_ct_DSYMUTIL" = x; then
6764     DSYMUTIL=":"
6765   else
6766     case $cross_compiling:$ac_tool_warned in
6767 yes:)
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6769 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6770 ac_tool_warned=yes ;;
6771 esac
6772     DSYMUTIL=$ac_ct_DSYMUTIL
6773   fi
6774 else
6775   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6776 fi
6777
6778     if test -n "$ac_tool_prefix"; then
6779   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6780 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6782 $as_echo_n "checking for $ac_word... " >&6; }
6783 if ${ac_cv_prog_NMEDIT+:} false; then :
6784   $as_echo_n "(cached) " >&6
6785 else
6786   if test -n "$NMEDIT"; then
6787   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6788 else
6789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6790 for as_dir in $PATH
6791 do
6792   IFS=$as_save_IFS
6793   test -z "$as_dir" && as_dir=.
6794     for ac_exec_ext in '' $ac_executable_extensions; do
6795   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6796     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6797     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6798     break 2
6799   fi
6800 done
6801   done
6802 IFS=$as_save_IFS
6803
6804 fi
6805 fi
6806 NMEDIT=$ac_cv_prog_NMEDIT
6807 if test -n "$NMEDIT"; then
6808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6809 $as_echo "$NMEDIT" >&6; }
6810 else
6811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6812 $as_echo "no" >&6; }
6813 fi
6814
6815
6816 fi
6817 if test -z "$ac_cv_prog_NMEDIT"; then
6818   ac_ct_NMEDIT=$NMEDIT
6819   # Extract the first word of "nmedit", so it can be a program name with args.
6820 set dummy nmedit; ac_word=$2
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6822 $as_echo_n "checking for $ac_word... " >&6; }
6823 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6824   $as_echo_n "(cached) " >&6
6825 else
6826   if test -n "$ac_ct_NMEDIT"; then
6827   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6828 else
6829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6830 for as_dir in $PATH
6831 do
6832   IFS=$as_save_IFS
6833   test -z "$as_dir" && as_dir=.
6834     for ac_exec_ext in '' $ac_executable_extensions; do
6835   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6836     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6837     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6838     break 2
6839   fi
6840 done
6841   done
6842 IFS=$as_save_IFS
6843
6844 fi
6845 fi
6846 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6847 if test -n "$ac_ct_NMEDIT"; then
6848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6849 $as_echo "$ac_ct_NMEDIT" >&6; }
6850 else
6851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6852 $as_echo "no" >&6; }
6853 fi
6854
6855   if test "x$ac_ct_NMEDIT" = x; then
6856     NMEDIT=":"
6857   else
6858     case $cross_compiling:$ac_tool_warned in
6859 yes:)
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6861 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6862 ac_tool_warned=yes ;;
6863 esac
6864     NMEDIT=$ac_ct_NMEDIT
6865   fi
6866 else
6867   NMEDIT="$ac_cv_prog_NMEDIT"
6868 fi
6869
6870     if test -n "$ac_tool_prefix"; then
6871   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6872 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6874 $as_echo_n "checking for $ac_word... " >&6; }
6875 if ${ac_cv_prog_LIPO+:} false; then :
6876   $as_echo_n "(cached) " >&6
6877 else
6878   if test -n "$LIPO"; then
6879   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6880 else
6881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6882 for as_dir in $PATH
6883 do
6884   IFS=$as_save_IFS
6885   test -z "$as_dir" && as_dir=.
6886     for ac_exec_ext in '' $ac_executable_extensions; do
6887   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6888     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6889     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6890     break 2
6891   fi
6892 done
6893   done
6894 IFS=$as_save_IFS
6895
6896 fi
6897 fi
6898 LIPO=$ac_cv_prog_LIPO
6899 if test -n "$LIPO"; then
6900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6901 $as_echo "$LIPO" >&6; }
6902 else
6903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6904 $as_echo "no" >&6; }
6905 fi
6906
6907
6908 fi
6909 if test -z "$ac_cv_prog_LIPO"; then
6910   ac_ct_LIPO=$LIPO
6911   # Extract the first word of "lipo", so it can be a program name with args.
6912 set dummy lipo; ac_word=$2
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6914 $as_echo_n "checking for $ac_word... " >&6; }
6915 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6916   $as_echo_n "(cached) " >&6
6917 else
6918   if test -n "$ac_ct_LIPO"; then
6919   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6920 else
6921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6922 for as_dir in $PATH
6923 do
6924   IFS=$as_save_IFS
6925   test -z "$as_dir" && as_dir=.
6926     for ac_exec_ext in '' $ac_executable_extensions; do
6927   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6928     ac_cv_prog_ac_ct_LIPO="lipo"
6929     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6930     break 2
6931   fi
6932 done
6933   done
6934 IFS=$as_save_IFS
6935
6936 fi
6937 fi
6938 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6939 if test -n "$ac_ct_LIPO"; then
6940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6941 $as_echo "$ac_ct_LIPO" >&6; }
6942 else
6943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6944 $as_echo "no" >&6; }
6945 fi
6946
6947   if test "x$ac_ct_LIPO" = x; then
6948     LIPO=":"
6949   else
6950     case $cross_compiling:$ac_tool_warned in
6951 yes:)
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6953 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6954 ac_tool_warned=yes ;;
6955 esac
6956     LIPO=$ac_ct_LIPO
6957   fi
6958 else
6959   LIPO="$ac_cv_prog_LIPO"
6960 fi
6961
6962     if test -n "$ac_tool_prefix"; then
6963   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6964 set dummy ${ac_tool_prefix}otool; ac_word=$2
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6966 $as_echo_n "checking for $ac_word... " >&6; }
6967 if ${ac_cv_prog_OTOOL+:} false; then :
6968   $as_echo_n "(cached) " >&6
6969 else
6970   if test -n "$OTOOL"; then
6971   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6972 else
6973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6974 for as_dir in $PATH
6975 do
6976   IFS=$as_save_IFS
6977   test -z "$as_dir" && as_dir=.
6978     for ac_exec_ext in '' $ac_executable_extensions; do
6979   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6980     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6981     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6982     break 2
6983   fi
6984 done
6985   done
6986 IFS=$as_save_IFS
6987
6988 fi
6989 fi
6990 OTOOL=$ac_cv_prog_OTOOL
6991 if test -n "$OTOOL"; then
6992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6993 $as_echo "$OTOOL" >&6; }
6994 else
6995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6996 $as_echo "no" >&6; }
6997 fi
6998
6999
7000 fi
7001 if test -z "$ac_cv_prog_OTOOL"; then
7002   ac_ct_OTOOL=$OTOOL
7003   # Extract the first word of "otool", so it can be a program name with args.
7004 set dummy otool; ac_word=$2
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7006 $as_echo_n "checking for $ac_word... " >&6; }
7007 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7008   $as_echo_n "(cached) " >&6
7009 else
7010   if test -n "$ac_ct_OTOOL"; then
7011   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7012 else
7013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7014 for as_dir in $PATH
7015 do
7016   IFS=$as_save_IFS
7017   test -z "$as_dir" && as_dir=.
7018     for ac_exec_ext in '' $ac_executable_extensions; do
7019   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7020     ac_cv_prog_ac_ct_OTOOL="otool"
7021     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7022     break 2
7023   fi
7024 done
7025   done
7026 IFS=$as_save_IFS
7027
7028 fi
7029 fi
7030 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7031 if test -n "$ac_ct_OTOOL"; then
7032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7033 $as_echo "$ac_ct_OTOOL" >&6; }
7034 else
7035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7036 $as_echo "no" >&6; }
7037 fi
7038
7039   if test "x$ac_ct_OTOOL" = x; then
7040     OTOOL=":"
7041   else
7042     case $cross_compiling:$ac_tool_warned in
7043 yes:)
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7045 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7046 ac_tool_warned=yes ;;
7047 esac
7048     OTOOL=$ac_ct_OTOOL
7049   fi
7050 else
7051   OTOOL="$ac_cv_prog_OTOOL"
7052 fi
7053
7054     if test -n "$ac_tool_prefix"; then
7055   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7056 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7058 $as_echo_n "checking for $ac_word... " >&6; }
7059 if ${ac_cv_prog_OTOOL64+:} false; then :
7060   $as_echo_n "(cached) " >&6
7061 else
7062   if test -n "$OTOOL64"; then
7063   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7064 else
7065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7066 for as_dir in $PATH
7067 do
7068   IFS=$as_save_IFS
7069   test -z "$as_dir" && as_dir=.
7070     for ac_exec_ext in '' $ac_executable_extensions; do
7071   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7072     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7073     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7074     break 2
7075   fi
7076 done
7077   done
7078 IFS=$as_save_IFS
7079
7080 fi
7081 fi
7082 OTOOL64=$ac_cv_prog_OTOOL64
7083 if test -n "$OTOOL64"; then
7084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7085 $as_echo "$OTOOL64" >&6; }
7086 else
7087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7088 $as_echo "no" >&6; }
7089 fi
7090
7091
7092 fi
7093 if test -z "$ac_cv_prog_OTOOL64"; then
7094   ac_ct_OTOOL64=$OTOOL64
7095   # Extract the first word of "otool64", so it can be a program name with args.
7096 set dummy otool64; ac_word=$2
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7098 $as_echo_n "checking for $ac_word... " >&6; }
7099 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7100   $as_echo_n "(cached) " >&6
7101 else
7102   if test -n "$ac_ct_OTOOL64"; then
7103   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7104 else
7105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7106 for as_dir in $PATH
7107 do
7108   IFS=$as_save_IFS
7109   test -z "$as_dir" && as_dir=.
7110     for ac_exec_ext in '' $ac_executable_extensions; do
7111   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7112     ac_cv_prog_ac_ct_OTOOL64="otool64"
7113     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7114     break 2
7115   fi
7116 done
7117   done
7118 IFS=$as_save_IFS
7119
7120 fi
7121 fi
7122 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7123 if test -n "$ac_ct_OTOOL64"; then
7124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7125 $as_echo "$ac_ct_OTOOL64" >&6; }
7126 else
7127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7128 $as_echo "no" >&6; }
7129 fi
7130
7131   if test "x$ac_ct_OTOOL64" = x; then
7132     OTOOL64=":"
7133   else
7134     case $cross_compiling:$ac_tool_warned in
7135 yes:)
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7137 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7138 ac_tool_warned=yes ;;
7139 esac
7140     OTOOL64=$ac_ct_OTOOL64
7141   fi
7142 else
7143   OTOOL64="$ac_cv_prog_OTOOL64"
7144 fi
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7173 $as_echo_n "checking for -single_module linker flag... " >&6; }
7174 if ${lt_cv_apple_cc_single_mod+:} false; then :
7175   $as_echo_n "(cached) " >&6
7176 else
7177   lt_cv_apple_cc_single_mod=no
7178       if test -z "${LT_MULTI_MODULE}"; then
7179         # By default we will add the -single_module flag. You can override
7180         # by either setting the environment variable LT_MULTI_MODULE
7181         # non-empty at configure time, or by adding -multi_module to the
7182         # link flags.
7183         rm -rf libconftest.dylib*
7184         echo "int foo(void){return 1;}" > conftest.c
7185         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7186 -dynamiclib -Wl,-single_module conftest.c" >&5
7187         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7188           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7189         _lt_result=$?
7190         # If there is a non-empty error log, and "single_module"
7191         # appears in it, assume the flag caused a linker warning
7192         if test -s conftest.err && $GREP single_module conftest.err; then
7193           cat conftest.err >&5
7194         # Otherwise, if the output was created with a 0 exit code from
7195         # the compiler, it worked.
7196         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7197           lt_cv_apple_cc_single_mod=yes
7198         else
7199           cat conftest.err >&5
7200         fi
7201         rm -rf libconftest.dylib*
7202         rm -f conftest.*
7203       fi
7204 fi
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7206 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7207
7208     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7209 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7210 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7211   $as_echo_n "(cached) " >&6
7212 else
7213   lt_cv_ld_exported_symbols_list=no
7214       save_LDFLAGS=$LDFLAGS
7215       echo "_main" > conftest.sym
7216       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7217       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7218 /* end confdefs.h.  */
7219
7220 int
7221 main ()
7222 {
7223
7224   ;
7225   return 0;
7226 }
7227 _ACEOF
7228 if ac_fn_c_try_link "$LINENO"; then :
7229   lt_cv_ld_exported_symbols_list=yes
7230 else
7231   lt_cv_ld_exported_symbols_list=no
7232 fi
7233 rm -f core conftest.err conftest.$ac_objext \
7234     conftest$ac_exeext conftest.$ac_ext
7235         LDFLAGS="$save_LDFLAGS"
7236
7237 fi
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7239 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7240
7241     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7242 $as_echo_n "checking for -force_load linker flag... " >&6; }
7243 if ${lt_cv_ld_force_load+:} false; then :
7244   $as_echo_n "(cached) " >&6
7245 else
7246   lt_cv_ld_force_load=no
7247       cat > conftest.c << _LT_EOF
7248 int forced_loaded() { return 2;}
7249 _LT_EOF
7250       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7251       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7252       echo "$AR cru libconftest.a conftest.o" >&5
7253       $AR cru libconftest.a conftest.o 2>&5
7254       echo "$RANLIB libconftest.a" >&5
7255       $RANLIB libconftest.a 2>&5
7256       cat > conftest.c << _LT_EOF
7257 int main() { return 0;}
7258 _LT_EOF
7259       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7260       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7261       _lt_result=$?
7262       if test -s conftest.err && $GREP force_load conftest.err; then
7263         cat conftest.err >&5
7264       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7265         lt_cv_ld_force_load=yes
7266       else
7267         cat conftest.err >&5
7268       fi
7269         rm -f conftest.err libconftest.a conftest conftest.c
7270         rm -rf conftest.dSYM
7271
7272 fi
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7274 $as_echo "$lt_cv_ld_force_load" >&6; }
7275     case $host_os in
7276     rhapsody* | darwin1.[012])
7277       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7278     darwin1.*)
7279       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7280     darwin*) # darwin 5.x on
7281       # if running on 10.5 or later, the deployment target defaults
7282       # to the OS version, if on x86, and 10.4, the deployment
7283       # target defaults to 10.4. Don't you love it?
7284       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7285         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7286           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7287         10.[012]*)
7288           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7289         10.*)
7290           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7291       esac
7292     ;;
7293   esac
7294     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7295       _lt_dar_single_mod='$single_module'
7296     fi
7297     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7298       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7299     else
7300       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7301     fi
7302     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7303       _lt_dsymutil='~$DSYMUTIL $lib || :'
7304     else
7305       _lt_dsymutil=
7306     fi
7307     ;;
7308   esac
7309
7310 ac_ext=c
7311 ac_cpp='$CPP $CPPFLAGS'
7312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7316 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7317 # On Suns, sometimes $CPP names a directory.
7318 if test -n "$CPP" && test -d "$CPP"; then
7319   CPP=
7320 fi
7321 if test -z "$CPP"; then
7322   if ${ac_cv_prog_CPP+:} false; then :
7323   $as_echo_n "(cached) " >&6
7324 else
7325       # Double quotes because CPP needs to be expanded
7326     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7327     do
7328       ac_preproc_ok=false
7329 for ac_c_preproc_warn_flag in '' yes
7330 do
7331   # Use a header file that comes with gcc, so configuring glibc
7332   # with a fresh cross-compiler works.
7333   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7334   # <limits.h> exists even on freestanding compilers.
7335   # On the NeXT, cc -E runs the code through the compiler's parser,
7336   # not just through cpp. "Syntax error" is here to catch this case.
7337   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7338 /* end confdefs.h.  */
7339 #ifdef __STDC__
7340 # include <limits.h>
7341 #else
7342 # include <assert.h>
7343 #endif
7344                      Syntax error
7345 _ACEOF
7346 if ac_fn_c_try_cpp "$LINENO"; then :
7347
7348 else
7349   # Broken: fails on valid input.
7350 continue
7351 fi
7352 rm -f conftest.err conftest.i conftest.$ac_ext
7353
7354   # OK, works on sane cases.  Now check whether nonexistent headers
7355   # can be detected and how.
7356   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357 /* end confdefs.h.  */
7358 #include <ac_nonexistent.h>
7359 _ACEOF
7360 if ac_fn_c_try_cpp "$LINENO"; then :
7361   # Broken: success on invalid input.
7362 continue
7363 else
7364   # Passes both tests.
7365 ac_preproc_ok=:
7366 break
7367 fi
7368 rm -f conftest.err conftest.i conftest.$ac_ext
7369
7370 done
7371 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7372 rm -f conftest.i conftest.err conftest.$ac_ext
7373 if $ac_preproc_ok; then :
7374   break
7375 fi
7376
7377     done
7378     ac_cv_prog_CPP=$CPP
7379
7380 fi
7381   CPP=$ac_cv_prog_CPP
7382 else
7383   ac_cv_prog_CPP=$CPP
7384 fi
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7386 $as_echo "$CPP" >&6; }
7387 ac_preproc_ok=false
7388 for ac_c_preproc_warn_flag in '' yes
7389 do
7390   # Use a header file that comes with gcc, so configuring glibc
7391   # with a fresh cross-compiler works.
7392   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7393   # <limits.h> exists even on freestanding compilers.
7394   # On the NeXT, cc -E runs the code through the compiler's parser,
7395   # not just through cpp. "Syntax error" is here to catch this case.
7396   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7397 /* end confdefs.h.  */
7398 #ifdef __STDC__
7399 # include <limits.h>
7400 #else
7401 # include <assert.h>
7402 #endif
7403                      Syntax error
7404 _ACEOF
7405 if ac_fn_c_try_cpp "$LINENO"; then :
7406
7407 else
7408   # Broken: fails on valid input.
7409 continue
7410 fi
7411 rm -f conftest.err conftest.i conftest.$ac_ext
7412
7413   # OK, works on sane cases.  Now check whether nonexistent headers
7414   # can be detected and how.
7415   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7416 /* end confdefs.h.  */
7417 #include <ac_nonexistent.h>
7418 _ACEOF
7419 if ac_fn_c_try_cpp "$LINENO"; then :
7420   # Broken: success on invalid input.
7421 continue
7422 else
7423   # Passes both tests.
7424 ac_preproc_ok=:
7425 break
7426 fi
7427 rm -f conftest.err conftest.i conftest.$ac_ext
7428
7429 done
7430 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7431 rm -f conftest.i conftest.err conftest.$ac_ext
7432 if $ac_preproc_ok; then :
7433
7434 else
7435   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7436 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7437 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7438 See \`config.log' for more details" "$LINENO" 5; }
7439 fi
7440
7441 ac_ext=c
7442 ac_cpp='$CPP $CPPFLAGS'
7443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7446
7447
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7449 $as_echo_n "checking for ANSI C header files... " >&6; }
7450 if ${ac_cv_header_stdc+:} false; then :
7451   $as_echo_n "(cached) " >&6
7452 else
7453   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7454 /* end confdefs.h.  */
7455 #include <stdlib.h>
7456 #include <stdarg.h>
7457 #include <string.h>
7458 #include <float.h>
7459
7460 int
7461 main ()
7462 {
7463
7464   ;
7465   return 0;
7466 }
7467 _ACEOF
7468 if ac_fn_c_try_compile "$LINENO"; then :
7469   ac_cv_header_stdc=yes
7470 else
7471   ac_cv_header_stdc=no
7472 fi
7473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7474
7475 if test $ac_cv_header_stdc = yes; then
7476   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7477   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7478 /* end confdefs.h.  */
7479 #include <string.h>
7480
7481 _ACEOF
7482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7483   $EGREP "memchr" >/dev/null 2>&1; then :
7484
7485 else
7486   ac_cv_header_stdc=no
7487 fi
7488 rm -f conftest*
7489
7490 fi
7491
7492 if test $ac_cv_header_stdc = yes; then
7493   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7494   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7495 /* end confdefs.h.  */
7496 #include <stdlib.h>
7497
7498 _ACEOF
7499 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7500   $EGREP "free" >/dev/null 2>&1; then :
7501
7502 else
7503   ac_cv_header_stdc=no
7504 fi
7505 rm -f conftest*
7506
7507 fi
7508
7509 if test $ac_cv_header_stdc = yes; then
7510   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7511   if test "$cross_compiling" = yes; then :
7512   :
7513 else
7514   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7515 /* end confdefs.h.  */
7516 #include <ctype.h>
7517 #include <stdlib.h>
7518 #if ((' ' & 0x0FF) == 0x020)
7519 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7520 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7521 #else
7522 # define ISLOWER(c) \
7523                    (('a' <= (c) && (c) <= 'i') \
7524                      || ('j' <= (c) && (c) <= 'r') \
7525                      || ('s' <= (c) && (c) <= 'z'))
7526 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7527 #endif
7528
7529 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7530 int
7531 main ()
7532 {
7533   int i;
7534   for (i = 0; i < 256; i++)
7535     if (XOR (islower (i), ISLOWER (i))
7536         || toupper (i) != TOUPPER (i))
7537       return 2;
7538   return 0;
7539 }
7540 _ACEOF
7541 if ac_fn_c_try_run "$LINENO"; then :
7542
7543 else
7544   ac_cv_header_stdc=no
7545 fi
7546 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7547   conftest.$ac_objext conftest.beam conftest.$ac_ext
7548 fi
7549
7550 fi
7551 fi
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7553 $as_echo "$ac_cv_header_stdc" >&6; }
7554 if test $ac_cv_header_stdc = yes; then
7555
7556 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7557
7558 fi
7559
7560 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7561 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7562                   inttypes.h stdint.h unistd.h
7563 do :
7564   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7565 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7566 "
7567 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7568   cat >>confdefs.h <<_ACEOF
7569 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7570 _ACEOF
7571
7572 fi
7573
7574 done
7575
7576
7577 for ac_header in dlfcn.h
7578 do :
7579   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7580 "
7581 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7582   cat >>confdefs.h <<_ACEOF
7583 #define HAVE_DLFCN_H 1
7584 _ACEOF
7585
7586 fi
7587
7588 done
7589
7590
7591
7592
7593
7594 # Set options
7595
7596
7597
7598         enable_dlopen=no
7599
7600
7601   enable_win32_dll=no
7602
7603
7604             # Check whether --enable-shared was given.
7605 if test "${enable_shared+set}" = set; then :
7606   enableval=$enable_shared; p=${PACKAGE-default}
7607     case $enableval in
7608     yes) enable_shared=yes ;;
7609     no) enable_shared=no ;;
7610     *)
7611       enable_shared=no
7612       # Look at the argument we got.  We use all the common list separators.
7613       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7614       for pkg in $enableval; do
7615         IFS="$lt_save_ifs"
7616         if test "X$pkg" = "X$p"; then
7617           enable_shared=yes
7618         fi
7619       done
7620       IFS="$lt_save_ifs"
7621       ;;
7622     esac
7623 else
7624   enable_shared=yes
7625 fi
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635   # Check whether --enable-static was given.
7636 if test "${enable_static+set}" = set; then :
7637   enableval=$enable_static; p=${PACKAGE-default}
7638     case $enableval in
7639     yes) enable_static=yes ;;
7640     no) enable_static=no ;;
7641     *)
7642      enable_static=no
7643       # Look at the argument we got.  We use all the common list separators.
7644       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7645       for pkg in $enableval; do
7646         IFS="$lt_save_ifs"
7647         if test "X$pkg" = "X$p"; then
7648           enable_static=yes
7649         fi
7650       done
7651       IFS="$lt_save_ifs"
7652       ;;
7653     esac
7654 else
7655   enable_static=yes
7656 fi
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667 # Check whether --with-pic was given.
7668 if test "${with_pic+set}" = set; then :
7669   withval=$with_pic; lt_p=${PACKAGE-default}
7670     case $withval in
7671     yes|no) pic_mode=$withval ;;
7672     *)
7673       pic_mode=default
7674       # Look at the argument we got.  We use all the common list separators.
7675       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7676       for lt_pkg in $withval; do
7677         IFS="$lt_save_ifs"
7678         if test "X$lt_pkg" = "X$lt_p"; then
7679           pic_mode=yes
7680         fi
7681       done
7682       IFS="$lt_save_ifs"
7683       ;;
7684     esac
7685 else
7686   pic_mode=default
7687 fi
7688
7689
7690 test -z "$pic_mode" && pic_mode=default
7691
7692
7693
7694
7695
7696
7697
7698   # Check whether --enable-fast-install was given.
7699 if test "${enable_fast_install+set}" = set; then :
7700   enableval=$enable_fast_install; p=${PACKAGE-default}
7701     case $enableval in
7702     yes) enable_fast_install=yes ;;
7703     no) enable_fast_install=no ;;
7704     *)
7705       enable_fast_install=no
7706       # Look at the argument we got.  We use all the common list separators.
7707       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7708       for pkg in $enableval; do
7709         IFS="$lt_save_ifs"
7710         if test "X$pkg" = "X$p"; then
7711           enable_fast_install=yes
7712         fi
7713       done
7714       IFS="$lt_save_ifs"
7715       ;;
7716     esac
7717 else
7718   enable_fast_install=yes
7719 fi
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731 # This can be used to rebuild libtool when needed
7732 LIBTOOL_DEPS="$ltmain"
7733
7734 # Always use our own libtool.
7735 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766 test -z "$LN_S" && LN_S="ln -s"
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781 if test -n "${ZSH_VERSION+set}" ; then
7782    setopt NO_GLOB_SUBST
7783 fi
7784
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7786 $as_echo_n "checking for objdir... " >&6; }
7787 if ${lt_cv_objdir+:} false; then :
7788   $as_echo_n "(cached) " >&6
7789 else
7790   rm -f .libs 2>/dev/null
7791 mkdir .libs 2>/dev/null
7792 if test -d .libs; then
7793   lt_cv_objdir=.libs
7794 else
7795   # MS-DOS does not allow filenames that begin with a dot.
7796   lt_cv_objdir=_libs
7797 fi
7798 rmdir .libs 2>/dev/null
7799 fi
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7801 $as_echo "$lt_cv_objdir" >&6; }
7802 objdir=$lt_cv_objdir
7803
7804
7805
7806
7807
7808 cat >>confdefs.h <<_ACEOF
7809 #define LT_OBJDIR "$lt_cv_objdir/"
7810 _ACEOF
7811
7812
7813
7814
7815 case $host_os in
7816 aix3*)
7817   # AIX sometimes has problems with the GCC collect2 program.  For some
7818   # reason, if we set the COLLECT_NAMES environment variable, the problems
7819   # vanish in a puff of smoke.
7820   if test "X${COLLECT_NAMES+set}" != Xset; then
7821     COLLECT_NAMES=
7822     export COLLECT_NAMES
7823   fi
7824   ;;
7825 esac
7826
7827 # Global variables:
7828 ofile=libtool
7829 can_build_shared=yes
7830
7831 # All known linkers require a `.a' archive for static linking (except MSVC,
7832 # which needs '.lib').
7833 libext=a
7834
7835 with_gnu_ld="$lt_cv_prog_gnu_ld"
7836
7837 old_CC="$CC"
7838 old_CFLAGS="$CFLAGS"
7839
7840 # Set sane defaults for various variables
7841 test -z "$CC" && CC=cc
7842 test -z "$LTCC" && LTCC=$CC
7843 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7844 test -z "$LD" && LD=ld
7845 test -z "$ac_objext" && ac_objext=o
7846
7847 for cc_temp in $compiler""; do
7848   case $cc_temp in
7849     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7850     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7851     \-*) ;;
7852     *) break;;
7853   esac
7854 done
7855 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7856
7857
7858 # Only perform the check for file, if the check method requires it
7859 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7860 case $deplibs_check_method in
7861 file_magic*)
7862   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7863     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7864 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7865 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7866   $as_echo_n "(cached) " >&6
7867 else
7868   case $MAGIC_CMD in
7869 [\\/*] |  ?:[\\/]*)
7870   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7871   ;;
7872 *)
7873   lt_save_MAGIC_CMD="$MAGIC_CMD"
7874   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7875   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7876   for ac_dir in $ac_dummy; do
7877     IFS="$lt_save_ifs"
7878     test -z "$ac_dir" && ac_dir=.
7879     if test -f $ac_dir/${ac_tool_prefix}file; then
7880       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7881       if test -n "$file_magic_test_file"; then
7882         case $deplibs_check_method in
7883         "file_magic "*)
7884           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7885           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7886           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7887             $EGREP "$file_magic_regex" > /dev/null; then
7888             :
7889           else
7890             cat <<_LT_EOF 1>&2
7891
7892 *** Warning: the command libtool uses to detect shared libraries,
7893 *** $file_magic_cmd, produces output that libtool cannot recognize.
7894 *** The result is that libtool may fail to recognize shared libraries
7895 *** as such.  This will affect the creation of libtool libraries that
7896 *** depend on shared libraries, but programs linked with such libtool
7897 *** libraries will work regardless of this problem.  Nevertheless, you
7898 *** may want to report the problem to your system manager and/or to
7899 *** bug-libtool@gnu.org
7900
7901 _LT_EOF
7902           fi ;;
7903         esac
7904       fi
7905       break
7906     fi
7907   done
7908   IFS="$lt_save_ifs"
7909   MAGIC_CMD="$lt_save_MAGIC_CMD"
7910   ;;
7911 esac
7912 fi
7913
7914 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7915 if test -n "$MAGIC_CMD"; then
7916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7917 $as_echo "$MAGIC_CMD" >&6; }
7918 else
7919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7920 $as_echo "no" >&6; }
7921 fi
7922
7923
7924
7925
7926
7927 if test -z "$lt_cv_path_MAGIC_CMD"; then
7928   if test -n "$ac_tool_prefix"; then
7929     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7930 $as_echo_n "checking for file... " >&6; }
7931 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7932   $as_echo_n "(cached) " >&6
7933 else
7934   case $MAGIC_CMD in
7935 [\\/*] |  ?:[\\/]*)
7936   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7937   ;;
7938 *)
7939   lt_save_MAGIC_CMD="$MAGIC_CMD"
7940   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7941   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7942   for ac_dir in $ac_dummy; do
7943     IFS="$lt_save_ifs"
7944     test -z "$ac_dir" && ac_dir=.
7945     if test -f $ac_dir/file; then
7946       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7947       if test -n "$file_magic_test_file"; then
7948         case $deplibs_check_method in
7949         "file_magic "*)
7950           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7951           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7952           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7953             $EGREP "$file_magic_regex" > /dev/null; then
7954             :
7955           else
7956             cat <<_LT_EOF 1>&2
7957
7958 *** Warning: the command libtool uses to detect shared libraries,
7959 *** $file_magic_cmd, produces output that libtool cannot recognize.
7960 *** The result is that libtool may fail to recognize shared libraries
7961 *** as such.  This will affect the creation of libtool libraries that
7962 *** depend on shared libraries, but programs linked with such libtool
7963 *** libraries will work regardless of this problem.  Nevertheless, you
7964 *** may want to report the problem to your system manager and/or to
7965 *** bug-libtool@gnu.org
7966
7967 _LT_EOF
7968           fi ;;
7969         esac
7970       fi
7971       break
7972     fi
7973   done
7974   IFS="$lt_save_ifs"
7975   MAGIC_CMD="$lt_save_MAGIC_CMD"
7976   ;;
7977 esac
7978 fi
7979
7980 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7981 if test -n "$MAGIC_CMD"; then
7982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7983 $as_echo "$MAGIC_CMD" >&6; }
7984 else
7985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7986 $as_echo "no" >&6; }
7987 fi
7988
7989
7990   else
7991     MAGIC_CMD=:
7992   fi
7993 fi
7994
7995   fi
7996   ;;
7997 esac
7998
7999 # Use C for the default configuration in the libtool script
8000
8001 lt_save_CC="$CC"
8002 ac_ext=c
8003 ac_cpp='$CPP $CPPFLAGS'
8004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8007
8008
8009 # Source file extension for C test sources.
8010 ac_ext=c
8011
8012 # Object file extension for compiled C test sources.
8013 objext=o
8014 objext=$objext
8015
8016 # Code to be used in simple compile tests
8017 lt_simple_compile_test_code="int some_variable = 0;"
8018
8019 # Code to be used in simple link tests
8020 lt_simple_link_test_code='int main(){return(0);}'
8021
8022
8023
8024
8025
8026
8027
8028 # If no C compiler was specified, use CC.
8029 LTCC=${LTCC-"$CC"}
8030
8031 # If no C compiler flags were specified, use CFLAGS.
8032 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8033
8034 # Allow CC to be a program name with arguments.
8035 compiler=$CC
8036
8037 # Save the default compiler, since it gets overwritten when the other
8038 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8039 compiler_DEFAULT=$CC
8040
8041 # save warnings/boilerplate of simple test code
8042 ac_outfile=conftest.$ac_objext
8043 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8044 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8045 _lt_compiler_boilerplate=`cat conftest.err`
8046 $RM conftest*
8047
8048 ac_outfile=conftest.$ac_objext
8049 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8050 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8051 _lt_linker_boilerplate=`cat conftest.err`
8052 $RM -r conftest*
8053
8054
8055 if test -n "$compiler"; then
8056
8057 lt_prog_compiler_no_builtin_flag=
8058
8059 if test "$GCC" = yes; then
8060   case $cc_basename in
8061   nvcc*)
8062     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8063   *)
8064     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8065   esac
8066
8067   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8068 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8069 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8070   $as_echo_n "(cached) " >&6
8071 else
8072   lt_cv_prog_compiler_rtti_exceptions=no
8073    ac_outfile=conftest.$ac_objext
8074    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8075    lt_compiler_flag="-fno-rtti -fno-exceptions"
8076    # Insert the option either (1) after the last *FLAGS variable, or
8077    # (2) before a word containing "conftest.", or (3) at the end.
8078    # Note that $ac_compile itself does not contain backslashes and begins
8079    # with a dollar sign (not a hyphen), so the echo should work correctly.
8080    # The option is referenced via a variable to avoid confusing sed.
8081    lt_compile=`echo "$ac_compile" | $SED \
8082    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8083    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8084    -e 's:$: $lt_compiler_flag:'`
8085    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8086    (eval "$lt_compile" 2>conftest.err)
8087    ac_status=$?
8088    cat conftest.err >&5
8089    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8090    if (exit $ac_status) && test -s "$ac_outfile"; then
8091      # The compiler can only warn and ignore the option if not recognized
8092      # So say no if there are warnings other than the usual output.
8093      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8094      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8095      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8096        lt_cv_prog_compiler_rtti_exceptions=yes
8097      fi
8098    fi
8099    $RM conftest*
8100
8101 fi
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8103 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8104
8105 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8106     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8107 else
8108     :
8109 fi
8110
8111 fi
8112
8113
8114
8115
8116
8117
8118   lt_prog_compiler_wl=
8119 lt_prog_compiler_pic=
8120 lt_prog_compiler_static=
8121
8122
8123   if test "$GCC" = yes; then
8124     lt_prog_compiler_wl='-Wl,'
8125     lt_prog_compiler_static='-static'
8126
8127     case $host_os in
8128       aix*)
8129       # All AIX code is PIC.
8130       if test "$host_cpu" = ia64; then
8131         # AIX 5 now supports IA64 processor
8132         lt_prog_compiler_static='-Bstatic'
8133       fi
8134       ;;
8135
8136     amigaos*)
8137       case $host_cpu in
8138       powerpc)
8139             # see comment about AmigaOS4 .so support
8140             lt_prog_compiler_pic='-fPIC'
8141         ;;
8142       m68k)
8143             # FIXME: we need at least 68020 code to build shared libraries, but
8144             # adding the `-m68020' flag to GCC prevents building anything better,
8145             # like `-m68040'.
8146             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8147         ;;
8148       esac
8149       ;;
8150
8151     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8152       # PIC is the default for these OSes.
8153       ;;
8154
8155     mingw* | cygwin* | pw32* | os2* | cegcc*)
8156       # This hack is so that the source file can tell whether it is being
8157       # built for inclusion in a dll (and should export symbols for example).
8158       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8159       # (--disable-auto-import) libraries
8160       lt_prog_compiler_pic='-DDLL_EXPORT'
8161       ;;
8162
8163     darwin* | rhapsody*)
8164       # PIC is the default on this platform
8165       # Common symbols not allowed in MH_DYLIB files
8166       lt_prog_compiler_pic='-fno-common'
8167       ;;
8168
8169     haiku*)
8170       # PIC is the default for Haiku.
8171       # The "-static" flag exists, but is broken.
8172       lt_prog_compiler_static=
8173       ;;
8174
8175     hpux*)
8176       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8177       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8178       # sets the default TLS model and affects inlining.
8179       case $host_cpu in
8180       hppa*64*)
8181         # +Z the default
8182         ;;
8183       *)
8184         lt_prog_compiler_pic='-fPIC'
8185         ;;
8186       esac
8187       ;;
8188
8189     interix[3-9]*)
8190       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8191       # Instead, we relocate shared libraries at runtime.
8192       ;;
8193
8194     msdosdjgpp*)
8195       # Just because we use GCC doesn't mean we suddenly get shared libraries
8196       # on systems that don't support them.
8197       lt_prog_compiler_can_build_shared=no
8198       enable_shared=no
8199       ;;
8200
8201     *nto* | *qnx*)
8202       # QNX uses GNU C++, but need to define -shared option too, otherwise
8203       # it will coredump.
8204       lt_prog_compiler_pic='-fPIC -shared'
8205       ;;
8206
8207     sysv4*MP*)
8208       if test -d /usr/nec; then
8209         lt_prog_compiler_pic=-Kconform_pic
8210       fi
8211       ;;
8212
8213     *)
8214       lt_prog_compiler_pic='-fPIC'
8215       ;;
8216     esac
8217
8218     case $cc_basename in
8219     nvcc*) # Cuda Compiler Driver 2.2
8220       lt_prog_compiler_wl='-Xlinker '
8221       if test -n "$lt_prog_compiler_pic"; then
8222         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8223       fi
8224       ;;
8225     esac
8226   else
8227     # PORTME Check for flag to pass linker flags through the system compiler.
8228     case $host_os in
8229     aix*)
8230       lt_prog_compiler_wl='-Wl,'
8231       if test "$host_cpu" = ia64; then
8232         # AIX 5 now supports IA64 processor
8233         lt_prog_compiler_static='-Bstatic'
8234       else
8235         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8236       fi
8237       ;;
8238
8239     mingw* | cygwin* | pw32* | os2* | cegcc*)
8240       # This hack is so that the source file can tell whether it is being
8241       # built for inclusion in a dll (and should export symbols for example).
8242       lt_prog_compiler_pic='-DDLL_EXPORT'
8243       ;;
8244
8245     hpux9* | hpux10* | hpux11*)
8246       lt_prog_compiler_wl='-Wl,'
8247       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8248       # not for PA HP-UX.
8249       case $host_cpu in
8250       hppa*64*|ia64*)
8251         # +Z the default
8252         ;;
8253       *)
8254         lt_prog_compiler_pic='+Z'
8255         ;;
8256       esac
8257       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8258       lt_prog_compiler_static='${wl}-a ${wl}archive'
8259       ;;
8260
8261     irix5* | irix6* | nonstopux*)
8262       lt_prog_compiler_wl='-Wl,'
8263       # PIC (with -KPIC) is the default.
8264       lt_prog_compiler_static='-non_shared'
8265       ;;
8266
8267     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8268       case $cc_basename in
8269       # old Intel for x86_64 which still supported -KPIC.
8270       ecc*)
8271         lt_prog_compiler_wl='-Wl,'
8272         lt_prog_compiler_pic='-KPIC'
8273         lt_prog_compiler_static='-static'
8274         ;;
8275       # icc used to be incompatible with GCC.
8276       # ICC 10 doesn't accept -KPIC any more.
8277       icc* | ifort*)
8278         lt_prog_compiler_wl='-Wl,'
8279         lt_prog_compiler_pic='-fPIC'
8280         lt_prog_compiler_static='-static'
8281         ;;
8282       # Lahey Fortran 8.1.
8283       lf95*)
8284         lt_prog_compiler_wl='-Wl,'
8285         lt_prog_compiler_pic='--shared'
8286         lt_prog_compiler_static='--static'
8287         ;;
8288       nagfor*)
8289         # NAG Fortran compiler
8290         lt_prog_compiler_wl='-Wl,-Wl,,'
8291         lt_prog_compiler_pic='-PIC'
8292         lt_prog_compiler_static='-Bstatic'
8293         ;;
8294       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8295         # Portland Group compilers (*not* the Pentium gcc compiler,
8296         # which looks to be a dead project)
8297         lt_prog_compiler_wl='-Wl,'
8298         lt_prog_compiler_pic='-fpic'
8299         lt_prog_compiler_static='-Bstatic'
8300         ;;
8301       ccc*)
8302         lt_prog_compiler_wl='-Wl,'
8303         # All Alpha code is PIC.
8304         lt_prog_compiler_static='-non_shared'
8305         ;;
8306       xl* | bgxl* | bgf* | mpixl*)
8307         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8308         lt_prog_compiler_wl='-Wl,'
8309         lt_prog_compiler_pic='-qpic'
8310         lt_prog_compiler_static='-qstaticlink'
8311         ;;
8312       *)
8313         case `$CC -V 2>&1 | sed 5q` in
8314         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8315           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8316           lt_prog_compiler_pic='-KPIC'
8317           lt_prog_compiler_static='-Bstatic'
8318           lt_prog_compiler_wl=''
8319           ;;
8320         *Sun\ F* | *Sun*Fortran*)
8321           lt_prog_compiler_pic='-KPIC'
8322           lt_prog_compiler_static='-Bstatic'
8323           lt_prog_compiler_wl='-Qoption ld '
8324           ;;
8325         *Sun\ C*)
8326           # Sun C 5.9
8327           lt_prog_compiler_pic='-KPIC'
8328           lt_prog_compiler_static='-Bstatic'
8329           lt_prog_compiler_wl='-Wl,'
8330           ;;
8331         *Intel*\ [CF]*Compiler*)
8332           lt_prog_compiler_wl='-Wl,'
8333           lt_prog_compiler_pic='-fPIC'
8334           lt_prog_compiler_static='-static'
8335           ;;
8336         *Portland\ Group*)
8337           lt_prog_compiler_wl='-Wl,'
8338           lt_prog_compiler_pic='-fpic'
8339           lt_prog_compiler_static='-Bstatic'
8340           ;;
8341         esac
8342         ;;
8343       esac
8344       ;;
8345
8346     newsos6)
8347       lt_prog_compiler_pic='-KPIC'
8348       lt_prog_compiler_static='-Bstatic'
8349       ;;
8350
8351     *nto* | *qnx*)
8352       # QNX uses GNU C++, but need to define -shared option too, otherwise
8353       # it will coredump.
8354       lt_prog_compiler_pic='-fPIC -shared'
8355       ;;
8356
8357     osf3* | osf4* | osf5*)
8358       lt_prog_compiler_wl='-Wl,'
8359       # All OSF/1 code is PIC.
8360       lt_prog_compiler_static='-non_shared'
8361       ;;
8362
8363     rdos*)
8364       lt_prog_compiler_static='-non_shared'
8365       ;;
8366
8367     solaris*)
8368       lt_prog_compiler_pic='-KPIC'
8369       lt_prog_compiler_static='-Bstatic'
8370       case $cc_basename in
8371       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8372         lt_prog_compiler_wl='-Qoption ld ';;
8373       *)
8374         lt_prog_compiler_wl='-Wl,';;
8375       esac
8376       ;;
8377
8378     sunos4*)
8379       lt_prog_compiler_wl='-Qoption ld '
8380       lt_prog_compiler_pic='-PIC'
8381       lt_prog_compiler_static='-Bstatic'
8382       ;;
8383
8384     sysv4 | sysv4.2uw2* | sysv4.3*)
8385       lt_prog_compiler_wl='-Wl,'
8386       lt_prog_compiler_pic='-KPIC'
8387       lt_prog_compiler_static='-Bstatic'
8388       ;;
8389
8390     sysv4*MP*)
8391       if test -d /usr/nec ;then
8392         lt_prog_compiler_pic='-Kconform_pic'
8393         lt_prog_compiler_static='-Bstatic'
8394       fi
8395       ;;
8396
8397     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8398       lt_prog_compiler_wl='-Wl,'
8399       lt_prog_compiler_pic='-KPIC'
8400       lt_prog_compiler_static='-Bstatic'
8401       ;;
8402
8403     unicos*)
8404       lt_prog_compiler_wl='-Wl,'
8405       lt_prog_compiler_can_build_shared=no
8406       ;;
8407
8408     uts4*)
8409       lt_prog_compiler_pic='-pic'
8410       lt_prog_compiler_static='-Bstatic'
8411       ;;
8412
8413     *)
8414       lt_prog_compiler_can_build_shared=no
8415       ;;
8416     esac
8417   fi
8418
8419 case $host_os in
8420   # For platforms which do not support PIC, -DPIC is meaningless:
8421   *djgpp*)
8422     lt_prog_compiler_pic=
8423     ;;
8424   *)
8425     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8426     ;;
8427 esac
8428
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8430 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8431 if ${lt_cv_prog_compiler_pic+:} false; then :
8432   $as_echo_n "(cached) " >&6
8433 else
8434   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8435 fi
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8437 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8438 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8439
8440 #
8441 # Check to make sure the PIC flag actually works.
8442 #
8443 if test -n "$lt_prog_compiler_pic"; then
8444   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8445 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8446 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8447   $as_echo_n "(cached) " >&6
8448 else
8449   lt_cv_prog_compiler_pic_works=no
8450    ac_outfile=conftest.$ac_objext
8451    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8452    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8453    # Insert the option either (1) after the last *FLAGS variable, or
8454    # (2) before a word containing "conftest.", or (3) at the end.
8455    # Note that $ac_compile itself does not contain backslashes and begins
8456    # with a dollar sign (not a hyphen), so the echo should work correctly.
8457    # The option is referenced via a variable to avoid confusing sed.
8458    lt_compile=`echo "$ac_compile" | $SED \
8459    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8460    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8461    -e 's:$: $lt_compiler_flag:'`
8462    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8463    (eval "$lt_compile" 2>conftest.err)
8464    ac_status=$?
8465    cat conftest.err >&5
8466    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467    if (exit $ac_status) && test -s "$ac_outfile"; then
8468      # The compiler can only warn and ignore the option if not recognized
8469      # So say no if there are warnings other than the usual output.
8470      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8471      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8472      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8473        lt_cv_prog_compiler_pic_works=yes
8474      fi
8475    fi
8476    $RM conftest*
8477
8478 fi
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8480 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8481
8482 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8483     case $lt_prog_compiler_pic in
8484      "" | " "*) ;;
8485      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8486      esac
8487 else
8488     lt_prog_compiler_pic=
8489      lt_prog_compiler_can_build_shared=no
8490 fi
8491
8492 fi
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504 #
8505 # Check to make sure the static flag actually works.
8506 #
8507 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8509 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8510 if ${lt_cv_prog_compiler_static_works+:} false; then :
8511   $as_echo_n "(cached) " >&6
8512 else
8513   lt_cv_prog_compiler_static_works=no
8514    save_LDFLAGS="$LDFLAGS"
8515    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8516    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8517    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8518      # The linker can only warn and ignore the option if not recognized
8519      # So say no if there are warnings
8520      if test -s conftest.err; then
8521        # Append any errors to the config.log.
8522        cat conftest.err 1>&5
8523        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8524        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8525        if diff conftest.exp conftest.er2 >/dev/null; then
8526          lt_cv_prog_compiler_static_works=yes
8527        fi
8528      else
8529        lt_cv_prog_compiler_static_works=yes
8530      fi
8531    fi
8532    $RM -r conftest*
8533    LDFLAGS="$save_LDFLAGS"
8534
8535 fi
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8537 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8538
8539 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8540     :
8541 else
8542     lt_prog_compiler_static=
8543 fi
8544
8545
8546
8547
8548
8549
8550
8551   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8552 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8553 if ${lt_cv_prog_compiler_c_o+:} false; then :
8554   $as_echo_n "(cached) " >&6
8555 else
8556   lt_cv_prog_compiler_c_o=no
8557    $RM -r conftest 2>/dev/null
8558    mkdir conftest
8559    cd conftest
8560    mkdir out
8561    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8562
8563    lt_compiler_flag="-o out/conftest2.$ac_objext"
8564    # Insert the option either (1) after the last *FLAGS variable, or
8565    # (2) before a word containing "conftest.", or (3) at the end.
8566    # Note that $ac_compile itself does not contain backslashes and begins
8567    # with a dollar sign (not a hyphen), so the echo should work correctly.
8568    lt_compile=`echo "$ac_compile" | $SED \
8569    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8570    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8571    -e 's:$: $lt_compiler_flag:'`
8572    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8573    (eval "$lt_compile" 2>out/conftest.err)
8574    ac_status=$?
8575    cat out/conftest.err >&5
8576    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8578    then
8579      # The compiler can only warn and ignore the option if not recognized
8580      # So say no if there are warnings
8581      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8582      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8583      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8584        lt_cv_prog_compiler_c_o=yes
8585      fi
8586    fi
8587    chmod u+w . 2>&5
8588    $RM conftest*
8589    # SGI C++ compiler will create directory out/ii_files/ for
8590    # template instantiation
8591    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8592    $RM out/* && rmdir out
8593    cd ..
8594    $RM -r conftest
8595    $RM conftest*
8596
8597 fi
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8599 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8600
8601
8602
8603
8604
8605
8606   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8607 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8608 if ${lt_cv_prog_compiler_c_o+:} false; then :
8609   $as_echo_n "(cached) " >&6
8610 else
8611   lt_cv_prog_compiler_c_o=no
8612    $RM -r conftest 2>/dev/null
8613    mkdir conftest
8614    cd conftest
8615    mkdir out
8616    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8617
8618    lt_compiler_flag="-o out/conftest2.$ac_objext"
8619    # Insert the option either (1) after the last *FLAGS variable, or
8620    # (2) before a word containing "conftest.", or (3) at the end.
8621    # Note that $ac_compile itself does not contain backslashes and begins
8622    # with a dollar sign (not a hyphen), so the echo should work correctly.
8623    lt_compile=`echo "$ac_compile" | $SED \
8624    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8625    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8626    -e 's:$: $lt_compiler_flag:'`
8627    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8628    (eval "$lt_compile" 2>out/conftest.err)
8629    ac_status=$?
8630    cat out/conftest.err >&5
8631    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8633    then
8634      # The compiler can only warn and ignore the option if not recognized
8635      # So say no if there are warnings
8636      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8637      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8638      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8639        lt_cv_prog_compiler_c_o=yes
8640      fi
8641    fi
8642    chmod u+w . 2>&5
8643    $RM conftest*
8644    # SGI C++ compiler will create directory out/ii_files/ for
8645    # template instantiation
8646    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8647    $RM out/* && rmdir out
8648    cd ..
8649    $RM -r conftest
8650    $RM conftest*
8651
8652 fi
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8654 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8655
8656
8657
8658
8659 hard_links="nottested"
8660 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8661   # do not overwrite the value of need_locks provided by the user
8662   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8663 $as_echo_n "checking if we can lock with hard links... " >&6; }
8664   hard_links=yes
8665   $RM conftest*
8666   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8667   touch conftest.a
8668   ln conftest.a conftest.b 2>&5 || hard_links=no
8669   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8671 $as_echo "$hard_links" >&6; }
8672   if test "$hard_links" = no; then
8673     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8674 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8675     need_locks=warn
8676   fi
8677 else
8678   need_locks=no
8679 fi
8680
8681
8682
8683
8684
8685
8686   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8687 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8688
8689   runpath_var=
8690   allow_undefined_flag=
8691   always_export_symbols=no
8692   archive_cmds=
8693   archive_expsym_cmds=
8694   compiler_needs_object=no
8695   enable_shared_with_static_runtimes=no
8696   export_dynamic_flag_spec=
8697   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8698   hardcode_automatic=no
8699   hardcode_direct=no
8700   hardcode_direct_absolute=no
8701   hardcode_libdir_flag_spec=
8702   hardcode_libdir_separator=
8703   hardcode_minus_L=no
8704   hardcode_shlibpath_var=unsupported
8705   inherit_rpath=no
8706   link_all_deplibs=unknown
8707   module_cmds=
8708   module_expsym_cmds=
8709   old_archive_from_new_cmds=
8710   old_archive_from_expsyms_cmds=
8711   thread_safe_flag_spec=
8712   whole_archive_flag_spec=
8713   # include_expsyms should be a list of space-separated symbols to be *always*
8714   # included in the symbol list
8715   include_expsyms=
8716   # exclude_expsyms can be an extended regexp of symbols to exclude
8717   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8718   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8719   # as well as any symbol that contains `d'.
8720   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8721   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8722   # platforms (ab)use it in PIC code, but their linkers get confused if
8723   # the symbol is explicitly referenced.  Since portable code cannot
8724   # rely on this symbol name, it's probably fine to never include it in
8725   # preloaded symbol tables.
8726   # Exclude shared library initialization/finalization symbols.
8727   extract_expsyms_cmds=
8728
8729   case $host_os in
8730   cygwin* | mingw* | pw32* | cegcc*)
8731     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8732     # When not using gcc, we currently assume that we are using
8733     # Microsoft Visual C++.
8734     if test "$GCC" != yes; then
8735       with_gnu_ld=no
8736     fi
8737     ;;
8738   interix*)
8739     # we just hope/assume this is gcc and not c89 (= MSVC++)
8740     with_gnu_ld=yes
8741     ;;
8742   openbsd*)
8743     with_gnu_ld=no
8744     ;;
8745   linux* | k*bsd*-gnu | gnu*)
8746     link_all_deplibs=no
8747     ;;
8748   esac
8749
8750   ld_shlibs=yes
8751
8752   # On some targets, GNU ld is compatible enough with the native linker
8753   # that we're better off using the native interface for both.
8754   lt_use_gnu_ld_interface=no
8755   if test "$with_gnu_ld" = yes; then
8756     case $host_os in
8757       aix*)
8758         # The AIX port of GNU ld has always aspired to compatibility
8759         # with the native linker.  However, as the warning in the GNU ld
8760         # block says, versions before 2.19.5* couldn't really create working
8761         # shared libraries, regardless of the interface used.
8762         case `$LD -v 2>&1` in
8763           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8764           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8765           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8766           *)
8767             lt_use_gnu_ld_interface=yes
8768             ;;
8769         esac
8770         ;;
8771       *)
8772         lt_use_gnu_ld_interface=yes
8773         ;;
8774     esac
8775   fi
8776
8777   if test "$lt_use_gnu_ld_interface" = yes; then
8778     # If archive_cmds runs LD, not CC, wlarc should be empty
8779     wlarc='${wl}'
8780
8781     # Set some defaults for GNU ld with shared library support. These
8782     # are reset later if shared libraries are not supported. Putting them
8783     # here allows them to be overridden if necessary.
8784     runpath_var=LD_RUN_PATH
8785     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8786     export_dynamic_flag_spec='${wl}--export-dynamic'
8787     # ancient GNU ld didn't support --whole-archive et. al.
8788     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8789       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8790     else
8791       whole_archive_flag_spec=
8792     fi
8793     supports_anon_versioning=no
8794     case `$LD -v 2>&1` in
8795       *GNU\ gold*) supports_anon_versioning=yes ;;
8796       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8797       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8798       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8799       *\ 2.11.*) ;; # other 2.11 versions
8800       *) supports_anon_versioning=yes ;;
8801     esac
8802
8803     # See if GNU ld supports shared libraries.
8804     case $host_os in
8805     aix[3-9]*)
8806       # On AIX/PPC, the GNU linker is very broken
8807       if test "$host_cpu" != ia64; then
8808         ld_shlibs=no
8809         cat <<_LT_EOF 1>&2
8810
8811 *** Warning: the GNU linker, at least up to release 2.19, is reported
8812 *** to be unable to reliably create shared libraries on AIX.
8813 *** Therefore, libtool is disabling shared libraries support.  If you
8814 *** really care for shared libraries, you may want to install binutils
8815 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8816 *** You will then need to restart the configuration process.
8817
8818 _LT_EOF
8819       fi
8820       ;;
8821
8822     amigaos*)
8823       case $host_cpu in
8824       powerpc)
8825             # see comment about AmigaOS4 .so support
8826             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8827             archive_expsym_cmds=''
8828         ;;
8829       m68k)
8830             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)'
8831             hardcode_libdir_flag_spec='-L$libdir'
8832             hardcode_minus_L=yes
8833         ;;
8834       esac
8835       ;;
8836
8837     beos*)
8838       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8839         allow_undefined_flag=unsupported
8840         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8841         # support --undefined.  This deserves some investigation.  FIXME
8842         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8843       else
8844         ld_shlibs=no
8845       fi
8846       ;;
8847
8848     cygwin* | mingw* | pw32* | cegcc*)
8849       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8850       # as there is no search path for DLLs.
8851       hardcode_libdir_flag_spec='-L$libdir'
8852       export_dynamic_flag_spec='${wl}--export-all-symbols'
8853       allow_undefined_flag=unsupported
8854       always_export_symbols=no
8855       enable_shared_with_static_runtimes=yes
8856       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'
8857       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8858
8859       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8860         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8861         # If the export-symbols file already is a .def file (1st line
8862         # is EXPORTS), use it as is; otherwise, prepend...
8863         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8864           cp $export_symbols $output_objdir/$soname.def;
8865         else
8866           echo EXPORTS > $output_objdir/$soname.def;
8867           cat $export_symbols >> $output_objdir/$soname.def;
8868         fi~
8869         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8870       else
8871         ld_shlibs=no
8872       fi
8873       ;;
8874
8875     haiku*)
8876       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8877       link_all_deplibs=yes
8878       ;;
8879
8880     interix[3-9]*)
8881       hardcode_direct=no
8882       hardcode_shlibpath_var=no
8883       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8884       export_dynamic_flag_spec='${wl}-E'
8885       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8886       # Instead, shared libraries are loaded at an image base (0x10000000 by
8887       # default) and relocated if they conflict, which is a slow very memory
8888       # consuming and fragmenting process.  To avoid this, we pick a random,
8889       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8890       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8891       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8892       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'
8893       ;;
8894
8895     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8896       tmp_diet=no
8897       if test "$host_os" = linux-dietlibc; then
8898         case $cc_basename in
8899           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8900         esac
8901       fi
8902       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8903          && test "$tmp_diet" = no
8904       then
8905         tmp_addflag=' $pic_flag'
8906         tmp_sharedflag='-shared'
8907         case $cc_basename,$host_cpu in
8908         pgcc*)                          # Portland Group C compiler
8909           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'
8910           tmp_addflag=' $pic_flag'
8911           ;;
8912         pgf77* | pgf90* | pgf95* | pgfortran*)
8913                                         # Portland Group f77 and f90 compilers
8914           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'
8915           tmp_addflag=' $pic_flag -Mnomain' ;;
8916         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8917           tmp_addflag=' -i_dynamic' ;;
8918         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8919           tmp_addflag=' -i_dynamic -nofor_main' ;;
8920         ifc* | ifort*)                  # Intel Fortran compiler
8921           tmp_addflag=' -nofor_main' ;;
8922         lf95*)                          # Lahey Fortran 8.1
8923           whole_archive_flag_spec=
8924           tmp_sharedflag='--shared' ;;
8925         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8926           tmp_sharedflag='-qmkshrobj'
8927           tmp_addflag= ;;
8928         nvcc*)  # Cuda Compiler Driver 2.2
8929           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'
8930           compiler_needs_object=yes
8931           ;;
8932         esac
8933         case `$CC -V 2>&1 | sed 5q` in
8934         *Sun\ C*)                       # Sun C 5.9
8935           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'
8936           compiler_needs_object=yes
8937           tmp_sharedflag='-G' ;;
8938         *Sun\ F*)                       # Sun Fortran 8.3
8939           tmp_sharedflag='-G' ;;
8940         esac
8941         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8942
8943         if test "x$supports_anon_versioning" = xyes; then
8944           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8945             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8946             echo "local: *; };" >> $output_objdir/$libname.ver~
8947             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8948         fi
8949
8950         case $cc_basename in
8951         xlf* | bgf* | bgxlf* | mpixlf*)
8952           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8953           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8954           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8955           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8956           if test "x$supports_anon_versioning" = xyes; then
8957             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8958               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8959               echo "local: *; };" >> $output_objdir/$libname.ver~
8960               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8961           fi
8962           ;;
8963         esac
8964       else
8965         ld_shlibs=no
8966       fi
8967       ;;
8968
8969     netbsd* | netbsdelf*-gnu)
8970       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8971         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8972         wlarc=
8973       else
8974         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8975         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8976       fi
8977       ;;
8978
8979     solaris*)
8980       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8981         ld_shlibs=no
8982         cat <<_LT_EOF 1>&2
8983
8984 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8985 *** create shared libraries on Solaris systems.  Therefore, libtool
8986 *** is disabling shared libraries support.  We urge you to upgrade GNU
8987 *** binutils to release 2.9.1 or newer.  Another option is to modify
8988 *** your PATH or compiler configuration so that the native linker is
8989 *** used, and then restart.
8990
8991 _LT_EOF
8992       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8993         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8994         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8995       else
8996         ld_shlibs=no
8997       fi
8998       ;;
8999
9000     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9001       case `$LD -v 2>&1` in
9002         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9003         ld_shlibs=no
9004         cat <<_LT_EOF 1>&2
9005
9006 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9007 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9008 *** is disabling shared libraries support.  We urge you to upgrade GNU
9009 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9010 *** your PATH or compiler configuration so that the native linker is
9011 *** used, and then restart.
9012
9013 _LT_EOF
9014         ;;
9015         *)
9016           # For security reasons, it is highly recommended that you always
9017           # use absolute paths for naming shared libraries, and exclude the
9018           # DT_RUNPATH tag from executables and libraries.  But doing so
9019           # requires that you compile everything twice, which is a pain.
9020           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9021             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9022             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9023             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9024           else
9025             ld_shlibs=no
9026           fi
9027         ;;
9028       esac
9029       ;;
9030
9031     sunos4*)
9032       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9033       wlarc=
9034       hardcode_direct=yes
9035       hardcode_shlibpath_var=no
9036       ;;
9037
9038     *)
9039       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9040         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9041         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9042       else
9043         ld_shlibs=no
9044       fi
9045       ;;
9046     esac
9047
9048     if test "$ld_shlibs" = no; then
9049       runpath_var=
9050       hardcode_libdir_flag_spec=
9051       export_dynamic_flag_spec=
9052       whole_archive_flag_spec=
9053     fi
9054   else
9055     # PORTME fill in a description of your system's linker (not GNU ld)
9056     case $host_os in
9057     aix3*)
9058       allow_undefined_flag=unsupported
9059       always_export_symbols=yes
9060       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'
9061       # Note: this linker hardcodes the directories in LIBPATH if there
9062       # are no directories specified by -L.
9063       hardcode_minus_L=yes
9064       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9065         # Neither direct hardcoding nor static linking is supported with a
9066         # broken collect2.
9067         hardcode_direct=unsupported
9068       fi
9069       ;;
9070
9071     aix[4-9]*)
9072       if test "$host_cpu" = ia64; then
9073         # On IA64, the linker does run time linking by default, so we don't
9074         # have to do anything special.
9075         aix_use_runtimelinking=no
9076         exp_sym_flag='-Bexport'
9077         no_entry_flag=""
9078       else
9079         # If we're using GNU nm, then we don't want the "-C" option.
9080         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9081         # Also, AIX nm treats weak defined symbols like other global
9082         # defined symbols, whereas GNU nm marks them as "W".
9083         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9084           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'
9085         else
9086           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'
9087         fi
9088         aix_use_runtimelinking=no
9089
9090         # Test if we are trying to use run time linking or normal
9091         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9092         # need to do runtime linking.
9093         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9094           for ld_flag in $LDFLAGS; do
9095           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9096             aix_use_runtimelinking=yes
9097             break
9098           fi
9099           done
9100           ;;
9101         esac
9102
9103         exp_sym_flag='-bexport'
9104         no_entry_flag='-bnoentry'
9105       fi
9106
9107       # When large executables or shared objects are built, AIX ld can
9108       # have problems creating the table of contents.  If linking a library
9109       # or program results in "error TOC overflow" add -mminimal-toc to
9110       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9111       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9112
9113       archive_cmds=''
9114       hardcode_direct=yes
9115       hardcode_direct_absolute=yes
9116       hardcode_libdir_separator=':'
9117       link_all_deplibs=yes
9118       file_list_spec='${wl}-f,'
9119
9120       if test "$GCC" = yes; then
9121         case $host_os in aix4.[012]|aix4.[012].*)
9122         # We only want to do this on AIX 4.2 and lower, the check
9123         # below for broken collect2 doesn't work under 4.3+
9124           collect2name=`${CC} -print-prog-name=collect2`
9125           if test -f "$collect2name" &&
9126            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9127           then
9128           # We have reworked collect2
9129           :
9130           else
9131           # We have old collect2
9132           hardcode_direct=unsupported
9133           # It fails to find uninstalled libraries when the uninstalled
9134           # path is not listed in the libpath.  Setting hardcode_minus_L
9135           # to unsupported forces relinking
9136           hardcode_minus_L=yes
9137           hardcode_libdir_flag_spec='-L$libdir'
9138           hardcode_libdir_separator=
9139           fi
9140           ;;
9141         esac
9142         shared_flag='-shared'
9143         if test "$aix_use_runtimelinking" = yes; then
9144           shared_flag="$shared_flag "'${wl}-G'
9145         fi
9146         link_all_deplibs=no
9147       else
9148         # not using gcc
9149         if test "$host_cpu" = ia64; then
9150         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9151         # chokes on -Wl,-G. The following line is correct:
9152           shared_flag='-G'
9153         else
9154           if test "$aix_use_runtimelinking" = yes; then
9155             shared_flag='${wl}-G'
9156           else
9157             shared_flag='${wl}-bM:SRE'
9158           fi
9159         fi
9160       fi
9161
9162       export_dynamic_flag_spec='${wl}-bexpall'
9163       # It seems that -bexpall does not export symbols beginning with
9164       # underscore (_), so it is better to generate a list of symbols to export.
9165       always_export_symbols=yes
9166       if test "$aix_use_runtimelinking" = yes; then
9167         # Warning - without using the other runtime loading flags (-brtl),
9168         # -berok will link without error, but may produce a broken library.
9169         allow_undefined_flag='-berok'
9170         # Determine the default libpath from the value encoded in an
9171         # empty executable.
9172         if test "${lt_cv_aix_libpath+set}" = set; then
9173   aix_libpath=$lt_cv_aix_libpath
9174 else
9175   if ${lt_cv_aix_libpath_+:} false; then :
9176   $as_echo_n "(cached) " >&6
9177 else
9178   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9179 /* end confdefs.h.  */
9180
9181 int
9182 main ()
9183 {
9184
9185   ;
9186   return 0;
9187 }
9188 _ACEOF
9189 if ac_fn_c_try_link "$LINENO"; then :
9190
9191   lt_aix_libpath_sed='
9192       /Import File Strings/,/^$/ {
9193           /^0/ {
9194               s/^0  *\([^ ]*\) *$/\1/
9195               p
9196           }
9197       }'
9198   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9199   # Check for a 64-bit object if we didn't find anything.
9200   if test -z "$lt_cv_aix_libpath_"; then
9201     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9202   fi
9203 fi
9204 rm -f core conftest.err conftest.$ac_objext \
9205     conftest$ac_exeext conftest.$ac_ext
9206   if test -z "$lt_cv_aix_libpath_"; then
9207     lt_cv_aix_libpath_="/usr/lib:/lib"
9208   fi
9209
9210 fi
9211
9212   aix_libpath=$lt_cv_aix_libpath_
9213 fi
9214
9215         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9216         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"
9217       else
9218         if test "$host_cpu" = ia64; then
9219           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9220           allow_undefined_flag="-z nodefs"
9221           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"
9222         else
9223          # Determine the default libpath from the value encoded in an
9224          # empty executable.
9225          if test "${lt_cv_aix_libpath+set}" = set; then
9226   aix_libpath=$lt_cv_aix_libpath
9227 else
9228   if ${lt_cv_aix_libpath_+:} false; then :
9229   $as_echo_n "(cached) " >&6
9230 else
9231   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9232 /* end confdefs.h.  */
9233
9234 int
9235 main ()
9236 {
9237
9238   ;
9239   return 0;
9240 }
9241 _ACEOF
9242 if ac_fn_c_try_link "$LINENO"; then :
9243
9244   lt_aix_libpath_sed='
9245       /Import File Strings/,/^$/ {
9246           /^0/ {
9247               s/^0  *\([^ ]*\) *$/\1/
9248               p
9249           }
9250       }'
9251   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9252   # Check for a 64-bit object if we didn't find anything.
9253   if test -z "$lt_cv_aix_libpath_"; then
9254     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9255   fi
9256 fi
9257 rm -f core conftest.err conftest.$ac_objext \
9258     conftest$ac_exeext conftest.$ac_ext
9259   if test -z "$lt_cv_aix_libpath_"; then
9260     lt_cv_aix_libpath_="/usr/lib:/lib"
9261   fi
9262
9263 fi
9264
9265   aix_libpath=$lt_cv_aix_libpath_
9266 fi
9267
9268          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9269           # Warning - without using the other run time loading flags,
9270           # -berok will link without error, but may produce a broken library.
9271           no_undefined_flag=' ${wl}-bernotok'
9272           allow_undefined_flag=' ${wl}-berok'
9273           if test "$with_gnu_ld" = yes; then
9274             # We only use this code for GNU lds that support --whole-archive.
9275             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9276           else
9277             # Exported symbols can be pulled into shared objects from archives
9278             whole_archive_flag_spec='$convenience'
9279           fi
9280           archive_cmds_need_lc=yes
9281           # This is similar to how AIX traditionally builds its shared libraries.
9282           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'
9283         fi
9284       fi
9285       ;;
9286
9287     amigaos*)
9288       case $host_cpu in
9289       powerpc)
9290             # see comment about AmigaOS4 .so support
9291             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9292             archive_expsym_cmds=''
9293         ;;
9294       m68k)
9295             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)'
9296             hardcode_libdir_flag_spec='-L$libdir'
9297             hardcode_minus_L=yes
9298         ;;
9299       esac
9300       ;;
9301
9302     bsdi[45]*)
9303       export_dynamic_flag_spec=-rdynamic
9304       ;;
9305
9306     cygwin* | mingw* | pw32* | cegcc*)
9307       # When not using gcc, we currently assume that we are using
9308       # Microsoft Visual C++.
9309       # hardcode_libdir_flag_spec is actually meaningless, as there is
9310       # no search path for DLLs.
9311       case $cc_basename in
9312       cl*)
9313         # Native MSVC
9314         hardcode_libdir_flag_spec=' '
9315         allow_undefined_flag=unsupported
9316         always_export_symbols=yes
9317         file_list_spec='@'
9318         # Tell ltmain to make .lib files, not .a files.
9319         libext=lib
9320         # Tell ltmain to make .dll files, not .so files.
9321         shrext_cmds=".dll"
9322         # FIXME: Setting linknames here is a bad hack.
9323         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9324         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9325             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9326           else
9327             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9328           fi~
9329           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9330           linknames='
9331         # The linker will not automatically build a static lib if we build a DLL.
9332         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9333         enable_shared_with_static_runtimes=yes
9334         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9335         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9336         # Don't use ranlib
9337         old_postinstall_cmds='chmod 644 $oldlib'
9338         postlink_cmds='lt_outputfile="@OUTPUT@"~
9339           lt_tool_outputfile="@TOOL_OUTPUT@"~
9340           case $lt_outputfile in
9341             *.exe|*.EXE) ;;
9342             *)
9343               lt_outputfile="$lt_outputfile.exe"
9344               lt_tool_outputfile="$lt_tool_outputfile.exe"
9345               ;;
9346           esac~
9347           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9348             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9349             $RM "$lt_outputfile.manifest";
9350           fi'
9351         ;;
9352       *)
9353         # Assume MSVC wrapper
9354         hardcode_libdir_flag_spec=' '
9355         allow_undefined_flag=unsupported
9356         # Tell ltmain to make .lib files, not .a files.
9357         libext=lib
9358         # Tell ltmain to make .dll files, not .so files.
9359         shrext_cmds=".dll"
9360         # FIXME: Setting linknames here is a bad hack.
9361         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9362         # The linker will automatically build a .lib file if we build a DLL.
9363         old_archive_from_new_cmds='true'
9364         # FIXME: Should let the user specify the lib program.
9365         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9366         enable_shared_with_static_runtimes=yes
9367         ;;
9368       esac
9369       ;;
9370
9371     darwin* | rhapsody*)
9372
9373
9374   archive_cmds_need_lc=no
9375   hardcode_direct=no
9376   hardcode_automatic=yes
9377   hardcode_shlibpath_var=unsupported
9378   if test "$lt_cv_ld_force_load" = "yes"; then
9379     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\"`'
9380
9381   else
9382     whole_archive_flag_spec=''
9383   fi
9384   link_all_deplibs=yes
9385   allow_undefined_flag="$_lt_dar_allow_undefined"
9386   case $cc_basename in
9387      ifort*) _lt_dar_can_shared=yes ;;
9388      *) _lt_dar_can_shared=$GCC ;;
9389   esac
9390   if test "$_lt_dar_can_shared" = "yes"; then
9391     output_verbose_link_cmd=func_echo_all
9392     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9393     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9394     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}"
9395     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}"
9396
9397   else
9398   ld_shlibs=no
9399   fi
9400
9401       ;;
9402
9403     dgux*)
9404       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9405       hardcode_libdir_flag_spec='-L$libdir'
9406       hardcode_shlibpath_var=no
9407       ;;
9408
9409     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9410     # support.  Future versions do this automatically, but an explicit c++rt0.o
9411     # does not break anything, and helps significantly (at the cost of a little
9412     # extra space).
9413     freebsd2.2*)
9414       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9415       hardcode_libdir_flag_spec='-R$libdir'
9416       hardcode_direct=yes
9417       hardcode_shlibpath_var=no
9418       ;;
9419
9420     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9421     freebsd2.*)
9422       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9423       hardcode_direct=yes
9424       hardcode_minus_L=yes
9425       hardcode_shlibpath_var=no
9426       ;;
9427
9428     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9429     freebsd* | dragonfly*)
9430       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9431       hardcode_libdir_flag_spec='-R$libdir'
9432       hardcode_direct=yes
9433       hardcode_shlibpath_var=no
9434       ;;
9435
9436     hpux9*)
9437       if test "$GCC" = yes; then
9438         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'
9439       else
9440         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'
9441       fi
9442       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9443       hardcode_libdir_separator=:
9444       hardcode_direct=yes
9445
9446       # hardcode_minus_L: Not really in the search PATH,
9447       # but as the default location of the library.
9448       hardcode_minus_L=yes
9449       export_dynamic_flag_spec='${wl}-E'
9450       ;;
9451
9452     hpux10*)
9453       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9454         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9455       else
9456         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9457       fi
9458       if test "$with_gnu_ld" = no; then
9459         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9460         hardcode_libdir_separator=:
9461         hardcode_direct=yes
9462         hardcode_direct_absolute=yes
9463         export_dynamic_flag_spec='${wl}-E'
9464         # hardcode_minus_L: Not really in the search PATH,
9465         # but as the default location of the library.
9466         hardcode_minus_L=yes
9467       fi
9468       ;;
9469
9470     hpux11*)
9471       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9472         case $host_cpu in
9473         hppa*64*)
9474           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9475           ;;
9476         ia64*)
9477           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9478           ;;
9479         *)
9480           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9481           ;;
9482         esac
9483       else
9484         case $host_cpu in
9485         hppa*64*)
9486           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9487           ;;
9488         ia64*)
9489           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9490           ;;
9491         *)
9492
9493           # Older versions of the 11.00 compiler do not understand -b yet
9494           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9495           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9496 $as_echo_n "checking if $CC understands -b... " >&6; }
9497 if ${lt_cv_prog_compiler__b+:} false; then :
9498   $as_echo_n "(cached) " >&6
9499 else
9500   lt_cv_prog_compiler__b=no
9501    save_LDFLAGS="$LDFLAGS"
9502    LDFLAGS="$LDFLAGS -b"
9503    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9504    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9505      # The linker can only warn and ignore the option if not recognized
9506      # So say no if there are warnings
9507      if test -s conftest.err; then
9508        # Append any errors to the config.log.
9509        cat conftest.err 1>&5
9510        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9511        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9512        if diff conftest.exp conftest.er2 >/dev/null; then
9513          lt_cv_prog_compiler__b=yes
9514        fi
9515      else
9516        lt_cv_prog_compiler__b=yes
9517      fi
9518    fi
9519    $RM -r conftest*
9520    LDFLAGS="$save_LDFLAGS"
9521
9522 fi
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9524 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9525
9526 if test x"$lt_cv_prog_compiler__b" = xyes; then
9527     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9528 else
9529     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9530 fi
9531
9532           ;;
9533         esac
9534       fi
9535       if test "$with_gnu_ld" = no; then
9536         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9537         hardcode_libdir_separator=:
9538
9539         case $host_cpu in
9540         hppa*64*|ia64*)
9541           hardcode_direct=no
9542           hardcode_shlibpath_var=no
9543           ;;
9544         *)
9545           hardcode_direct=yes
9546           hardcode_direct_absolute=yes
9547           export_dynamic_flag_spec='${wl}-E'
9548
9549           # hardcode_minus_L: Not really in the search PATH,
9550           # but as the default location of the library.
9551           hardcode_minus_L=yes
9552           ;;
9553         esac
9554       fi
9555       ;;
9556
9557     irix5* | irix6* | nonstopux*)
9558       if test "$GCC" = yes; then
9559         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'
9560         # Try to use the -exported_symbol ld option, if it does not
9561         # work, assume that -exports_file does not work either and
9562         # implicitly export all symbols.
9563         # This should be the same for all languages, so no per-tag cache variable.
9564         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9565 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9566 if ${lt_cv_irix_exported_symbol+:} false; then :
9567   $as_echo_n "(cached) " >&6
9568 else
9569   save_LDFLAGS="$LDFLAGS"
9570            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9571            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9572 /* end confdefs.h.  */
9573 int foo (void) { return 0; }
9574 _ACEOF
9575 if ac_fn_c_try_link "$LINENO"; then :
9576   lt_cv_irix_exported_symbol=yes
9577 else
9578   lt_cv_irix_exported_symbol=no
9579 fi
9580 rm -f core conftest.err conftest.$ac_objext \
9581     conftest$ac_exeext conftest.$ac_ext
9582            LDFLAGS="$save_LDFLAGS"
9583 fi
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9585 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9586         if test "$lt_cv_irix_exported_symbol" = yes; then
9587           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'
9588         fi
9589       else
9590         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'
9591         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'
9592       fi
9593       archive_cmds_need_lc='no'
9594       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9595       hardcode_libdir_separator=:
9596       inherit_rpath=yes
9597       link_all_deplibs=yes
9598       ;;
9599
9600     netbsd* | netbsdelf*-gnu)
9601       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9602         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9603       else
9604         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9605       fi
9606       hardcode_libdir_flag_spec='-R$libdir'
9607       hardcode_direct=yes
9608       hardcode_shlibpath_var=no
9609       ;;
9610
9611     newsos6)
9612       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9613       hardcode_direct=yes
9614       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9615       hardcode_libdir_separator=:
9616       hardcode_shlibpath_var=no
9617       ;;
9618
9619     *nto* | *qnx*)
9620       ;;
9621
9622     openbsd*)
9623       if test -f /usr/libexec/ld.so; then
9624         hardcode_direct=yes
9625         hardcode_shlibpath_var=no
9626         hardcode_direct_absolute=yes
9627         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9628           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9629           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9630           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9631           export_dynamic_flag_spec='${wl}-E'
9632         else
9633           case $host_os in
9634            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9635              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9636              hardcode_libdir_flag_spec='-R$libdir'
9637              ;;
9638            *)
9639              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9640              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9641              ;;
9642           esac
9643         fi
9644       else
9645         ld_shlibs=no
9646       fi
9647       ;;
9648
9649     os2*)
9650       hardcode_libdir_flag_spec='-L$libdir'
9651       hardcode_minus_L=yes
9652       allow_undefined_flag=unsupported
9653       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'
9654       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9655       ;;
9656
9657     osf3*)
9658       if test "$GCC" = yes; then
9659         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9660         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'
9661       else
9662         allow_undefined_flag=' -expect_unresolved \*'
9663         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'
9664       fi
9665       archive_cmds_need_lc='no'
9666       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9667       hardcode_libdir_separator=:
9668       ;;
9669
9670     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9671       if test "$GCC" = yes; then
9672         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9673         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'
9674         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9675       else
9676         allow_undefined_flag=' -expect_unresolved \*'
9677         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'
9678         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~
9679         $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'
9680
9681         # Both c and cxx compiler support -rpath directly
9682         hardcode_libdir_flag_spec='-rpath $libdir'
9683       fi
9684       archive_cmds_need_lc='no'
9685       hardcode_libdir_separator=:
9686       ;;
9687
9688     solaris*)
9689       no_undefined_flag=' -z defs'
9690       if test "$GCC" = yes; then
9691         wlarc='${wl}'
9692         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9693         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9694           $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'
9695       else
9696         case `$CC -V 2>&1` in
9697         *"Compilers 5.0"*)
9698           wlarc=''
9699           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9700           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9701           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9702           ;;
9703         *)
9704           wlarc='${wl}'
9705           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9706           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9707           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9708           ;;
9709         esac
9710       fi
9711       hardcode_libdir_flag_spec='-R$libdir'
9712       hardcode_shlibpath_var=no
9713       case $host_os in
9714       solaris2.[0-5] | solaris2.[0-5].*) ;;
9715       *)
9716         # The compiler driver will combine and reorder linker options,
9717         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9718         # but is careful enough not to reorder.
9719         # Supported since Solaris 2.6 (maybe 2.5.1?)
9720         if test "$GCC" = yes; then
9721           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9722         else
9723           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9724         fi
9725         ;;
9726       esac
9727       link_all_deplibs=yes
9728       ;;
9729
9730     sunos4*)
9731       if test "x$host_vendor" = xsequent; then
9732         # Use $CC to link under sequent, because it throws in some extra .o
9733         # files that make .init and .fini sections work.
9734         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9735       else
9736         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9737       fi
9738       hardcode_libdir_flag_spec='-L$libdir'
9739       hardcode_direct=yes
9740       hardcode_minus_L=yes
9741       hardcode_shlibpath_var=no
9742       ;;
9743
9744     sysv4)
9745       case $host_vendor in
9746         sni)
9747           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9748           hardcode_direct=yes # is this really true???
9749         ;;
9750         siemens)
9751           ## LD is ld it makes a PLAMLIB
9752           ## CC just makes a GrossModule.
9753           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9754           reload_cmds='$CC -r -o $output$reload_objs'
9755           hardcode_direct=no
9756         ;;
9757         motorola)
9758           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9759           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9760         ;;
9761       esac
9762       runpath_var='LD_RUN_PATH'
9763       hardcode_shlibpath_var=no
9764       ;;
9765
9766     sysv4.3*)
9767       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9768       hardcode_shlibpath_var=no
9769       export_dynamic_flag_spec='-Bexport'
9770       ;;
9771
9772     sysv4*MP*)
9773       if test -d /usr/nec; then
9774         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9775         hardcode_shlibpath_var=no
9776         runpath_var=LD_RUN_PATH
9777         hardcode_runpath_var=yes
9778         ld_shlibs=yes
9779       fi
9780       ;;
9781
9782     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9783       no_undefined_flag='${wl}-z,text'
9784       archive_cmds_need_lc=no
9785       hardcode_shlibpath_var=no
9786       runpath_var='LD_RUN_PATH'
9787
9788       if test "$GCC" = yes; then
9789         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9790         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9791       else
9792         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9793         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9794       fi
9795       ;;
9796
9797     sysv5* | sco3.2v5* | sco5v6*)
9798       # Note: We can NOT use -z defs as we might desire, because we do not
9799       # link with -lc, and that would cause any symbols used from libc to
9800       # always be unresolved, which means just about no library would
9801       # ever link correctly.  If we're not using GNU ld we use -z text
9802       # though, which does catch some bad symbols but isn't as heavy-handed
9803       # as -z defs.
9804       no_undefined_flag='${wl}-z,text'
9805       allow_undefined_flag='${wl}-z,nodefs'
9806       archive_cmds_need_lc=no
9807       hardcode_shlibpath_var=no
9808       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9809       hardcode_libdir_separator=':'
9810       link_all_deplibs=yes
9811       export_dynamic_flag_spec='${wl}-Bexport'
9812       runpath_var='LD_RUN_PATH'
9813
9814       if test "$GCC" = yes; then
9815         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9816         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9817       else
9818         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9819         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9820       fi
9821       ;;
9822
9823     uts4*)
9824       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9825       hardcode_libdir_flag_spec='-L$libdir'
9826       hardcode_shlibpath_var=no
9827       ;;
9828
9829     *)
9830       ld_shlibs=no
9831       ;;
9832     esac
9833
9834     if test x$host_vendor = xsni; then
9835       case $host in
9836       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9837         export_dynamic_flag_spec='${wl}-Blargedynsym'
9838         ;;
9839       esac
9840     fi
9841   fi
9842
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9844 $as_echo "$ld_shlibs" >&6; }
9845 test "$ld_shlibs" = no && can_build_shared=no
9846
9847 with_gnu_ld=$with_gnu_ld
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863 #
9864 # Do we need to explicitly link libc?
9865 #
9866 case "x$archive_cmds_need_lc" in
9867 x|xyes)
9868   # Assume -lc should be added
9869   archive_cmds_need_lc=yes
9870
9871   if test "$enable_shared" = yes && test "$GCC" = yes; then
9872     case $archive_cmds in
9873     *'~'*)
9874       # FIXME: we may have to deal with multi-command sequences.
9875       ;;
9876     '$CC '*)
9877       # Test whether the compiler implicitly links with -lc since on some
9878       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9879       # to ld, don't add -lc before -lgcc.
9880       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9881 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9882 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9883   $as_echo_n "(cached) " >&6
9884 else
9885   $RM conftest*
9886         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9887
9888         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9889   (eval $ac_compile) 2>&5
9890   ac_status=$?
9891   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9892   test $ac_status = 0; } 2>conftest.err; then
9893           soname=conftest
9894           lib=conftest
9895           libobjs=conftest.$ac_objext
9896           deplibs=
9897           wl=$lt_prog_compiler_wl
9898           pic_flag=$lt_prog_compiler_pic
9899           compiler_flags=-v
9900           linker_flags=-v
9901           verstring=
9902           output_objdir=.
9903           libname=conftest
9904           lt_save_allow_undefined_flag=$allow_undefined_flag
9905           allow_undefined_flag=
9906           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9907   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9908   ac_status=$?
9909   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9910   test $ac_status = 0; }
9911           then
9912             lt_cv_archive_cmds_need_lc=no
9913           else
9914             lt_cv_archive_cmds_need_lc=yes
9915           fi
9916           allow_undefined_flag=$lt_save_allow_undefined_flag
9917         else
9918           cat conftest.err 1>&5
9919         fi
9920         $RM conftest*
9921
9922 fi
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9924 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9925       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9926       ;;
9927     esac
9928   fi
9929   ;;
9930 esac
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10084 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10085
10086 if test "$GCC" = yes; then
10087   case $host_os in
10088     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10089     *) lt_awk_arg="/^libraries:/" ;;
10090   esac
10091   case $host_os in
10092     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10093     *) lt_sed_strip_eq="s,=/,/,g" ;;
10094   esac
10095   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10096   case $lt_search_path_spec in
10097   *\;*)
10098     # if the path contains ";" then we assume it to be the separator
10099     # otherwise default to the standard path separator (i.e. ":") - it is
10100     # assumed that no part of a normal pathname contains ";" but that should
10101     # okay in the real world where ";" in dirpaths is itself problematic.
10102     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10103     ;;
10104   *)
10105     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10106     ;;
10107   esac
10108   # Ok, now we have the path, separated by spaces, we can step through it
10109   # and add multilib dir if necessary.
10110   lt_tmp_lt_search_path_spec=
10111   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10112   for lt_sys_path in $lt_search_path_spec; do
10113     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10114       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10115     else
10116       test -d "$lt_sys_path" && \
10117         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10118     fi
10119   done
10120   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10121 BEGIN {RS=" "; FS="/|\n";} {
10122   lt_foo="";
10123   lt_count=0;
10124   for (lt_i = NF; lt_i > 0; lt_i--) {
10125     if ($lt_i != "" && $lt_i != ".") {
10126       if ($lt_i == "..") {
10127         lt_count++;
10128       } else {
10129         if (lt_count == 0) {
10130           lt_foo="/" $lt_i lt_foo;
10131         } else {
10132           lt_count--;
10133         }
10134       }
10135     }
10136   }
10137   if (lt_foo != "") { lt_freq[lt_foo]++; }
10138   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10139 }'`
10140   # AWK program above erroneously prepends '/' to C:/dos/paths
10141   # for these hosts.
10142   case $host_os in
10143     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10144       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10145   esac
10146   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10147 else
10148   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10149 fi
10150 library_names_spec=
10151 libname_spec='lib$name'
10152 soname_spec=
10153 shrext_cmds=".so"
10154 postinstall_cmds=
10155 postuninstall_cmds=
10156 finish_cmds=
10157 finish_eval=
10158 shlibpath_var=
10159 shlibpath_overrides_runpath=unknown
10160 version_type=none
10161 dynamic_linker="$host_os ld.so"
10162 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10163 need_lib_prefix=unknown
10164 hardcode_into_libs=no
10165
10166 # when you set need_version to no, make sure it does not cause -set_version
10167 # flags to be left without arguments
10168 need_version=unknown
10169
10170 case $host_os in
10171 aix3*)
10172   version_type=linux # correct to gnu/linux during the next big refactor
10173   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10174   shlibpath_var=LIBPATH
10175
10176   # AIX 3 has no versioning support, so we append a major version to the name.
10177   soname_spec='${libname}${release}${shared_ext}$major'
10178   ;;
10179
10180 aix[4-9]*)
10181   version_type=linux # correct to gnu/linux during the next big refactor
10182   need_lib_prefix=no
10183   need_version=no
10184   hardcode_into_libs=yes
10185   if test "$host_cpu" = ia64; then
10186     # AIX 5 supports IA64
10187     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10188     shlibpath_var=LD_LIBRARY_PATH
10189   else
10190     # With GCC up to 2.95.x, collect2 would create an import file
10191     # for dependence libraries.  The import file would start with
10192     # the line `#! .'.  This would cause the generated library to
10193     # depend on `.', always an invalid library.  This was fixed in
10194     # development snapshots of GCC prior to 3.0.
10195     case $host_os in
10196       aix4 | aix4.[01] | aix4.[01].*)
10197       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10198            echo ' yes '
10199            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10200         :
10201       else
10202         can_build_shared=no
10203       fi
10204       ;;
10205     esac
10206     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10207     # soname into executable. Probably we can add versioning support to
10208     # collect2, so additional links can be useful in future.
10209     if test "$aix_use_runtimelinking" = yes; then
10210       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10211       # instead of lib<name>.a to let people know that these are not
10212       # typical AIX shared libraries.
10213       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10214     else
10215       # We preserve .a as extension for shared libraries through AIX4.2
10216       # and later when we are not doing run time linking.
10217       library_names_spec='${libname}${release}.a $libname.a'
10218       soname_spec='${libname}${release}${shared_ext}$major'
10219     fi
10220     shlibpath_var=LIBPATH
10221   fi
10222   ;;
10223
10224 amigaos*)
10225   case $host_cpu in
10226   powerpc)
10227     # Since July 2007 AmigaOS4 officially supports .so libraries.
10228     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10229     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10230     ;;
10231   m68k)
10232     library_names_spec='$libname.ixlibrary $libname.a'
10233     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10234     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'
10235     ;;
10236   esac
10237   ;;
10238
10239 beos*)
10240   library_names_spec='${libname}${shared_ext}'
10241   dynamic_linker="$host_os ld.so"
10242   shlibpath_var=LIBRARY_PATH
10243   ;;
10244
10245 bsdi[45]*)
10246   version_type=linux # correct to gnu/linux during the next big refactor
10247   need_version=no
10248   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10249   soname_spec='${libname}${release}${shared_ext}$major'
10250   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10251   shlibpath_var=LD_LIBRARY_PATH
10252   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10253   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10254   # the default ld.so.conf also contains /usr/contrib/lib and
10255   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10256   # libtool to hard-code these into programs
10257   ;;
10258
10259 cygwin* | mingw* | pw32* | cegcc*)
10260   version_type=windows
10261   shrext_cmds=".dll"
10262   need_version=no
10263   need_lib_prefix=no
10264
10265   case $GCC,$cc_basename in
10266   yes,*)
10267     # gcc
10268     library_names_spec='$libname.dll.a'
10269     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10270     postinstall_cmds='base_file=`basename \${file}`~
10271       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10272       dldir=$destdir/`dirname \$dlpath`~
10273       test -d \$dldir || mkdir -p \$dldir~
10274       $install_prog $dir/$dlname \$dldir/$dlname~
10275       chmod a+x \$dldir/$dlname~
10276       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10277         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10278       fi'
10279     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10280       dlpath=$dir/\$dldll~
10281        $RM \$dlpath'
10282     shlibpath_overrides_runpath=yes
10283
10284     case $host_os in
10285     cygwin*)
10286       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10287       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10288
10289       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10290       ;;
10291     mingw* | cegcc*)
10292       # MinGW DLLs use traditional 'lib' prefix
10293       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10294       ;;
10295     pw32*)
10296       # pw32 DLLs use 'pw' prefix rather than 'lib'
10297       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10298       ;;
10299     esac
10300     dynamic_linker='Win32 ld.exe'
10301     ;;
10302
10303   *,cl*)
10304     # Native MSVC
10305     libname_spec='$name'
10306     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10307     library_names_spec='${libname}.dll.lib'
10308
10309     case $build_os in
10310     mingw*)
10311       sys_lib_search_path_spec=
10312       lt_save_ifs=$IFS
10313       IFS=';'
10314       for lt_path in $LIB
10315       do
10316         IFS=$lt_save_ifs
10317         # Let DOS variable expansion print the short 8.3 style file name.
10318         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10319         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10320       done
10321       IFS=$lt_save_ifs
10322       # Convert to MSYS style.
10323       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10324       ;;
10325     cygwin*)
10326       # Convert to unix form, then to dos form, then back to unix form
10327       # but this time dos style (no spaces!) so that the unix form looks
10328       # like /cygdrive/c/PROGRA~1:/cygdr...
10329       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10330       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10331       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10332       ;;
10333     *)
10334       sys_lib_search_path_spec="$LIB"
10335       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10336         # It is most probably a Windows format PATH.
10337         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10338       else
10339         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10340       fi
10341       # FIXME: find the short name or the path components, as spaces are
10342       # common. (e.g. "Program Files" -> "PROGRA~1")
10343       ;;
10344     esac
10345
10346     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10347     postinstall_cmds='base_file=`basename \${file}`~
10348       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10349       dldir=$destdir/`dirname \$dlpath`~
10350       test -d \$dldir || mkdir -p \$dldir~
10351       $install_prog $dir/$dlname \$dldir/$dlname'
10352     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10353       dlpath=$dir/\$dldll~
10354        $RM \$dlpath'
10355     shlibpath_overrides_runpath=yes
10356     dynamic_linker='Win32 link.exe'
10357     ;;
10358
10359   *)
10360     # Assume MSVC wrapper
10361     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10362     dynamic_linker='Win32 ld.exe'
10363     ;;
10364   esac
10365   # FIXME: first we should search . and the directory the executable is in
10366   shlibpath_var=PATH
10367   ;;
10368
10369 darwin* | rhapsody*)
10370   dynamic_linker="$host_os dyld"
10371   version_type=darwin
10372   need_lib_prefix=no
10373   need_version=no
10374   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10375   soname_spec='${libname}${release}${major}$shared_ext'
10376   shlibpath_overrides_runpath=yes
10377   shlibpath_var=DYLD_LIBRARY_PATH
10378   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10379
10380   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10381   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10382   ;;
10383
10384 dgux*)
10385   version_type=linux # correct to gnu/linux during the next big refactor
10386   need_lib_prefix=no
10387   need_version=no
10388   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10389   soname_spec='${libname}${release}${shared_ext}$major'
10390   shlibpath_var=LD_LIBRARY_PATH
10391   ;;
10392
10393 freebsd* | dragonfly*)
10394   # DragonFly does not have aout.  When/if they implement a new
10395   # versioning mechanism, adjust this.
10396   if test -x /usr/bin/objformat; then
10397     objformat=`/usr/bin/objformat`
10398   else
10399     case $host_os in
10400     freebsd[23].*) objformat=aout ;;
10401     *) objformat=elf ;;
10402     esac
10403   fi
10404   version_type=freebsd-$objformat
10405   case $version_type in
10406     freebsd-elf*)
10407       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10408       need_version=no
10409       need_lib_prefix=no
10410       ;;
10411     freebsd-*)
10412       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10413       need_version=yes
10414       ;;
10415   esac
10416   shlibpath_var=LD_LIBRARY_PATH
10417   case $host_os in
10418   freebsd2.*)
10419     shlibpath_overrides_runpath=yes
10420     ;;
10421   freebsd3.[01]* | freebsdelf3.[01]*)
10422     shlibpath_overrides_runpath=yes
10423     hardcode_into_libs=yes
10424     ;;
10425   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10426   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10427     shlibpath_overrides_runpath=no
10428     hardcode_into_libs=yes
10429     ;;
10430   *) # from 4.6 on, and DragonFly
10431     shlibpath_overrides_runpath=yes
10432     hardcode_into_libs=yes
10433     ;;
10434   esac
10435   ;;
10436
10437 gnu*)
10438   version_type=linux # correct to gnu/linux during the next big refactor
10439   need_lib_prefix=no
10440   need_version=no
10441   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10442   soname_spec='${libname}${release}${shared_ext}$major'
10443   shlibpath_var=LD_LIBRARY_PATH
10444   shlibpath_overrides_runpath=no
10445   hardcode_into_libs=yes
10446   ;;
10447
10448 haiku*)
10449   version_type=linux # correct to gnu/linux during the next big refactor
10450   need_lib_prefix=no
10451   need_version=no
10452   dynamic_linker="$host_os runtime_loader"
10453   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10454   soname_spec='${libname}${release}${shared_ext}$major'
10455   shlibpath_var=LIBRARY_PATH
10456   shlibpath_overrides_runpath=yes
10457   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10458   hardcode_into_libs=yes
10459   ;;
10460
10461 hpux9* | hpux10* | hpux11*)
10462   # Give a soname corresponding to the major version so that dld.sl refuses to
10463   # link against other versions.
10464   version_type=sunos
10465   need_lib_prefix=no
10466   need_version=no
10467   case $host_cpu in
10468   ia64*)
10469     shrext_cmds='.so'
10470     hardcode_into_libs=yes
10471     dynamic_linker="$host_os dld.so"
10472     shlibpath_var=LD_LIBRARY_PATH
10473     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10474     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10475     soname_spec='${libname}${release}${shared_ext}$major'
10476     if test "X$HPUX_IA64_MODE" = X32; then
10477       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10478     else
10479       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10480     fi
10481     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10482     ;;
10483   hppa*64*)
10484     shrext_cmds='.sl'
10485     hardcode_into_libs=yes
10486     dynamic_linker="$host_os dld.sl"
10487     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10488     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10489     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10490     soname_spec='${libname}${release}${shared_ext}$major'
10491     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10492     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10493     ;;
10494   *)
10495     shrext_cmds='.sl'
10496     dynamic_linker="$host_os dld.sl"
10497     shlibpath_var=SHLIB_PATH
10498     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10499     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10500     soname_spec='${libname}${release}${shared_ext}$major'
10501     ;;
10502   esac
10503   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10504   postinstall_cmds='chmod 555 $lib'
10505   # or fails outright, so override atomically:
10506   install_override_mode=555
10507   ;;
10508
10509 interix[3-9]*)
10510   version_type=linux # correct to gnu/linux during the next big refactor
10511   need_lib_prefix=no
10512   need_version=no
10513   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10514   soname_spec='${libname}${release}${shared_ext}$major'
10515   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10516   shlibpath_var=LD_LIBRARY_PATH
10517   shlibpath_overrides_runpath=no
10518   hardcode_into_libs=yes
10519   ;;
10520
10521 irix5* | irix6* | nonstopux*)
10522   case $host_os in
10523     nonstopux*) version_type=nonstopux ;;
10524     *)
10525         if test "$lt_cv_prog_gnu_ld" = yes; then
10526                 version_type=linux # correct to gnu/linux during the next big refactor
10527         else
10528                 version_type=irix
10529         fi ;;
10530   esac
10531   need_lib_prefix=no
10532   need_version=no
10533   soname_spec='${libname}${release}${shared_ext}$major'
10534   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10535   case $host_os in
10536   irix5* | nonstopux*)
10537     libsuff= shlibsuff=
10538     ;;
10539   *)
10540     case $LD in # libtool.m4 will add one of these switches to LD
10541     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10542       libsuff= shlibsuff= libmagic=32-bit;;
10543     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10544       libsuff=32 shlibsuff=N32 libmagic=N32;;
10545     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10546       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10547     *) libsuff= shlibsuff= libmagic=never-match;;
10548     esac
10549     ;;
10550   esac
10551   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10552   shlibpath_overrides_runpath=no
10553   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10554   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10555   hardcode_into_libs=yes
10556   ;;
10557
10558 # No shared lib support for Linux oldld, aout, or coff.
10559 linux*oldld* | linux*aout* | linux*coff*)
10560   dynamic_linker=no
10561   ;;
10562
10563 # This must be glibc/ELF.
10564 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10565   version_type=linux # correct to gnu/linux during the next big refactor
10566   need_lib_prefix=no
10567   need_version=no
10568   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10569   soname_spec='${libname}${release}${shared_ext}$major'
10570   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10571   shlibpath_var=LD_LIBRARY_PATH
10572   shlibpath_overrides_runpath=no
10573
10574   # Some binutils ld are patched to set DT_RUNPATH
10575   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10576   $as_echo_n "(cached) " >&6
10577 else
10578   lt_cv_shlibpath_overrides_runpath=no
10579     save_LDFLAGS=$LDFLAGS
10580     save_libdir=$libdir
10581     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10582          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10583     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10584 /* end confdefs.h.  */
10585
10586 int
10587 main ()
10588 {
10589
10590   ;
10591   return 0;
10592 }
10593 _ACEOF
10594 if ac_fn_c_try_link "$LINENO"; then :
10595   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10596   lt_cv_shlibpath_overrides_runpath=yes
10597 fi
10598 fi
10599 rm -f core conftest.err conftest.$ac_objext \
10600     conftest$ac_exeext conftest.$ac_ext
10601     LDFLAGS=$save_LDFLAGS
10602     libdir=$save_libdir
10603
10604 fi
10605
10606   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10607
10608   # This implies no fast_install, which is unacceptable.
10609   # Some rework will be needed to allow for fast_install
10610   # before this can be enabled.
10611   hardcode_into_libs=yes
10612
10613   # Append ld.so.conf contents to the search path
10614   if test -f /etc/ld.so.conf; then
10615     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' ' '`
10616     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10617   fi
10618
10619   # We used to test for /lib/ld.so.1 and disable shared libraries on
10620   # powerpc, because MkLinux only supported shared libraries with the
10621   # GNU dynamic linker.  Since this was broken with cross compilers,
10622   # most powerpc-linux boxes support dynamic linking these days and
10623   # people can always --disable-shared, the test was removed, and we
10624   # assume the GNU/Linux dynamic linker is in use.
10625   dynamic_linker='GNU/Linux ld.so'
10626   ;;
10627
10628 netbsdelf*-gnu)
10629   version_type=linux
10630   need_lib_prefix=no
10631   need_version=no
10632   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10633   soname_spec='${libname}${release}${shared_ext}$major'
10634   shlibpath_var=LD_LIBRARY_PATH
10635   shlibpath_overrides_runpath=no
10636   hardcode_into_libs=yes
10637   dynamic_linker='NetBSD ld.elf_so'
10638   ;;
10639
10640 netbsd*)
10641   version_type=sunos
10642   need_lib_prefix=no
10643   need_version=no
10644   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10645     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10646     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10647     dynamic_linker='NetBSD (a.out) ld.so'
10648   else
10649     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10650     soname_spec='${libname}${release}${shared_ext}$major'
10651     dynamic_linker='NetBSD ld.elf_so'
10652   fi
10653   shlibpath_var=LD_LIBRARY_PATH
10654   shlibpath_overrides_runpath=yes
10655   hardcode_into_libs=yes
10656   ;;
10657
10658 newsos6)
10659   version_type=linux # correct to gnu/linux during the next big refactor
10660   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10661   shlibpath_var=LD_LIBRARY_PATH
10662   shlibpath_overrides_runpath=yes
10663   ;;
10664
10665 *nto* | *qnx*)
10666   version_type=qnx
10667   need_lib_prefix=no
10668   need_version=no
10669   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10670   soname_spec='${libname}${release}${shared_ext}$major'
10671   shlibpath_var=LD_LIBRARY_PATH
10672   shlibpath_overrides_runpath=no
10673   hardcode_into_libs=yes
10674   dynamic_linker='ldqnx.so'
10675   ;;
10676
10677 openbsd*)
10678   version_type=sunos
10679   sys_lib_dlsearch_path_spec="/usr/lib"
10680   need_lib_prefix=no
10681   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10682   case $host_os in
10683     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10684     *)                          need_version=no  ;;
10685   esac
10686   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10687   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10688   shlibpath_var=LD_LIBRARY_PATH
10689   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10690     case $host_os in
10691       openbsd2.[89] | openbsd2.[89].*)
10692         shlibpath_overrides_runpath=no
10693         ;;
10694       *)
10695         shlibpath_overrides_runpath=yes
10696         ;;
10697       esac
10698   else
10699     shlibpath_overrides_runpath=yes
10700   fi
10701   ;;
10702
10703 os2*)
10704   libname_spec='$name'
10705   shrext_cmds=".dll"
10706   need_lib_prefix=no
10707   library_names_spec='$libname${shared_ext} $libname.a'
10708   dynamic_linker='OS/2 ld.exe'
10709   shlibpath_var=LIBPATH
10710   ;;
10711
10712 osf3* | osf4* | osf5*)
10713   version_type=osf
10714   need_lib_prefix=no
10715   need_version=no
10716   soname_spec='${libname}${release}${shared_ext}$major'
10717   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10718   shlibpath_var=LD_LIBRARY_PATH
10719   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10720   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10721   ;;
10722
10723 rdos*)
10724   dynamic_linker=no
10725   ;;
10726
10727 solaris*)
10728   version_type=linux # correct to gnu/linux during the next big refactor
10729   need_lib_prefix=no
10730   need_version=no
10731   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10732   soname_spec='${libname}${release}${shared_ext}$major'
10733   shlibpath_var=LD_LIBRARY_PATH
10734   shlibpath_overrides_runpath=yes
10735   hardcode_into_libs=yes
10736   # ldd complains unless libraries are executable
10737   postinstall_cmds='chmod +x $lib'
10738   ;;
10739
10740 sunos4*)
10741   version_type=sunos
10742   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10743   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10744   shlibpath_var=LD_LIBRARY_PATH
10745   shlibpath_overrides_runpath=yes
10746   if test "$with_gnu_ld" = yes; then
10747     need_lib_prefix=no
10748   fi
10749   need_version=yes
10750   ;;
10751
10752 sysv4 | sysv4.3*)
10753   version_type=linux # correct to gnu/linux during the next big refactor
10754   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10755   soname_spec='${libname}${release}${shared_ext}$major'
10756   shlibpath_var=LD_LIBRARY_PATH
10757   case $host_vendor in
10758     sni)
10759       shlibpath_overrides_runpath=no
10760       need_lib_prefix=no
10761       runpath_var=LD_RUN_PATH
10762       ;;
10763     siemens)
10764       need_lib_prefix=no
10765       ;;
10766     motorola)
10767       need_lib_prefix=no
10768       need_version=no
10769       shlibpath_overrides_runpath=no
10770       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10771       ;;
10772   esac
10773   ;;
10774
10775 sysv4*MP*)
10776   if test -d /usr/nec ;then
10777     version_type=linux # correct to gnu/linux during the next big refactor
10778     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10779     soname_spec='$libname${shared_ext}.$major'
10780     shlibpath_var=LD_LIBRARY_PATH
10781   fi
10782   ;;
10783
10784 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10785   version_type=freebsd-elf
10786   need_lib_prefix=no
10787   need_version=no
10788   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10789   soname_spec='${libname}${release}${shared_ext}$major'
10790   shlibpath_var=LD_LIBRARY_PATH
10791   shlibpath_overrides_runpath=yes
10792   hardcode_into_libs=yes
10793   if test "$with_gnu_ld" = yes; then
10794     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10795   else
10796     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10797     case $host_os in
10798       sco3.2v5*)
10799         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10800         ;;
10801     esac
10802   fi
10803   sys_lib_dlsearch_path_spec='/usr/lib'
10804   ;;
10805
10806 tpf*)
10807   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10808   version_type=linux # correct to gnu/linux during the next big refactor
10809   need_lib_prefix=no
10810   need_version=no
10811   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10812   shlibpath_var=LD_LIBRARY_PATH
10813   shlibpath_overrides_runpath=no
10814   hardcode_into_libs=yes
10815   ;;
10816
10817 uts4*)
10818   version_type=linux # correct to gnu/linux during the next big refactor
10819   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10820   soname_spec='${libname}${release}${shared_ext}$major'
10821   shlibpath_var=LD_LIBRARY_PATH
10822   ;;
10823
10824 *)
10825   dynamic_linker=no
10826   ;;
10827 esac
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10829 $as_echo "$dynamic_linker" >&6; }
10830 test "$dynamic_linker" = no && can_build_shared=no
10831
10832 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10833 if test "$GCC" = yes; then
10834   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10835 fi
10836
10837 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10838   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10839 fi
10840 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10841   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10842 fi
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10936 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10937 hardcode_action=
10938 if test -n "$hardcode_libdir_flag_spec" ||
10939    test -n "$runpath_var" ||
10940    test "X$hardcode_automatic" = "Xyes" ; then
10941
10942   # We can hardcode non-existent directories.
10943   if test "$hardcode_direct" != no &&
10944      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10945      # have to relink, otherwise we might link with an installed library
10946      # when we should be linking with a yet-to-be-installed one
10947      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10948      test "$hardcode_minus_L" != no; then
10949     # Linking always hardcodes the temporary library directory.
10950     hardcode_action=relink
10951   else
10952     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10953     hardcode_action=immediate
10954   fi
10955 else
10956   # We cannot hardcode anything, or else we can only hardcode existing
10957   # directories.
10958   hardcode_action=unsupported
10959 fi
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10961 $as_echo "$hardcode_action" >&6; }
10962
10963 if test "$hardcode_action" = relink ||
10964    test "$inherit_rpath" = yes; then
10965   # Fast installation is not supported
10966   enable_fast_install=no
10967 elif test "$shlibpath_overrides_runpath" = yes ||
10968      test "$enable_shared" = no; then
10969   # Fast installation is not necessary
10970   enable_fast_install=needless
10971 fi
10972
10973
10974
10975
10976
10977
10978   if test "x$enable_dlopen" != xyes; then
10979   enable_dlopen=unknown
10980   enable_dlopen_self=unknown
10981   enable_dlopen_self_static=unknown
10982 else
10983   lt_cv_dlopen=no
10984   lt_cv_dlopen_libs=
10985
10986   case $host_os in
10987   beos*)
10988     lt_cv_dlopen="load_add_on"
10989     lt_cv_dlopen_libs=
10990     lt_cv_dlopen_self=yes
10991     ;;
10992
10993   mingw* | pw32* | cegcc*)
10994     lt_cv_dlopen="LoadLibrary"
10995     lt_cv_dlopen_libs=
10996     ;;
10997
10998   cygwin*)
10999     lt_cv_dlopen="dlopen"
11000     lt_cv_dlopen_libs=
11001     ;;
11002
11003   darwin*)
11004   # if libdl is installed we need to link against it
11005     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11006 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11007 if ${ac_cv_lib_dl_dlopen+:} false; then :
11008   $as_echo_n "(cached) " >&6
11009 else
11010   ac_check_lib_save_LIBS=$LIBS
11011 LIBS="-ldl  $LIBS"
11012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11013 /* end confdefs.h.  */
11014
11015 /* Override any GCC internal prototype to avoid an error.
11016    Use char because int might match the return type of a GCC
11017    builtin and then its argument prototype would still apply.  */
11018 #ifdef __cplusplus
11019 extern "C"
11020 #endif
11021 char dlopen ();
11022 int
11023 main ()
11024 {
11025 return dlopen ();
11026   ;
11027   return 0;
11028 }
11029 _ACEOF
11030 if ac_fn_c_try_link "$LINENO"; then :
11031   ac_cv_lib_dl_dlopen=yes
11032 else
11033   ac_cv_lib_dl_dlopen=no
11034 fi
11035 rm -f core conftest.err conftest.$ac_objext \
11036     conftest$ac_exeext conftest.$ac_ext
11037 LIBS=$ac_check_lib_save_LIBS
11038 fi
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11040 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11041 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11042   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11043 else
11044
11045     lt_cv_dlopen="dyld"
11046     lt_cv_dlopen_libs=
11047     lt_cv_dlopen_self=yes
11048
11049 fi
11050
11051     ;;
11052
11053   *)
11054     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11055 if test "x$ac_cv_func_shl_load" = xyes; then :
11056   lt_cv_dlopen="shl_load"
11057 else
11058   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11059 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11060 if ${ac_cv_lib_dld_shl_load+:} false; then :
11061   $as_echo_n "(cached) " >&6
11062 else
11063   ac_check_lib_save_LIBS=$LIBS
11064 LIBS="-ldld  $LIBS"
11065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11066 /* end confdefs.h.  */
11067
11068 /* Override any GCC internal prototype to avoid an error.
11069    Use char because int might match the return type of a GCC
11070    builtin and then its argument prototype would still apply.  */
11071 #ifdef __cplusplus
11072 extern "C"
11073 #endif
11074 char shl_load ();
11075 int
11076 main ()
11077 {
11078 return shl_load ();
11079   ;
11080   return 0;
11081 }
11082 _ACEOF
11083 if ac_fn_c_try_link "$LINENO"; then :
11084   ac_cv_lib_dld_shl_load=yes
11085 else
11086   ac_cv_lib_dld_shl_load=no
11087 fi
11088 rm -f core conftest.err conftest.$ac_objext \
11089     conftest$ac_exeext conftest.$ac_ext
11090 LIBS=$ac_check_lib_save_LIBS
11091 fi
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11093 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11094 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11095   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11096 else
11097   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11098 if test "x$ac_cv_func_dlopen" = xyes; then :
11099   lt_cv_dlopen="dlopen"
11100 else
11101   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11102 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11103 if ${ac_cv_lib_dl_dlopen+:} false; then :
11104   $as_echo_n "(cached) " >&6
11105 else
11106   ac_check_lib_save_LIBS=$LIBS
11107 LIBS="-ldl  $LIBS"
11108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11109 /* end confdefs.h.  */
11110
11111 /* Override any GCC internal prototype to avoid an error.
11112    Use char because int might match the return type of a GCC
11113    builtin and then its argument prototype would still apply.  */
11114 #ifdef __cplusplus
11115 extern "C"
11116 #endif
11117 char dlopen ();
11118 int
11119 main ()
11120 {
11121 return dlopen ();
11122   ;
11123   return 0;
11124 }
11125 _ACEOF
11126 if ac_fn_c_try_link "$LINENO"; then :
11127   ac_cv_lib_dl_dlopen=yes
11128 else
11129   ac_cv_lib_dl_dlopen=no
11130 fi
11131 rm -f core conftest.err conftest.$ac_objext \
11132     conftest$ac_exeext conftest.$ac_ext
11133 LIBS=$ac_check_lib_save_LIBS
11134 fi
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11136 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11137 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11138   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11139 else
11140   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11141 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11142 if ${ac_cv_lib_svld_dlopen+:} false; then :
11143   $as_echo_n "(cached) " >&6
11144 else
11145   ac_check_lib_save_LIBS=$LIBS
11146 LIBS="-lsvld  $LIBS"
11147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11148 /* end confdefs.h.  */
11149
11150 /* Override any GCC internal prototype to avoid an error.
11151    Use char because int might match the return type of a GCC
11152    builtin and then its argument prototype would still apply.  */
11153 #ifdef __cplusplus
11154 extern "C"
11155 #endif
11156 char dlopen ();
11157 int
11158 main ()
11159 {
11160 return dlopen ();
11161   ;
11162   return 0;
11163 }
11164 _ACEOF
11165 if ac_fn_c_try_link "$LINENO"; then :
11166   ac_cv_lib_svld_dlopen=yes
11167 else
11168   ac_cv_lib_svld_dlopen=no
11169 fi
11170 rm -f core conftest.err conftest.$ac_objext \
11171     conftest$ac_exeext conftest.$ac_ext
11172 LIBS=$ac_check_lib_save_LIBS
11173 fi
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11175 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11176 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11177   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11178 else
11179   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11180 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11181 if ${ac_cv_lib_dld_dld_link+:} false; then :
11182   $as_echo_n "(cached) " >&6
11183 else
11184   ac_check_lib_save_LIBS=$LIBS
11185 LIBS="-ldld  $LIBS"
11186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11187 /* end confdefs.h.  */
11188
11189 /* Override any GCC internal prototype to avoid an error.
11190    Use char because int might match the return type of a GCC
11191    builtin and then its argument prototype would still apply.  */
11192 #ifdef __cplusplus
11193 extern "C"
11194 #endif
11195 char dld_link ();
11196 int
11197 main ()
11198 {
11199 return dld_link ();
11200   ;
11201   return 0;
11202 }
11203 _ACEOF
11204 if ac_fn_c_try_link "$LINENO"; then :
11205   ac_cv_lib_dld_dld_link=yes
11206 else
11207   ac_cv_lib_dld_dld_link=no
11208 fi
11209 rm -f core conftest.err conftest.$ac_objext \
11210     conftest$ac_exeext conftest.$ac_ext
11211 LIBS=$ac_check_lib_save_LIBS
11212 fi
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11214 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11215 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11216   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11217 fi
11218
11219
11220 fi
11221
11222
11223 fi
11224
11225
11226 fi
11227
11228
11229 fi
11230
11231
11232 fi
11233
11234     ;;
11235   esac
11236
11237   if test "x$lt_cv_dlopen" != xno; then
11238     enable_dlopen=yes
11239   else
11240     enable_dlopen=no
11241   fi
11242
11243   case $lt_cv_dlopen in
11244   dlopen)
11245     save_CPPFLAGS="$CPPFLAGS"
11246     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11247
11248     save_LDFLAGS="$LDFLAGS"
11249     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11250
11251     save_LIBS="$LIBS"
11252     LIBS="$lt_cv_dlopen_libs $LIBS"
11253
11254     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11255 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11256 if ${lt_cv_dlopen_self+:} false; then :
11257   $as_echo_n "(cached) " >&6
11258 else
11259           if test "$cross_compiling" = yes; then :
11260   lt_cv_dlopen_self=cross
11261 else
11262   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11263   lt_status=$lt_dlunknown
11264   cat > conftest.$ac_ext <<_LT_EOF
11265 #line $LINENO "configure"
11266 #include "confdefs.h"
11267
11268 #if HAVE_DLFCN_H
11269 #include <dlfcn.h>
11270 #endif
11271
11272 #include <stdio.h>
11273
11274 #ifdef RTLD_GLOBAL
11275 #  define LT_DLGLOBAL           RTLD_GLOBAL
11276 #else
11277 #  ifdef DL_GLOBAL
11278 #    define LT_DLGLOBAL         DL_GLOBAL
11279 #  else
11280 #    define LT_DLGLOBAL         0
11281 #  endif
11282 #endif
11283
11284 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11285    find out it does not work in some platform. */
11286 #ifndef LT_DLLAZY_OR_NOW
11287 #  ifdef RTLD_LAZY
11288 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11289 #  else
11290 #    ifdef DL_LAZY
11291 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11292 #    else
11293 #      ifdef RTLD_NOW
11294 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11295 #      else
11296 #        ifdef DL_NOW
11297 #          define LT_DLLAZY_OR_NOW      DL_NOW
11298 #        else
11299 #          define LT_DLLAZY_OR_NOW      0
11300 #        endif
11301 #      endif
11302 #    endif
11303 #  endif
11304 #endif
11305
11306 /* When -fvisbility=hidden is used, assume the code has been annotated
11307    correspondingly for the symbols needed.  */
11308 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11309 int fnord () __attribute__((visibility("default")));
11310 #endif
11311
11312 int fnord () { return 42; }
11313 int main ()
11314 {
11315   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11316   int status = $lt_dlunknown;
11317
11318   if (self)
11319     {
11320       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11321       else
11322         {
11323           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11324           else puts (dlerror ());
11325         }
11326       /* dlclose (self); */
11327     }
11328   else
11329     puts (dlerror ());
11330
11331   return status;
11332 }
11333 _LT_EOF
11334   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11335   (eval $ac_link) 2>&5
11336   ac_status=$?
11337   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11338   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11339     (./conftest; exit; ) >&5 2>/dev/null
11340     lt_status=$?
11341     case x$lt_status in
11342       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11343       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11344       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11345     esac
11346   else :
11347     # compilation failed
11348     lt_cv_dlopen_self=no
11349   fi
11350 fi
11351 rm -fr conftest*
11352
11353
11354 fi
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11356 $as_echo "$lt_cv_dlopen_self" >&6; }
11357
11358     if test "x$lt_cv_dlopen_self" = xyes; then
11359       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11360       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11361 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11362 if ${lt_cv_dlopen_self_static+:} false; then :
11363   $as_echo_n "(cached) " >&6
11364 else
11365           if test "$cross_compiling" = yes; then :
11366   lt_cv_dlopen_self_static=cross
11367 else
11368   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11369   lt_status=$lt_dlunknown
11370   cat > conftest.$ac_ext <<_LT_EOF
11371 #line $LINENO "configure"
11372 #include "confdefs.h"
11373
11374 #if HAVE_DLFCN_H
11375 #include <dlfcn.h>
11376 #endif
11377
11378 #include <stdio.h>
11379
11380 #ifdef RTLD_GLOBAL
11381 #  define LT_DLGLOBAL           RTLD_GLOBAL
11382 #else
11383 #  ifdef DL_GLOBAL
11384 #    define LT_DLGLOBAL         DL_GLOBAL
11385 #  else
11386 #    define LT_DLGLOBAL         0
11387 #  endif
11388 #endif
11389
11390 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11391    find out it does not work in some platform. */
11392 #ifndef LT_DLLAZY_OR_NOW
11393 #  ifdef RTLD_LAZY
11394 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11395 #  else
11396 #    ifdef DL_LAZY
11397 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11398 #    else
11399 #      ifdef RTLD_NOW
11400 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11401 #      else
11402 #        ifdef DL_NOW
11403 #          define LT_DLLAZY_OR_NOW      DL_NOW
11404 #        else
11405 #          define LT_DLLAZY_OR_NOW      0
11406 #        endif
11407 #      endif
11408 #    endif
11409 #  endif
11410 #endif
11411
11412 /* When -fvisbility=hidden is used, assume the code has been annotated
11413    correspondingly for the symbols needed.  */
11414 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11415 int fnord () __attribute__((visibility("default")));
11416 #endif
11417
11418 int fnord () { return 42; }
11419 int main ()
11420 {
11421   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11422   int status = $lt_dlunknown;
11423
11424   if (self)
11425     {
11426       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11427       else
11428         {
11429           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11430           else puts (dlerror ());
11431         }
11432       /* dlclose (self); */
11433     }
11434   else
11435     puts (dlerror ());
11436
11437   return status;
11438 }
11439 _LT_EOF
11440   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11441   (eval $ac_link) 2>&5
11442   ac_status=$?
11443   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11444   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11445     (./conftest; exit; ) >&5 2>/dev/null
11446     lt_status=$?
11447     case x$lt_status in
11448       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11449       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11450       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11451     esac
11452   else :
11453     # compilation failed
11454     lt_cv_dlopen_self_static=no
11455   fi
11456 fi
11457 rm -fr conftest*
11458
11459
11460 fi
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11462 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11463     fi
11464
11465     CPPFLAGS="$save_CPPFLAGS"
11466     LDFLAGS="$save_LDFLAGS"
11467     LIBS="$save_LIBS"
11468     ;;
11469   esac
11470
11471   case $lt_cv_dlopen_self in
11472   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11473   *) enable_dlopen_self=unknown ;;
11474   esac
11475
11476   case $lt_cv_dlopen_self_static in
11477   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11478   *) enable_dlopen_self_static=unknown ;;
11479   esac
11480 fi
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498 striplib=
11499 old_striplib=
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11501 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11502 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11503   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11504   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11506 $as_echo "yes" >&6; }
11507 else
11508 # FIXME - insert some real tests, host_os isn't really good enough
11509   case $host_os in
11510   darwin*)
11511     if test -n "$STRIP" ; then
11512       striplib="$STRIP -x"
11513       old_striplib="$STRIP -S"
11514       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11515 $as_echo "yes" >&6; }
11516     else
11517       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11518 $as_echo "no" >&6; }
11519     fi
11520     ;;
11521   *)
11522     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11523 $as_echo "no" >&6; }
11524     ;;
11525   esac
11526 fi
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539   # Report which library types will actually be built
11540   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11541 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11543 $as_echo "$can_build_shared" >&6; }
11544
11545   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11546 $as_echo_n "checking whether to build shared libraries... " >&6; }
11547   test "$can_build_shared" = "no" && enable_shared=no
11548
11549   # On AIX, shared libraries and static libraries use the same namespace, and
11550   # are all built from PIC.
11551   case $host_os in
11552   aix3*)
11553     test "$enable_shared" = yes && enable_static=no
11554     if test -n "$RANLIB"; then
11555       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11556       postinstall_cmds='$RANLIB $lib'
11557     fi
11558     ;;
11559
11560   aix[4-9]*)
11561     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11562       test "$enable_shared" = yes && enable_static=no
11563     fi
11564     ;;
11565   esac
11566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11567 $as_echo "$enable_shared" >&6; }
11568
11569   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11570 $as_echo_n "checking whether to build static libraries... " >&6; }
11571   # Make sure either enable_shared or enable_static is yes.
11572   test "$enable_shared" = yes || enable_static=yes
11573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11574 $as_echo "$enable_static" >&6; }
11575
11576
11577
11578
11579 fi
11580 ac_ext=c
11581 ac_cpp='$CPP $CPPFLAGS'
11582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11585
11586 CC="$lt_save_CC"
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602         ac_config_commands="$ac_config_commands libtool"
11603
11604
11605
11606
11607 # Only expand once:
11608
11609
11610
11611 if test "x$CC" != xcc; then
11612   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
11613 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
11614 else
11615   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
11616 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
11617 fi
11618 set dummy $CC; ac_cc=`$as_echo "$2" |
11619                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11620 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
11621   $as_echo_n "(cached) " >&6
11622 else
11623   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11624 /* end confdefs.h.  */
11625
11626 int
11627 main ()
11628 {
11629
11630   ;
11631   return 0;
11632 }
11633 _ACEOF
11634 # Make sure it works both with $CC and with simple cc.
11635 # We do the test twice because some compilers refuse to overwrite an
11636 # existing .o file with -o, though they will create one.
11637 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11638 rm -f conftest2.*
11639 if { { case "(($ac_try" in
11640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11641   *) ac_try_echo=$ac_try;;
11642 esac
11643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11644 $as_echo "$ac_try_echo"; } >&5
11645   (eval "$ac_try") 2>&5
11646   ac_status=$?
11647   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11648   test $ac_status = 0; } &&
11649    test -f conftest2.$ac_objext && { { case "(($ac_try" in
11650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11651   *) ac_try_echo=$ac_try;;
11652 esac
11653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11654 $as_echo "$ac_try_echo"; } >&5
11655   (eval "$ac_try") 2>&5
11656   ac_status=$?
11657   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11658   test $ac_status = 0; };
11659 then
11660   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
11661   if test "x$CC" != xcc; then
11662     # Test first that cc exists at all.
11663     if { ac_try='cc -c conftest.$ac_ext >&5'
11664   { { case "(($ac_try" in
11665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11666   *) ac_try_echo=$ac_try;;
11667 esac
11668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11669 $as_echo "$ac_try_echo"; } >&5
11670   (eval "$ac_try") 2>&5
11671   ac_status=$?
11672   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11673   test $ac_status = 0; }; }; then
11674       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11675       rm -f conftest2.*
11676       if { { case "(($ac_try" in
11677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11678   *) ac_try_echo=$ac_try;;
11679 esac
11680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11681 $as_echo "$ac_try_echo"; } >&5
11682   (eval "$ac_try") 2>&5
11683   ac_status=$?
11684   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11685   test $ac_status = 0; } &&
11686          test -f conftest2.$ac_objext && { { case "(($ac_try" in
11687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11688   *) ac_try_echo=$ac_try;;
11689 esac
11690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11691 $as_echo "$ac_try_echo"; } >&5
11692   (eval "$ac_try") 2>&5
11693   ac_status=$?
11694   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11695   test $ac_status = 0; };
11696       then
11697         # cc works too.
11698         :
11699       else
11700         # cc exists but doesn't like -o.
11701         eval ac_cv_prog_cc_${ac_cc}_c_o=no
11702       fi
11703     fi
11704   fi
11705 else
11706   eval ac_cv_prog_cc_${ac_cc}_c_o=no
11707 fi
11708 rm -f core conftest*
11709
11710 fi
11711 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11713 $as_echo "yes" >&6; }
11714 else
11715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11716 $as_echo "no" >&6; }
11717
11718 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
11719
11720 fi
11721
11722 # FIXME: we rely on the cache variable name because
11723 # there is no other way.
11724 set dummy $CC
11725 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11726 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11727 if test "$am_t" != yes; then
11728    # Losing compiler, so override with the script.
11729    # FIXME: It is wrong to rewrite CC.
11730    # But if we don't then we get into trouble of one sort or another.
11731    # A longer-term fix would be to have automake use am__CC in this case,
11732    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11733    CC="$am_aux_dir/compile $CC"
11734 fi
11735
11736
11737 enable_win32_dll=yes
11738
11739 case $host in
11740 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
11741   if test -n "$ac_tool_prefix"; then
11742   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11743 set dummy ${ac_tool_prefix}as; ac_word=$2
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11745 $as_echo_n "checking for $ac_word... " >&6; }
11746 if ${ac_cv_prog_AS+:} false; then :
11747   $as_echo_n "(cached) " >&6
11748 else
11749   if test -n "$AS"; then
11750   ac_cv_prog_AS="$AS" # Let the user override the test.
11751 else
11752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11753 for as_dir in $PATH
11754 do
11755   IFS=$as_save_IFS
11756   test -z "$as_dir" && as_dir=.
11757     for ac_exec_ext in '' $ac_executable_extensions; do
11758   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11759     ac_cv_prog_AS="${ac_tool_prefix}as"
11760     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11761     break 2
11762   fi
11763 done
11764   done
11765 IFS=$as_save_IFS
11766
11767 fi
11768 fi
11769 AS=$ac_cv_prog_AS
11770 if test -n "$AS"; then
11771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11772 $as_echo "$AS" >&6; }
11773 else
11774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11775 $as_echo "no" >&6; }
11776 fi
11777
11778
11779 fi
11780 if test -z "$ac_cv_prog_AS"; then
11781   ac_ct_AS=$AS
11782   # Extract the first word of "as", so it can be a program name with args.
11783 set dummy as; ac_word=$2
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11785 $as_echo_n "checking for $ac_word... " >&6; }
11786 if ${ac_cv_prog_ac_ct_AS+:} false; then :
11787   $as_echo_n "(cached) " >&6
11788 else
11789   if test -n "$ac_ct_AS"; then
11790   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11791 else
11792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11793 for as_dir in $PATH
11794 do
11795   IFS=$as_save_IFS
11796   test -z "$as_dir" && as_dir=.
11797     for ac_exec_ext in '' $ac_executable_extensions; do
11798   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11799     ac_cv_prog_ac_ct_AS="as"
11800     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11801     break 2
11802   fi
11803 done
11804   done
11805 IFS=$as_save_IFS
11806
11807 fi
11808 fi
11809 ac_ct_AS=$ac_cv_prog_ac_ct_AS
11810 if test -n "$ac_ct_AS"; then
11811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
11812 $as_echo "$ac_ct_AS" >&6; }
11813 else
11814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11815 $as_echo "no" >&6; }
11816 fi
11817
11818   if test "x$ac_ct_AS" = x; then
11819     AS="false"
11820   else
11821     case $cross_compiling:$ac_tool_warned in
11822 yes:)
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11824 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11825 ac_tool_warned=yes ;;
11826 esac
11827     AS=$ac_ct_AS
11828   fi
11829 else
11830   AS="$ac_cv_prog_AS"
11831 fi
11832
11833   if test -n "$ac_tool_prefix"; then
11834   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11835 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11837 $as_echo_n "checking for $ac_word... " >&6; }
11838 if ${ac_cv_prog_DLLTOOL+:} false; then :
11839   $as_echo_n "(cached) " >&6
11840 else
11841   if test -n "$DLLTOOL"; then
11842   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11843 else
11844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11845 for as_dir in $PATH
11846 do
11847   IFS=$as_save_IFS
11848   test -z "$as_dir" && as_dir=.
11849     for ac_exec_ext in '' $ac_executable_extensions; do
11850   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11851     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11852     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11853     break 2
11854   fi
11855 done
11856   done
11857 IFS=$as_save_IFS
11858
11859 fi
11860 fi
11861 DLLTOOL=$ac_cv_prog_DLLTOOL
11862 if test -n "$DLLTOOL"; then
11863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11864 $as_echo "$DLLTOOL" >&6; }
11865 else
11866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11867 $as_echo "no" >&6; }
11868 fi
11869
11870
11871 fi
11872 if test -z "$ac_cv_prog_DLLTOOL"; then
11873   ac_ct_DLLTOOL=$DLLTOOL
11874   # Extract the first word of "dlltool", so it can be a program name with args.
11875 set dummy dlltool; ac_word=$2
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11877 $as_echo_n "checking for $ac_word... " >&6; }
11878 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11879   $as_echo_n "(cached) " >&6
11880 else
11881   if test -n "$ac_ct_DLLTOOL"; then
11882   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11883 else
11884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11885 for as_dir in $PATH
11886 do
11887   IFS=$as_save_IFS
11888   test -z "$as_dir" && as_dir=.
11889     for ac_exec_ext in '' $ac_executable_extensions; do
11890   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11891     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11892     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11893     break 2
11894   fi
11895 done
11896   done
11897 IFS=$as_save_IFS
11898
11899 fi
11900 fi
11901 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11902 if test -n "$ac_ct_DLLTOOL"; then
11903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11904 $as_echo "$ac_ct_DLLTOOL" >&6; }
11905 else
11906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11907 $as_echo "no" >&6; }
11908 fi
11909
11910   if test "x$ac_ct_DLLTOOL" = x; then
11911     DLLTOOL="false"
11912   else
11913     case $cross_compiling:$ac_tool_warned in
11914 yes:)
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11916 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11917 ac_tool_warned=yes ;;
11918 esac
11919     DLLTOOL=$ac_ct_DLLTOOL
11920   fi
11921 else
11922   DLLTOOL="$ac_cv_prog_DLLTOOL"
11923 fi
11924
11925   if test -n "$ac_tool_prefix"; then
11926   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11927 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11929 $as_echo_n "checking for $ac_word... " >&6; }
11930 if ${ac_cv_prog_OBJDUMP+:} false; then :
11931   $as_echo_n "(cached) " >&6
11932 else
11933   if test -n "$OBJDUMP"; then
11934   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11935 else
11936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11937 for as_dir in $PATH
11938 do
11939   IFS=$as_save_IFS
11940   test -z "$as_dir" && as_dir=.
11941     for ac_exec_ext in '' $ac_executable_extensions; do
11942   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11943     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11944     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11945     break 2
11946   fi
11947 done
11948   done
11949 IFS=$as_save_IFS
11950
11951 fi
11952 fi
11953 OBJDUMP=$ac_cv_prog_OBJDUMP
11954 if test -n "$OBJDUMP"; then
11955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11956 $as_echo "$OBJDUMP" >&6; }
11957 else
11958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11959 $as_echo "no" >&6; }
11960 fi
11961
11962
11963 fi
11964 if test -z "$ac_cv_prog_OBJDUMP"; then
11965   ac_ct_OBJDUMP=$OBJDUMP
11966   # Extract the first word of "objdump", so it can be a program name with args.
11967 set dummy objdump; ac_word=$2
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11969 $as_echo_n "checking for $ac_word... " >&6; }
11970 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11971   $as_echo_n "(cached) " >&6
11972 else
11973   if test -n "$ac_ct_OBJDUMP"; then
11974   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11975 else
11976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11977 for as_dir in $PATH
11978 do
11979   IFS=$as_save_IFS
11980   test -z "$as_dir" && as_dir=.
11981     for ac_exec_ext in '' $ac_executable_extensions; do
11982   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11983     ac_cv_prog_ac_ct_OBJDUMP="objdump"
11984     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11985     break 2
11986   fi
11987 done
11988   done
11989 IFS=$as_save_IFS
11990
11991 fi
11992 fi
11993 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11994 if test -n "$ac_ct_OBJDUMP"; then
11995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11996 $as_echo "$ac_ct_OBJDUMP" >&6; }
11997 else
11998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11999 $as_echo "no" >&6; }
12000 fi
12001
12002   if test "x$ac_ct_OBJDUMP" = x; then
12003     OBJDUMP="false"
12004   else
12005     case $cross_compiling:$ac_tool_warned in
12006 yes:)
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12008 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12009 ac_tool_warned=yes ;;
12010 esac
12011     OBJDUMP=$ac_ct_OBJDUMP
12012   fi
12013 else
12014   OBJDUMP="$ac_cv_prog_OBJDUMP"
12015 fi
12016
12017   ;;
12018 esac
12019
12020 test -z "$AS" && AS=as
12021
12022
12023
12024
12025
12026 test -z "$DLLTOOL" && DLLTOOL=dlltool
12027
12028
12029 test -z "$OBJDUMP" && OBJDUMP=objdump
12030
12031
12032
12033
12034
12035
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12037 $as_echo_n "checking for ANSI C header files... " >&6; }
12038 if ${ac_cv_header_stdc+:} false; then :
12039   $as_echo_n "(cached) " >&6
12040 else
12041   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12042 /* end confdefs.h.  */
12043 #include <stdlib.h>
12044 #include <stdarg.h>
12045 #include <string.h>
12046 #include <float.h>
12047
12048 int
12049 main ()
12050 {
12051
12052   ;
12053   return 0;
12054 }
12055 _ACEOF
12056 if ac_fn_c_try_compile "$LINENO"; then :
12057   ac_cv_header_stdc=yes
12058 else
12059   ac_cv_header_stdc=no
12060 fi
12061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12062
12063 if test $ac_cv_header_stdc = yes; then
12064   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12065   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12066 /* end confdefs.h.  */
12067 #include <string.h>
12068
12069 _ACEOF
12070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12071   $EGREP "memchr" >/dev/null 2>&1; then :
12072
12073 else
12074   ac_cv_header_stdc=no
12075 fi
12076 rm -f conftest*
12077
12078 fi
12079
12080 if test $ac_cv_header_stdc = yes; then
12081   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12082   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12083 /* end confdefs.h.  */
12084 #include <stdlib.h>
12085
12086 _ACEOF
12087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12088   $EGREP "free" >/dev/null 2>&1; then :
12089
12090 else
12091   ac_cv_header_stdc=no
12092 fi
12093 rm -f conftest*
12094
12095 fi
12096
12097 if test $ac_cv_header_stdc = yes; then
12098   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12099   if test "$cross_compiling" = yes; then :
12100   :
12101 else
12102   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12103 /* end confdefs.h.  */
12104 #include <ctype.h>
12105 #include <stdlib.h>
12106 #if ((' ' & 0x0FF) == 0x020)
12107 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12108 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12109 #else
12110 # define ISLOWER(c) \
12111                    (('a' <= (c) && (c) <= 'i') \
12112                      || ('j' <= (c) && (c) <= 'r') \
12113                      || ('s' <= (c) && (c) <= 'z'))
12114 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12115 #endif
12116
12117 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12118 int
12119 main ()
12120 {
12121   int i;
12122   for (i = 0; i < 256; i++)
12123     if (XOR (islower (i), ISLOWER (i))
12124         || toupper (i) != TOUPPER (i))
12125       return 2;
12126   return 0;
12127 }
12128 _ACEOF
12129 if ac_fn_c_try_run "$LINENO"; then :
12130
12131 else
12132   ac_cv_header_stdc=no
12133 fi
12134 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12135   conftest.$ac_objext conftest.beam conftest.$ac_ext
12136 fi
12137
12138 fi
12139 fi
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12141 $as_echo "$ac_cv_header_stdc" >&6; }
12142 if test $ac_cv_header_stdc = yes; then
12143
12144 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12145
12146 fi
12147
12148 for ac_header in unistd.h time.h string.h alloca.h stdio.h stdarg.h math.h
12149 do :
12150   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12151 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12152 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12153   cat >>confdefs.h <<_ACEOF
12154 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12155 _ACEOF
12156
12157 fi
12158
12159 done
12160
12161
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
12163 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
12164 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
12165   $as_echo_n "(cached) " >&6
12166 else
12167   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12168 /* end confdefs.h.  */
12169 #include <sys/types.h>
12170 int
12171 main ()
12172 {
12173 return makedev(0, 0);
12174   ;
12175   return 0;
12176 }
12177 _ACEOF
12178 if ac_fn_c_try_link "$LINENO"; then :
12179   ac_cv_header_sys_types_h_makedev=yes
12180 else
12181   ac_cv_header_sys_types_h_makedev=no
12182 fi
12183 rm -f core conftest.err conftest.$ac_objext \
12184     conftest$ac_exeext conftest.$ac_ext
12185
12186 fi
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
12188 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
12189
12190 if test $ac_cv_header_sys_types_h_makedev = no; then
12191 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
12192 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
12193
12194 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
12195
12196 fi
12197
12198
12199
12200   if test $ac_cv_header_sys_mkdev_h = no; then
12201     ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
12202 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
12203
12204 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
12205
12206 fi
12207
12208
12209   fi
12210 fi
12211
12212 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12213 if test "x$ac_cv_type_size_t" = xyes; then :
12214
12215 else
12216
12217 cat >>confdefs.h <<_ACEOF
12218 #define size_t unsigned int
12219 _ACEOF
12220
12221 fi
12222
12223 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12224 # for constant arguments.  Useless!
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12226 $as_echo_n "checking for working alloca.h... " >&6; }
12227 if ${ac_cv_working_alloca_h+:} false; then :
12228   $as_echo_n "(cached) " >&6
12229 else
12230   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12231 /* end confdefs.h.  */
12232 #include <alloca.h>
12233 int
12234 main ()
12235 {
12236 char *p = (char *) alloca (2 * sizeof (int));
12237                           if (p) return 0;
12238   ;
12239   return 0;
12240 }
12241 _ACEOF
12242 if ac_fn_c_try_link "$LINENO"; then :
12243   ac_cv_working_alloca_h=yes
12244 else
12245   ac_cv_working_alloca_h=no
12246 fi
12247 rm -f core conftest.err conftest.$ac_objext \
12248     conftest$ac_exeext conftest.$ac_ext
12249 fi
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12251 $as_echo "$ac_cv_working_alloca_h" >&6; }
12252 if test $ac_cv_working_alloca_h = yes; then
12253
12254 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12255
12256 fi
12257
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12259 $as_echo_n "checking for alloca... " >&6; }
12260 if ${ac_cv_func_alloca_works+:} false; then :
12261   $as_echo_n "(cached) " >&6
12262 else
12263   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12264 /* end confdefs.h.  */
12265 #ifdef __GNUC__
12266 # define alloca __builtin_alloca
12267 #else
12268 # ifdef _MSC_VER
12269 #  include <malloc.h>
12270 #  define alloca _alloca
12271 # else
12272 #  ifdef HAVE_ALLOCA_H
12273 #   include <alloca.h>
12274 #  else
12275 #   ifdef _AIX
12276  #pragma alloca
12277 #   else
12278 #    ifndef alloca /* predefined by HP cc +Olibcalls */
12279 void *alloca (size_t);
12280 #    endif
12281 #   endif
12282 #  endif
12283 # endif
12284 #endif
12285
12286 int
12287 main ()
12288 {
12289 char *p = (char *) alloca (1);
12290                                     if (p) return 0;
12291   ;
12292   return 0;
12293 }
12294 _ACEOF
12295 if ac_fn_c_try_link "$LINENO"; then :
12296   ac_cv_func_alloca_works=yes
12297 else
12298   ac_cv_func_alloca_works=no
12299 fi
12300 rm -f core conftest.err conftest.$ac_objext \
12301     conftest$ac_exeext conftest.$ac_ext
12302 fi
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12304 $as_echo "$ac_cv_func_alloca_works" >&6; }
12305
12306 if test $ac_cv_func_alloca_works = yes; then
12307
12308 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12309
12310 else
12311   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12312 # that cause trouble.  Some versions do not even contain alloca or
12313 # contain a buggy version.  If you still want to use their alloca,
12314 # use ar to extract alloca.o from them instead of compiling alloca.c.
12315
12316 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12317
12318 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12319
12320
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12322 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12323 if ${ac_cv_os_cray+:} false; then :
12324   $as_echo_n "(cached) " >&6
12325 else
12326   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12327 /* end confdefs.h.  */
12328 #if defined CRAY && ! defined CRAY2
12329 webecray
12330 #else
12331 wenotbecray
12332 #endif
12333
12334 _ACEOF
12335 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12336   $EGREP "webecray" >/dev/null 2>&1; then :
12337   ac_cv_os_cray=yes
12338 else
12339   ac_cv_os_cray=no
12340 fi
12341 rm -f conftest*
12342
12343 fi
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12345 $as_echo "$ac_cv_os_cray" >&6; }
12346 if test $ac_cv_os_cray = yes; then
12347   for ac_func in _getb67 GETB67 getb67; do
12348     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12349 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12350 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12351
12352 cat >>confdefs.h <<_ACEOF
12353 #define CRAY_STACKSEG_END $ac_func
12354 _ACEOF
12355
12356     break
12357 fi
12358
12359   done
12360 fi
12361
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12363 $as_echo_n "checking stack direction for C alloca... " >&6; }
12364 if ${ac_cv_c_stack_direction+:} false; then :
12365   $as_echo_n "(cached) " >&6
12366 else
12367   if test "$cross_compiling" = yes; then :
12368   ac_cv_c_stack_direction=0
12369 else
12370   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12371 /* end confdefs.h.  */
12372 $ac_includes_default
12373 int
12374 find_stack_direction (int *addr, int depth)
12375 {
12376   int dir, dummy = 0;
12377   if (! addr)
12378     addr = &dummy;
12379   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
12380   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
12381   return dir + dummy;
12382 }
12383
12384 int
12385 main (int argc, char **argv)
12386 {
12387   return find_stack_direction (0, argc + !argv + 20) < 0;
12388 }
12389 _ACEOF
12390 if ac_fn_c_try_run "$LINENO"; then :
12391   ac_cv_c_stack_direction=1
12392 else
12393   ac_cv_c_stack_direction=-1
12394 fi
12395 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12396   conftest.$ac_objext conftest.beam conftest.$ac_ext
12397 fi
12398
12399 fi
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12401 $as_echo "$ac_cv_c_stack_direction" >&6; }
12402 cat >>confdefs.h <<_ACEOF
12403 #define STACK_DIRECTION $ac_cv_c_stack_direction
12404 _ACEOF
12405
12406
12407 fi
12408
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
12410 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
12411 if ${ac_cv_struct_tm+:} false; then :
12412   $as_echo_n "(cached) " >&6
12413 else
12414   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12415 /* end confdefs.h.  */
12416 #include <sys/types.h>
12417 #include <time.h>
12418
12419 int
12420 main ()
12421 {
12422 struct tm tm;
12423                                      int *p = &tm.tm_sec;
12424                                      return !p;
12425   ;
12426   return 0;
12427 }
12428 _ACEOF
12429 if ac_fn_c_try_compile "$LINENO"; then :
12430   ac_cv_struct_tm=time.h
12431 else
12432   ac_cv_struct_tm=sys/time.h
12433 fi
12434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12435 fi
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
12437 $as_echo "$ac_cv_struct_tm" >&6; }
12438 if test $ac_cv_struct_tm = sys/time.h; then
12439
12440 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
12441
12442 fi
12443
12444 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
12445 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
12446
12447 cat >>confdefs.h <<_ACEOF
12448 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12449 _ACEOF
12450
12451
12452 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
12453
12454 else
12455   case " $LIBOBJS " in
12456   *" fileblocks.$ac_objext "* ) ;;
12457   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
12458  ;;
12459 esac
12460
12461 fi
12462
12463
12464 ac_header_dirent=no
12465 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
12466   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
12468 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
12469 if eval \${$as_ac_Header+:} false; then :
12470   $as_echo_n "(cached) " >&6
12471 else
12472   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12473 /* end confdefs.h.  */
12474 #include <sys/types.h>
12475 #include <$ac_hdr>
12476
12477 int
12478 main ()
12479 {
12480 if ((DIR *) 0)
12481 return 0;
12482   ;
12483   return 0;
12484 }
12485 _ACEOF
12486 if ac_fn_c_try_compile "$LINENO"; then :
12487   eval "$as_ac_Header=yes"
12488 else
12489   eval "$as_ac_Header=no"
12490 fi
12491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12492 fi
12493 eval ac_res=\$$as_ac_Header
12494                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12495 $as_echo "$ac_res" >&6; }
12496 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12497   cat >>confdefs.h <<_ACEOF
12498 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
12499 _ACEOF
12500
12501 ac_header_dirent=$ac_hdr; break
12502 fi
12503
12504 done
12505 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
12506 if test $ac_header_dirent = dirent.h; then
12507   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12508 $as_echo_n "checking for library containing opendir... " >&6; }
12509 if ${ac_cv_search_opendir+:} false; then :
12510   $as_echo_n "(cached) " >&6
12511 else
12512   ac_func_search_save_LIBS=$LIBS
12513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12514 /* end confdefs.h.  */
12515
12516 /* Override any GCC internal prototype to avoid an error.
12517    Use char because int might match the return type of a GCC
12518    builtin and then its argument prototype would still apply.  */
12519 #ifdef __cplusplus
12520 extern "C"
12521 #endif
12522 char opendir ();
12523 int
12524 main ()
12525 {
12526 return opendir ();
12527   ;
12528   return 0;
12529 }
12530 _ACEOF
12531 for ac_lib in '' dir; do
12532   if test -z "$ac_lib"; then
12533     ac_res="none required"
12534   else
12535     ac_res=-l$ac_lib
12536     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12537   fi
12538   if ac_fn_c_try_link "$LINENO"; then :
12539   ac_cv_search_opendir=$ac_res
12540 fi
12541 rm -f core conftest.err conftest.$ac_objext \
12542     conftest$ac_exeext
12543   if ${ac_cv_search_opendir+:} false; then :
12544   break
12545 fi
12546 done
12547 if ${ac_cv_search_opendir+:} false; then :
12548
12549 else
12550   ac_cv_search_opendir=no
12551 fi
12552 rm conftest.$ac_ext
12553 LIBS=$ac_func_search_save_LIBS
12554 fi
12555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12556 $as_echo "$ac_cv_search_opendir" >&6; }
12557 ac_res=$ac_cv_search_opendir
12558 if test "$ac_res" != no; then :
12559   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12560
12561 fi
12562
12563 else
12564   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12565 $as_echo_n "checking for library containing opendir... " >&6; }
12566 if ${ac_cv_search_opendir+:} false; then :
12567   $as_echo_n "(cached) " >&6
12568 else
12569   ac_func_search_save_LIBS=$LIBS
12570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12571 /* end confdefs.h.  */
12572
12573 /* Override any GCC internal prototype to avoid an error.
12574    Use char because int might match the return type of a GCC
12575    builtin and then its argument prototype would still apply.  */
12576 #ifdef __cplusplus
12577 extern "C"
12578 #endif
12579 char opendir ();
12580 int
12581 main ()
12582 {
12583 return opendir ();
12584   ;
12585   return 0;
12586 }
12587 _ACEOF
12588 for ac_lib in '' x; do
12589   if test -z "$ac_lib"; then
12590     ac_res="none required"
12591   else
12592     ac_res=-l$ac_lib
12593     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12594   fi
12595   if ac_fn_c_try_link "$LINENO"; then :
12596   ac_cv_search_opendir=$ac_res
12597 fi
12598 rm -f core conftest.err conftest.$ac_objext \
12599     conftest$ac_exeext
12600   if ${ac_cv_search_opendir+:} false; then :
12601   break
12602 fi
12603 done
12604 if ${ac_cv_search_opendir+:} false; then :
12605
12606 else
12607   ac_cv_search_opendir=no
12608 fi
12609 rm conftest.$ac_ext
12610 LIBS=$ac_func_search_save_LIBS
12611 fi
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12613 $as_echo "$ac_cv_search_opendir" >&6; }
12614 ac_res=$ac_cv_search_opendir
12615 if test "$ac_res" != no; then :
12616   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12617
12618 fi
12619
12620 fi
12621
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
12623 $as_echo_n "checking whether closedir returns void... " >&6; }
12624 if ${ac_cv_func_closedir_void+:} false; then :
12625   $as_echo_n "(cached) " >&6
12626 else
12627   if test "$cross_compiling" = yes; then :
12628   ac_cv_func_closedir_void=yes
12629 else
12630   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12631 /* end confdefs.h.  */
12632 $ac_includes_default
12633 #include <$ac_header_dirent>
12634 #ifndef __cplusplus
12635 int closedir ();
12636 #endif
12637
12638 int
12639 main ()
12640 {
12641 return closedir (opendir (".")) != 0;
12642   ;
12643   return 0;
12644 }
12645 _ACEOF
12646 if ac_fn_c_try_run "$LINENO"; then :
12647   ac_cv_func_closedir_void=no
12648 else
12649   ac_cv_func_closedir_void=yes
12650 fi
12651 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12652   conftest.$ac_objext conftest.beam conftest.$ac_ext
12653 fi
12654
12655 fi
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
12657 $as_echo "$ac_cv_func_closedir_void" >&6; }
12658 if test $ac_cv_func_closedir_void = yes; then
12659
12660 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
12661
12662 fi
12663
12664
12665
12666
12667
12668
12669
12670
12671 EXESUF=
12672 TEST_UNICODE=-DTEST_UNICODE
12673
12674 case $target_os in
12675   *darwin*)
12676   ;;
12677   *mingw32*|*win*)
12678     EXESUF=.exe
12679     TEST_UNICODE=
12680   ;;
12681   *)
12682   ;;
12683 esac
12684
12685
12686
12687 LIBOAUTH_CFLAGS="-Wall"
12688 LIBOAUTH_LDFLAGS="${LIBOAUTH_CFLAGS} -export-symbols-regex '^oauth_.*'"
12689 #LIBOAUTH_CFLAGS="${LIBOAUTH_CFLAGS} -g -posix -std=c99 -pedantic"
12690
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -Wl,--as-needed works" >&5
12692 $as_echo_n "checking if -Wl,--as-needed works... " >&6; }
12693 LDFLAGS_save=$LDFLAGS
12694 LDFLAGS="$LDFLAGS -Wl,--as-needed"
12695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12696 /* end confdefs.h.  */
12697
12698 int
12699 main ()
12700 {
12701
12702   ;
12703   return 0;
12704 }
12705 _ACEOF
12706 if ac_fn_c_try_link "$LINENO"; then :
12707
12708              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12709 $as_echo "yes" >&6; }
12710              LIBOAUTH_LDFLAGS="$LIBOAUTH_LDFLAGS -Wl,--as-needed"
12711
12712 else
12713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12714 $as_echo "no" >&6; }
12715 fi
12716 rm -f core conftest.err conftest.$ac_objext \
12717     conftest$ac_exeext conftest.$ac_ext
12718 LDFLAGS=$LDFLAGS_save
12719
12720
12721
12722
12723
12724 PC_REQ=""
12725 PC_LIB=""
12726
12727 # Check whether --enable-curl was given.
12728 if test "${enable_curl+set}" = set; then :
12729   enableval=$enable_curl;
12730 fi
12731
12732 # Check whether --enable-libcurl was given.
12733 if test "${enable_libcurl+set}" = set; then :
12734   enableval=$enable_libcurl;
12735 fi
12736
12737 # Check whether --enable-builtinhash was given.
12738 if test "${enable_builtinhash+set}" = set; then :
12739   enableval=$enable_builtinhash;
12740 fi
12741
12742 # Check whether --enable-nss was given.
12743 if test "${enable_nss+set}" = set; then :
12744   enableval=$enable_nss;
12745 fi
12746
12747
12748 # Check whether --with-curltimeout was given.
12749 if test "${with_curltimeout+set}" = set; then :
12750   withval=$with_curltimeout;
12751 fi
12752
12753
12754 report_curl="no"
12755 if test "${enable_curl}" != "no"; then
12756   # Extract the first word of "curl", so it can be a program name with args.
12757 set dummy curl; ac_word=$2
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12759 $as_echo_n "checking for $ac_word... " >&6; }
12760 if ${ac_cv_path_CURLCMD+:} false; then :
12761   $as_echo_n "(cached) " >&6
12762 else
12763   case $CURLCMD in
12764   [\\/]* | ?:[\\/]*)
12765   ac_cv_path_CURLCMD="$CURLCMD" # Let the user override the test with a path.
12766   ;;
12767   *)
12768   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12769 as_dummy="$PATH:/bin:/usr/bin:/usr/local/bin"
12770 for as_dir in $as_dummy
12771 do
12772   IFS=$as_save_IFS
12773   test -z "$as_dir" && as_dir=.
12774     for ac_exec_ext in '' $ac_executable_extensions; do
12775   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12776     ac_cv_path_CURLCMD="$as_dir/$ac_word$ac_exec_ext"
12777     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12778     break 2
12779   fi
12780 done
12781   done
12782 IFS=$as_save_IFS
12783
12784   test -z "$ac_cv_path_CURLCMD" && ac_cv_path_CURLCMD="no"
12785   ;;
12786 esac
12787 fi
12788 CURLCMD=$ac_cv_path_CURLCMD
12789 if test -n "$CURLCMD"; then
12790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURLCMD" >&5
12791 $as_echo "$CURLCMD" >&6; }
12792 else
12793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12794 $as_echo "no" >&6; }
12795 fi
12796
12797
12798   if test "$CURLCMD" != "no"; then
12799   $as_echo "#define HAVE_SHELL_CURL 1" >>confdefs.h
12800
12801   report_curl="shell command"
12802   fi
12803 fi
12804
12805
12806
12807
12808
12809
12810
12811
12812 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12813         if test -n "$ac_tool_prefix"; then
12814   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12815 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12817 $as_echo_n "checking for $ac_word... " >&6; }
12818 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12819   $as_echo_n "(cached) " >&6
12820 else
12821   case $PKG_CONFIG in
12822   [\\/]* | ?:[\\/]*)
12823   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12824   ;;
12825   *)
12826   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12827 for as_dir in $PATH
12828 do
12829   IFS=$as_save_IFS
12830   test -z "$as_dir" && as_dir=.
12831     for ac_exec_ext in '' $ac_executable_extensions; do
12832   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12833     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12834     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12835     break 2
12836   fi
12837 done
12838   done
12839 IFS=$as_save_IFS
12840
12841   ;;
12842 esac
12843 fi
12844 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12845 if test -n "$PKG_CONFIG"; then
12846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12847 $as_echo "$PKG_CONFIG" >&6; }
12848 else
12849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12850 $as_echo "no" >&6; }
12851 fi
12852
12853
12854 fi
12855 if test -z "$ac_cv_path_PKG_CONFIG"; then
12856   ac_pt_PKG_CONFIG=$PKG_CONFIG
12857   # Extract the first word of "pkg-config", so it can be a program name with args.
12858 set dummy pkg-config; ac_word=$2
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12860 $as_echo_n "checking for $ac_word... " >&6; }
12861 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12862   $as_echo_n "(cached) " >&6
12863 else
12864   case $ac_pt_PKG_CONFIG in
12865   [\\/]* | ?:[\\/]*)
12866   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12867   ;;
12868   *)
12869   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12870 for as_dir in $PATH
12871 do
12872   IFS=$as_save_IFS
12873   test -z "$as_dir" && as_dir=.
12874     for ac_exec_ext in '' $ac_executable_extensions; do
12875   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12876     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12877     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12878     break 2
12879   fi
12880 done
12881   done
12882 IFS=$as_save_IFS
12883
12884   ;;
12885 esac
12886 fi
12887 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12888 if test -n "$ac_pt_PKG_CONFIG"; then
12889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12890 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12891 else
12892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12893 $as_echo "no" >&6; }
12894 fi
12895
12896   if test "x$ac_pt_PKG_CONFIG" = x; then
12897     PKG_CONFIG=""
12898   else
12899     case $cross_compiling:$ac_tool_warned in
12900 yes:)
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12902 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12903 ac_tool_warned=yes ;;
12904 esac
12905     PKG_CONFIG=$ac_pt_PKG_CONFIG
12906   fi
12907 else
12908   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12909 fi
12910
12911 fi
12912 if test -n "$PKG_CONFIG"; then
12913         _pkg_min_version=0.9.0
12914         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12915 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12916         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12917                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12918 $as_echo "yes" >&6; }
12919         else
12920                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12921 $as_echo "no" >&6; }
12922                 PKG_CONFIG=""
12923         fi
12924 fi
12925 if test "${enable_libcurl}" != "no"; then :
12926
12927
12928 pkg_failed=no
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CURL" >&5
12930 $as_echo_n "checking for CURL... " >&6; }
12931
12932 if test -n "$CURL_CFLAGS"; then
12933     pkg_cv_CURL_CFLAGS="$CURL_CFLAGS"
12934  elif test -n "$PKG_CONFIG"; then
12935     if test -n "$PKG_CONFIG" && \
12936     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
12937   ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
12938   ac_status=$?
12939   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12940   test $ac_status = 0; }; then
12941   pkg_cv_CURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl" 2>/dev/null`
12942                       test "x$?" != "x0" && pkg_failed=yes
12943 else
12944   pkg_failed=yes
12945 fi
12946  else
12947     pkg_failed=untried
12948 fi
12949 if test -n "$CURL_LIBS"; then
12950     pkg_cv_CURL_LIBS="$CURL_LIBS"
12951  elif test -n "$PKG_CONFIG"; then
12952     if test -n "$PKG_CONFIG" && \
12953     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
12954   ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
12955   ac_status=$?
12956   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12957   test $ac_status = 0; }; then
12958   pkg_cv_CURL_LIBS=`$PKG_CONFIG --libs "libcurl" 2>/dev/null`
12959                       test "x$?" != "x0" && pkg_failed=yes
12960 else
12961   pkg_failed=yes
12962 fi
12963  else
12964     pkg_failed=untried
12965 fi
12966
12967
12968
12969 if test $pkg_failed = yes; then
12970         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12971 $as_echo "no" >&6; }
12972
12973 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12974         _pkg_short_errors_supported=yes
12975 else
12976         _pkg_short_errors_supported=no
12977 fi
12978         if test $_pkg_short_errors_supported = yes; then
12979                 CURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcurl" 2>&1`
12980         else
12981                 CURL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcurl" 2>&1`
12982         fi
12983         # Put the nasty error message in config.log where it belongs
12984         echo "$CURL_PKG_ERRORS" >&5
12985
12986
12987       for ac_header in curl/curl.h
12988 do :
12989   ac_fn_c_check_header_mongrel "$LINENO" "curl/curl.h" "ac_cv_header_curl_curl_h" "$ac_includes_default"
12990 if test "x$ac_cv_header_curl_curl_h" = xyes; then :
12991   cat >>confdefs.h <<_ACEOF
12992 #define HAVE_CURL_CURL_H 1
12993 _ACEOF
12994
12995 fi
12996
12997 done
12998
12999       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_global_init in -lcurl" >&5
13000 $as_echo_n "checking for curl_global_init in -lcurl... " >&6; }
13001 if ${ac_cv_lib_curl_curl_global_init+:} false; then :
13002   $as_echo_n "(cached) " >&6
13003 else
13004   ac_check_lib_save_LIBS=$LIBS
13005 LIBS="-lcurl  $LIBS"
13006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13007 /* end confdefs.h.  */
13008
13009 /* Override any GCC internal prototype to avoid an error.
13010    Use char because int might match the return type of a GCC
13011    builtin and then its argument prototype would still apply.  */
13012 #ifdef __cplusplus
13013 extern "C"
13014 #endif
13015 char curl_global_init ();
13016 int
13017 main ()
13018 {
13019 return curl_global_init ();
13020   ;
13021   return 0;
13022 }
13023 _ACEOF
13024 if ac_fn_c_try_link "$LINENO"; then :
13025   ac_cv_lib_curl_curl_global_init=yes
13026 else
13027   ac_cv_lib_curl_curl_global_init=no
13028 fi
13029 rm -f core conftest.err conftest.$ac_objext \
13030     conftest$ac_exeext conftest.$ac_ext
13031 LIBS=$ac_check_lib_save_LIBS
13032 fi
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_curl_global_init" >&5
13034 $as_echo "$ac_cv_lib_curl_curl_global_init" >&6; }
13035 if test "x$ac_cv_lib_curl_curl_global_init" = xyes; then :
13036   $as_echo "#define HAVE_CURL 1" >>confdefs.h
13037  HAVE_CURL=1 PC_REQ="$PC_REQ libcurl" PC_LIB="$PC_LIB -lcurl" report_curl="libcurl"
13038
13039 fi
13040
13041
13042
13043 elif test $pkg_failed = untried; then
13044         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13045 $as_echo "no" >&6; }
13046
13047       for ac_header in curl/curl.h
13048 do :
13049   ac_fn_c_check_header_mongrel "$LINENO" "curl/curl.h" "ac_cv_header_curl_curl_h" "$ac_includes_default"
13050 if test "x$ac_cv_header_curl_curl_h" = xyes; then :
13051   cat >>confdefs.h <<_ACEOF
13052 #define HAVE_CURL_CURL_H 1
13053 _ACEOF
13054
13055 fi
13056
13057 done
13058
13059       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_global_init in -lcurl" >&5
13060 $as_echo_n "checking for curl_global_init in -lcurl... " >&6; }
13061 if ${ac_cv_lib_curl_curl_global_init+:} false; then :
13062   $as_echo_n "(cached) " >&6
13063 else
13064   ac_check_lib_save_LIBS=$LIBS
13065 LIBS="-lcurl  $LIBS"
13066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13067 /* end confdefs.h.  */
13068
13069 /* Override any GCC internal prototype to avoid an error.
13070    Use char because int might match the return type of a GCC
13071    builtin and then its argument prototype would still apply.  */
13072 #ifdef __cplusplus
13073 extern "C"
13074 #endif
13075 char curl_global_init ();
13076 int
13077 main ()
13078 {
13079 return curl_global_init ();
13080   ;
13081   return 0;
13082 }
13083 _ACEOF
13084 if ac_fn_c_try_link "$LINENO"; then :
13085   ac_cv_lib_curl_curl_global_init=yes
13086 else
13087   ac_cv_lib_curl_curl_global_init=no
13088 fi
13089 rm -f core conftest.err conftest.$ac_objext \
13090     conftest$ac_exeext conftest.$ac_ext
13091 LIBS=$ac_check_lib_save_LIBS
13092 fi
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_curl_global_init" >&5
13094 $as_echo "$ac_cv_lib_curl_curl_global_init" >&6; }
13095 if test "x$ac_cv_lib_curl_curl_global_init" = xyes; then :
13096   $as_echo "#define HAVE_CURL 1" >>confdefs.h
13097  HAVE_CURL=1 PC_REQ="$PC_REQ libcurl" PC_LIB="$PC_LIB -lcurl" report_curl="libcurl"
13098
13099 fi
13100
13101
13102
13103 else
13104         CURL_CFLAGS=$pkg_cv_CURL_CFLAGS
13105         CURL_LIBS=$pkg_cv_CURL_LIBS
13106         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13107 $as_echo "yes" >&6; }
13108          $as_echo "#define HAVE_CURL 1" >>confdefs.h
13109  HAVE_CURL=1 PC_REQ="$PC_REQ libcurl" PC_LIB="$PC_LIB ${CURL_LIBS}" report_curl="libcurl"
13110 fi
13111
13112 fi
13113
13114 report_curltimeout="-"
13115 if test -n "${with_curltimeout}"; then
13116   if test "${with_curltimeout}" == "yes"; then
13117     $as_echo "#define OAUTH_CURL_TIMEOUT 60" >>confdefs.h
13118
13119     report_curltimeout="60"
13120   else
13121     if test "${with_curltimeout}" -gt 0; then
13122     cat >>confdefs.h <<_ACEOF
13123 #define OAUTH_CURL_TIMEOUT ${with_curltimeout}
13124 _ACEOF
13125
13126     report_curltimeout=${with_curltimeout}
13127     fi
13128   fi
13129 fi
13130
13131
13132
13133
13134 if test "${enable_builtinhash}" == "yes"; then :
13135
13136     $as_echo "#define USE_BUILTIN_HASH 1" >>confdefs.h
13137  USE_BUILTIN_HASH=1
13138     HASH_LIBS=""
13139     HASH_CFLAGS=""
13140     report_hash="built-in HMAC/SHA1 - no RSA"
13141     { $as_echo "$as_me:${as_lineno-$LINENO}:
13142       using built-in HMAC/SHA1 hash algorithm without RSA/PK11 support.
13143       This option is not recommended for general use and should only
13144       be used on small devices (AVR, mircocontrollers) where neither
13145       NSS nor OpenSSL is available.
13146     " >&5
13147 $as_echo "$as_me:
13148       using built-in HMAC/SHA1 hash algorithm without RSA/PK11 support.
13149       This option is not recommended for general use and should only
13150       be used on small devices (AVR, mircocontrollers) where neither
13151       NSS nor OpenSSL is available.
13152     " >&6;}
13153
13154 else
13155
13156   if test "${enable_nss}" == "yes"; then :
13157
13158
13159 pkg_failed=no
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS" >&5
13161 $as_echo_n "checking for NSS... " >&6; }
13162
13163 if test -n "$NSS_CFLAGS"; then
13164     pkg_cv_NSS_CFLAGS="$NSS_CFLAGS"
13165  elif test -n "$PKG_CONFIG"; then
13166     if test -n "$PKG_CONFIG" && \
13167     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss\""; } >&5
13168   ($PKG_CONFIG --exists --print-errors "nss") 2>&5
13169   ac_status=$?
13170   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13171   test $ac_status = 0; }; then
13172   pkg_cv_NSS_CFLAGS=`$PKG_CONFIG --cflags "nss" 2>/dev/null`
13173                       test "x$?" != "x0" && pkg_failed=yes
13174 else
13175   pkg_failed=yes
13176 fi
13177  else
13178     pkg_failed=untried
13179 fi
13180 if test -n "$NSS_LIBS"; then
13181     pkg_cv_NSS_LIBS="$NSS_LIBS"
13182  elif test -n "$PKG_CONFIG"; then
13183     if test -n "$PKG_CONFIG" && \
13184     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss\""; } >&5
13185   ($PKG_CONFIG --exists --print-errors "nss") 2>&5
13186   ac_status=$?
13187   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13188   test $ac_status = 0; }; then
13189   pkg_cv_NSS_LIBS=`$PKG_CONFIG --libs "nss" 2>/dev/null`
13190                       test "x$?" != "x0" && pkg_failed=yes
13191 else
13192   pkg_failed=yes
13193 fi
13194  else
13195     pkg_failed=untried
13196 fi
13197
13198
13199
13200 if test $pkg_failed = yes; then
13201         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13202 $as_echo "no" >&6; }
13203
13204 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13205         _pkg_short_errors_supported=yes
13206 else
13207         _pkg_short_errors_supported=no
13208 fi
13209         if test $_pkg_short_errors_supported = yes; then
13210                 NSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "nss" 2>&1`
13211         else
13212                 NSS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "nss" 2>&1`
13213         fi
13214         # Put the nasty error message in config.log where it belongs
13215         echo "$NSS_PKG_ERRORS" >&5
13216
13217         as_fn_error $? "Package requirements (nss) were not met:
13218
13219 $NSS_PKG_ERRORS
13220
13221 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13222 installed software in a non-standard prefix.
13223
13224 Alternatively, you may set the environment variables NSS_CFLAGS
13225 and NSS_LIBS to avoid the need to call pkg-config.
13226 See the pkg-config man page for more details." "$LINENO" 5
13227 elif test $pkg_failed = untried; then
13228         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13229 $as_echo "no" >&6; }
13230         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13231 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13232 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13233 is in your PATH or set the PKG_CONFIG environment variable to the full
13234 path to pkg-config.
13235
13236 Alternatively, you may set the environment variables NSS_CFLAGS
13237 and NSS_LIBS to avoid the need to call pkg-config.
13238 See the pkg-config man page for more details.
13239
13240 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13241 See \`config.log' for more details" "$LINENO" 5; }
13242 else
13243         NSS_CFLAGS=$pkg_cv_NSS_CFLAGS
13244         NSS_LIBS=$pkg_cv_NSS_LIBS
13245         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13246 $as_echo "yes" >&6; }
13247          $as_echo "#define USE_NSS 1" >>confdefs.h
13248  USE_NSS=1 PC_REQ="$PC_REQ nss"
13249 fi
13250     HASH_LIBS=${NSS_LIBS}
13251     HASH_CFLAGS=${NSS_CFLAGS}
13252     report_hash="NSS"
13253
13254 else
13255
13256     for ac_header in openssl/hmac.h
13257 do :
13258   ac_fn_c_check_header_mongrel "$LINENO" "openssl/hmac.h" "ac_cv_header_openssl_hmac_h" "$ac_includes_default"
13259 if test "x$ac_cv_header_openssl_hmac_h" = xyes; then :
13260   cat >>confdefs.h <<_ACEOF
13261 #define HAVE_OPENSSL_HMAC_H 1
13262 _ACEOF
13263
13264 fi
13265
13266 done
13267
13268     if test -z "${HASH_LIBS}"; then
13269     HASH_LIBS="-lcrypto"
13270     fi
13271     if test -z "${HASH_CFLAGS}"; then
13272     HASH_CFLAGS=""
13273     fi
13274     report_hash="OpenSSL"
13275     PC_LIB="$PC_LIB ${HASH_LIBS}"
13276     PC_REQ="$PC_REQ libcrypto"
13277     { $as_echo "$as_me:${as_lineno-$LINENO}:
13278
13279     NOTE: OpenSSL is not compatible with GPL applications.
13280     Even if only linked with GPL code you are not allowed to distibute your app.
13281     However liboauth provides an exeption (to the GPL) to circumvent this issue
13282     (see README, src/hash.c). Nevertheless, double-check your licensing.
13283
13284     liboauth itself is licensed under MIT license and comatible with the GPL.
13285
13286     Either way, you are probably better off using NSS (configure --enable-nss);
13287     future versions of liboauth will default to the Mozilla NSS.
13288
13289     see http://people.gnome.org/~markmc/openssl-and-the-gpl.html
13290     " >&5
13291 $as_echo "$as_me:
13292
13293     NOTE: OpenSSL is not compatible with GPL applications.
13294     Even if only linked with GPL code you are not allowed to distibute your app.
13295     However liboauth provides an exeption (to the GPL) to circumvent this issue
13296     (see README, src/hash.c). Nevertheless, double-check your licensing.
13297
13298     liboauth itself is licensed under MIT license and comatible with the GPL.
13299
13300     Either way, you are probably better off using NSS (configure --enable-nss);
13301     future versions of liboauth will default to the Mozilla NSS.
13302
13303     see http://people.gnome.org/~markmc/openssl-and-the-gpl.html
13304     " >&6;}
13305
13306 fi
13307
13308 fi
13309
13310
13311
13312
13313
13314 # Extract the first word of "doxygen", so it can be a program name with args.
13315 set dummy doxygen; ac_word=$2
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13317 $as_echo_n "checking for $ac_word... " >&6; }
13318 if ${ac_cv_path_DOXYGEN+:} false; then :
13319   $as_echo_n "(cached) " >&6
13320 else
13321   case $DOXYGEN in
13322   [\\/]* | ?:[\\/]*)
13323   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
13324   ;;
13325   *)
13326   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13327 for as_dir in $PATH
13328 do
13329   IFS=$as_save_IFS
13330   test -z "$as_dir" && as_dir=.
13331     for ac_exec_ext in '' $ac_executable_extensions; do
13332   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13333     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
13334     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13335     break 2
13336   fi
13337 done
13338   done
13339 IFS=$as_save_IFS
13340
13341   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="no"
13342   ;;
13343 esac
13344 fi
13345 DOXYGEN=$ac_cv_path_DOXYGEN
13346 if test -n "$DOXYGEN"; then
13347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
13348 $as_echo "$DOXYGEN" >&6; }
13349 else
13350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13351 $as_echo "no" >&6; }
13352 fi
13353
13354
13355
13356 if test "$DOXYGEN" != "no"; then
13357   DOXMAKE='run "make dox" to generate API html reference: doc/html/index.html'
13358 fi
13359
13360
13361 # Extract the first word of "dot", so it can be a program name with args.
13362 set dummy dot; ac_word=$2
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13364 $as_echo_n "checking for $ac_word... " >&6; }
13365 if ${ac_cv_path_DOT+:} false; then :
13366   $as_echo_n "(cached) " >&6
13367 else
13368   case $DOT in
13369   [\\/]* | ?:[\\/]*)
13370   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
13371   ;;
13372   *)
13373   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13374 for as_dir in $PATH
13375 do
13376   IFS=$as_save_IFS
13377   test -z "$as_dir" && as_dir=.
13378     for ac_exec_ext in '' $ac_executable_extensions; do
13379   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13380     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
13381     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13382     break 2
13383   fi
13384 done
13385   done
13386 IFS=$as_save_IFS
13387
13388   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="no"
13389   ;;
13390 esac
13391 fi
13392 DOT=$ac_cv_path_DOT
13393 if test -n "$DOT"; then
13394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
13395 $as_echo "$DOT" >&6; }
13396 else
13397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13398 $as_echo "no" >&6; }
13399 fi
13400
13401
13402 if test "$DOT" != "no"; then
13403   HAVEDOT=YES
13404   DOTPATH=$( dirname "$DOT" )
13405 else
13406   HAVEDOT=NO
13407 fi
13408
13409
13410
13411
13412
13413 # Extract the first word of "perl", so it can be a program name with args.
13414 set dummy perl; ac_word=$2
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13416 $as_echo_n "checking for $ac_word... " >&6; }
13417 if ${ac_cv_path_PERL+:} false; then :
13418   $as_echo_n "(cached) " >&6
13419 else
13420   case $PERL in
13421   [\\/]* | ?:[\\/]*)
13422   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
13423   ;;
13424   *)
13425   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13426 for as_dir in $PATH
13427 do
13428   IFS=$as_save_IFS
13429   test -z "$as_dir" && as_dir=.
13430     for ac_exec_ext in '' $ac_executable_extensions; do
13431   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13432     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
13433     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13434     break 2
13435   fi
13436 done
13437   done
13438 IFS=$as_save_IFS
13439
13440   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
13441   ;;
13442 esac
13443 fi
13444 PERL=$ac_cv_path_PERL
13445 if test -n "$PERL"; then
13446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
13447 $as_echo "$PERL" >&6; }
13448 else
13449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13450 $as_echo "no" >&6; }
13451 fi
13452
13453
13454 if test "$PERL" == "no"; then
13455   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dude, where's your perl? doxygen will not like this!)" >&5
13456 $as_echo "$as_me: WARNING: dude, where's your perl? doxygen will not like this!)" >&2;}
13457 fi
13458
13459 # PKGconfig oauth.pc.in
13460
13461
13462
13463
13464 subdirs="src doc tests"
13465
13466
13467 ac_config_files="$ac_config_files Makefile src/Makefile doc/Makefile tests/Makefile liboauth.lsm oauth.pc Doxyfile doc/mainpage.dox"
13468
13469 cat >confcache <<\_ACEOF
13470 # This file is a shell script that caches the results of configure
13471 # tests run on this system so they can be shared between configure
13472 # scripts and configure runs, see configure's option --config-cache.
13473 # It is not useful on other systems.  If it contains results you don't
13474 # want to keep, you may remove or edit it.
13475 #
13476 # config.status only pays attention to the cache file if you give it
13477 # the --recheck option to rerun configure.
13478 #
13479 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13480 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13481 # following values.
13482
13483 _ACEOF
13484
13485 # The following way of writing the cache mishandles newlines in values,
13486 # but we know of no workaround that is simple, portable, and efficient.
13487 # So, we kill variables containing newlines.
13488 # Ultrix sh set writes to stderr and can't be redirected directly,
13489 # and sets the high bit in the cache file unless we assign to the vars.
13490 (
13491   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13492     eval ac_val=\$$ac_var
13493     case $ac_val in #(
13494     *${as_nl}*)
13495       case $ac_var in #(
13496       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13497 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13498       esac
13499       case $ac_var in #(
13500       _ | IFS | as_nl) ;; #(
13501       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13502       *) { eval $ac_var=; unset $ac_var;} ;;
13503       esac ;;
13504     esac
13505   done
13506
13507   (set) 2>&1 |
13508     case $as_nl`(ac_space=' '; set) 2>&1` in #(
13509     *${as_nl}ac_space=\ *)
13510       # `set' does not quote correctly, so add quotes: double-quote
13511       # substitution turns \\\\ into \\, and sed turns \\ into \.
13512       sed -n \
13513         "s/'/'\\\\''/g;
13514           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13515       ;; #(
13516     *)
13517       # `set' quotes correctly as required by POSIX, so do not add quotes.
13518       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13519       ;;
13520     esac |
13521     sort
13522 ) |
13523   sed '
13524      /^ac_cv_env_/b end
13525      t clear
13526      :clear
13527      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13528      t end
13529      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13530      :end' >>confcache
13531 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13532   if test -w "$cache_file"; then
13533     if test "x$cache_file" != "x/dev/null"; then
13534       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13535 $as_echo "$as_me: updating cache $cache_file" >&6;}
13536       if test ! -f "$cache_file" || test -h "$cache_file"; then
13537         cat confcache >"$cache_file"
13538       else
13539         case $cache_file in #(
13540         */* | ?:*)
13541           mv -f confcache "$cache_file"$$ &&
13542           mv -f "$cache_file"$$ "$cache_file" ;; #(
13543         *)
13544           mv -f confcache "$cache_file" ;;
13545         esac
13546       fi
13547     fi
13548   else
13549     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13550 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13551   fi
13552 fi
13553 rm -f confcache
13554
13555 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13556 # Let make expand exec_prefix.
13557 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13558
13559 DEFS=-DHAVE_CONFIG_H
13560
13561 ac_libobjs=
13562 ac_ltlibobjs=
13563 U=
13564 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13565   # 1. Remove the extension, and $U if already installed.
13566   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13567   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13568   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13569   #    will be set to the directory where LIBOBJS objects are built.
13570   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13571   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13572 done
13573 LIBOBJS=$ac_libobjs
13574
13575 LTLIBOBJS=$ac_ltlibobjs
13576
13577
13578  if test -n "$EXEEXT"; then
13579   am__EXEEXT_TRUE=
13580   am__EXEEXT_FALSE='#'
13581 else
13582   am__EXEEXT_TRUE='#'
13583   am__EXEEXT_FALSE=
13584 fi
13585
13586 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13587   as_fn_error $? "conditional \"AMDEP\" was never defined.
13588 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13589 fi
13590 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13591   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13592 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13593 fi
13594
13595 : "${CONFIG_STATUS=./config.status}"
13596 ac_write_fail=0
13597 ac_clean_files_save=$ac_clean_files
13598 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13600 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13601 as_write_fail=0
13602 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13603 #! $SHELL
13604 # Generated by $as_me.
13605 # Run this file to recreate the current configuration.
13606 # Compiler output produced by configure, useful for debugging
13607 # configure, is in config.log if it exists.
13608
13609 debug=false
13610 ac_cs_recheck=false
13611 ac_cs_silent=false
13612
13613 SHELL=\${CONFIG_SHELL-$SHELL}
13614 export SHELL
13615 _ASEOF
13616 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13617 ## -------------------- ##
13618 ## M4sh Initialization. ##
13619 ## -------------------- ##
13620
13621 # Be more Bourne compatible
13622 DUALCASE=1; export DUALCASE # for MKS sh
13623 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13624   emulate sh
13625   NULLCMD=:
13626   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13627   # is contrary to our usage.  Disable this feature.
13628   alias -g '${1+"$@"}'='"$@"'
13629   setopt NO_GLOB_SUBST
13630 else
13631   case `(set -o) 2>/dev/null` in #(
13632   *posix*) :
13633     set -o posix ;; #(
13634   *) :
13635      ;;
13636 esac
13637 fi
13638
13639
13640 as_nl='
13641 '
13642 export as_nl
13643 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13644 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13645 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13646 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13647 # Prefer a ksh shell builtin over an external printf program on Solaris,
13648 # but without wasting forks for bash or zsh.
13649 if test -z "$BASH_VERSION$ZSH_VERSION" \
13650     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13651   as_echo='print -r --'
13652   as_echo_n='print -rn --'
13653 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13654   as_echo='printf %s\n'
13655   as_echo_n='printf %s'
13656 else
13657   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13658     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13659     as_echo_n='/usr/ucb/echo -n'
13660   else
13661     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13662     as_echo_n_body='eval
13663       arg=$1;
13664       case $arg in #(
13665       *"$as_nl"*)
13666         expr "X$arg" : "X\\(.*\\)$as_nl";
13667         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13668       esac;
13669       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13670     '
13671     export as_echo_n_body
13672     as_echo_n='sh -c $as_echo_n_body as_echo'
13673   fi
13674   export as_echo_body
13675   as_echo='sh -c $as_echo_body as_echo'
13676 fi
13677
13678 # The user is always right.
13679 if test "${PATH_SEPARATOR+set}" != set; then
13680   PATH_SEPARATOR=:
13681   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13682     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13683       PATH_SEPARATOR=';'
13684   }
13685 fi
13686
13687
13688 # IFS
13689 # We need space, tab and new line, in precisely that order.  Quoting is
13690 # there to prevent editors from complaining about space-tab.
13691 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13692 # splitting by setting IFS to empty value.)
13693 IFS=" ""        $as_nl"
13694
13695 # Find who we are.  Look in the path if we contain no directory separator.
13696 as_myself=
13697 case $0 in #((
13698   *[\\/]* ) as_myself=$0 ;;
13699   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13700 for as_dir in $PATH
13701 do
13702   IFS=$as_save_IFS
13703   test -z "$as_dir" && as_dir=.
13704     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13705   done
13706 IFS=$as_save_IFS
13707
13708      ;;
13709 esac
13710 # We did not find ourselves, most probably we were run as `sh COMMAND'
13711 # in which case we are not to be found in the path.
13712 if test "x$as_myself" = x; then
13713   as_myself=$0
13714 fi
13715 if test ! -f "$as_myself"; then
13716   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13717   exit 1
13718 fi
13719
13720 # Unset variables that we do not need and which cause bugs (e.g. in
13721 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13722 # suppresses any "Segmentation fault" message there.  '((' could
13723 # trigger a bug in pdksh 5.2.14.
13724 for as_var in BASH_ENV ENV MAIL MAILPATH
13725 do eval test x\${$as_var+set} = xset \
13726   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13727 done
13728 PS1='$ '
13729 PS2='> '
13730 PS4='+ '
13731
13732 # NLS nuisances.
13733 LC_ALL=C
13734 export LC_ALL
13735 LANGUAGE=C
13736 export LANGUAGE
13737
13738 # CDPATH.
13739 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13740
13741
13742 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13743 # ----------------------------------------
13744 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13745 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13746 # script with STATUS, using 1 if that was 0.
13747 as_fn_error ()
13748 {
13749   as_status=$1; test $as_status -eq 0 && as_status=1
13750   if test "$4"; then
13751     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13752     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13753   fi
13754   $as_echo "$as_me: error: $2" >&2
13755   as_fn_exit $as_status
13756 } # as_fn_error
13757
13758
13759 # as_fn_set_status STATUS
13760 # -----------------------
13761 # Set $? to STATUS, without forking.
13762 as_fn_set_status ()
13763 {
13764   return $1
13765 } # as_fn_set_status
13766
13767 # as_fn_exit STATUS
13768 # -----------------
13769 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13770 as_fn_exit ()
13771 {
13772   set +e
13773   as_fn_set_status $1
13774   exit $1
13775 } # as_fn_exit
13776
13777 # as_fn_unset VAR
13778 # ---------------
13779 # Portably unset VAR.
13780 as_fn_unset ()
13781 {
13782   { eval $1=; unset $1;}
13783 }
13784 as_unset=as_fn_unset
13785 # as_fn_append VAR VALUE
13786 # ----------------------
13787 # Append the text in VALUE to the end of the definition contained in VAR. Take
13788 # advantage of any shell optimizations that allow amortized linear growth over
13789 # repeated appends, instead of the typical quadratic growth present in naive
13790 # implementations.
13791 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13792   eval 'as_fn_append ()
13793   {
13794     eval $1+=\$2
13795   }'
13796 else
13797   as_fn_append ()
13798   {
13799     eval $1=\$$1\$2
13800   }
13801 fi # as_fn_append
13802
13803 # as_fn_arith ARG...
13804 # ------------------
13805 # Perform arithmetic evaluation on the ARGs, and store the result in the
13806 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13807 # must be portable across $(()) and expr.
13808 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13809   eval 'as_fn_arith ()
13810   {
13811     as_val=$(( $* ))
13812   }'
13813 else
13814   as_fn_arith ()
13815   {
13816     as_val=`expr "$@" || test $? -eq 1`
13817   }
13818 fi # as_fn_arith
13819
13820
13821 if expr a : '\(a\)' >/dev/null 2>&1 &&
13822    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13823   as_expr=expr
13824 else
13825   as_expr=false
13826 fi
13827
13828 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13829   as_basename=basename
13830 else
13831   as_basename=false
13832 fi
13833
13834 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13835   as_dirname=dirname
13836 else
13837   as_dirname=false
13838 fi
13839
13840 as_me=`$as_basename -- "$0" ||
13841 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13842          X"$0" : 'X\(//\)$' \| \
13843          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13844 $as_echo X/"$0" |
13845     sed '/^.*\/\([^/][^/]*\)\/*$/{
13846             s//\1/
13847             q
13848           }
13849           /^X\/\(\/\/\)$/{
13850             s//\1/
13851             q
13852           }
13853           /^X\/\(\/\).*/{
13854             s//\1/
13855             q
13856           }
13857           s/.*/./; q'`
13858
13859 # Avoid depending upon Character Ranges.
13860 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13861 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13862 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13863 as_cr_digits='0123456789'
13864 as_cr_alnum=$as_cr_Letters$as_cr_digits
13865
13866 ECHO_C= ECHO_N= ECHO_T=
13867 case `echo -n x` in #(((((
13868 -n*)
13869   case `echo 'xy\c'` in
13870   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13871   xy)  ECHO_C='\c';;
13872   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13873        ECHO_T=' ';;
13874   esac;;
13875 *)
13876   ECHO_N='-n';;
13877 esac
13878
13879 rm -f conf$$ conf$$.exe conf$$.file
13880 if test -d conf$$.dir; then
13881   rm -f conf$$.dir/conf$$.file
13882 else
13883   rm -f conf$$.dir
13884   mkdir conf$$.dir 2>/dev/null
13885 fi
13886 if (echo >conf$$.file) 2>/dev/null; then
13887   if ln -s conf$$.file conf$$ 2>/dev/null; then
13888     as_ln_s='ln -s'
13889     # ... but there are two gotchas:
13890     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13891     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13892     # In both cases, we have to default to `cp -pR'.
13893     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13894       as_ln_s='cp -pR'
13895   elif ln conf$$.file conf$$ 2>/dev/null; then
13896     as_ln_s=ln
13897   else
13898     as_ln_s='cp -pR'
13899   fi
13900 else
13901   as_ln_s='cp -pR'
13902 fi
13903 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13904 rmdir conf$$.dir 2>/dev/null
13905
13906
13907 # as_fn_mkdir_p
13908 # -------------
13909 # Create "$as_dir" as a directory, including parents if necessary.
13910 as_fn_mkdir_p ()
13911 {
13912
13913   case $as_dir in #(
13914   -*) as_dir=./$as_dir;;
13915   esac
13916   test -d "$as_dir" || eval $as_mkdir_p || {
13917     as_dirs=
13918     while :; do
13919       case $as_dir in #(
13920       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13921       *) as_qdir=$as_dir;;
13922       esac
13923       as_dirs="'$as_qdir' $as_dirs"
13924       as_dir=`$as_dirname -- "$as_dir" ||
13925 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13926          X"$as_dir" : 'X\(//\)[^/]' \| \
13927          X"$as_dir" : 'X\(//\)$' \| \
13928          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13929 $as_echo X"$as_dir" |
13930     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13931             s//\1/
13932             q
13933           }
13934           /^X\(\/\/\)[^/].*/{
13935             s//\1/
13936             q
13937           }
13938           /^X\(\/\/\)$/{
13939             s//\1/
13940             q
13941           }
13942           /^X\(\/\).*/{
13943             s//\1/
13944             q
13945           }
13946           s/.*/./; q'`
13947       test -d "$as_dir" && break
13948     done
13949     test -z "$as_dirs" || eval "mkdir $as_dirs"
13950   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13951
13952
13953 } # as_fn_mkdir_p
13954 if mkdir -p . 2>/dev/null; then
13955   as_mkdir_p='mkdir -p "$as_dir"'
13956 else
13957   test -d ./-p && rmdir ./-p
13958   as_mkdir_p=false
13959 fi
13960
13961
13962 # as_fn_executable_p FILE
13963 # -----------------------
13964 # Test if FILE is an executable regular file.
13965 as_fn_executable_p ()
13966 {
13967   test -f "$1" && test -x "$1"
13968 } # as_fn_executable_p
13969 as_test_x='test -x'
13970 as_executable_p=as_fn_executable_p
13971
13972 # Sed expression to map a string onto a valid CPP name.
13973 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13974
13975 # Sed expression to map a string onto a valid variable name.
13976 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13977
13978
13979 exec 6>&1
13980 ## ----------------------------------- ##
13981 ## Main body of $CONFIG_STATUS script. ##
13982 ## ----------------------------------- ##
13983 _ASEOF
13984 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13985
13986 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13987 # Save the log message, to keep $0 and so on meaningful, and to
13988 # report actual input values of CONFIG_FILES etc. instead of their
13989 # values after options handling.
13990 ac_log="
13991 This file was extended by liboauth $as_me -, which was
13992 generated by GNU Autoconf 2.69.  Invocation command line was
13993
13994   CONFIG_FILES    = $CONFIG_FILES
13995   CONFIG_HEADERS  = $CONFIG_HEADERS
13996   CONFIG_LINKS    = $CONFIG_LINKS
13997   CONFIG_COMMANDS = $CONFIG_COMMANDS
13998   $ $0 $@
13999
14000 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14001 "
14002
14003 _ACEOF
14004
14005 case $ac_config_files in *"
14006 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14007 esac
14008
14009 case $ac_config_headers in *"
14010 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14011 esac
14012
14013
14014 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14015 # Files that config.status was made for.
14016 config_files="$ac_config_files"
14017 config_headers="$ac_config_headers"
14018 config_commands="$ac_config_commands"
14019
14020 _ACEOF
14021
14022 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14023 ac_cs_usage="\
14024 \`$as_me' instantiates files and other configuration actions
14025 from templates according to the current configuration.  Unless the files
14026 and actions are specified as TAGs, all are instantiated by default.
14027
14028 Usage: $0 [OPTION]... [TAG]...
14029
14030   -h, --help       print this help, then exit
14031   -V, --version    print version number and configuration settings, then exit
14032       --config     print configuration, then exit
14033   -q, --quiet, --silent
14034                    do not print progress messages
14035   -d, --debug      don't remove temporary files
14036       --recheck    update $as_me by reconfiguring in the same conditions
14037       --file=FILE[:TEMPLATE]
14038                    instantiate the configuration file FILE
14039       --header=FILE[:TEMPLATE]
14040                    instantiate the configuration header FILE
14041
14042 Configuration files:
14043 $config_files
14044
14045 Configuration headers:
14046 $config_headers
14047
14048 Configuration commands:
14049 $config_commands
14050
14051 Report bugs to <robin AT gareus DOT org>.
14052 liboauth home page: <http://liboauth.sourceforge.net/>."
14053
14054 _ACEOF
14055 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14056 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14057 ac_cs_version="\\
14058 liboauth config.status -
14059 configured by $0, generated by GNU Autoconf 2.69,
14060   with options \\"\$ac_cs_config\\"
14061
14062 Copyright (C) 2012 Free Software Foundation, Inc.
14063 This config.status script is free software; the Free Software Foundation
14064 gives unlimited permission to copy, distribute and modify it."
14065
14066 ac_pwd='$ac_pwd'
14067 srcdir='$srcdir'
14068 INSTALL='$INSTALL'
14069 MKDIR_P='$MKDIR_P'
14070 AWK='$AWK'
14071 test -n "\$AWK" || AWK=awk
14072 _ACEOF
14073
14074 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14075 # The default lists apply if the user does not specify any file.
14076 ac_need_defaults=:
14077 while test $# != 0
14078 do
14079   case $1 in
14080   --*=?*)
14081     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14082     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14083     ac_shift=:
14084     ;;
14085   --*=)
14086     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14087     ac_optarg=
14088     ac_shift=:
14089     ;;
14090   *)
14091     ac_option=$1
14092     ac_optarg=$2
14093     ac_shift=shift
14094     ;;
14095   esac
14096
14097   case $ac_option in
14098   # Handling of the options.
14099   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14100     ac_cs_recheck=: ;;
14101   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14102     $as_echo "$ac_cs_version"; exit ;;
14103   --config | --confi | --conf | --con | --co | --c )
14104     $as_echo "$ac_cs_config"; exit ;;
14105   --debug | --debu | --deb | --de | --d | -d )
14106     debug=: ;;
14107   --file | --fil | --fi | --f )
14108     $ac_shift
14109     case $ac_optarg in
14110     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14111     '') as_fn_error $? "missing file argument" ;;
14112     esac
14113     as_fn_append CONFIG_FILES " '$ac_optarg'"
14114     ac_need_defaults=false;;
14115   --header | --heade | --head | --hea )
14116     $ac_shift
14117     case $ac_optarg in
14118     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14119     esac
14120     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14121     ac_need_defaults=false;;
14122   --he | --h)
14123     # Conflict between --help and --header
14124     as_fn_error $? "ambiguous option: \`$1'
14125 Try \`$0 --help' for more information.";;
14126   --help | --hel | -h )
14127     $as_echo "$ac_cs_usage"; exit ;;
14128   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14129   | -silent | --silent | --silen | --sile | --sil | --si | --s)
14130     ac_cs_silent=: ;;
14131
14132   # This is an error.
14133   -*) as_fn_error $? "unrecognized option: \`$1'
14134 Try \`$0 --help' for more information." ;;
14135
14136   *) as_fn_append ac_config_targets " $1"
14137      ac_need_defaults=false ;;
14138
14139   esac
14140   shift
14141 done
14142
14143 ac_configure_extra_args=
14144
14145 if $ac_cs_silent; then
14146   exec 6>/dev/null
14147   ac_configure_extra_args="$ac_configure_extra_args --silent"
14148 fi
14149
14150 _ACEOF
14151 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14152 if \$ac_cs_recheck; then
14153   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14154   shift
14155   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14156   CONFIG_SHELL='$SHELL'
14157   export CONFIG_SHELL
14158   exec "\$@"
14159 fi
14160
14161 _ACEOF
14162 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14163 exec 5>>config.log
14164 {
14165   echo
14166   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14167 ## Running $as_me. ##
14168 _ASBOX
14169   $as_echo "$ac_log"
14170 } >&5
14171
14172 _ACEOF
14173 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14174 #
14175 # INIT-COMMANDS
14176 #
14177
14178 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14179
14180
14181 # The HP-UX ksh and POSIX shell print the target directory to stdout
14182 # if CDPATH is set.
14183 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14184
14185 sed_quote_subst='$sed_quote_subst'
14186 double_quote_subst='$double_quote_subst'
14187 delay_variable_subst='$delay_variable_subst'
14188 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14189 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14190 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14191 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14192 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14193 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14194 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14195 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14196 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14197 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14198 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14199 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14200 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14201 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14202 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14203 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14204 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14205 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14206 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14207 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14208 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14209 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14210 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14211 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14212 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14213 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14214 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14215 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14216 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14217 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14218 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14219 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14220 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14221 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14222 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14223 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14224 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14225 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14226 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14227 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14228 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14229 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14230 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14231 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14232 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14233 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14234 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14235 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14236 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14237 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14238 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14239 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14240 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14241 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14242 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14243 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14244 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"`'
14245 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14246 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14247 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14248 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14249 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14250 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14251 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14252 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14253 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14254 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14255 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14256 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14257 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14258 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14259 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14260 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14261 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14262 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14263 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14264 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14265 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14266 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14267 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14268 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14269 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14270 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14271 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14272 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14273 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14274 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14275 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14276 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14277 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14278 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14279 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14280 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14281 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14282 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14283 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14284 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14285 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14286 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14287 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14288 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14289 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14290 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14291 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14292 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14293 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14294 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14295 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14296 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14297 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14298 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14299 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14300 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14301 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14302 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14303 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14304 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14305 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14306 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14307 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14308 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14309 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14310 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14311 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14312 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14313 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14314 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14315 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14316 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14317 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14318 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
14319
14320 LTCC='$LTCC'
14321 LTCFLAGS='$LTCFLAGS'
14322 compiler='$compiler_DEFAULT'
14323
14324 # A function that is used when there is no print builtin or printf.
14325 func_fallback_echo ()
14326 {
14327   eval 'cat <<_LTECHO_EOF
14328 \$1
14329 _LTECHO_EOF'
14330 }
14331
14332 # Quote evaled strings.
14333 for var in SHELL \
14334 ECHO \
14335 PATH_SEPARATOR \
14336 SED \
14337 GREP \
14338 EGREP \
14339 FGREP \
14340 LD \
14341 NM \
14342 LN_S \
14343 lt_SP2NL \
14344 lt_NL2SP \
14345 reload_flag \
14346 OBJDUMP \
14347 deplibs_check_method \
14348 file_magic_cmd \
14349 file_magic_glob \
14350 want_nocaseglob \
14351 DLLTOOL \
14352 sharedlib_from_linklib_cmd \
14353 AR \
14354 AR_FLAGS \
14355 archiver_list_spec \
14356 STRIP \
14357 RANLIB \
14358 CC \
14359 CFLAGS \
14360 compiler \
14361 lt_cv_sys_global_symbol_pipe \
14362 lt_cv_sys_global_symbol_to_cdecl \
14363 lt_cv_sys_global_symbol_to_c_name_address \
14364 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14365 nm_file_list_spec \
14366 lt_prog_compiler_no_builtin_flag \
14367 lt_prog_compiler_pic \
14368 lt_prog_compiler_wl \
14369 lt_prog_compiler_static \
14370 lt_cv_prog_compiler_c_o \
14371 need_locks \
14372 MANIFEST_TOOL \
14373 DSYMUTIL \
14374 NMEDIT \
14375 LIPO \
14376 OTOOL \
14377 OTOOL64 \
14378 shrext_cmds \
14379 export_dynamic_flag_spec \
14380 whole_archive_flag_spec \
14381 compiler_needs_object \
14382 with_gnu_ld \
14383 allow_undefined_flag \
14384 no_undefined_flag \
14385 hardcode_libdir_flag_spec \
14386 hardcode_libdir_separator \
14387 exclude_expsyms \
14388 include_expsyms \
14389 file_list_spec \
14390 variables_saved_for_relink \
14391 libname_spec \
14392 library_names_spec \
14393 soname_spec \
14394 install_override_mode \
14395 finish_eval \
14396 old_striplib \
14397 striplib \
14398 AS; do
14399     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14400     *[\\\\\\\`\\"\\\$]*)
14401       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14402       ;;
14403     *)
14404       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14405       ;;
14406     esac
14407 done
14408
14409 # Double-quote double-evaled strings.
14410 for var in reload_cmds \
14411 old_postinstall_cmds \
14412 old_postuninstall_cmds \
14413 old_archive_cmds \
14414 extract_expsyms_cmds \
14415 old_archive_from_new_cmds \
14416 old_archive_from_expsyms_cmds \
14417 archive_cmds \
14418 archive_expsym_cmds \
14419 module_cmds \
14420 module_expsym_cmds \
14421 export_symbols_cmds \
14422 prelink_cmds \
14423 postlink_cmds \
14424 postinstall_cmds \
14425 postuninstall_cmds \
14426 finish_cmds \
14427 sys_lib_search_path_spec \
14428 sys_lib_dlsearch_path_spec; do
14429     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14430     *[\\\\\\\`\\"\\\$]*)
14431       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14432       ;;
14433     *)
14434       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14435       ;;
14436     esac
14437 done
14438
14439 ac_aux_dir='$ac_aux_dir'
14440 xsi_shell='$xsi_shell'
14441 lt_shell_append='$lt_shell_append'
14442
14443 # See if we are running on zsh, and set the options which allow our
14444 # commands through without removal of \ escapes INIT.
14445 if test -n "\${ZSH_VERSION+set}" ; then
14446    setopt NO_GLOB_SUBST
14447 fi
14448
14449
14450     PACKAGE='$PACKAGE'
14451     VERSION='$VERSION'
14452     TIMESTAMP='$TIMESTAMP'
14453     RM='$RM'
14454     ofile='$ofile'
14455
14456
14457
14458
14459 _ACEOF
14460
14461 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14462
14463 # Handling of arguments.
14464 for ac_config_target in $ac_config_targets
14465 do
14466   case $ac_config_target in
14467     "tests/atconfig") CONFIG_COMMANDS="$CONFIG_COMMANDS tests/atconfig" ;;
14468     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
14469     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14470     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14471     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14472     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14473     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14474     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
14475     "liboauth.lsm") CONFIG_FILES="$CONFIG_FILES liboauth.lsm" ;;
14476     "oauth.pc") CONFIG_FILES="$CONFIG_FILES oauth.pc" ;;
14477     "Doxyfile") CONFIG_FILES="$CONFIG_FILES Doxyfile" ;;
14478     "doc/mainpage.dox") CONFIG_FILES="$CONFIG_FILES doc/mainpage.dox" ;;
14479
14480   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14481   esac
14482 done
14483
14484
14485 # If the user did not use the arguments to specify the items to instantiate,
14486 # then the envvar interface is used.  Set only those that are not.
14487 # We use the long form for the default assignment because of an extremely
14488 # bizarre bug on SunOS 4.1.3.
14489 if $ac_need_defaults; then
14490   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14491   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14492   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14493 fi
14494
14495 # Have a temporary directory for convenience.  Make it in the build tree
14496 # simply because there is no reason against having it here, and in addition,
14497 # creating and moving files from /tmp can sometimes cause problems.
14498 # Hook for its removal unless debugging.
14499 # Note that there is a small window in which the directory will not be cleaned:
14500 # after its creation but before its name has been assigned to `$tmp'.
14501 $debug ||
14502 {
14503   tmp= ac_tmp=
14504   trap 'exit_status=$?
14505   : "${ac_tmp:=$tmp}"
14506   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14507 ' 0
14508   trap 'as_fn_exit 1' 1 2 13 15
14509 }
14510 # Create a (secure) tmp directory for tmp files.
14511
14512 {
14513   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14514   test -d "$tmp"
14515 }  ||
14516 {
14517   tmp=./conf$$-$RANDOM
14518   (umask 077 && mkdir "$tmp")
14519 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14520 ac_tmp=$tmp
14521
14522 # Set up the scripts for CONFIG_FILES section.
14523 # No need to generate them if there are no CONFIG_FILES.
14524 # This happens for instance with `./config.status config.h'.
14525 if test -n "$CONFIG_FILES"; then
14526
14527
14528 ac_cr=`echo X | tr X '\015'`
14529 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14530 # But we know of no other shell where ac_cr would be empty at this
14531 # point, so we can use a bashism as a fallback.
14532 if test "x$ac_cr" = x; then
14533   eval ac_cr=\$\'\\r\'
14534 fi
14535 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14536 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14537   ac_cs_awk_cr='\\r'
14538 else
14539   ac_cs_awk_cr=$ac_cr
14540 fi
14541
14542 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14543 _ACEOF
14544
14545
14546 {
14547   echo "cat >conf$$subs.awk <<_ACEOF" &&
14548   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14549   echo "_ACEOF"
14550 } >conf$$subs.sh ||
14551   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14552 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14553 ac_delim='%!_!# '
14554 for ac_last_try in false false false false false :; do
14555   . ./conf$$subs.sh ||
14556     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14557
14558   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14559   if test $ac_delim_n = $ac_delim_num; then
14560     break
14561   elif $ac_last_try; then
14562     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14563   else
14564     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14565   fi
14566 done
14567 rm -f conf$$subs.sh
14568
14569 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14570 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14571 _ACEOF
14572 sed -n '
14573 h
14574 s/^/S["/; s/!.*/"]=/
14575 p
14576 g
14577 s/^[^!]*!//
14578 :repl
14579 t repl
14580 s/'"$ac_delim"'$//
14581 t delim
14582 :nl
14583 h
14584 s/\(.\{148\}\)..*/\1/
14585 t more1
14586 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14587 p
14588 n
14589 b repl
14590 :more1
14591 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14592 p
14593 g
14594 s/.\{148\}//
14595 t nl
14596 :delim
14597 h
14598 s/\(.\{148\}\)..*/\1/
14599 t more2
14600 s/["\\]/\\&/g; s/^/"/; s/$/"/
14601 p
14602 b
14603 :more2
14604 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14605 p
14606 g
14607 s/.\{148\}//
14608 t delim
14609 ' <conf$$subs.awk | sed '
14610 /^[^""]/{
14611   N
14612   s/\n//
14613 }
14614 ' >>$CONFIG_STATUS || ac_write_fail=1
14615 rm -f conf$$subs.awk
14616 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14617 _ACAWK
14618 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14619   for (key in S) S_is_set[key] = 1
14620   FS = "\a"
14621
14622 }
14623 {
14624   line = $ 0
14625   nfields = split(line, field, "@")
14626   substed = 0
14627   len = length(field[1])
14628   for (i = 2; i < nfields; i++) {
14629     key = field[i]
14630     keylen = length(key)
14631     if (S_is_set[key]) {
14632       value = S[key]
14633       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14634       len += length(value) + length(field[++i])
14635       substed = 1
14636     } else
14637       len += 1 + keylen
14638   }
14639
14640   print line
14641 }
14642
14643 _ACAWK
14644 _ACEOF
14645 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14646 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14647   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14648 else
14649   cat
14650 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14651   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14652 _ACEOF
14653
14654 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14655 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14656 # trailing colons and then remove the whole line if VPATH becomes empty
14657 # (actually we leave an empty line to preserve line numbers).
14658 if test "x$srcdir" = x.; then
14659   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
14660 h
14661 s///
14662 s/^/:/
14663 s/[      ]*$/:/
14664 s/:\$(srcdir):/:/g
14665 s/:\${srcdir}:/:/g
14666 s/:@srcdir@:/:/g
14667 s/^:*//
14668 s/:*$//
14669 x
14670 s/\(=[   ]*\).*/\1/
14671 G
14672 s/\n//
14673 s/^[^=]*=[       ]*$//
14674 }'
14675 fi
14676
14677 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14678 fi # test -n "$CONFIG_FILES"
14679
14680 # Set up the scripts for CONFIG_HEADERS section.
14681 # No need to generate them if there are no CONFIG_HEADERS.
14682 # This happens for instance with `./config.status Makefile'.
14683 if test -n "$CONFIG_HEADERS"; then
14684 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14685 BEGIN {
14686 _ACEOF
14687
14688 # Transform confdefs.h into an awk script `defines.awk', embedded as
14689 # here-document in config.status, that substitutes the proper values into
14690 # config.h.in to produce config.h.
14691
14692 # Create a delimiter string that does not exist in confdefs.h, to ease
14693 # handling of long lines.
14694 ac_delim='%!_!# '
14695 for ac_last_try in false false :; do
14696   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14697   if test -z "$ac_tt"; then
14698     break
14699   elif $ac_last_try; then
14700     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14701   else
14702     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14703   fi
14704 done
14705
14706 # For the awk script, D is an array of macro values keyed by name,
14707 # likewise P contains macro parameters if any.  Preserve backslash
14708 # newline sequences.
14709
14710 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14711 sed -n '
14712 s/.\{148\}/&'"$ac_delim"'/g
14713 t rset
14714 :rset
14715 s/^[     ]*#[    ]*define[       ][      ]*/ /
14716 t def
14717 d
14718 :def
14719 s/\\$//
14720 t bsnl
14721 s/["\\]/\\&/g
14722 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14723 D["\1"]=" \3"/p
14724 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
14725 d
14726 :bsnl
14727 s/["\\]/\\&/g
14728 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14729 D["\1"]=" \3\\\\\\n"\\/p
14730 t cont
14731 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14732 t cont
14733 d
14734 :cont
14735 n
14736 s/.\{148\}/&'"$ac_delim"'/g
14737 t clear
14738 :clear
14739 s/\\$//
14740 t bsnlc
14741 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14742 d
14743 :bsnlc
14744 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14745 b cont
14746 ' <confdefs.h | sed '
14747 s/'"$ac_delim"'/"\\\
14748 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14749
14750 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14751   for (key in D) D_is_set[key] = 1
14752   FS = "\a"
14753 }
14754 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14755   line = \$ 0
14756   split(line, arg, " ")
14757   if (arg[1] == "#") {
14758     defundef = arg[2]
14759     mac1 = arg[3]
14760   } else {
14761     defundef = substr(arg[1], 2)
14762     mac1 = arg[2]
14763   }
14764   split(mac1, mac2, "(") #)
14765   macro = mac2[1]
14766   prefix = substr(line, 1, index(line, defundef) - 1)
14767   if (D_is_set[macro]) {
14768     # Preserve the white space surrounding the "#".
14769     print prefix "define", macro P[macro] D[macro]
14770     next
14771   } else {
14772     # Replace #undef with comments.  This is necessary, for example,
14773     # in the case of _POSIX_SOURCE, which is predefined and required
14774     # on some systems where configure will not decide to define it.
14775     if (defundef == "undef") {
14776       print "/*", prefix defundef, macro, "*/"
14777       next
14778     }
14779   }
14780 }
14781 { print }
14782 _ACAWK
14783 _ACEOF
14784 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14785   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14786 fi # test -n "$CONFIG_HEADERS"
14787
14788
14789 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14790 shift
14791 for ac_tag
14792 do
14793   case $ac_tag in
14794   :[FHLC]) ac_mode=$ac_tag; continue;;
14795   esac
14796   case $ac_mode$ac_tag in
14797   :[FHL]*:*);;
14798   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14799   :[FH]-) ac_tag=-:-;;
14800   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14801   esac
14802   ac_save_IFS=$IFS
14803   IFS=:
14804   set x $ac_tag
14805   IFS=$ac_save_IFS
14806   shift
14807   ac_file=$1
14808   shift
14809
14810   case $ac_mode in
14811   :L) ac_source=$1;;
14812   :[FH])
14813     ac_file_inputs=
14814     for ac_f
14815     do
14816       case $ac_f in
14817       -) ac_f="$ac_tmp/stdin";;
14818       *) # Look for the file first in the build tree, then in the source tree
14819          # (if the path is not absolute).  The absolute path cannot be DOS-style,
14820          # because $ac_f cannot contain `:'.
14821          test -f "$ac_f" ||
14822            case $ac_f in
14823            [\\/$]*) false;;
14824            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14825            esac ||
14826            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14827       esac
14828       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14829       as_fn_append ac_file_inputs " '$ac_f'"
14830     done
14831
14832     # Let's still pretend it is `configure' which instantiates (i.e., don't
14833     # use $as_me), people would be surprised to read:
14834     #    /* config.h.  Generated by config.status.  */
14835     configure_input='Generated from '`
14836           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14837         `' by configure.'
14838     if test x"$ac_file" != x-; then
14839       configure_input="$ac_file.  $configure_input"
14840       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14841 $as_echo "$as_me: creating $ac_file" >&6;}
14842     fi
14843     # Neutralize special characters interpreted by sed in replacement strings.
14844     case $configure_input in #(
14845     *\&* | *\|* | *\\* )
14846        ac_sed_conf_input=`$as_echo "$configure_input" |
14847        sed 's/[\\\\&|]/\\\\&/g'`;; #(
14848     *) ac_sed_conf_input=$configure_input;;
14849     esac
14850
14851     case $ac_tag in
14852     *:-:* | *:-) cat >"$ac_tmp/stdin" \
14853       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14854     esac
14855     ;;
14856   esac
14857
14858   ac_dir=`$as_dirname -- "$ac_file" ||
14859 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14860          X"$ac_file" : 'X\(//\)[^/]' \| \
14861          X"$ac_file" : 'X\(//\)$' \| \
14862          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14863 $as_echo X"$ac_file" |
14864     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14865             s//\1/
14866             q
14867           }
14868           /^X\(\/\/\)[^/].*/{
14869             s//\1/
14870             q
14871           }
14872           /^X\(\/\/\)$/{
14873             s//\1/
14874             q
14875           }
14876           /^X\(\/\).*/{
14877             s//\1/
14878             q
14879           }
14880           s/.*/./; q'`
14881   as_dir="$ac_dir"; as_fn_mkdir_p
14882   ac_builddir=.
14883
14884 case "$ac_dir" in
14885 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14886 *)
14887   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14888   # A ".." for each directory in $ac_dir_suffix.
14889   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14890   case $ac_top_builddir_sub in
14891   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14892   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14893   esac ;;
14894 esac
14895 ac_abs_top_builddir=$ac_pwd
14896 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14897 # for backward compatibility:
14898 ac_top_builddir=$ac_top_build_prefix
14899
14900 case $srcdir in
14901   .)  # We are building in place.
14902     ac_srcdir=.
14903     ac_top_srcdir=$ac_top_builddir_sub
14904     ac_abs_top_srcdir=$ac_pwd ;;
14905   [\\/]* | ?:[\\/]* )  # Absolute name.
14906     ac_srcdir=$srcdir$ac_dir_suffix;
14907     ac_top_srcdir=$srcdir
14908     ac_abs_top_srcdir=$srcdir ;;
14909   *) # Relative name.
14910     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14911     ac_top_srcdir=$ac_top_build_prefix$srcdir
14912     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14913 esac
14914 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14915
14916
14917   case $ac_mode in
14918   :F)
14919   #
14920   # CONFIG_FILE
14921   #
14922
14923   case $INSTALL in
14924   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14925   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14926   esac
14927   ac_MKDIR_P=$MKDIR_P
14928   case $MKDIR_P in
14929   [\\/$]* | ?:[\\/]* ) ;;
14930   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14931   esac
14932 _ACEOF
14933
14934 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14935 # If the template does not know about datarootdir, expand it.
14936 # FIXME: This hack should be removed a few years after 2.60.
14937 ac_datarootdir_hack=; ac_datarootdir_seen=
14938 ac_sed_dataroot='
14939 /datarootdir/ {
14940   p
14941   q
14942 }
14943 /@datadir@/p
14944 /@docdir@/p
14945 /@infodir@/p
14946 /@localedir@/p
14947 /@mandir@/p'
14948 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14949 *datarootdir*) ac_datarootdir_seen=yes;;
14950 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14951   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14952 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14953 _ACEOF
14954 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14955   ac_datarootdir_hack='
14956   s&@datadir@&$datadir&g
14957   s&@docdir@&$docdir&g
14958   s&@infodir@&$infodir&g
14959   s&@localedir@&$localedir&g
14960   s&@mandir@&$mandir&g
14961   s&\\\${datarootdir}&$datarootdir&g' ;;
14962 esac
14963 _ACEOF
14964
14965 # Neutralize VPATH when `$srcdir' = `.'.
14966 # Shell code in configure.ac might set extrasub.
14967 # FIXME: do we really want to maintain this feature?
14968 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14969 ac_sed_extra="$ac_vpsub
14970 $extrasub
14971 _ACEOF
14972 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14973 :t
14974 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14975 s|@configure_input@|$ac_sed_conf_input|;t t
14976 s&@top_builddir@&$ac_top_builddir_sub&;t t
14977 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14978 s&@srcdir@&$ac_srcdir&;t t
14979 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14980 s&@top_srcdir@&$ac_top_srcdir&;t t
14981 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14982 s&@builddir@&$ac_builddir&;t t
14983 s&@abs_builddir@&$ac_abs_builddir&;t t
14984 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14985 s&@INSTALL@&$ac_INSTALL&;t t
14986 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14987 $ac_datarootdir_hack
14988 "
14989 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14990   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14991
14992 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14993   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14994   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
14995       "$ac_tmp/out"`; test -z "$ac_out"; } &&
14996   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14997 which seems to be undefined.  Please make sure it is defined" >&5
14998 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14999 which seems to be undefined.  Please make sure it is defined" >&2;}
15000
15001   rm -f "$ac_tmp/stdin"
15002   case $ac_file in
15003   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15004   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15005   esac \
15006   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15007  ;;
15008   :H)
15009   #
15010   # CONFIG_HEADER
15011   #
15012   if test x"$ac_file" != x-; then
15013     {
15014       $as_echo "/* $configure_input  */" \
15015       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15016     } >"$ac_tmp/config.h" \
15017       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15018     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15019       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15020 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15021     else
15022       rm -f "$ac_file"
15023       mv "$ac_tmp/config.h" "$ac_file" \
15024         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15025     fi
15026   else
15027     $as_echo "/* $configure_input  */" \
15028       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15029       || as_fn_error $? "could not create -" "$LINENO" 5
15030   fi
15031 # Compute "$ac_file"'s index in $config_headers.
15032 _am_arg="$ac_file"
15033 _am_stamp_count=1
15034 for _am_header in $config_headers :; do
15035   case $_am_header in
15036     $_am_arg | $_am_arg:* )
15037       break ;;
15038     * )
15039       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15040   esac
15041 done
15042 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15043 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15044          X"$_am_arg" : 'X\(//\)[^/]' \| \
15045          X"$_am_arg" : 'X\(//\)$' \| \
15046          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15047 $as_echo X"$_am_arg" |
15048     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15049             s//\1/
15050             q
15051           }
15052           /^X\(\/\/\)[^/].*/{
15053             s//\1/
15054             q
15055           }
15056           /^X\(\/\/\)$/{
15057             s//\1/
15058             q
15059           }
15060           /^X\(\/\).*/{
15061             s//\1/
15062             q
15063           }
15064           s/.*/./; q'`/stamp-h$_am_stamp_count
15065  ;;
15066
15067   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15068 $as_echo "$as_me: executing $ac_file commands" >&6;}
15069  ;;
15070   esac
15071
15072
15073   case $ac_file$ac_mode in
15074     "tests/atconfig":C) cat >tests/atconfig <<ATEOF
15075 # Configurable variable values for building test suites.
15076 # Generated by $0.
15077 # Copyright (C) 2012 Free Software Foundation, Inc.
15078
15079 # The test suite will define top_srcdir=$at_top_srcdir/../.. etc.
15080 at_testdir='tests'
15081 abs_builddir='$ac_abs_builddir'
15082 at_srcdir='$ac_srcdir'
15083 abs_srcdir='$ac_abs_srcdir'
15084 at_top_srcdir='$ac_top_srcdir'
15085 abs_top_srcdir='$ac_abs_top_srcdir'
15086 at_top_build_prefix='$ac_top_build_prefix'
15087 abs_top_builddir='$ac_abs_top_builddir'
15088
15089 # Backward compatibility with Autotest <= 2.59b:
15090 at_top_builddir=\$at_top_build_prefix
15091
15092 AUTOTEST_PATH='tests'
15093
15094 SHELL=\${CONFIG_SHELL-'$SHELL'}
15095 ATEOF
15096  ;;
15097     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15098   # Autoconf 2.62 quotes --file arguments for eval, but not when files
15099   # are listed without --file.  Let's play safe and only enable the eval
15100   # if we detect the quoting.
15101   case $CONFIG_FILES in
15102   *\'*) eval set x "$CONFIG_FILES" ;;
15103   *)   set x $CONFIG_FILES ;;
15104   esac
15105   shift
15106   for mf
15107   do
15108     # Strip MF so we end up with the name of the file.
15109     mf=`echo "$mf" | sed -e 's/:.*$//'`
15110     # Check whether this is an Automake generated Makefile or not.
15111     # We used to match only the files named `Makefile.in', but
15112     # some people rename them; so instead we look at the file content.
15113     # Grep'ing the first line is not enough: some people post-process
15114     # each Makefile.in and add a new line on top of each file to say so.
15115     # Grep'ing the whole file is not good either: AIX grep has a line
15116     # limit of 2048, but all sed's we know have understand at least 4000.
15117     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15118       dirpart=`$as_dirname -- "$mf" ||
15119 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15120          X"$mf" : 'X\(//\)[^/]' \| \
15121          X"$mf" : 'X\(//\)$' \| \
15122          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15123 $as_echo X"$mf" |
15124     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15125             s//\1/
15126             q
15127           }
15128           /^X\(\/\/\)[^/].*/{
15129             s//\1/
15130             q
15131           }
15132           /^X\(\/\/\)$/{
15133             s//\1/
15134             q
15135           }
15136           /^X\(\/\).*/{
15137             s//\1/
15138             q
15139           }
15140           s/.*/./; q'`
15141     else
15142       continue
15143     fi
15144     # Extract the definition of DEPDIR, am__include, and am__quote
15145     # from the Makefile without running `make'.
15146     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15147     test -z "$DEPDIR" && continue
15148     am__include=`sed -n 's/^am__include = //p' < "$mf"`
15149     test -z "am__include" && continue
15150     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15151     # When using ansi2knr, U may be empty or an underscore; expand it
15152     U=`sed -n 's/^U = //p' < "$mf"`
15153     # Find all dependency output files, they are included files with
15154     # $(DEPDIR) in their names.  We invoke sed twice because it is the
15155     # simplest approach to changing $(DEPDIR) to its actual value in the
15156     # expansion.
15157     for file in `sed -n "
15158       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15159          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15160       # Make sure the directory exists.
15161       test -f "$dirpart/$file" && continue
15162       fdir=`$as_dirname -- "$file" ||
15163 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15164          X"$file" : 'X\(//\)[^/]' \| \
15165          X"$file" : 'X\(//\)$' \| \
15166          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15167 $as_echo X"$file" |
15168     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15169             s//\1/
15170             q
15171           }
15172           /^X\(\/\/\)[^/].*/{
15173             s//\1/
15174             q
15175           }
15176           /^X\(\/\/\)$/{
15177             s//\1/
15178             q
15179           }
15180           /^X\(\/\).*/{
15181             s//\1/
15182             q
15183           }
15184           s/.*/./; q'`
15185       as_dir=$dirpart/$fdir; as_fn_mkdir_p
15186       # echo "creating $dirpart/$file"
15187       echo '# dummy' > "$dirpart/$file"
15188     done
15189   done
15190 }
15191  ;;
15192     "libtool":C)
15193
15194     # See if we are running on zsh, and set the options which allow our
15195     # commands through without removal of \ escapes.
15196     if test -n "${ZSH_VERSION+set}" ; then
15197       setopt NO_GLOB_SUBST
15198     fi
15199
15200     cfgfile="${ofile}T"
15201     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15202     $RM "$cfgfile"
15203
15204     cat <<_LT_EOF >> "$cfgfile"
15205 #! $SHELL
15206
15207 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15208 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15209 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15210 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15211 #
15212 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15213 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
15214 #                 Foundation, Inc.
15215 #   Written by Gordon Matzigkeit, 1996
15216 #
15217 #   This file is part of GNU Libtool.
15218 #
15219 # GNU Libtool is free software; you can redistribute it and/or
15220 # modify it under the terms of the GNU General Public License as
15221 # published by the Free Software Foundation; either version 2 of
15222 # the License, or (at your option) any later version.
15223 #
15224 # As a special exception to the GNU General Public License,
15225 # if you distribute this file as part of a program or library that
15226 # is built using GNU Libtool, you may include this file under the
15227 # same distribution terms that you use for the rest of that program.
15228 #
15229 # GNU Libtool is distributed in the hope that it will be useful,
15230 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15231 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15232 # GNU General Public License for more details.
15233 #
15234 # You should have received a copy of the GNU General Public License
15235 # along with GNU Libtool; see the file COPYING.  If not, a copy
15236 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15237 # obtained by writing to the Free Software Foundation, Inc.,
15238 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15239
15240
15241 # The names of the tagged configurations supported by this script.
15242 available_tags=""
15243
15244 # ### BEGIN LIBTOOL CONFIG
15245
15246 # Which release of libtool.m4 was used?
15247 macro_version=$macro_version
15248 macro_revision=$macro_revision
15249
15250 # Whether or not to build shared libraries.
15251 build_libtool_libs=$enable_shared
15252
15253 # Whether or not to build static libraries.
15254 build_old_libs=$enable_static
15255
15256 # What type of objects to build.
15257 pic_mode=$pic_mode
15258
15259 # Whether or not to optimize for fast installation.
15260 fast_install=$enable_fast_install
15261
15262 # Shell to use when invoking shell scripts.
15263 SHELL=$lt_SHELL
15264
15265 # An echo program that protects backslashes.
15266 ECHO=$lt_ECHO
15267
15268 # The PATH separator for the build system.
15269 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15270
15271 # The host system.
15272 host_alias=$host_alias
15273 host=$host
15274 host_os=$host_os
15275
15276 # The build system.
15277 build_alias=$build_alias
15278 build=$build
15279 build_os=$build_os
15280
15281 # A sed program that does not truncate output.
15282 SED=$lt_SED
15283
15284 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15285 Xsed="\$SED -e 1s/^X//"
15286
15287 # A grep program that handles long lines.
15288 GREP=$lt_GREP
15289
15290 # An ERE matcher.
15291 EGREP=$lt_EGREP
15292
15293 # A literal string matcher.
15294 FGREP=$lt_FGREP
15295
15296 # A BSD- or MS-compatible name lister.
15297 NM=$lt_NM
15298
15299 # Whether we need soft or hard links.
15300 LN_S=$lt_LN_S
15301
15302 # What is the maximum length of a command?
15303 max_cmd_len=$max_cmd_len
15304
15305 # Object file suffix (normally "o").
15306 objext=$ac_objext
15307
15308 # Executable file suffix (normally "").
15309 exeext=$exeext
15310
15311 # whether the shell understands "unset".
15312 lt_unset=$lt_unset
15313
15314 # turn spaces into newlines.
15315 SP2NL=$lt_lt_SP2NL
15316
15317 # turn newlines into spaces.
15318 NL2SP=$lt_lt_NL2SP
15319
15320 # convert \$build file names to \$host format.
15321 to_host_file_cmd=$lt_cv_to_host_file_cmd
15322
15323 # convert \$build files to toolchain format.
15324 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15325
15326 # An object symbol dumper.
15327 OBJDUMP=$lt_OBJDUMP
15328
15329 # Method to check whether dependent libraries are shared objects.
15330 deplibs_check_method=$lt_deplibs_check_method
15331
15332 # Command to use when deplibs_check_method = "file_magic".
15333 file_magic_cmd=$lt_file_magic_cmd
15334
15335 # How to find potential files when deplibs_check_method = "file_magic".
15336 file_magic_glob=$lt_file_magic_glob
15337
15338 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15339 want_nocaseglob=$lt_want_nocaseglob
15340
15341 # DLL creation program.
15342 DLLTOOL=$lt_DLLTOOL
15343
15344 # Command to associate shared and link libraries.
15345 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15346
15347 # The archiver.
15348 AR=$lt_AR
15349
15350 # Flags to create an archive.
15351 AR_FLAGS=$lt_AR_FLAGS
15352
15353 # How to feed a file listing to the archiver.
15354 archiver_list_spec=$lt_archiver_list_spec
15355
15356 # A symbol stripping program.
15357 STRIP=$lt_STRIP
15358
15359 # Commands used to install an old-style archive.
15360 RANLIB=$lt_RANLIB
15361 old_postinstall_cmds=$lt_old_postinstall_cmds
15362 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15363
15364 # Whether to use a lock for old archive extraction.
15365 lock_old_archive_extraction=$lock_old_archive_extraction
15366
15367 # A C compiler.
15368 LTCC=$lt_CC
15369
15370 # LTCC compiler flags.
15371 LTCFLAGS=$lt_CFLAGS
15372
15373 # Take the output of nm and produce a listing of raw symbols and C names.
15374 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15375
15376 # Transform the output of nm in a proper C declaration.
15377 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15378
15379 # Transform the output of nm in a C name address pair.
15380 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15381
15382 # Transform the output of nm in a C name address pair when lib prefix is needed.
15383 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15384
15385 # Specify filename containing input files for \$NM.
15386 nm_file_list_spec=$lt_nm_file_list_spec
15387
15388 # The root where to search for dependent libraries,and in which our libraries should be installed.
15389 lt_sysroot=$lt_sysroot
15390
15391 # The name of the directory that contains temporary libtool files.
15392 objdir=$objdir
15393
15394 # Used to examine libraries when file_magic_cmd begins with "file".
15395 MAGIC_CMD=$MAGIC_CMD
15396
15397 # Must we lock files when doing compilation?
15398 need_locks=$lt_need_locks
15399
15400 # Manifest tool.
15401 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15402
15403 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15404 DSYMUTIL=$lt_DSYMUTIL
15405
15406 # Tool to change global to local symbols on Mac OS X.
15407 NMEDIT=$lt_NMEDIT
15408
15409 # Tool to manipulate fat objects and archives on Mac OS X.
15410 LIPO=$lt_LIPO
15411
15412 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15413 OTOOL=$lt_OTOOL
15414
15415 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15416 OTOOL64=$lt_OTOOL64
15417
15418 # Old archive suffix (normally "a").
15419 libext=$libext
15420
15421 # Shared library suffix (normally ".so").
15422 shrext_cmds=$lt_shrext_cmds
15423
15424 # The commands to extract the exported symbol list from a shared archive.
15425 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15426
15427 # Variables whose values should be saved in libtool wrapper scripts and
15428 # restored at link time.
15429 variables_saved_for_relink=$lt_variables_saved_for_relink
15430
15431 # Do we need the "lib" prefix for modules?
15432 need_lib_prefix=$need_lib_prefix
15433
15434 # Do we need a version for libraries?
15435 need_version=$need_version
15436
15437 # Library versioning type.
15438 version_type=$version_type
15439
15440 # Shared library runtime path variable.
15441 runpath_var=$runpath_var
15442
15443 # Shared library path variable.
15444 shlibpath_var=$shlibpath_var
15445
15446 # Is shlibpath searched before the hard-coded library search path?
15447 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15448
15449 # Format of library name prefix.
15450 libname_spec=$lt_libname_spec
15451
15452 # List of archive names.  First name is the real one, the rest are links.
15453 # The last name is the one that the linker finds with -lNAME
15454 library_names_spec=$lt_library_names_spec
15455
15456 # The coded name of the library, if different from the real name.
15457 soname_spec=$lt_soname_spec
15458
15459 # Permission mode override for installation of shared libraries.
15460 install_override_mode=$lt_install_override_mode
15461
15462 # Command to use after installation of a shared archive.
15463 postinstall_cmds=$lt_postinstall_cmds
15464
15465 # Command to use after uninstallation of a shared archive.
15466 postuninstall_cmds=$lt_postuninstall_cmds
15467
15468 # Commands used to finish a libtool library installation in a directory.
15469 finish_cmds=$lt_finish_cmds
15470
15471 # As "finish_cmds", except a single script fragment to be evaled but
15472 # not shown.
15473 finish_eval=$lt_finish_eval
15474
15475 # Whether we should hardcode library paths into libraries.
15476 hardcode_into_libs=$hardcode_into_libs
15477
15478 # Compile-time system search path for libraries.
15479 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15480
15481 # Run-time system search path for libraries.
15482 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15483
15484 # Whether dlopen is supported.
15485 dlopen_support=$enable_dlopen
15486
15487 # Whether dlopen of programs is supported.
15488 dlopen_self=$enable_dlopen_self
15489
15490 # Whether dlopen of statically linked programs is supported.
15491 dlopen_self_static=$enable_dlopen_self_static
15492
15493 # Commands to strip libraries.
15494 old_striplib=$lt_old_striplib
15495 striplib=$lt_striplib
15496
15497 # Assembler program.
15498 AS=$lt_AS
15499
15500
15501 # The linker used to build libraries.
15502 LD=$lt_LD
15503
15504 # How to create reloadable object files.
15505 reload_flag=$lt_reload_flag
15506 reload_cmds=$lt_reload_cmds
15507
15508 # Commands used to build an old-style archive.
15509 old_archive_cmds=$lt_old_archive_cmds
15510
15511 # A language specific compiler.
15512 CC=$lt_compiler
15513
15514 # Is the compiler the GNU compiler?
15515 with_gcc=$GCC
15516
15517 # Compiler flag to turn off builtin functions.
15518 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15519
15520 # Additional compiler flags for building library objects.
15521 pic_flag=$lt_lt_prog_compiler_pic
15522
15523 # How to pass a linker flag through the compiler.
15524 wl=$lt_lt_prog_compiler_wl
15525
15526 # Compiler flag to prevent dynamic linking.
15527 link_static_flag=$lt_lt_prog_compiler_static
15528
15529 # Does compiler simultaneously support -c and -o options?
15530 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15531
15532 # Whether or not to add -lc for building shared libraries.
15533 build_libtool_need_lc=$archive_cmds_need_lc
15534
15535 # Whether or not to disallow shared libs when runtime libs are static.
15536 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15537
15538 # Compiler flag to allow reflexive dlopens.
15539 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15540
15541 # Compiler flag to generate shared objects directly from archives.
15542 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15543
15544 # Whether the compiler copes with passing no objects directly.
15545 compiler_needs_object=$lt_compiler_needs_object
15546
15547 # Create an old-style archive from a shared archive.
15548 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15549
15550 # Create a temporary old-style archive to link instead of a shared archive.
15551 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15552
15553 # Commands used to build a shared archive.
15554 archive_cmds=$lt_archive_cmds
15555 archive_expsym_cmds=$lt_archive_expsym_cmds
15556
15557 # Commands used to build a loadable module if different from building
15558 # a shared archive.
15559 module_cmds=$lt_module_cmds
15560 module_expsym_cmds=$lt_module_expsym_cmds
15561
15562 # Whether we are building with GNU ld or not.
15563 with_gnu_ld=$lt_with_gnu_ld
15564
15565 # Flag that allows shared libraries with undefined symbols to be built.
15566 allow_undefined_flag=$lt_allow_undefined_flag
15567
15568 # Flag that enforces no undefined symbols.
15569 no_undefined_flag=$lt_no_undefined_flag
15570
15571 # Flag to hardcode \$libdir into a binary during linking.
15572 # This must work even if \$libdir does not exist
15573 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15574
15575 # Whether we need a single "-rpath" flag with a separated argument.
15576 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15577
15578 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15579 # DIR into the resulting binary.
15580 hardcode_direct=$hardcode_direct
15581
15582 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15583 # DIR into the resulting binary and the resulting library dependency is
15584 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15585 # library is relocated.
15586 hardcode_direct_absolute=$hardcode_direct_absolute
15587
15588 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15589 # into the resulting binary.
15590 hardcode_minus_L=$hardcode_minus_L
15591
15592 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15593 # into the resulting binary.
15594 hardcode_shlibpath_var=$hardcode_shlibpath_var
15595
15596 # Set to "yes" if building a shared library automatically hardcodes DIR
15597 # into the library and all subsequent libraries and executables linked
15598 # against it.
15599 hardcode_automatic=$hardcode_automatic
15600
15601 # Set to yes if linker adds runtime paths of dependent libraries
15602 # to runtime path list.
15603 inherit_rpath=$inherit_rpath
15604
15605 # Whether libtool must link a program against all its dependency libraries.
15606 link_all_deplibs=$link_all_deplibs
15607
15608 # Set to "yes" if exported symbols are required.
15609 always_export_symbols=$always_export_symbols
15610
15611 # The commands to list exported symbols.
15612 export_symbols_cmds=$lt_export_symbols_cmds
15613
15614 # Symbols that should not be listed in the preloaded symbols.
15615 exclude_expsyms=$lt_exclude_expsyms
15616
15617 # Symbols that must always be exported.
15618 include_expsyms=$lt_include_expsyms
15619
15620 # Commands necessary for linking programs (against libraries) with templates.
15621 prelink_cmds=$lt_prelink_cmds
15622
15623 # Commands necessary for finishing linking programs.
15624 postlink_cmds=$lt_postlink_cmds
15625
15626 # Specify filename containing input files.
15627 file_list_spec=$lt_file_list_spec
15628
15629 # How to hardcode a shared library path into an executable.
15630 hardcode_action=$hardcode_action
15631
15632 # ### END LIBTOOL CONFIG
15633
15634 _LT_EOF
15635
15636   case $host_os in
15637   aix3*)
15638     cat <<\_LT_EOF >> "$cfgfile"
15639 # AIX sometimes has problems with the GCC collect2 program.  For some
15640 # reason, if we set the COLLECT_NAMES environment variable, the problems
15641 # vanish in a puff of smoke.
15642 if test "X${COLLECT_NAMES+set}" != Xset; then
15643   COLLECT_NAMES=
15644   export COLLECT_NAMES
15645 fi
15646 _LT_EOF
15647     ;;
15648   esac
15649
15650
15651 ltmain="$ac_aux_dir/ltmain.sh"
15652
15653
15654   # We use sed instead of cat because bash on DJGPP gets confused if
15655   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15656   # text mode, it properly converts lines to CR/LF.  This bash problem
15657   # is reportedly fixed, but why not run on old versions too?
15658   sed '$q' "$ltmain" >> "$cfgfile" \
15659      || (rm -f "$cfgfile"; exit 1)
15660
15661   if test x"$xsi_shell" = xyes; then
15662   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15663 func_dirname ()\
15664 {\
15665 \    case ${1} in\
15666 \      */*) func_dirname_result="${1%/*}${2}" ;;\
15667 \      *  ) func_dirname_result="${3}" ;;\
15668 \    esac\
15669 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15670   && mv -f "$cfgfile.tmp" "$cfgfile" \
15671     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15672 test 0 -eq $? || _lt_function_replace_fail=:
15673
15674
15675   sed -e '/^func_basename ()$/,/^} # func_basename /c\
15676 func_basename ()\
15677 {\
15678 \    func_basename_result="${1##*/}"\
15679 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15680   && mv -f "$cfgfile.tmp" "$cfgfile" \
15681     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15682 test 0 -eq $? || _lt_function_replace_fail=:
15683
15684
15685   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15686 func_dirname_and_basename ()\
15687 {\
15688 \    case ${1} in\
15689 \      */*) func_dirname_result="${1%/*}${2}" ;;\
15690 \      *  ) func_dirname_result="${3}" ;;\
15691 \    esac\
15692 \    func_basename_result="${1##*/}"\
15693 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15694   && mv -f "$cfgfile.tmp" "$cfgfile" \
15695     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15696 test 0 -eq $? || _lt_function_replace_fail=:
15697
15698
15699   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15700 func_stripname ()\
15701 {\
15702 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15703 \    # positional parameters, so assign one to ordinary parameter first.\
15704 \    func_stripname_result=${3}\
15705 \    func_stripname_result=${func_stripname_result#"${1}"}\
15706 \    func_stripname_result=${func_stripname_result%"${2}"}\
15707 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15708   && mv -f "$cfgfile.tmp" "$cfgfile" \
15709     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15710 test 0 -eq $? || _lt_function_replace_fail=:
15711
15712
15713   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15714 func_split_long_opt ()\
15715 {\
15716 \    func_split_long_opt_name=${1%%=*}\
15717 \    func_split_long_opt_arg=${1#*=}\
15718 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15719   && mv -f "$cfgfile.tmp" "$cfgfile" \
15720     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15721 test 0 -eq $? || _lt_function_replace_fail=:
15722
15723
15724   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15725 func_split_short_opt ()\
15726 {\
15727 \    func_split_short_opt_arg=${1#??}\
15728 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15729 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15730   && mv -f "$cfgfile.tmp" "$cfgfile" \
15731     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15732 test 0 -eq $? || _lt_function_replace_fail=:
15733
15734
15735   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15736 func_lo2o ()\
15737 {\
15738 \    case ${1} in\
15739 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15740 \      *)    func_lo2o_result=${1} ;;\
15741 \    esac\
15742 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15743   && mv -f "$cfgfile.tmp" "$cfgfile" \
15744     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15745 test 0 -eq $? || _lt_function_replace_fail=:
15746
15747
15748   sed -e '/^func_xform ()$/,/^} # func_xform /c\
15749 func_xform ()\
15750 {\
15751     func_xform_result=${1%.*}.lo\
15752 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15753   && mv -f "$cfgfile.tmp" "$cfgfile" \
15754     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15755 test 0 -eq $? || _lt_function_replace_fail=:
15756
15757
15758   sed -e '/^func_arith ()$/,/^} # func_arith /c\
15759 func_arith ()\
15760 {\
15761     func_arith_result=$(( $* ))\
15762 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15763   && mv -f "$cfgfile.tmp" "$cfgfile" \
15764     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15765 test 0 -eq $? || _lt_function_replace_fail=:
15766
15767
15768   sed -e '/^func_len ()$/,/^} # func_len /c\
15769 func_len ()\
15770 {\
15771     func_len_result=${#1}\
15772 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15773   && mv -f "$cfgfile.tmp" "$cfgfile" \
15774     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15775 test 0 -eq $? || _lt_function_replace_fail=:
15776
15777 fi
15778
15779 if test x"$lt_shell_append" = xyes; then
15780   sed -e '/^func_append ()$/,/^} # func_append /c\
15781 func_append ()\
15782 {\
15783     eval "${1}+=\\${2}"\
15784 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15785   && mv -f "$cfgfile.tmp" "$cfgfile" \
15786     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15787 test 0 -eq $? || _lt_function_replace_fail=:
15788
15789
15790   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15791 func_append_quoted ()\
15792 {\
15793 \    func_quote_for_eval "${2}"\
15794 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15795 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15796   && mv -f "$cfgfile.tmp" "$cfgfile" \
15797     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15798 test 0 -eq $? || _lt_function_replace_fail=:
15799
15800
15801   # Save a `func_append' function call where possible by direct use of '+='
15802   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15803     && mv -f "$cfgfile.tmp" "$cfgfile" \
15804       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15805   test 0 -eq $? || _lt_function_replace_fail=:
15806 else
15807   # Save a `func_append' function call even when '+=' is not available
15808   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15809     && mv -f "$cfgfile.tmp" "$cfgfile" \
15810       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15811   test 0 -eq $? || _lt_function_replace_fail=:
15812 fi
15813
15814 if test x"$_lt_function_replace_fail" = x":"; then
15815   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15816 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15817 fi
15818
15819
15820    mv -f "$cfgfile" "$ofile" ||
15821     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15822   chmod +x "$ofile"
15823
15824  ;;
15825
15826   esac
15827 done # for ac_tag
15828
15829
15830 as_fn_exit 0
15831 _ACEOF
15832 ac_clean_files=$ac_clean_files_save
15833
15834 test $ac_write_fail = 0 ||
15835   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15836
15837
15838 # configure is writing to config.log, and then calls config.status.
15839 # config.status does its own redirection, appending to config.log.
15840 # Unfortunately, on DOS this fails, as config.log is still kept open
15841 # by configure, so config.status won't be able to write to it; its
15842 # output is simply discarded.  So we exec the FD to /dev/null,
15843 # effectively closing config.log, so it can be properly (re)opened and
15844 # appended to by config.status.  When coming back to configure, we
15845 # need to make the FD available again.
15846 if test "$no_create" != yes; then
15847   ac_cs_success=:
15848   ac_config_status_args=
15849   test "$silent" = yes &&
15850     ac_config_status_args="$ac_config_status_args --quiet"
15851   exec 5>/dev/null
15852   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15853   exec 5>>config.log
15854   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15855   # would make configure fail if this is the last instruction.
15856   $ac_cs_success || as_fn_exit 1
15857 fi
15858 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15859   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15860 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15861 fi
15862
15863
15864 { $as_echo "$as_me:${as_lineno-$LINENO}:
15865
15866  liboauth configured:
15867  -----------------------
15868
15869   version:                $VERSION
15870   interface revision:     $VERSION_INFO
15871   hash/signature:         $report_hash
15872   http integration:       $report_curl
15873   libcurl-timeout:        $report_curltimeout
15874   generate documentation: $DOXYGEN
15875   installation prefix:    $prefix
15876   CFLAGS:                 $LIBOAUTH_CFLAGS $CFLAGS
15877   LDFLAGS:                $LIBOAUTH_LDFLAGS $LDFLAGS
15878
15879  type \"make\" followed my \"make install\" as root.
15880  $DOXMAKE
15881 " >&5
15882 $as_echo "$as_me:
15883
15884  liboauth configured:
15885  -----------------------
15886
15887   version:                $VERSION
15888   interface revision:     $VERSION_INFO
15889   hash/signature:         $report_hash
15890   http integration:       $report_curl
15891   libcurl-timeout:        $report_curltimeout
15892   generate documentation: $DOXYGEN
15893   installation prefix:    $prefix
15894   CFLAGS:                 $LIBOAUTH_CFLAGS $CFLAGS
15895   LDFLAGS:                $LIBOAUTH_LDFLAGS $LDFLAGS
15896
15897  type \"make\" followed my \"make install\" as root.
15898  $DOXMAKE
15899 " >&6;}