]> git.decadent.org.uk Git - nfs-utils.git/blob - configure
Merge branch 'upstream'
[nfs-utils.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for linux nfs-utils 1.2.4.
4 #
5 # Report bugs to <linux-nfs@vger.kernel.org>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
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 if test "x$CONFIG_SHELL" = x; then
140   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141   emulate sh
142   NULLCMD=:
143   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144   # is contrary to our usage.  Disable this feature.
145   alias -g '\${1+\"\$@\"}'='\"\$@\"'
146   setopt NO_GLOB_SUBST
147 else
148   case \`(set -o) 2>/dev/null\` in #(
149   *posix*) :
150     set -o posix ;; #(
151   *) :
152      ;;
153 esac
154 fi
155 "
156   as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170   exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1
178
179   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183     PATH=/empty FPATH=/empty; export PATH FPATH
184     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186   if (eval "$as_required") 2>/dev/null; then :
187   as_have_required=yes
188 else
189   as_have_required=no
190 fi
191   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198   IFS=$as_save_IFS
199   test -z "$as_dir" && as_dir=.
200   as_found=:
201   case $as_dir in #(
202          /*)
203            for as_base in sh bash ksh sh5; do
204              # Try only shells that exist, to save several forks.
205              as_shell=$as_dir/$as_base
206              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208   CONFIG_SHELL=$as_shell as_have_required=yes
209                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210   break 2
211 fi
212 fi
213            done;;
214        esac
215   as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219   CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224       if test "x$CONFIG_SHELL" != x; then :
225   # We cannot yet assume a decent shell, so we have to provide a
226         # neutralization value for shells without unset; and this also
227         # works around shells that cannot unset nonexistent variables.
228         # Preserve -v and -x to the replacement shell.
229         BASH_ENV=/dev/null
230         ENV=/dev/null
231         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232         export CONFIG_SHELL
233         case $- in # ((((
234           *v*x* | *x*v* ) as_opts=-vx ;;
235           *v* ) as_opts=-v ;;
236           *x* ) as_opts=-x ;;
237           * ) as_opts= ;;
238         esac
239         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242     if test x$as_have_required = xno; then :
243   $as_echo "$0: This script requires a shell more modern than all"
244   $as_echo "$0: the shells that I found on your system."
245   if test x${ZSH_VERSION+set} = xset ; then
246     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248   else
249     $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: linux-nfs@vger.kernel.org about your system, including
251 $0: any error possibly output before this message. Then
252 $0: install a modern shell, or manually run the script
253 $0: under such a shell if you do have one."
254   fi
255   exit 1
256 fi
257 fi
258 fi
259 SHELL=${CONFIG_SHELL-/bin/sh}
260 export SHELL
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
264
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
268 # as_fn_unset VAR
269 # ---------------
270 # Portably unset VAR.
271 as_fn_unset ()
272 {
273   { eval $1=; unset $1;}
274 }
275 as_unset=as_fn_unset
276
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
280 as_fn_set_status ()
281 {
282   return $1
283 } # as_fn_set_status
284
285 # as_fn_exit STATUS
286 # -----------------
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288 as_fn_exit ()
289 {
290   set +e
291   as_fn_set_status $1
292   exit $1
293 } # as_fn_exit
294
295 # as_fn_mkdir_p
296 # -------------
297 # Create "$as_dir" as a directory, including parents if necessary.
298 as_fn_mkdir_p ()
299 {
300
301   case $as_dir in #(
302   -*) as_dir=./$as_dir;;
303   esac
304   test -d "$as_dir" || eval $as_mkdir_p || {
305     as_dirs=
306     while :; do
307       case $as_dir in #(
308       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309       *) as_qdir=$as_dir;;
310       esac
311       as_dirs="'$as_qdir' $as_dirs"
312       as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314          X"$as_dir" : 'X\(//\)[^/]' \| \
315          X"$as_dir" : 'X\(//\)$' \| \
316          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319             s//\1/
320             q
321           }
322           /^X\(\/\/\)[^/].*/{
323             s//\1/
324             q
325           }
326           /^X\(\/\/\)$/{
327             s//\1/
328             q
329           }
330           /^X\(\/\).*/{
331             s//\1/
332             q
333           }
334           s/.*/./; q'`
335       test -d "$as_dir" && break
336     done
337     test -z "$as_dirs" || eval "mkdir $as_dirs"
338   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339
340
341 } # as_fn_mkdir_p
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
347 # implementations.
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349   eval 'as_fn_append ()
350   {
351     eval $1+=\$2
352   }'
353 else
354   as_fn_append ()
355   {
356     eval $1=\$$1\$2
357   }
358 fi # as_fn_append
359
360 # as_fn_arith ARG...
361 # ------------------
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366   eval 'as_fn_arith ()
367   {
368     as_val=$(( $* ))
369   }'
370 else
371   as_fn_arith ()
372   {
373     as_val=`expr "$@" || test $? -eq 1`
374   }
375 fi # as_fn_arith
376
377
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
383 as_fn_error ()
384 {
385   as_status=$1; test $as_status -eq 0 && as_status=1
386   if test "$4"; then
387     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389   fi
390   $as_echo "$as_me: error: $2" >&2
391   as_fn_exit $as_status
392 } # as_fn_error
393
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395    test "X`expr 00001 : '.*\(...\)'`" = X001; then
396   as_expr=expr
397 else
398   as_expr=false
399 fi
400
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402   as_basename=basename
403 else
404   as_basename=false
405 fi
406
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408   as_dirname=dirname
409 else
410   as_dirname=false
411 fi
412
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415          X"$0" : 'X\(//\)$' \| \
416          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417 $as_echo X/"$0" |
418     sed '/^.*\/\([^/][^/]*\)\/*$/{
419             s//\1/
420             q
421           }
422           /^X\/\(\/\/\)$/{
423             s//\1/
424             q
425           }
426           /^X\/\(\/\).*/{
427             s//\1/
428             q
429           }
430           s/.*/./; q'`
431
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
438
439
440   as_lineno_1=$LINENO as_lineno_1a=$LINENO
441   as_lineno_2=$LINENO as_lineno_2a=$LINENO
442   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
445   sed -n '
446     p
447     /[$]LINENO/=
448   ' <$as_myself |
449     sed '
450       s/[$]LINENO.*/&-/
451       t lineno
452       b
453       :lineno
454       N
455       :loop
456       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457       t loop
458       s/-\n.*//
459     ' >$as_me.lineno &&
460   chmod +x "$as_me.lineno" ||
461     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462
463   # Don't try to exec as it changes $[0], causing all sort of problems
464   # (the dirname of $[0] is not the place where we might find the
465   # original and so on.  Autoconf is especially sensitive to this).
466   . "./$as_me.lineno"
467   # Exit status is that of the last command.
468   exit
469 }
470
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
473 -n*)
474   case `echo 'xy\c'` in
475   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
476   xy)  ECHO_C='\c';;
477   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
478        ECHO_T=' ';;
479   esac;;
480 *)
481   ECHO_N='-n';;
482 esac
483
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486   rm -f conf$$.dir/conf$$.file
487 else
488   rm -f conf$$.dir
489   mkdir conf$$.dir 2>/dev/null
490 fi
491 if (echo >conf$$.file) 2>/dev/null; then
492   if ln -s conf$$.file conf$$ 2>/dev/null; then
493     as_ln_s='ln -s'
494     # ... but there are two gotchas:
495     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497     # In both cases, we have to default to `cp -p'.
498     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499       as_ln_s='cp -p'
500   elif ln conf$$.file conf$$ 2>/dev/null; then
501     as_ln_s=ln
502   else
503     as_ln_s='cp -p'
504   fi
505 else
506   as_ln_s='cp -p'
507 fi
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
510
511 if mkdir -p . 2>/dev/null; then
512   as_mkdir_p='mkdir -p "$as_dir"'
513 else
514   test -d ./-p && rmdir ./-p
515   as_mkdir_p=false
516 fi
517
518 if test -x / >/dev/null 2>&1; then
519   as_test_x='test -x'
520 else
521   if ls -dL / >/dev/null 2>&1; then
522     as_ls_L_option=L
523   else
524     as_ls_L_option=
525   fi
526   as_test_x='
527     eval sh -c '\''
528       if test -d "$1"; then
529         test -d "$1/.";
530       else
531         case $1 in #(
532         -*)set "./$1";;
533         esac;
534         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535         ???[sx]*):;;*)false;;esac;fi
536     '\'' sh
537   '
538 fi
539 as_executable_p=$as_test_x
540
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
547 SHELL=${CONFIG_SHELL-/bin/sh}
548
549
550 test -n "$DJDIR" || exec 7<&0 </dev/null
551 exec 6>&1
552
553 # Name of the host.
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
557
558 #
559 # Initializations.
560 #
561 ac_default_prefix=/usr/local
562 ac_clean_files=
563 ac_config_libobj_dir=.
564 LIBOBJS=
565 cross_compiling=no
566 subdirs=
567 MFLAGS=
568 MAKEFLAGS=
569
570 # Identity of this package.
571 PACKAGE_NAME='linux nfs-utils'
572 PACKAGE_TARNAME='nfs-utils'
573 PACKAGE_VERSION='1.2.4'
574 PACKAGE_STRING='linux nfs-utils 1.2.4'
575 PACKAGE_BUGREPORT='linux-nfs@vger.kernel.org'
576 PACKAGE_URL=''
577
578 ac_default_prefix=/usr
579 # Factoring default headers for most tests.
580 ac_includes_default="\
581 #include <stdio.h>
582 #ifdef HAVE_SYS_TYPES_H
583 # include <sys/types.h>
584 #endif
585 #ifdef HAVE_SYS_STAT_H
586 # include <sys/stat.h>
587 #endif
588 #ifdef STDC_HEADERS
589 # include <stdlib.h>
590 # include <stddef.h>
591 #else
592 # ifdef HAVE_STDLIB_H
593 #  include <stdlib.h>
594 # endif
595 #endif
596 #ifdef HAVE_STRING_H
597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
598 #  include <memory.h>
599 # endif
600 # include <string.h>
601 #endif
602 #ifdef HAVE_STRINGS_H
603 # include <strings.h>
604 #endif
605 #ifdef HAVE_INTTYPES_H
606 # include <inttypes.h>
607 #endif
608 #ifdef HAVE_STDINT_H
609 # include <stdint.h>
610 #endif
611 #ifdef HAVE_UNISTD_H
612 # include <unistd.h>
613 #endif"
614
615 ac_unique_file="support/include/config.h.in"
616 ac_subst_vars='am__EXEEXT_FALSE
617 am__EXEEXT_TRUE
618 LTLIBOBJS
619 ACLOCAL_AMFLAGS
620 AM_CFLAGS
621 LDFLAGS_FOR_BUILD
622 CPPFLAGS_FOR_BUILD
623 CXXFLAGS_FOR_BUILD
624 CFLAGS_FOR_BUILD
625 LIBOBJS
626 ALLOCA
627 K5VERS
628 KRBLDFLAGS
629 KRBCFLAGS
630 KRBLIBS
631 KRBDIR
632 LIBMOUNT
633 CONFIG_LIBMOUNT_FALSE
634 CONFIG_LIBMOUNT_TRUE
635 LIBBLKID
636 LIBBSD
637 LIBCRYPT
638 LIBSOCKET
639 RPCSECGSS_LIBS
640 RPCSECGSS_CFLAGS
641 GSSGLUE_LIBS
642 GSSGLUE_CFLAGS
643 PKG_CONFIG_LIBDIR
644 PKG_CONFIG_PATH
645 PKG_CONFIG
646 LIBKEYUTILS
647 CONFIG_NFSIDMAP_FALSE
648 CONFIG_NFSIDMAP_TRUE
649 LIBNSL
650 CC_FOR_BUILD
651 CXXCPP
652 OTOOL64
653 OTOOL
654 LIPO
655 NMEDIT
656 DSYMUTIL
657 MANIFEST_TOOL
658 RANLIB
659 ac_ct_AR
660 AR
661 DLLTOOL
662 OBJDUMP
663 NM
664 ac_ct_DUMPBIN
665 DUMPBIN
666 LD
667 FGREP
668 SED
669 LIBTOOL
670 LN_S
671 am__fastdepCXX_FALSE
672 am__fastdepCXX_TRUE
673 CXXDEPMODE
674 ac_ct_CXX
675 CXXFLAGS
676 CXX
677 HAVE_TCP_WRAPPER
678 HAVE_LIBWRAP
679 LIBWRAP
680 LIBCAP
681 EGREP
682 GREP
683 CPP
684 AM_CPPFLAGS
685 am__fastdepCC_FALSE
686 am__fastdepCC_TRUE
687 CCDEPMODE
688 AMDEPBACKSLASH
689 AMDEP_FALSE
690 AMDEP_TRUE
691 am__quote
692 am__include
693 DEPDIR
694 OBJEXT
695 EXEEXT
696 ac_ct_CC
697 CPPFLAGS
698 LDFLAGS
699 CFLAGS
700 CC
701 MOUNT_CONFIG_FALSE
702 MOUNT_CONFIG_TRUE
703 enable_mountconfig
704 mountfile
705 CONFIG_IPV6_FALSE
706 CONFIG_IPV6_TRUE
707 enable_ipv6
708 CONFIG_MOUNT_FALSE
709 CONFIG_MOUNT_TRUE
710 CONFIG_RPCGEN_FALSE
711 CONFIG_RPCGEN_TRUE
712 RPCGEN_PATH
713 kprefix
714 CONFIG_GSS_FALSE
715 CONFIG_GSS_TRUE
716 enable_gss
717 SVCGSSD
718 GSSD
719 CONFIG_NFSV41_FALSE
720 CONFIG_NFSV41_TRUE
721 enable_nfsv41
722 CONFIG_NFSV4_FALSE
723 CONFIG_NFSV4_TRUE
724 enable_nfsv4
725 IDMAPD
726 enable_nfsv3
727 startstatd
728 statduser
729 statedir
730 RELEASE
731 MAINT
732 MAINTAINER_MODE_FALSE
733 MAINTAINER_MODE_TRUE
734 am__untar
735 am__tar
736 AMTAR
737 am__leading_dot
738 SET_MAKE
739 AWK
740 mkdir_p
741 MKDIR_P
742 INSTALL_STRIP_PROGRAM
743 STRIP
744 install_sh
745 MAKEINFO
746 AUTOHEADER
747 AUTOMAKE
748 AUTOCONF
749 ACLOCAL
750 VERSION
751 PACKAGE
752 CYGPATH_W
753 am__isrc
754 INSTALL_DATA
755 INSTALL_SCRIPT
756 INSTALL_PROGRAM
757 host_os
758 host_vendor
759 host_cpu
760 host
761 build_os
762 build_vendor
763 build_cpu
764 build
765 target_alias
766 host_alias
767 build_alias
768 LIBS
769 ECHO_T
770 ECHO_N
771 ECHO_C
772 DEFS
773 mandir
774 localedir
775 libdir
776 psdir
777 pdfdir
778 dvidir
779 htmldir
780 infodir
781 docdir
782 oldincludedir
783 includedir
784 localstatedir
785 sharedstatedir
786 sysconfdir
787 datadir
788 datarootdir
789 libexecdir
790 sbindir
791 bindir
792 program_transform_name
793 prefix
794 exec_prefix
795 PACKAGE_URL
796 PACKAGE_BUGREPORT
797 PACKAGE_STRING
798 PACKAGE_VERSION
799 PACKAGE_TARNAME
800 PACKAGE_NAME
801 PATH_SEPARATOR
802 SHELL'
803 ac_subst_files=''
804 ac_user_opts='
805 enable_option_checking
806 enable_maintainer_mode
807 with_release
808 with_statedir
809 with_statduser
810 with_start_statd
811 enable_nfsv3
812 enable_nfsv4
813 enable_nfsv41
814 enable_gss
815 enable_kprefix
816 with_rpcgen
817 enable_uuid
818 enable_mount
819 enable_libmount_mount
820 enable_tirpc
821 enable_ipv6
822 enable_mountconfig
823 with_mountfile
824 with_tirpcinclude
825 enable_dependency_tracking
826 enable_caps
827 with_tcp_wrappers
828 enable_largefile
829 enable_shared
830 enable_static
831 with_pic
832 enable_fast_install
833 with_gnu_ld
834 with_sysroot
835 enable_libtool_lock
836 with_krb5
837 '
838       ac_precious_vars='build_alias
839 host_alias
840 target_alias
841 CC
842 CFLAGS
843 LDFLAGS
844 LIBS
845 CPPFLAGS
846 CPP
847 CXX
848 CXXFLAGS
849 CCC
850 CXXCPP
851 PKG_CONFIG
852 PKG_CONFIG_PATH
853 PKG_CONFIG_LIBDIR
854 GSSGLUE_CFLAGS
855 GSSGLUE_LIBS
856 RPCSECGSS_CFLAGS
857 RPCSECGSS_LIBS'
858
859
860 # Initialize some variables set by options.
861 ac_init_help=
862 ac_init_version=false
863 ac_unrecognized_opts=
864 ac_unrecognized_sep=
865 # The variables have the same names as the options, with
866 # dashes changed to underlines.
867 cache_file=/dev/null
868 exec_prefix=NONE
869 no_create=
870 no_recursion=
871 prefix=NONE
872 program_prefix=NONE
873 program_suffix=NONE
874 program_transform_name=s,x,x,
875 silent=
876 site=
877 srcdir=
878 verbose=
879 x_includes=NONE
880 x_libraries=NONE
881
882 # Installation directory options.
883 # These are left unexpanded so users can "make install exec_prefix=/foo"
884 # and all the variables that are supposed to be based on exec_prefix
885 # by default will actually change.
886 # Use braces instead of parens because sh, perl, etc. also accept them.
887 # (The list follows the same order as the GNU Coding Standards.)
888 bindir='${exec_prefix}/bin'
889 sbindir='${exec_prefix}/sbin'
890 libexecdir='${exec_prefix}/libexec'
891 datarootdir='${prefix}/share'
892 datadir='${datarootdir}'
893 sysconfdir='${prefix}/etc'
894 sharedstatedir='${prefix}/com'
895 localstatedir='${prefix}/var'
896 includedir='${prefix}/include'
897 oldincludedir='/usr/include'
898 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
899 infodir='${datarootdir}/info'
900 htmldir='${docdir}'
901 dvidir='${docdir}'
902 pdfdir='${docdir}'
903 psdir='${docdir}'
904 libdir='${exec_prefix}/lib'
905 localedir='${datarootdir}/locale'
906 mandir='${datarootdir}/man'
907
908 ac_prev=
909 ac_dashdash=
910 for ac_option
911 do
912   # If the previous option needs an argument, assign it.
913   if test -n "$ac_prev"; then
914     eval $ac_prev=\$ac_option
915     ac_prev=
916     continue
917   fi
918
919   case $ac_option in
920   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
921   *=)   ac_optarg= ;;
922   *)    ac_optarg=yes ;;
923   esac
924
925   # Accept the important Cygnus configure options, so we can diagnose typos.
926
927   case $ac_dashdash$ac_option in
928   --)
929     ac_dashdash=yes ;;
930
931   -bindir | --bindir | --bindi | --bind | --bin | --bi)
932     ac_prev=bindir ;;
933   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
934     bindir=$ac_optarg ;;
935
936   -build | --build | --buil | --bui | --bu)
937     ac_prev=build_alias ;;
938   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
939     build_alias=$ac_optarg ;;
940
941   -cache-file | --cache-file | --cache-fil | --cache-fi \
942   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
943     ac_prev=cache_file ;;
944   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
945   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
946     cache_file=$ac_optarg ;;
947
948   --config-cache | -C)
949     cache_file=config.cache ;;
950
951   -datadir | --datadir | --datadi | --datad)
952     ac_prev=datadir ;;
953   -datadir=* | --datadir=* | --datadi=* | --datad=*)
954     datadir=$ac_optarg ;;
955
956   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
957   | --dataroo | --dataro | --datar)
958     ac_prev=datarootdir ;;
959   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
960   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
961     datarootdir=$ac_optarg ;;
962
963   -disable-* | --disable-*)
964     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
965     # Reject names that are not valid shell variable names.
966     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
967       as_fn_error $? "invalid feature name: $ac_useropt"
968     ac_useropt_orig=$ac_useropt
969     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
970     case $ac_user_opts in
971       *"
972 "enable_$ac_useropt"
973 "*) ;;
974       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
975          ac_unrecognized_sep=', ';;
976     esac
977     eval enable_$ac_useropt=no ;;
978
979   -docdir | --docdir | --docdi | --doc | --do)
980     ac_prev=docdir ;;
981   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
982     docdir=$ac_optarg ;;
983
984   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
985     ac_prev=dvidir ;;
986   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
987     dvidir=$ac_optarg ;;
988
989   -enable-* | --enable-*)
990     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
991     # Reject names that are not valid shell variable names.
992     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
993       as_fn_error $? "invalid feature name: $ac_useropt"
994     ac_useropt_orig=$ac_useropt
995     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
996     case $ac_user_opts in
997       *"
998 "enable_$ac_useropt"
999 "*) ;;
1000       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1001          ac_unrecognized_sep=', ';;
1002     esac
1003     eval enable_$ac_useropt=\$ac_optarg ;;
1004
1005   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1006   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1007   | --exec | --exe | --ex)
1008     ac_prev=exec_prefix ;;
1009   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1010   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1011   | --exec=* | --exe=* | --ex=*)
1012     exec_prefix=$ac_optarg ;;
1013
1014   -gas | --gas | --ga | --g)
1015     # Obsolete; use --with-gas.
1016     with_gas=yes ;;
1017
1018   -help | --help | --hel | --he | -h)
1019     ac_init_help=long ;;
1020   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1021     ac_init_help=recursive ;;
1022   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1023     ac_init_help=short ;;
1024
1025   -host | --host | --hos | --ho)
1026     ac_prev=host_alias ;;
1027   -host=* | --host=* | --hos=* | --ho=*)
1028     host_alias=$ac_optarg ;;
1029
1030   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1031     ac_prev=htmldir ;;
1032   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1033   | --ht=*)
1034     htmldir=$ac_optarg ;;
1035
1036   -includedir | --includedir | --includedi | --included | --include \
1037   | --includ | --inclu | --incl | --inc)
1038     ac_prev=includedir ;;
1039   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1040   | --includ=* | --inclu=* | --incl=* | --inc=*)
1041     includedir=$ac_optarg ;;
1042
1043   -infodir | --infodir | --infodi | --infod | --info | --inf)
1044     ac_prev=infodir ;;
1045   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1046     infodir=$ac_optarg ;;
1047
1048   -libdir | --libdir | --libdi | --libd)
1049     ac_prev=libdir ;;
1050   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1051     libdir=$ac_optarg ;;
1052
1053   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1054   | --libexe | --libex | --libe)
1055     ac_prev=libexecdir ;;
1056   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1057   | --libexe=* | --libex=* | --libe=*)
1058     libexecdir=$ac_optarg ;;
1059
1060   -localedir | --localedir | --localedi | --localed | --locale)
1061     ac_prev=localedir ;;
1062   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1063     localedir=$ac_optarg ;;
1064
1065   -localstatedir | --localstatedir | --localstatedi | --localstated \
1066   | --localstate | --localstat | --localsta | --localst | --locals)
1067     ac_prev=localstatedir ;;
1068   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1069   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1070     localstatedir=$ac_optarg ;;
1071
1072   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1073     ac_prev=mandir ;;
1074   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1075     mandir=$ac_optarg ;;
1076
1077   -nfp | --nfp | --nf)
1078     # Obsolete; use --without-fp.
1079     with_fp=no ;;
1080
1081   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1082   | --no-cr | --no-c | -n)
1083     no_create=yes ;;
1084
1085   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1086   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1087     no_recursion=yes ;;
1088
1089   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1090   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1091   | --oldin | --oldi | --old | --ol | --o)
1092     ac_prev=oldincludedir ;;
1093   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1094   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1095   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1096     oldincludedir=$ac_optarg ;;
1097
1098   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1099     ac_prev=prefix ;;
1100   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1101     prefix=$ac_optarg ;;
1102
1103   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1104   | --program-pre | --program-pr | --program-p)
1105     ac_prev=program_prefix ;;
1106   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1107   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1108     program_prefix=$ac_optarg ;;
1109
1110   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1111   | --program-suf | --program-su | --program-s)
1112     ac_prev=program_suffix ;;
1113   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1114   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1115     program_suffix=$ac_optarg ;;
1116
1117   -program-transform-name | --program-transform-name \
1118   | --program-transform-nam | --program-transform-na \
1119   | --program-transform-n | --program-transform- \
1120   | --program-transform | --program-transfor \
1121   | --program-transfo | --program-transf \
1122   | --program-trans | --program-tran \
1123   | --progr-tra | --program-tr | --program-t)
1124     ac_prev=program_transform_name ;;
1125   -program-transform-name=* | --program-transform-name=* \
1126   | --program-transform-nam=* | --program-transform-na=* \
1127   | --program-transform-n=* | --program-transform-=* \
1128   | --program-transform=* | --program-transfor=* \
1129   | --program-transfo=* | --program-transf=* \
1130   | --program-trans=* | --program-tran=* \
1131   | --progr-tra=* | --program-tr=* | --program-t=*)
1132     program_transform_name=$ac_optarg ;;
1133
1134   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1135     ac_prev=pdfdir ;;
1136   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1137     pdfdir=$ac_optarg ;;
1138
1139   -psdir | --psdir | --psdi | --psd | --ps)
1140     ac_prev=psdir ;;
1141   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1142     psdir=$ac_optarg ;;
1143
1144   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1145   | -silent | --silent | --silen | --sile | --sil)
1146     silent=yes ;;
1147
1148   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1149     ac_prev=sbindir ;;
1150   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1151   | --sbi=* | --sb=*)
1152     sbindir=$ac_optarg ;;
1153
1154   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1155   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1156   | --sharedst | --shareds | --shared | --share | --shar \
1157   | --sha | --sh)
1158     ac_prev=sharedstatedir ;;
1159   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1160   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1161   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1162   | --sha=* | --sh=*)
1163     sharedstatedir=$ac_optarg ;;
1164
1165   -site | --site | --sit)
1166     ac_prev=site ;;
1167   -site=* | --site=* | --sit=*)
1168     site=$ac_optarg ;;
1169
1170   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1171     ac_prev=srcdir ;;
1172   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1173     srcdir=$ac_optarg ;;
1174
1175   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1176   | --syscon | --sysco | --sysc | --sys | --sy)
1177     ac_prev=sysconfdir ;;
1178   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1179   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1180     sysconfdir=$ac_optarg ;;
1181
1182   -target | --target | --targe | --targ | --tar | --ta | --t)
1183     ac_prev=target_alias ;;
1184   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1185     target_alias=$ac_optarg ;;
1186
1187   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1188     verbose=yes ;;
1189
1190   -version | --version | --versio | --versi | --vers | -V)
1191     ac_init_version=: ;;
1192
1193   -with-* | --with-*)
1194     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1195     # Reject names that are not valid shell variable names.
1196     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1197       as_fn_error $? "invalid package name: $ac_useropt"
1198     ac_useropt_orig=$ac_useropt
1199     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1200     case $ac_user_opts in
1201       *"
1202 "with_$ac_useropt"
1203 "*) ;;
1204       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1205          ac_unrecognized_sep=', ';;
1206     esac
1207     eval with_$ac_useropt=\$ac_optarg ;;
1208
1209   -without-* | --without-*)
1210     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1211     # Reject names that are not valid shell variable names.
1212     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1213       as_fn_error $? "invalid package name: $ac_useropt"
1214     ac_useropt_orig=$ac_useropt
1215     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1216     case $ac_user_opts in
1217       *"
1218 "with_$ac_useropt"
1219 "*) ;;
1220       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1221          ac_unrecognized_sep=', ';;
1222     esac
1223     eval with_$ac_useropt=no ;;
1224
1225   --x)
1226     # Obsolete; use --with-x.
1227     with_x=yes ;;
1228
1229   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1230   | --x-incl | --x-inc | --x-in | --x-i)
1231     ac_prev=x_includes ;;
1232   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1233   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1234     x_includes=$ac_optarg ;;
1235
1236   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1237   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1238     ac_prev=x_libraries ;;
1239   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1240   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1241     x_libraries=$ac_optarg ;;
1242
1243   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1244 Try \`$0 --help' for more information"
1245     ;;
1246
1247   *=*)
1248     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1249     # Reject names that are not valid shell variable names.
1250     case $ac_envvar in #(
1251       '' | [0-9]* | *[!_$as_cr_alnum]* )
1252       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1253     esac
1254     eval $ac_envvar=\$ac_optarg
1255     export $ac_envvar ;;
1256
1257   *)
1258     # FIXME: should be removed in autoconf 3.0.
1259     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1260     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1261       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1262     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1263     ;;
1264
1265   esac
1266 done
1267
1268 if test -n "$ac_prev"; then
1269   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1270   as_fn_error $? "missing argument to $ac_option"
1271 fi
1272
1273 if test -n "$ac_unrecognized_opts"; then
1274   case $enable_option_checking in
1275     no) ;;
1276     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1277     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1278   esac
1279 fi
1280
1281 # Check all directory arguments for consistency.
1282 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1283                 datadir sysconfdir sharedstatedir localstatedir includedir \
1284                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1285                 libdir localedir mandir
1286 do
1287   eval ac_val=\$$ac_var
1288   # Remove trailing slashes.
1289   case $ac_val in
1290     */ )
1291       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1292       eval $ac_var=\$ac_val;;
1293   esac
1294   # Be sure to have absolute directory names.
1295   case $ac_val in
1296     [\\/$]* | ?:[\\/]* )  continue;;
1297     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1298   esac
1299   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1300 done
1301
1302 # There might be people who depend on the old broken behavior: `$host'
1303 # used to hold the argument of --host etc.
1304 # FIXME: To remove some day.
1305 build=$build_alias
1306 host=$host_alias
1307 target=$target_alias
1308
1309 # FIXME: To remove some day.
1310 if test "x$host_alias" != x; then
1311   if test "x$build_alias" = x; then
1312     cross_compiling=maybe
1313     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1314     If a cross compiler is detected then cross compile mode will be used" >&2
1315   elif test "x$build_alias" != "x$host_alias"; then
1316     cross_compiling=yes
1317   fi
1318 fi
1319
1320 ac_tool_prefix=
1321 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1322
1323 test "$silent" = yes && exec 6>/dev/null
1324
1325
1326 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1327 ac_ls_di=`ls -di .` &&
1328 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1329   as_fn_error $? "working directory cannot be determined"
1330 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1331   as_fn_error $? "pwd does not report name of working directory"
1332
1333
1334 # Find the source files, if location was not specified.
1335 if test -z "$srcdir"; then
1336   ac_srcdir_defaulted=yes
1337   # Try the directory containing this script, then the parent directory.
1338   ac_confdir=`$as_dirname -- "$as_myself" ||
1339 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1340          X"$as_myself" : 'X\(//\)[^/]' \| \
1341          X"$as_myself" : 'X\(//\)$' \| \
1342          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1343 $as_echo X"$as_myself" |
1344     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1345             s//\1/
1346             q
1347           }
1348           /^X\(\/\/\)[^/].*/{
1349             s//\1/
1350             q
1351           }
1352           /^X\(\/\/\)$/{
1353             s//\1/
1354             q
1355           }
1356           /^X\(\/\).*/{
1357             s//\1/
1358             q
1359           }
1360           s/.*/./; q'`
1361   srcdir=$ac_confdir
1362   if test ! -r "$srcdir/$ac_unique_file"; then
1363     srcdir=..
1364   fi
1365 else
1366   ac_srcdir_defaulted=no
1367 fi
1368 if test ! -r "$srcdir/$ac_unique_file"; then
1369   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1370   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1371 fi
1372 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1373 ac_abs_confdir=`(
1374         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1375         pwd)`
1376 # When building in place, set srcdir=.
1377 if test "$ac_abs_confdir" = "$ac_pwd"; then
1378   srcdir=.
1379 fi
1380 # Remove unnecessary trailing slashes from srcdir.
1381 # Double slashes in file names in object file debugging info
1382 # mess up M-x gdb in Emacs.
1383 case $srcdir in
1384 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1385 esac
1386 for ac_var in $ac_precious_vars; do
1387   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1388   eval ac_env_${ac_var}_value=\$${ac_var}
1389   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1390   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1391 done
1392
1393 #
1394 # Report the --help message.
1395 #
1396 if test "$ac_init_help" = "long"; then
1397   # Omit some internal or obsolete options to make the list less imposing.
1398   # This message is too long to be a string in the A/UX 3.1 sh.
1399   cat <<_ACEOF
1400 \`configure' configures linux nfs-utils 1.2.4 to adapt to many kinds of systems.
1401
1402 Usage: $0 [OPTION]... [VAR=VALUE]...
1403
1404 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1405 VAR=VALUE.  See below for descriptions of some of the useful variables.
1406
1407 Defaults for the options are specified in brackets.
1408
1409 Configuration:
1410   -h, --help              display this help and exit
1411       --help=short        display options specific to this package
1412       --help=recursive    display the short help of all the included packages
1413   -V, --version           display version information and exit
1414   -q, --quiet, --silent   do not print \`checking ...' messages
1415       --cache-file=FILE   cache test results in FILE [disabled]
1416   -C, --config-cache      alias for \`--cache-file=config.cache'
1417   -n, --no-create         do not create output files
1418       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1419
1420 Installation directories:
1421   --prefix=PREFIX         install architecture-independent files in PREFIX
1422                           [$ac_default_prefix]
1423   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1424                           [PREFIX]
1425
1426 By default, \`make install' will install all the files in
1427 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1428 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1429 for instance \`--prefix=\$HOME'.
1430
1431 For better control, use the options below.
1432
1433 Fine tuning of the installation directories:
1434   --bindir=DIR            user executables [EPREFIX/bin]
1435   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1436   --libexecdir=DIR        program executables [EPREFIX/libexec]
1437   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1438   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1439   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1440   --libdir=DIR            object code libraries [EPREFIX/lib]
1441   --includedir=DIR        C header files [PREFIX/include]
1442   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1443   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1444   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1445   --infodir=DIR           info documentation [DATAROOTDIR/info]
1446   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1447   --mandir=DIR            man documentation [DATAROOTDIR/man]
1448   --docdir=DIR            documentation root [DATAROOTDIR/doc/nfs-utils]
1449   --htmldir=DIR           html documentation [DOCDIR]
1450   --dvidir=DIR            dvi documentation [DOCDIR]
1451   --pdfdir=DIR            pdf documentation [DOCDIR]
1452   --psdir=DIR             ps documentation [DOCDIR]
1453 _ACEOF
1454
1455   cat <<\_ACEOF
1456
1457 Program names:
1458   --program-prefix=PREFIX            prepend PREFIX to installed program names
1459   --program-suffix=SUFFIX            append SUFFIX to installed program names
1460   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1461
1462 System types:
1463   --build=BUILD     configure for building on BUILD [guessed]
1464   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1465 _ACEOF
1466 fi
1467
1468 if test -n "$ac_init_help"; then
1469   case $ac_init_help in
1470      short | recursive ) echo "Configuration of linux nfs-utils 1.2.4:";;
1471    esac
1472   cat <<\_ACEOF
1473
1474 Optional Features:
1475   --disable-option-checking  ignore unrecognized --enable/--with options
1476   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1477   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1478   --enable-maintainer-mode  enable make rules and dependencies not useful
1479                           (and sometimes confusing) to the casual installer
1480   --enable-nfsv3          enable support for NFSv3 [default=yes]
1481   --enable-nfsv4          enable support for NFSv4 [default=yes]
1482   --enable-nfsv41         enable support for NFSv41 [default=no]
1483   --enable-gss            enable support for rpcsec_gss [default=yes]
1484   --enable-kprefix        install progs as rpc.knfsd etc
1485   --disable-uuid          Exclude uuid support to avoid buggy libblkid
1486   --enable-mount          Create mount.nfs and don't use the util-linux
1487                           mount(8) functionality. [default=yes]
1488   --enable-libmount-mount Link mount.nfs with libmount (EXPERIMENTAL)
1489   --enable-tirpc          enable use of TI-RPC [default=yes]
1490   --enable-ipv6           enable support for IPv6 [default=no]
1491   --enable-mountconfig    enable mount to use a configuration file
1492   --disable-dependency-tracking  speeds up one-time build
1493   --enable-dependency-tracking   do not reject slow dependency extractors
1494   --disable-caps          Disable capabilities support
1495   --disable-largefile     omit support for large files
1496   --enable-shared[=PKGS]  build shared libraries [default=yes]
1497   --enable-static[=PKGS]  build static libraries [default=yes]
1498   --enable-fast-install[=PKGS]
1499                           optimize for fast installation [default=yes]
1500   --disable-libtool-lock  avoid locking (might break parallel builds)
1501
1502 Optional Packages:
1503   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1504   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1505   --with-release=XXX      set release to XXX [1]
1506   --with-statedir=/foo    use state dir /foo /var/lib/nfs
1507   --with-statduser=rpcuser
1508                           statd to run under [rpcuser or nobody]
1509   --with-start-statd=scriptname
1510                           When an nfs filesystems is mounted with locking, run
1511                           this script
1512   --with-rpcgen=internal  use internal rpcgen instead of system one
1513   --with-mountfile=filename
1514                           Using filename as the NFS mount options file
1515                           [/etc/nfsmounts.conf]
1516   --with-tirpcinclude=DIR use TI-RPC headers in DIR
1517   --with-tcp-wrappers[=PATH]      Enable tcpwrappers support
1518                  (optionally in PATH)
1519   --with-pic              try to use only PIC/non-PIC objects [default=use
1520                           both]
1521   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1522   --with-sysroot=DIR Search for dependent libraries within DIR
1523                         (or the compiler's sysroot if not specified).
1524   --with-krb5=DIR         use Kerberos v5 installation in DIR
1525
1526 Some influential environment variables:
1527   CC          C compiler command
1528   CFLAGS      C compiler flags
1529   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1530               nonstandard directory <lib dir>
1531   LIBS        libraries to pass to the linker, e.g. -l<library>
1532   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1533               you have headers in a nonstandard directory <include dir>
1534   CPP         C preprocessor
1535   CXX         C++ compiler command
1536   CXXFLAGS    C++ compiler flags
1537   CXXCPP      C++ preprocessor
1538   PKG_CONFIG  path to pkg-config utility
1539   PKG_CONFIG_PATH
1540               directories to add to pkg-config's search path
1541   PKG_CONFIG_LIBDIR
1542               path overriding pkg-config's built-in search path
1543   GSSGLUE_CFLAGS
1544               C compiler flags for GSSGLUE, overriding pkg-config
1545   GSSGLUE_LIBS
1546               linker flags for GSSGLUE, overriding pkg-config
1547   RPCSECGSS_CFLAGS
1548               C compiler flags for RPCSECGSS, overriding pkg-config
1549   RPCSECGSS_LIBS
1550               linker flags for RPCSECGSS, overriding pkg-config
1551
1552 Use these variables to override the choices made by `configure' or to help
1553 it to find libraries and programs with nonstandard names/locations.
1554
1555 Report bugs to <linux-nfs@vger.kernel.org>.
1556 _ACEOF
1557 ac_status=$?
1558 fi
1559
1560 if test "$ac_init_help" = "recursive"; then
1561   # If there are subdirs, report their specific --help.
1562   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1563     test -d "$ac_dir" ||
1564       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1565       continue
1566     ac_builddir=.
1567
1568 case "$ac_dir" in
1569 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1570 *)
1571   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1572   # A ".." for each directory in $ac_dir_suffix.
1573   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1574   case $ac_top_builddir_sub in
1575   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1576   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1577   esac ;;
1578 esac
1579 ac_abs_top_builddir=$ac_pwd
1580 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1581 # for backward compatibility:
1582 ac_top_builddir=$ac_top_build_prefix
1583
1584 case $srcdir in
1585   .)  # We are building in place.
1586     ac_srcdir=.
1587     ac_top_srcdir=$ac_top_builddir_sub
1588     ac_abs_top_srcdir=$ac_pwd ;;
1589   [\\/]* | ?:[\\/]* )  # Absolute name.
1590     ac_srcdir=$srcdir$ac_dir_suffix;
1591     ac_top_srcdir=$srcdir
1592     ac_abs_top_srcdir=$srcdir ;;
1593   *) # Relative name.
1594     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1595     ac_top_srcdir=$ac_top_build_prefix$srcdir
1596     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1597 esac
1598 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1599
1600     cd "$ac_dir" || { ac_status=$?; continue; }
1601     # Check for guested configure.
1602     if test -f "$ac_srcdir/configure.gnu"; then
1603       echo &&
1604       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1605     elif test -f "$ac_srcdir/configure"; then
1606       echo &&
1607       $SHELL "$ac_srcdir/configure" --help=recursive
1608     else
1609       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1610     fi || ac_status=$?
1611     cd "$ac_pwd" || { ac_status=$?; break; }
1612   done
1613 fi
1614
1615 test -n "$ac_init_help" && exit $ac_status
1616 if $ac_init_version; then
1617   cat <<\_ACEOF
1618 linux nfs-utils configure 1.2.4
1619 generated by GNU Autoconf 2.68
1620
1621 Copyright (C) 2010 Free Software Foundation, Inc.
1622 This configure script is free software; the Free Software Foundation
1623 gives unlimited permission to copy, distribute and modify it.
1624 _ACEOF
1625   exit
1626 fi
1627
1628 ## ------------------------ ##
1629 ## Autoconf initialization. ##
1630 ## ------------------------ ##
1631
1632 # ac_fn_c_try_compile LINENO
1633 # --------------------------
1634 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1635 ac_fn_c_try_compile ()
1636 {
1637   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1638   rm -f conftest.$ac_objext
1639   if { { ac_try="$ac_compile"
1640 case "(($ac_try" in
1641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1642   *) ac_try_echo=$ac_try;;
1643 esac
1644 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1645 $as_echo "$ac_try_echo"; } >&5
1646   (eval "$ac_compile") 2>conftest.err
1647   ac_status=$?
1648   if test -s conftest.err; then
1649     grep -v '^ *+' conftest.err >conftest.er1
1650     cat conftest.er1 >&5
1651     mv -f conftest.er1 conftest.err
1652   fi
1653   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1654   test $ac_status = 0; } && {
1655          test -z "$ac_c_werror_flag" ||
1656          test ! -s conftest.err
1657        } && test -s conftest.$ac_objext; then :
1658   ac_retval=0
1659 else
1660   $as_echo "$as_me: failed program was:" >&5
1661 sed 's/^/| /' conftest.$ac_ext >&5
1662
1663         ac_retval=1
1664 fi
1665   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1666   as_fn_set_status $ac_retval
1667
1668 } # ac_fn_c_try_compile
1669
1670 # ac_fn_c_try_link LINENO
1671 # -----------------------
1672 # Try to link conftest.$ac_ext, and return whether this succeeded.
1673 ac_fn_c_try_link ()
1674 {
1675   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676   rm -f conftest.$ac_objext conftest$ac_exeext
1677   if { { ac_try="$ac_link"
1678 case "(($ac_try" in
1679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1680   *) ac_try_echo=$ac_try;;
1681 esac
1682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1683 $as_echo "$ac_try_echo"; } >&5
1684   (eval "$ac_link") 2>conftest.err
1685   ac_status=$?
1686   if test -s conftest.err; then
1687     grep -v '^ *+' conftest.err >conftest.er1
1688     cat conftest.er1 >&5
1689     mv -f conftest.er1 conftest.err
1690   fi
1691   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692   test $ac_status = 0; } && {
1693          test -z "$ac_c_werror_flag" ||
1694          test ! -s conftest.err
1695        } && test -s conftest$ac_exeext && {
1696          test "$cross_compiling" = yes ||
1697          $as_test_x conftest$ac_exeext
1698        }; then :
1699   ac_retval=0
1700 else
1701   $as_echo "$as_me: failed program was:" >&5
1702 sed 's/^/| /' conftest.$ac_ext >&5
1703
1704         ac_retval=1
1705 fi
1706   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1707   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1708   # interfere with the next link command; also delete a directory that is
1709   # left behind by Apple's compiler.  We do this before executing the actions.
1710   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1711   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712   as_fn_set_status $ac_retval
1713
1714 } # ac_fn_c_try_link
1715
1716 # ac_fn_c_try_cpp LINENO
1717 # ----------------------
1718 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1719 ac_fn_c_try_cpp ()
1720 {
1721   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722   if { { ac_try="$ac_cpp conftest.$ac_ext"
1723 case "(($ac_try" in
1724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1725   *) ac_try_echo=$ac_try;;
1726 esac
1727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1728 $as_echo "$ac_try_echo"; } >&5
1729   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1730   ac_status=$?
1731   if test -s conftest.err; then
1732     grep -v '^ *+' conftest.err >conftest.er1
1733     cat conftest.er1 >&5
1734     mv -f conftest.er1 conftest.err
1735   fi
1736   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1737   test $ac_status = 0; } > conftest.i && {
1738          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1739          test ! -s conftest.err
1740        }; then :
1741   ac_retval=0
1742 else
1743   $as_echo "$as_me: failed program was:" >&5
1744 sed 's/^/| /' conftest.$ac_ext >&5
1745
1746     ac_retval=1
1747 fi
1748   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1749   as_fn_set_status $ac_retval
1750
1751 } # ac_fn_c_try_cpp
1752
1753 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1754 # -------------------------------------------------------
1755 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1756 # the include files in INCLUDES and setting the cache variable VAR
1757 # accordingly.
1758 ac_fn_c_check_header_mongrel ()
1759 {
1760   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761   if eval \${$3+:} false; then :
1762   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1763 $as_echo_n "checking for $2... " >&6; }
1764 if eval \${$3+:} false; then :
1765   $as_echo_n "(cached) " >&6
1766 fi
1767 eval ac_res=\$$3
1768                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1769 $as_echo "$ac_res" >&6; }
1770 else
1771   # Is the header compilable?
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1773 $as_echo_n "checking $2 usability... " >&6; }
1774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1775 /* end confdefs.h.  */
1776 $4
1777 #include <$2>
1778 _ACEOF
1779 if ac_fn_c_try_compile "$LINENO"; then :
1780   ac_header_compiler=yes
1781 else
1782   ac_header_compiler=no
1783 fi
1784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1786 $as_echo "$ac_header_compiler" >&6; }
1787
1788 # Is the header present?
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1790 $as_echo_n "checking $2 presence... " >&6; }
1791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1792 /* end confdefs.h.  */
1793 #include <$2>
1794 _ACEOF
1795 if ac_fn_c_try_cpp "$LINENO"; then :
1796   ac_header_preproc=yes
1797 else
1798   ac_header_preproc=no
1799 fi
1800 rm -f conftest.err conftest.i conftest.$ac_ext
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1802 $as_echo "$ac_header_preproc" >&6; }
1803
1804 # So?  What about this header?
1805 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1806   yes:no: )
1807     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1808 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1809     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1810 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1811     ;;
1812   no:yes:* )
1813     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1814 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1815     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1816 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1817     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1818 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1819     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1820 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1821     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1822 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1823 ( $as_echo "## ---------------------------------------- ##
1824 ## Report this to linux-nfs@vger.kernel.org ##
1825 ## ---------------------------------------- ##"
1826      ) | sed "s/^/$as_me: WARNING:     /" >&2
1827     ;;
1828 esac
1829   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1830 $as_echo_n "checking for $2... " >&6; }
1831 if eval \${$3+:} false; then :
1832   $as_echo_n "(cached) " >&6
1833 else
1834   eval "$3=\$ac_header_compiler"
1835 fi
1836 eval ac_res=\$$3
1837                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1838 $as_echo "$ac_res" >&6; }
1839 fi
1840   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1841
1842 } # ac_fn_c_check_header_mongrel
1843
1844 # ac_fn_c_try_run LINENO
1845 # ----------------------
1846 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1847 # that executables *can* be run.
1848 ac_fn_c_try_run ()
1849 {
1850   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851   if { { ac_try="$ac_link"
1852 case "(($ac_try" in
1853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1854   *) ac_try_echo=$ac_try;;
1855 esac
1856 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1857 $as_echo "$ac_try_echo"; } >&5
1858   (eval "$ac_link") 2>&5
1859   ac_status=$?
1860   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1861   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1862   { { case "(($ac_try" in
1863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1864   *) ac_try_echo=$ac_try;;
1865 esac
1866 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1867 $as_echo "$ac_try_echo"; } >&5
1868   (eval "$ac_try") 2>&5
1869   ac_status=$?
1870   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1871   test $ac_status = 0; }; }; then :
1872   ac_retval=0
1873 else
1874   $as_echo "$as_me: program exited with status $ac_status" >&5
1875        $as_echo "$as_me: failed program was:" >&5
1876 sed 's/^/| /' conftest.$ac_ext >&5
1877
1878        ac_retval=$ac_status
1879 fi
1880   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1881   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1882   as_fn_set_status $ac_retval
1883
1884 } # ac_fn_c_try_run
1885
1886 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1887 # -------------------------------------------------------
1888 # Tests whether HEADER exists and can be compiled using the include files in
1889 # INCLUDES, setting the cache variable VAR accordingly.
1890 ac_fn_c_check_header_compile ()
1891 {
1892   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1893   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1894 $as_echo_n "checking for $2... " >&6; }
1895 if eval \${$3+:} false; then :
1896   $as_echo_n "(cached) " >&6
1897 else
1898   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1899 /* end confdefs.h.  */
1900 $4
1901 #include <$2>
1902 _ACEOF
1903 if ac_fn_c_try_compile "$LINENO"; then :
1904   eval "$3=yes"
1905 else
1906   eval "$3=no"
1907 fi
1908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1914
1915 } # ac_fn_c_check_header_compile
1916
1917 # ac_fn_c_check_func LINENO FUNC VAR
1918 # ----------------------------------
1919 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1920 ac_fn_c_check_func ()
1921 {
1922   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1923   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1924 $as_echo_n "checking for $2... " >&6; }
1925 if eval \${$3+:} false; then :
1926   $as_echo_n "(cached) " >&6
1927 else
1928   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1929 /* end confdefs.h.  */
1930 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1931    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1932 #define $2 innocuous_$2
1933
1934 /* System header to define __stub macros and hopefully few prototypes,
1935     which can conflict with char $2 (); below.
1936     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1937     <limits.h> exists even on freestanding compilers.  */
1938
1939 #ifdef __STDC__
1940 # include <limits.h>
1941 #else
1942 # include <assert.h>
1943 #endif
1944
1945 #undef $2
1946
1947 /* Override any GCC internal prototype to avoid an error.
1948    Use char because int might match the return type of a GCC
1949    builtin and then its argument prototype would still apply.  */
1950 #ifdef __cplusplus
1951 extern "C"
1952 #endif
1953 char $2 ();
1954 /* The GNU C library defines this for functions which it implements
1955     to always fail with ENOSYS.  Some functions are actually named
1956     something starting with __ and the normal name is an alias.  */
1957 #if defined __stub_$2 || defined __stub___$2
1958 choke me
1959 #endif
1960
1961 int
1962 main ()
1963 {
1964 return $2 ();
1965   ;
1966   return 0;
1967 }
1968 _ACEOF
1969 if ac_fn_c_try_link "$LINENO"; then :
1970   eval "$3=yes"
1971 else
1972   eval "$3=no"
1973 fi
1974 rm -f core conftest.err conftest.$ac_objext \
1975     conftest$ac_exeext conftest.$ac_ext
1976 fi
1977 eval ac_res=\$$3
1978                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1979 $as_echo "$ac_res" >&6; }
1980   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1981
1982 } # ac_fn_c_check_func
1983
1984 # ac_fn_cxx_try_compile LINENO
1985 # ----------------------------
1986 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1987 ac_fn_cxx_try_compile ()
1988 {
1989   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1990   rm -f conftest.$ac_objext
1991   if { { ac_try="$ac_compile"
1992 case "(($ac_try" in
1993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1994   *) ac_try_echo=$ac_try;;
1995 esac
1996 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1997 $as_echo "$ac_try_echo"; } >&5
1998   (eval "$ac_compile") 2>conftest.err
1999   ac_status=$?
2000   if test -s conftest.err; then
2001     grep -v '^ *+' conftest.err >conftest.er1
2002     cat conftest.er1 >&5
2003     mv -f conftest.er1 conftest.err
2004   fi
2005   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2006   test $ac_status = 0; } && {
2007          test -z "$ac_cxx_werror_flag" ||
2008          test ! -s conftest.err
2009        } && test -s conftest.$ac_objext; then :
2010   ac_retval=0
2011 else
2012   $as_echo "$as_me: failed program was:" >&5
2013 sed 's/^/| /' conftest.$ac_ext >&5
2014
2015         ac_retval=1
2016 fi
2017   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2018   as_fn_set_status $ac_retval
2019
2020 } # ac_fn_cxx_try_compile
2021
2022 # ac_fn_cxx_try_cpp LINENO
2023 # ------------------------
2024 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2025 ac_fn_cxx_try_cpp ()
2026 {
2027   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2028   if { { ac_try="$ac_cpp conftest.$ac_ext"
2029 case "(($ac_try" in
2030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2031   *) ac_try_echo=$ac_try;;
2032 esac
2033 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2034 $as_echo "$ac_try_echo"; } >&5
2035   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2036   ac_status=$?
2037   if test -s conftest.err; then
2038     grep -v '^ *+' conftest.err >conftest.er1
2039     cat conftest.er1 >&5
2040     mv -f conftest.er1 conftest.err
2041   fi
2042   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2043   test $ac_status = 0; } > conftest.i && {
2044          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2045          test ! -s conftest.err
2046        }; then :
2047   ac_retval=0
2048 else
2049   $as_echo "$as_me: failed program was:" >&5
2050 sed 's/^/| /' conftest.$ac_ext >&5
2051
2052     ac_retval=1
2053 fi
2054   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2055   as_fn_set_status $ac_retval
2056
2057 } # ac_fn_cxx_try_cpp
2058
2059 # ac_fn_cxx_try_link LINENO
2060 # -------------------------
2061 # Try to link conftest.$ac_ext, and return whether this succeeded.
2062 ac_fn_cxx_try_link ()
2063 {
2064   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2065   rm -f conftest.$ac_objext conftest$ac_exeext
2066   if { { ac_try="$ac_link"
2067 case "(($ac_try" in
2068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2069   *) ac_try_echo=$ac_try;;
2070 esac
2071 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2072 $as_echo "$ac_try_echo"; } >&5
2073   (eval "$ac_link") 2>conftest.err
2074   ac_status=$?
2075   if test -s conftest.err; then
2076     grep -v '^ *+' conftest.err >conftest.er1
2077     cat conftest.er1 >&5
2078     mv -f conftest.er1 conftest.err
2079   fi
2080   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2081   test $ac_status = 0; } && {
2082          test -z "$ac_cxx_werror_flag" ||
2083          test ! -s conftest.err
2084        } && test -s conftest$ac_exeext && {
2085          test "$cross_compiling" = yes ||
2086          $as_test_x conftest$ac_exeext
2087        }; then :
2088   ac_retval=0
2089 else
2090   $as_echo "$as_me: failed program was:" >&5
2091 sed 's/^/| /' conftest.$ac_ext >&5
2092
2093         ac_retval=1
2094 fi
2095   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2096   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2097   # interfere with the next link command; also delete a directory that is
2098   # left behind by Apple's compiler.  We do this before executing the actions.
2099   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2100   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2101   as_fn_set_status $ac_retval
2102
2103 } # ac_fn_cxx_try_link
2104
2105 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2106 # ---------------------------------------------
2107 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2108 # accordingly.
2109 ac_fn_c_check_decl ()
2110 {
2111   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2112   as_decl_name=`echo $2|sed 's/ *(.*//'`
2113   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2114   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2115 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2116 if eval \${$3+:} false; then :
2117   $as_echo_n "(cached) " >&6
2118 else
2119   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2120 /* end confdefs.h.  */
2121 $4
2122 int
2123 main ()
2124 {
2125 #ifndef $as_decl_name
2126 #ifdef __cplusplus
2127   (void) $as_decl_use;
2128 #else
2129   (void) $as_decl_name;
2130 #endif
2131 #endif
2132
2133   ;
2134   return 0;
2135 }
2136 _ACEOF
2137 if ac_fn_c_try_compile "$LINENO"; then :
2138   eval "$3=yes"
2139 else
2140   eval "$3=no"
2141 fi
2142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2143 fi
2144 eval ac_res=\$$3
2145                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2146 $as_echo "$ac_res" >&6; }
2147   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2148
2149 } # ac_fn_c_check_decl
2150
2151 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2152 # -------------------------------------------
2153 # Tests whether TYPE exists after having included INCLUDES, setting cache
2154 # variable VAR accordingly.
2155 ac_fn_c_check_type ()
2156 {
2157   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2158   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2159 $as_echo_n "checking for $2... " >&6; }
2160 if eval \${$3+:} false; then :
2161   $as_echo_n "(cached) " >&6
2162 else
2163   eval "$3=no"
2164   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2165 /* end confdefs.h.  */
2166 $4
2167 int
2168 main ()
2169 {
2170 if (sizeof ($2))
2171          return 0;
2172   ;
2173   return 0;
2174 }
2175 _ACEOF
2176 if ac_fn_c_try_compile "$LINENO"; then :
2177   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2178 /* end confdefs.h.  */
2179 $4
2180 int
2181 main ()
2182 {
2183 if (sizeof (($2)))
2184             return 0;
2185   ;
2186   return 0;
2187 }
2188 _ACEOF
2189 if ac_fn_c_try_compile "$LINENO"; then :
2190
2191 else
2192   eval "$3=yes"
2193 fi
2194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2195 fi
2196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2197 fi
2198 eval ac_res=\$$3
2199                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2200 $as_echo "$ac_res" >&6; }
2201   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2202
2203 } # ac_fn_c_check_type
2204
2205 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2206 # --------------------------------------------
2207 # Tries to find the compile-time value of EXPR in a program that includes
2208 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2209 # computed
2210 ac_fn_c_compute_int ()
2211 {
2212   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2213   if test "$cross_compiling" = yes; then
2214     # Depending upon the size, compute the lo and hi bounds.
2215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2216 /* end confdefs.h.  */
2217 $4
2218 int
2219 main ()
2220 {
2221 static int test_array [1 - 2 * !(($2) >= 0)];
2222 test_array [0] = 0
2223
2224   ;
2225   return 0;
2226 }
2227 _ACEOF
2228 if ac_fn_c_try_compile "$LINENO"; then :
2229   ac_lo=0 ac_mid=0
2230   while :; do
2231     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2232 /* end confdefs.h.  */
2233 $4
2234 int
2235 main ()
2236 {
2237 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2238 test_array [0] = 0
2239
2240   ;
2241   return 0;
2242 }
2243 _ACEOF
2244 if ac_fn_c_try_compile "$LINENO"; then :
2245   ac_hi=$ac_mid; break
2246 else
2247   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2248                         if test $ac_lo -le $ac_mid; then
2249                           ac_lo= ac_hi=
2250                           break
2251                         fi
2252                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2253 fi
2254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2255   done
2256 else
2257   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2258 /* end confdefs.h.  */
2259 $4
2260 int
2261 main ()
2262 {
2263 static int test_array [1 - 2 * !(($2) < 0)];
2264 test_array [0] = 0
2265
2266   ;
2267   return 0;
2268 }
2269 _ACEOF
2270 if ac_fn_c_try_compile "$LINENO"; then :
2271   ac_hi=-1 ac_mid=-1
2272   while :; do
2273     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2274 /* end confdefs.h.  */
2275 $4
2276 int
2277 main ()
2278 {
2279 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2280 test_array [0] = 0
2281
2282   ;
2283   return 0;
2284 }
2285 _ACEOF
2286 if ac_fn_c_try_compile "$LINENO"; then :
2287   ac_lo=$ac_mid; break
2288 else
2289   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2290                         if test $ac_mid -le $ac_hi; then
2291                           ac_lo= ac_hi=
2292                           break
2293                         fi
2294                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2295 fi
2296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2297   done
2298 else
2299   ac_lo= ac_hi=
2300 fi
2301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2302 fi
2303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2304 # Binary search between lo and hi bounds.
2305 while test "x$ac_lo" != "x$ac_hi"; do
2306   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2307   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2308 /* end confdefs.h.  */
2309 $4
2310 int
2311 main ()
2312 {
2313 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2314 test_array [0] = 0
2315
2316   ;
2317   return 0;
2318 }
2319 _ACEOF
2320 if ac_fn_c_try_compile "$LINENO"; then :
2321   ac_hi=$ac_mid
2322 else
2323   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2324 fi
2325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2326 done
2327 case $ac_lo in #((
2328 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2329 '') ac_retval=1 ;;
2330 esac
2331   else
2332     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2333 /* end confdefs.h.  */
2334 $4
2335 static long int longval () { return $2; }
2336 static unsigned long int ulongval () { return $2; }
2337 #include <stdio.h>
2338 #include <stdlib.h>
2339 int
2340 main ()
2341 {
2342
2343   FILE *f = fopen ("conftest.val", "w");
2344   if (! f)
2345     return 1;
2346   if (($2) < 0)
2347     {
2348       long int i = longval ();
2349       if (i != ($2))
2350         return 1;
2351       fprintf (f, "%ld", i);
2352     }
2353   else
2354     {
2355       unsigned long int i = ulongval ();
2356       if (i != ($2))
2357         return 1;
2358       fprintf (f, "%lu", i);
2359     }
2360   /* Do not output a trailing newline, as this causes \r\n confusion
2361      on some platforms.  */
2362   return ferror (f) || fclose (f) != 0;
2363
2364   ;
2365   return 0;
2366 }
2367 _ACEOF
2368 if ac_fn_c_try_run "$LINENO"; then :
2369   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2370 else
2371   ac_retval=1
2372 fi
2373 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2374   conftest.$ac_objext conftest.beam conftest.$ac_ext
2375 rm -f conftest.val
2376
2377   fi
2378   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2379   as_fn_set_status $ac_retval
2380
2381 } # ac_fn_c_compute_int
2382 cat >config.log <<_ACEOF
2383 This file contains any messages produced by compilers while
2384 running configure, to aid debugging if configure makes a mistake.
2385
2386 It was created by linux nfs-utils $as_me 1.2.4, which was
2387 generated by GNU Autoconf 2.68.  Invocation command line was
2388
2389   $ $0 $@
2390
2391 _ACEOF
2392 exec 5>>config.log
2393 {
2394 cat <<_ASUNAME
2395 ## --------- ##
2396 ## Platform. ##
2397 ## --------- ##
2398
2399 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2400 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2401 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2402 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2403 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2404
2405 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2406 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2407
2408 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2409 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2410 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2411 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2412 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2413 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2414 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2415
2416 _ASUNAME
2417
2418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2419 for as_dir in $PATH
2420 do
2421   IFS=$as_save_IFS
2422   test -z "$as_dir" && as_dir=.
2423     $as_echo "PATH: $as_dir"
2424   done
2425 IFS=$as_save_IFS
2426
2427 } >&5
2428
2429 cat >&5 <<_ACEOF
2430
2431
2432 ## ----------- ##
2433 ## Core tests. ##
2434 ## ----------- ##
2435
2436 _ACEOF
2437
2438
2439 # Keep a trace of the command line.
2440 # Strip out --no-create and --no-recursion so they do not pile up.
2441 # Strip out --silent because we don't want to record it for future runs.
2442 # Also quote any args containing shell meta-characters.
2443 # Make two passes to allow for proper duplicate-argument suppression.
2444 ac_configure_args=
2445 ac_configure_args0=
2446 ac_configure_args1=
2447 ac_must_keep_next=false
2448 for ac_pass in 1 2
2449 do
2450   for ac_arg
2451   do
2452     case $ac_arg in
2453     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2454     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2455     | -silent | --silent | --silen | --sile | --sil)
2456       continue ;;
2457     *\'*)
2458       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2459     esac
2460     case $ac_pass in
2461     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2462     2)
2463       as_fn_append ac_configure_args1 " '$ac_arg'"
2464       if test $ac_must_keep_next = true; then
2465         ac_must_keep_next=false # Got value, back to normal.
2466       else
2467         case $ac_arg in
2468           *=* | --config-cache | -C | -disable-* | --disable-* \
2469           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2470           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2471           | -with-* | --with-* | -without-* | --without-* | --x)
2472             case "$ac_configure_args0 " in
2473               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2474             esac
2475             ;;
2476           -* ) ac_must_keep_next=true ;;
2477         esac
2478       fi
2479       as_fn_append ac_configure_args " '$ac_arg'"
2480       ;;
2481     esac
2482   done
2483 done
2484 { ac_configure_args0=; unset ac_configure_args0;}
2485 { ac_configure_args1=; unset ac_configure_args1;}
2486
2487 # When interrupted or exit'd, cleanup temporary files, and complete
2488 # config.log.  We remove comments because anyway the quotes in there
2489 # would cause problems or look ugly.
2490 # WARNING: Use '\'' to represent an apostrophe within the trap.
2491 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2492 trap 'exit_status=$?
2493   # Save into config.log some information that might help in debugging.
2494   {
2495     echo
2496
2497     $as_echo "## ---------------- ##
2498 ## Cache variables. ##
2499 ## ---------------- ##"
2500     echo
2501     # The following way of writing the cache mishandles newlines in values,
2502 (
2503   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2504     eval ac_val=\$$ac_var
2505     case $ac_val in #(
2506     *${as_nl}*)
2507       case $ac_var in #(
2508       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2509 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2510       esac
2511       case $ac_var in #(
2512       _ | IFS | as_nl) ;; #(
2513       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2514       *) { eval $ac_var=; unset $ac_var;} ;;
2515       esac ;;
2516     esac
2517   done
2518   (set) 2>&1 |
2519     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2520     *${as_nl}ac_space=\ *)
2521       sed -n \
2522         "s/'\''/'\''\\\\'\'''\''/g;
2523           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2524       ;; #(
2525     *)
2526       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2527       ;;
2528     esac |
2529     sort
2530 )
2531     echo
2532
2533     $as_echo "## ----------------- ##
2534 ## Output variables. ##
2535 ## ----------------- ##"
2536     echo
2537     for ac_var in $ac_subst_vars
2538     do
2539       eval ac_val=\$$ac_var
2540       case $ac_val in
2541       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2542       esac
2543       $as_echo "$ac_var='\''$ac_val'\''"
2544     done | sort
2545     echo
2546
2547     if test -n "$ac_subst_files"; then
2548       $as_echo "## ------------------- ##
2549 ## File substitutions. ##
2550 ## ------------------- ##"
2551       echo
2552       for ac_var in $ac_subst_files
2553       do
2554         eval ac_val=\$$ac_var
2555         case $ac_val in
2556         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2557         esac
2558         $as_echo "$ac_var='\''$ac_val'\''"
2559       done | sort
2560       echo
2561     fi
2562
2563     if test -s confdefs.h; then
2564       $as_echo "## ----------- ##
2565 ## confdefs.h. ##
2566 ## ----------- ##"
2567       echo
2568       cat confdefs.h
2569       echo
2570     fi
2571     test "$ac_signal" != 0 &&
2572       $as_echo "$as_me: caught signal $ac_signal"
2573     $as_echo "$as_me: exit $exit_status"
2574   } >&5
2575   rm -f core *.core core.conftest.* &&
2576     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2577     exit $exit_status
2578 ' 0
2579 for ac_signal in 1 2 13 15; do
2580   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2581 done
2582 ac_signal=0
2583
2584 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2585 rm -f -r conftest* confdefs.h
2586
2587 $as_echo "/* confdefs.h */" > confdefs.h
2588
2589 # Predefined preprocessor variables.
2590
2591 cat >>confdefs.h <<_ACEOF
2592 #define PACKAGE_NAME "$PACKAGE_NAME"
2593 _ACEOF
2594
2595 cat >>confdefs.h <<_ACEOF
2596 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2597 _ACEOF
2598
2599 cat >>confdefs.h <<_ACEOF
2600 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2601 _ACEOF
2602
2603 cat >>confdefs.h <<_ACEOF
2604 #define PACKAGE_STRING "$PACKAGE_STRING"
2605 _ACEOF
2606
2607 cat >>confdefs.h <<_ACEOF
2608 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2609 _ACEOF
2610
2611 cat >>confdefs.h <<_ACEOF
2612 #define PACKAGE_URL "$PACKAGE_URL"
2613 _ACEOF
2614
2615
2616 # Let the site file select an alternate cache file if it wants to.
2617 # Prefer an explicitly selected file to automatically selected ones.
2618 ac_site_file1=NONE
2619 ac_site_file2=NONE
2620 if test -n "$CONFIG_SITE"; then
2621   # We do not want a PATH search for config.site.
2622   case $CONFIG_SITE in #((
2623     -*)  ac_site_file1=./$CONFIG_SITE;;
2624     */*) ac_site_file1=$CONFIG_SITE;;
2625     *)   ac_site_file1=./$CONFIG_SITE;;
2626   esac
2627 elif test "x$prefix" != xNONE; then
2628   ac_site_file1=$prefix/share/config.site
2629   ac_site_file2=$prefix/etc/config.site
2630 else
2631   ac_site_file1=$ac_default_prefix/share/config.site
2632   ac_site_file2=$ac_default_prefix/etc/config.site
2633 fi
2634 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2635 do
2636   test "x$ac_site_file" = xNONE && continue
2637   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2638     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2639 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2640     sed 's/^/| /' "$ac_site_file" >&5
2641     . "$ac_site_file" \
2642       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2643 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2644 as_fn_error $? "failed to load site script $ac_site_file
2645 See \`config.log' for more details" "$LINENO" 5; }
2646   fi
2647 done
2648
2649 if test -r "$cache_file"; then
2650   # Some versions of bash will fail to source /dev/null (special files
2651   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2652   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2653     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2654 $as_echo "$as_me: loading cache $cache_file" >&6;}
2655     case $cache_file in
2656       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2657       *)                      . "./$cache_file";;
2658     esac
2659   fi
2660 else
2661   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2662 $as_echo "$as_me: creating cache $cache_file" >&6;}
2663   >$cache_file
2664 fi
2665
2666 # Check that the precious variables saved in the cache have kept the same
2667 # value.
2668 ac_cache_corrupted=false
2669 for ac_var in $ac_precious_vars; do
2670   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2671   eval ac_new_set=\$ac_env_${ac_var}_set
2672   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2673   eval ac_new_val=\$ac_env_${ac_var}_value
2674   case $ac_old_set,$ac_new_set in
2675     set,)
2676       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2677 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2678       ac_cache_corrupted=: ;;
2679     ,set)
2680       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2681 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2682       ac_cache_corrupted=: ;;
2683     ,);;
2684     *)
2685       if test "x$ac_old_val" != "x$ac_new_val"; then
2686         # differences in whitespace do not lead to failure.
2687         ac_old_val_w=`echo x $ac_old_val`
2688         ac_new_val_w=`echo x $ac_new_val`
2689         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2690           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2691 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2692           ac_cache_corrupted=:
2693         else
2694           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2695 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2696           eval $ac_var=\$ac_old_val
2697         fi
2698         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2699 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2700         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2701 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2702       fi;;
2703   esac
2704   # Pass precious variables to config.status.
2705   if test "$ac_new_set" = set; then
2706     case $ac_new_val in
2707     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2708     *) ac_arg=$ac_var=$ac_new_val ;;
2709     esac
2710     case " $ac_configure_args " in
2711       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2712       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2713     esac
2714   fi
2715 done
2716 if $ac_cache_corrupted; then
2717   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2718 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2719   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2720 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2721   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2722 fi
2723 ## -------------------- ##
2724 ## Main body of script. ##
2725 ## -------------------- ##
2726
2727 ac_ext=c
2728 ac_cpp='$CPP $CPPFLAGS'
2729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2732
2733
2734 ac_aux_dir=
2735 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2736   if test -f "$ac_dir/install-sh"; then
2737     ac_aux_dir=$ac_dir
2738     ac_install_sh="$ac_aux_dir/install-sh -c"
2739     break
2740   elif test -f "$ac_dir/install.sh"; then
2741     ac_aux_dir=$ac_dir
2742     ac_install_sh="$ac_aux_dir/install.sh -c"
2743     break
2744   elif test -f "$ac_dir/shtool"; then
2745     ac_aux_dir=$ac_dir
2746     ac_install_sh="$ac_aux_dir/shtool install -c"
2747     break
2748   fi
2749 done
2750 if test -z "$ac_aux_dir"; then
2751   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2752 fi
2753
2754 # These three variables are undocumented and unsupported,
2755 # and are intended to be withdrawn in a future Autoconf release.
2756 # They can cause serious problems if a builder's source tree is in a directory
2757 # whose full name contains unusual characters.
2758 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2759 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2760 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2761
2762
2763 # Make sure we can run config.sub.
2764 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2765   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2766
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2768 $as_echo_n "checking build system type... " >&6; }
2769 if ${ac_cv_build+:} false; then :
2770   $as_echo_n "(cached) " >&6
2771 else
2772   ac_build_alias=$build_alias
2773 test "x$ac_build_alias" = x &&
2774   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2775 test "x$ac_build_alias" = x &&
2776   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2777 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2778   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2779
2780 fi
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2782 $as_echo "$ac_cv_build" >&6; }
2783 case $ac_cv_build in
2784 *-*-*) ;;
2785 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2786 esac
2787 build=$ac_cv_build
2788 ac_save_IFS=$IFS; IFS='-'
2789 set x $ac_cv_build
2790 shift
2791 build_cpu=$1
2792 build_vendor=$2
2793 shift; shift
2794 # Remember, the first character of IFS is used to create $*,
2795 # except with old shells:
2796 build_os=$*
2797 IFS=$ac_save_IFS
2798 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2799
2800
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2802 $as_echo_n "checking host system type... " >&6; }
2803 if ${ac_cv_host+:} false; then :
2804   $as_echo_n "(cached) " >&6
2805 else
2806   if test "x$host_alias" = x; then
2807   ac_cv_host=$ac_cv_build
2808 else
2809   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2810     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2811 fi
2812
2813 fi
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2815 $as_echo "$ac_cv_host" >&6; }
2816 case $ac_cv_host in
2817 *-*-*) ;;
2818 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2819 esac
2820 host=$ac_cv_host
2821 ac_save_IFS=$IFS; IFS='-'
2822 set x $ac_cv_host
2823 shift
2824 host_cpu=$1
2825 host_vendor=$2
2826 shift; shift
2827 # Remember, the first character of IFS is used to create $*,
2828 # except with old shells:
2829 host_os=$*
2830 IFS=$ac_save_IFS
2831 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2832
2833
2834
2835 am__api_version='1.11'
2836
2837 # Find a good install program.  We prefer a C program (faster),
2838 # so one script is as good as another.  But avoid the broken or
2839 # incompatible versions:
2840 # SysV /etc/install, /usr/sbin/install
2841 # SunOS /usr/etc/install
2842 # IRIX /sbin/install
2843 # AIX /bin/install
2844 # AmigaOS /C/install, which installs bootblocks on floppy discs
2845 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2846 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2847 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2848 # OS/2's system install, which has a completely different semantic
2849 # ./install, which can be erroneously created by make from ./install.sh.
2850 # Reject install programs that cannot install multiple files.
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2852 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2853 if test -z "$INSTALL"; then
2854 if ${ac_cv_path_install+:} false; then :
2855   $as_echo_n "(cached) " >&6
2856 else
2857   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2858 for as_dir in $PATH
2859 do
2860   IFS=$as_save_IFS
2861   test -z "$as_dir" && as_dir=.
2862     # Account for people who put trailing slashes in PATH elements.
2863 case $as_dir/ in #((
2864   ./ | .// | /[cC]/* | \
2865   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2866   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2867   /usr/ucb/* ) ;;
2868   *)
2869     # OSF1 and SCO ODT 3.0 have their own names for install.
2870     # Don't use installbsd from OSF since it installs stuff as root
2871     # by default.
2872     for ac_prog in ginstall scoinst install; do
2873       for ac_exec_ext in '' $ac_executable_extensions; do
2874         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2875           if test $ac_prog = install &&
2876             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2877             # AIX install.  It has an incompatible calling convention.
2878             :
2879           elif test $ac_prog = install &&
2880             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2881             # program-specific install script used by HP pwplus--don't use.
2882             :
2883           else
2884             rm -rf conftest.one conftest.two conftest.dir
2885             echo one > conftest.one
2886             echo two > conftest.two
2887             mkdir conftest.dir
2888             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2889               test -s conftest.one && test -s conftest.two &&
2890               test -s conftest.dir/conftest.one &&
2891               test -s conftest.dir/conftest.two
2892             then
2893               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2894               break 3
2895             fi
2896           fi
2897         fi
2898       done
2899     done
2900     ;;
2901 esac
2902
2903   done
2904 IFS=$as_save_IFS
2905
2906 rm -rf conftest.one conftest.two conftest.dir
2907
2908 fi
2909   if test "${ac_cv_path_install+set}" = set; then
2910     INSTALL=$ac_cv_path_install
2911   else
2912     # As a last resort, use the slow shell script.  Don't cache a
2913     # value for INSTALL within a source directory, because that will
2914     # break other packages using the cache if that directory is
2915     # removed, or if the value is a relative name.
2916     INSTALL=$ac_install_sh
2917   fi
2918 fi
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2920 $as_echo "$INSTALL" >&6; }
2921
2922 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2923 # It thinks the first close brace ends the variable substitution.
2924 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2925
2926 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2927
2928 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2929
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2931 $as_echo_n "checking whether build environment is sane... " >&6; }
2932 # Just in case
2933 sleep 1
2934 echo timestamp > conftest.file
2935 # Reject unsafe characters in $srcdir or the absolute working directory
2936 # name.  Accept space and tab only in the latter.
2937 am_lf='
2938 '
2939 case `pwd` in
2940   *[\\\"\#\$\&\'\`$am_lf]*)
2941     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2942 esac
2943 case $srcdir in
2944   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2945     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2946 esac
2947
2948 # Do `set' in a subshell so we don't clobber the current shell's
2949 # arguments.  Must try -L first in case configure is actually a
2950 # symlink; some systems play weird games with the mod time of symlinks
2951 # (eg FreeBSD returns the mod time of the symlink's containing
2952 # directory).
2953 if (
2954    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2955    if test "$*" = "X"; then
2956       # -L didn't work.
2957       set X `ls -t "$srcdir/configure" conftest.file`
2958    fi
2959    rm -f conftest.file
2960    if test "$*" != "X $srcdir/configure conftest.file" \
2961       && test "$*" != "X conftest.file $srcdir/configure"; then
2962
2963       # If neither matched, then we have a broken ls.  This can happen
2964       # if, for instance, CONFIG_SHELL is bash and it inherits a
2965       # broken ls alias from the environment.  This has actually
2966       # happened.  Such a system could not be considered "sane".
2967       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2968 alias in your environment" "$LINENO" 5
2969    fi
2970
2971    test "$2" = conftest.file
2972    )
2973 then
2974    # Ok.
2975    :
2976 else
2977    as_fn_error $? "newly created file is older than distributed files!
2978 Check your system clock" "$LINENO" 5
2979 fi
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2981 $as_echo "yes" >&6; }
2982 test "$program_prefix" != NONE &&
2983   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2984 # Use a double $ so make ignores it.
2985 test "$program_suffix" != NONE &&
2986   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2987 # Double any \ or $.
2988 # By default was `s,x,x', remove it if useless.
2989 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2990 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2991
2992 # expand $ac_aux_dir to an absolute path
2993 am_aux_dir=`cd $ac_aux_dir && pwd`
2994
2995 if test x"${MISSING+set}" != xset; then
2996   case $am_aux_dir in
2997   *\ * | *\     *)
2998     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2999   *)
3000     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3001   esac
3002 fi
3003 # Use eval to expand $SHELL
3004 if eval "$MISSING --run true"; then
3005   am_missing_run="$MISSING --run "
3006 else
3007   am_missing_run=
3008   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3009 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3010 fi
3011
3012 if test x"${install_sh}" != xset; then
3013   case $am_aux_dir in
3014   *\ * | *\     *)
3015     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3016   *)
3017     install_sh="\${SHELL} $am_aux_dir/install-sh"
3018   esac
3019 fi
3020
3021 # Installed binaries are usually stripped using `strip' when the user
3022 # run `make install-strip'.  However `strip' might not be the right
3023 # tool to use in cross-compilation environments, therefore Automake
3024 # will honor the `STRIP' environment variable to overrule this program.
3025 if test "$cross_compiling" != no; then
3026   if test -n "$ac_tool_prefix"; then
3027   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3028 set dummy ${ac_tool_prefix}strip; ac_word=$2
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3030 $as_echo_n "checking for $ac_word... " >&6; }
3031 if ${ac_cv_prog_STRIP+:} false; then :
3032   $as_echo_n "(cached) " >&6
3033 else
3034   if test -n "$STRIP"; then
3035   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3036 else
3037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3038 for as_dir in $PATH
3039 do
3040   IFS=$as_save_IFS
3041   test -z "$as_dir" && as_dir=.
3042     for ac_exec_ext in '' $ac_executable_extensions; do
3043   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3044     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3045     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3046     break 2
3047   fi
3048 done
3049   done
3050 IFS=$as_save_IFS
3051
3052 fi
3053 fi
3054 STRIP=$ac_cv_prog_STRIP
3055 if test -n "$STRIP"; then
3056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3057 $as_echo "$STRIP" >&6; }
3058 else
3059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3060 $as_echo "no" >&6; }
3061 fi
3062
3063
3064 fi
3065 if test -z "$ac_cv_prog_STRIP"; then
3066   ac_ct_STRIP=$STRIP
3067   # Extract the first word of "strip", so it can be a program name with args.
3068 set dummy strip; ac_word=$2
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3070 $as_echo_n "checking for $ac_word... " >&6; }
3071 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3072   $as_echo_n "(cached) " >&6
3073 else
3074   if test -n "$ac_ct_STRIP"; then
3075   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3076 else
3077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3078 for as_dir in $PATH
3079 do
3080   IFS=$as_save_IFS
3081   test -z "$as_dir" && as_dir=.
3082     for ac_exec_ext in '' $ac_executable_extensions; do
3083   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3084     ac_cv_prog_ac_ct_STRIP="strip"
3085     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3086     break 2
3087   fi
3088 done
3089   done
3090 IFS=$as_save_IFS
3091
3092 fi
3093 fi
3094 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3095 if test -n "$ac_ct_STRIP"; then
3096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3097 $as_echo "$ac_ct_STRIP" >&6; }
3098 else
3099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3100 $as_echo "no" >&6; }
3101 fi
3102
3103   if test "x$ac_ct_STRIP" = x; then
3104     STRIP=":"
3105   else
3106     case $cross_compiling:$ac_tool_warned in
3107 yes:)
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3109 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3110 ac_tool_warned=yes ;;
3111 esac
3112     STRIP=$ac_ct_STRIP
3113   fi
3114 else
3115   STRIP="$ac_cv_prog_STRIP"
3116 fi
3117
3118 fi
3119 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3120
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3122 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3123 if test -z "$MKDIR_P"; then
3124   if ${ac_cv_path_mkdir+:} false; then :
3125   $as_echo_n "(cached) " >&6
3126 else
3127   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3128 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3129 do
3130   IFS=$as_save_IFS
3131   test -z "$as_dir" && as_dir=.
3132     for ac_prog in mkdir gmkdir; do
3133          for ac_exec_ext in '' $ac_executable_extensions; do
3134            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3135            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3136              'mkdir (GNU coreutils) '* | \
3137              'mkdir (coreutils) '* | \
3138              'mkdir (fileutils) '4.1*)
3139                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3140                break 3;;
3141            esac
3142          done
3143        done
3144   done
3145 IFS=$as_save_IFS
3146
3147 fi
3148
3149   test -d ./--version && rmdir ./--version
3150   if test "${ac_cv_path_mkdir+set}" = set; then
3151     MKDIR_P="$ac_cv_path_mkdir -p"
3152   else
3153     # As a last resort, use the slow shell script.  Don't cache a
3154     # value for MKDIR_P within a source directory, because that will
3155     # break other packages using the cache if that directory is
3156     # removed, or if the value is a relative name.
3157     MKDIR_P="$ac_install_sh -d"
3158   fi
3159 fi
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3161 $as_echo "$MKDIR_P" >&6; }
3162
3163 mkdir_p="$MKDIR_P"
3164 case $mkdir_p in
3165   [\\/$]* | ?:[\\/]*) ;;
3166   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3167 esac
3168
3169 for ac_prog in gawk mawk nawk awk
3170 do
3171   # Extract the first word of "$ac_prog", so it can be a program name with args.
3172 set dummy $ac_prog; ac_word=$2
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3174 $as_echo_n "checking for $ac_word... " >&6; }
3175 if ${ac_cv_prog_AWK+:} false; then :
3176   $as_echo_n "(cached) " >&6
3177 else
3178   if test -n "$AWK"; then
3179   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3180 else
3181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3182 for as_dir in $PATH
3183 do
3184   IFS=$as_save_IFS
3185   test -z "$as_dir" && as_dir=.
3186     for ac_exec_ext in '' $ac_executable_extensions; do
3187   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3188     ac_cv_prog_AWK="$ac_prog"
3189     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3190     break 2
3191   fi
3192 done
3193   done
3194 IFS=$as_save_IFS
3195
3196 fi
3197 fi
3198 AWK=$ac_cv_prog_AWK
3199 if test -n "$AWK"; then
3200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3201 $as_echo "$AWK" >&6; }
3202 else
3203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3204 $as_echo "no" >&6; }
3205 fi
3206
3207
3208   test -n "$AWK" && break
3209 done
3210
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3212 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3213 set x ${MAKE-make}
3214 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3215 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3216   $as_echo_n "(cached) " >&6
3217 else
3218   cat >conftest.make <<\_ACEOF
3219 SHELL = /bin/sh
3220 all:
3221         @echo '@@@%%%=$(MAKE)=@@@%%%'
3222 _ACEOF
3223 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3224 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3225   *@@@%%%=?*=@@@%%%*)
3226     eval ac_cv_prog_make_${ac_make}_set=yes;;
3227   *)
3228     eval ac_cv_prog_make_${ac_make}_set=no;;
3229 esac
3230 rm -f conftest.make
3231 fi
3232 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3234 $as_echo "yes" >&6; }
3235   SET_MAKE=
3236 else
3237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3238 $as_echo "no" >&6; }
3239   SET_MAKE="MAKE=${MAKE-make}"
3240 fi
3241
3242 rm -rf .tst 2>/dev/null
3243 mkdir .tst 2>/dev/null
3244 if test -d .tst; then
3245   am__leading_dot=.
3246 else
3247   am__leading_dot=_
3248 fi
3249 rmdir .tst 2>/dev/null
3250
3251 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3252   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3253   # is not polluted with repeated "-I."
3254   am__isrc=' -I$(srcdir)'
3255   # test to see if srcdir already configured
3256   if test -f $srcdir/config.status; then
3257     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3258   fi
3259 fi
3260
3261 # test whether we have cygpath
3262 if test -z "$CYGPATH_W"; then
3263   if (cygpath --version) >/dev/null 2>/dev/null; then
3264     CYGPATH_W='cygpath -w'
3265   else
3266     CYGPATH_W=echo
3267   fi
3268 fi
3269
3270
3271 # Define the identity of the package.
3272  PACKAGE='nfs-utils'
3273  VERSION='1.2.4'
3274
3275
3276 cat >>confdefs.h <<_ACEOF
3277 #define PACKAGE "$PACKAGE"
3278 _ACEOF
3279
3280
3281 cat >>confdefs.h <<_ACEOF
3282 #define VERSION "$VERSION"
3283 _ACEOF
3284
3285 # Some tools Automake needs.
3286
3287 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3288
3289
3290 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3291
3292
3293 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3294
3295
3296 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3297
3298
3299 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3300
3301 # We need awk for the "check" target.  The system "awk" is bad on
3302 # some platforms.
3303 # Always define AMTAR for backward compatibility.
3304
3305 AMTAR=${AMTAR-"${am_missing_run}tar"}
3306
3307 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3308
3309
3310
3311
3312
3313
3314
3315
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3317 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3318     # Check whether --enable-maintainer-mode was given.
3319 if test "${enable_maintainer_mode+set}" = set; then :
3320   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3321 else
3322   USE_MAINTAINER_MODE=no
3323 fi
3324
3325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3326 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3327    if test $USE_MAINTAINER_MODE = yes; then
3328   MAINTAINER_MODE_TRUE=
3329   MAINTAINER_MODE_FALSE='#'
3330 else
3331   MAINTAINER_MODE_TRUE='#'
3332   MAINTAINER_MODE_FALSE=
3333 fi
3334
3335   MAINT=$MAINTAINER_MODE_TRUE
3336
3337
3338
3339
3340 # Check whether --with-release was given.
3341 if test "${with_release+set}" = set; then :
3342   withval=$with_release; RELEASE=$withval
3343 else
3344   RELEASE=1
3345 fi
3346
3347
3348
3349 # Check whether --with-statedir was given.
3350 if test "${with_statedir+set}" = set; then :
3351   withval=$with_statedir; statedir=$withval
3352 else
3353   statedir=/var/lib/nfs
3354 fi
3355
3356
3357
3358 # Check whether --with-statduser was given.
3359 if test "${with_statduser+set}" = set; then :
3360   withval=$with_statduser; statduser=$withval
3361 else
3362   if test "x$cross_compiling" = "xno"; then
3363                 if grep -s '^rpcuser:' /etc/passwd > /dev/null; then
3364                         statduser=rpcuser
3365                 else
3366                         statduser=nobody
3367                 fi
3368         else
3369                 statduser=nobody
3370         fi
3371 fi
3372
3373
3374
3375 # Check whether --with-start-statd was given.
3376 if test "${with_start_statd+set}" = set; then :
3377   withval=$with_start_statd; startstatd=$withval
3378 else
3379   startstatd=/usr/sbin/start-statd
3380
3381 fi
3382
3383
3384
3385 cat >>confdefs.h <<_ACEOF
3386 #define START_STATD "$startstatd"
3387 _ACEOF
3388
3389 # Check whether --enable-nfsv3 was given.
3390 if test "${enable_nfsv3+set}" = set; then :
3391   enableval=$enable_nfsv3; enable_nfsv3=$enableval
3392 else
3393   enable_nfsv3=yes
3394 fi
3395
3396         if test "$enable_nfsv3" = yes; then
3397
3398 $as_echo "#define NFS3_SUPPORTED 1" >>confdefs.h
3399
3400         else
3401                 enable_nfsv3=
3402         fi
3403
3404 # Check whether --enable-nfsv4 was given.
3405 if test "${enable_nfsv4+set}" = set; then :
3406   enableval=$enable_nfsv4; enable_nfsv4=$enableval
3407 else
3408   enable_nfsv4=yes
3409 fi
3410
3411         if test "$enable_nfsv4" = yes; then
3412
3413 $as_echo "#define NFS4_SUPPORTED 1" >>confdefs.h
3414
3415                 IDMAPD=idmapd
3416         else
3417                 enable_nfsv4=
3418                 IDMAPD=
3419         fi
3420
3421
3422          if test "$enable_nfsv4" = "yes"; then
3423   CONFIG_NFSV4_TRUE=
3424   CONFIG_NFSV4_FALSE='#'
3425 else
3426   CONFIG_NFSV4_TRUE='#'
3427   CONFIG_NFSV4_FALSE=
3428 fi
3429
3430
3431 # Check whether --enable-nfsv41 was given.
3432 if test "${enable_nfsv41+set}" = set; then :
3433   enableval=$enable_nfsv41; enable_nfsv41=$enableval
3434 else
3435   enable_nfsv41=no
3436 fi
3437
3438         if test "$enable_nfsv41" = yes; then
3439
3440 $as_echo "#define NFS41_SUPPORTED 1" >>confdefs.h
3441
3442         else
3443                 enable_nfsv41=
3444         fi
3445
3446          if test "$enable_nfsv41" = "yes"; then
3447   CONFIG_NFSV41_TRUE=
3448   CONFIG_NFSV41_FALSE='#'
3449 else
3450   CONFIG_NFSV41_TRUE='#'
3451   CONFIG_NFSV41_FALSE=
3452 fi
3453
3454
3455 # Check whether --enable-gss was given.
3456 if test "${enable_gss+set}" = set; then :
3457   enableval=$enable_gss; enable_gss=$enableval
3458 else
3459   enable_gss=yes
3460 fi
3461
3462         if test "$enable_gss" = yes; then
3463
3464 $as_echo "#define GSS_SUPPORTED 1" >>confdefs.h
3465
3466                 GSSD=gssd
3467                 SVCGSSD=svcgssd
3468         else
3469                 enable_gss=
3470                 GSSD=
3471                 SVCGSSD=
3472         fi
3473
3474
3475
3476          if test "$enable_gss" = "yes"; then
3477   CONFIG_GSS_TRUE=
3478   CONFIG_GSS_FALSE='#'
3479 else
3480   CONFIG_GSS_TRUE='#'
3481   CONFIG_GSS_FALSE=
3482 fi
3483
3484 # Check whether --enable-kprefix was given.
3485 if test "${enable_kprefix+set}" = set; then :
3486   enableval=$enable_kprefix; test "$enableval" = "yes" && kprefix=k
3487 else
3488   kprefix=
3489 fi
3490
3491
3492
3493 # Check whether --with-rpcgen was given.
3494 if test "${with_rpcgen+set}" = set; then :
3495   withval=$with_rpcgen; rpcgen_path=$withval
3496 else
3497   rpcgen_path=yes
3498 fi
3499
3500         RPCGEN_PATH=
3501         if test "$rpcgen_path" == "yes"; then
3502             for p in /usr/local/bin/rpcgen /usr/bin/rpcgen /bin/rpcgen
3503             do if test -f $p ; then RPCGEN_PATH=$p ; break; fi ; done
3504         elif test "$rpcgen_path" != "internal"; then
3505             RPCGEN_PATH=$rpcgen_path
3506         fi
3507
3508          if test "$RPCGEN_PATH" == ""; then
3509   CONFIG_RPCGEN_TRUE=
3510   CONFIG_RPCGEN_FALSE='#'
3511 else
3512   CONFIG_RPCGEN_TRUE='#'
3513   CONFIG_RPCGEN_FALSE=
3514 fi
3515
3516 # Check whether --enable-uuid was given.
3517 if test "${enable_uuid+set}" = set; then :
3518   enableval=$enable_uuid; if test "$enableval" = "yes" ; then choose_blkid=yes; else choose_blkid=no; fi
3519 else
3520   choose_blkid=default
3521 fi
3522
3523 # Check whether --enable-mount was given.
3524 if test "${enable_mount+set}" = set; then :
3525   enableval=$enable_mount; enable_mount=$enableval
3526 else
3527   enable_mount=yes
3528 fi
3529
3530          if test "$enable_mount" = "yes"; then
3531   CONFIG_MOUNT_TRUE=
3532   CONFIG_MOUNT_FALSE='#'
3533 else
3534   CONFIG_MOUNT_TRUE='#'
3535   CONFIG_MOUNT_FALSE=
3536 fi
3537
3538
3539 if test "$enable_mount" = yes; then
3540         # Check whether --enable-libmount-mount was given.
3541 if test "${enable_libmount_mount+set}" = set; then :
3542   enableval=$enable_libmount_mount; enable_libmount=yes
3543 else
3544   enable_libmount=no
3545 fi
3546
3547 fi
3548
3549 # Check whether --enable-tirpc was given.
3550 if test "${enable_tirpc+set}" = set; then :
3551   enableval=$enable_tirpc; enable_tirpc=$enableval
3552 else
3553   enable_tirpc=''
3554 fi
3555
3556 # Check whether --enable-ipv6 was given.
3557 if test "${enable_ipv6+set}" = set; then :
3558   enableval=$enable_ipv6; enable_ipv6=$enableval
3559 else
3560   enable_ipv6=no
3561 fi
3562
3563         if test "$enable_ipv6" = yes; then
3564
3565 $as_echo "#define IPV6_SUPPORTED 1" >>confdefs.h
3566
3567         else
3568                 enable_ipv6=
3569         fi
3570
3571          if test "$enable_ipv6" = "yes"; then
3572   CONFIG_IPV6_TRUE=
3573   CONFIG_IPV6_FALSE='#'
3574 else
3575   CONFIG_IPV6_TRUE='#'
3576   CONFIG_IPV6_FALSE=
3577 fi
3578
3579
3580 if test "$enable_mount" = yes; then
3581         # Check whether --enable-mountconfig was given.
3582 if test "${enable_mountconfig+set}" = set; then :
3583   enableval=$enable_mountconfig; mountconfig=$enableval
3584 else
3585   mountconfig=no
3586 fi
3587
3588         if test "$enable_mountconfig" = yes; then
3589
3590 $as_echo "#define MOUNT_CONFIG 1" >>confdefs.h
3591
3592
3593 # Check whether --with-mountfile was given.
3594 if test "${with_mountfile+set}" = set; then :
3595   withval=$with_mountfile; mountfile=$withval
3596 else
3597   mountfile=/etc/nfsmount.conf
3598 fi
3599
3600
3601
3602 cat >>confdefs.h <<_ACEOF
3603 #define MOUNTOPTS_CONFFILE "$mountfile"
3604 _ACEOF
3605
3606         else
3607                 enable_mountconfig=
3608         fi
3609
3610          if test "$enable_mountconfig" = "yes"; then
3611   MOUNT_CONFIG_TRUE=
3612   MOUNT_CONFIG_FALSE='#'
3613 else
3614   MOUNT_CONFIG_TRUE='#'
3615   MOUNT_CONFIG_FALSE=
3616 fi
3617
3618 else
3619          if test "$enable_mount" = "yes"; then
3620   MOUNT_CONFIG_TRUE=
3621   MOUNT_CONFIG_FALSE='#'
3622 else
3623   MOUNT_CONFIG_TRUE='#'
3624   MOUNT_CONFIG_FALSE=
3625 fi
3626
3627 fi
3628
3629 DEPDIR="${am__leading_dot}deps"
3630
3631 ac_config_commands="$ac_config_commands depfiles"
3632
3633
3634 am_make=${MAKE-make}
3635 cat > confinc << 'END'
3636 am__doit:
3637         @echo this is the am__doit target
3638 .PHONY: am__doit
3639 END
3640 # If we don't find an include directive, just comment out the code.
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3642 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3643 am__include="#"
3644 am__quote=
3645 _am_result=none
3646 # First try GNU make style include.
3647 echo "include confinc" > confmf
3648 # Ignore all kinds of additional output from `make'.
3649 case `$am_make -s -f confmf 2> /dev/null` in #(
3650 *the\ am__doit\ target*)
3651   am__include=include
3652   am__quote=
3653   _am_result=GNU
3654   ;;
3655 esac
3656 # Now try BSD make style include.
3657 if test "$am__include" = "#"; then
3658    echo '.include "confinc"' > confmf
3659    case `$am_make -s -f confmf 2> /dev/null` in #(
3660    *the\ am__doit\ target*)
3661      am__include=.include
3662      am__quote="\""
3663      _am_result=BSD
3664      ;;
3665    esac
3666 fi
3667
3668
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3670 $as_echo "$_am_result" >&6; }
3671 rm -f confinc confmf
3672
3673 # Check whether --enable-dependency-tracking was given.
3674 if test "${enable_dependency_tracking+set}" = set; then :
3675   enableval=$enable_dependency_tracking;
3676 fi
3677
3678 if test "x$enable_dependency_tracking" != xno; then
3679   am_depcomp="$ac_aux_dir/depcomp"
3680   AMDEPBACKSLASH='\'
3681 fi
3682  if test "x$enable_dependency_tracking" != xno; then
3683   AMDEP_TRUE=
3684   AMDEP_FALSE='#'
3685 else
3686   AMDEP_TRUE='#'
3687   AMDEP_FALSE=
3688 fi
3689
3690
3691 ac_ext=c
3692 ac_cpp='$CPP $CPPFLAGS'
3693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3696 if test -n "$ac_tool_prefix"; then
3697   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3698 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3700 $as_echo_n "checking for $ac_word... " >&6; }
3701 if ${ac_cv_prog_CC+:} false; then :
3702   $as_echo_n "(cached) " >&6
3703 else
3704   if test -n "$CC"; then
3705   ac_cv_prog_CC="$CC" # Let the user override the test.
3706 else
3707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3708 for as_dir in $PATH
3709 do
3710   IFS=$as_save_IFS
3711   test -z "$as_dir" && as_dir=.
3712     for ac_exec_ext in '' $ac_executable_extensions; do
3713   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3714     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3715     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3716     break 2
3717   fi
3718 done
3719   done
3720 IFS=$as_save_IFS
3721
3722 fi
3723 fi
3724 CC=$ac_cv_prog_CC
3725 if test -n "$CC"; then
3726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3727 $as_echo "$CC" >&6; }
3728 else
3729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3730 $as_echo "no" >&6; }
3731 fi
3732
3733
3734 fi
3735 if test -z "$ac_cv_prog_CC"; then
3736   ac_ct_CC=$CC
3737   # Extract the first word of "gcc", so it can be a program name with args.
3738 set dummy gcc; ac_word=$2
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3740 $as_echo_n "checking for $ac_word... " >&6; }
3741 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3742   $as_echo_n "(cached) " >&6
3743 else
3744   if test -n "$ac_ct_CC"; then
3745   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3746 else
3747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3748 for as_dir in $PATH
3749 do
3750   IFS=$as_save_IFS
3751   test -z "$as_dir" && as_dir=.
3752     for ac_exec_ext in '' $ac_executable_extensions; do
3753   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3754     ac_cv_prog_ac_ct_CC="gcc"
3755     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3756     break 2
3757   fi
3758 done
3759   done
3760 IFS=$as_save_IFS
3761
3762 fi
3763 fi
3764 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3765 if test -n "$ac_ct_CC"; then
3766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3767 $as_echo "$ac_ct_CC" >&6; }
3768 else
3769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3770 $as_echo "no" >&6; }
3771 fi
3772
3773   if test "x$ac_ct_CC" = x; then
3774     CC=""
3775   else
3776     case $cross_compiling:$ac_tool_warned in
3777 yes:)
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3779 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3780 ac_tool_warned=yes ;;
3781 esac
3782     CC=$ac_ct_CC
3783   fi
3784 else
3785   CC="$ac_cv_prog_CC"
3786 fi
3787
3788 if test -z "$CC"; then
3789           if test -n "$ac_tool_prefix"; then
3790     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3791 set dummy ${ac_tool_prefix}cc; ac_word=$2
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3793 $as_echo_n "checking for $ac_word... " >&6; }
3794 if ${ac_cv_prog_CC+:} false; then :
3795   $as_echo_n "(cached) " >&6
3796 else
3797   if test -n "$CC"; then
3798   ac_cv_prog_CC="$CC" # Let the user override the test.
3799 else
3800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3801 for as_dir in $PATH
3802 do
3803   IFS=$as_save_IFS
3804   test -z "$as_dir" && as_dir=.
3805     for ac_exec_ext in '' $ac_executable_extensions; do
3806   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3807     ac_cv_prog_CC="${ac_tool_prefix}cc"
3808     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3809     break 2
3810   fi
3811 done
3812   done
3813 IFS=$as_save_IFS
3814
3815 fi
3816 fi
3817 CC=$ac_cv_prog_CC
3818 if test -n "$CC"; then
3819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3820 $as_echo "$CC" >&6; }
3821 else
3822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3823 $as_echo "no" >&6; }
3824 fi
3825
3826
3827   fi
3828 fi
3829 if test -z "$CC"; then
3830   # Extract the first word of "cc", so it can be a program name with args.
3831 set dummy cc; ac_word=$2
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3833 $as_echo_n "checking for $ac_word... " >&6; }
3834 if ${ac_cv_prog_CC+:} false; then :
3835   $as_echo_n "(cached) " >&6
3836 else
3837   if test -n "$CC"; then
3838   ac_cv_prog_CC="$CC" # Let the user override the test.
3839 else
3840   ac_prog_rejected=no
3841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3842 for as_dir in $PATH
3843 do
3844   IFS=$as_save_IFS
3845   test -z "$as_dir" && as_dir=.
3846     for ac_exec_ext in '' $ac_executable_extensions; do
3847   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3848     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3849        ac_prog_rejected=yes
3850        continue
3851      fi
3852     ac_cv_prog_CC="cc"
3853     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3854     break 2
3855   fi
3856 done
3857   done
3858 IFS=$as_save_IFS
3859
3860 if test $ac_prog_rejected = yes; then
3861   # We found a bogon in the path, so make sure we never use it.
3862   set dummy $ac_cv_prog_CC
3863   shift
3864   if test $# != 0; then
3865     # We chose a different compiler from the bogus one.
3866     # However, it has the same basename, so the bogon will be chosen
3867     # first if we set CC to just the basename; use the full file name.
3868     shift
3869     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3870   fi
3871 fi
3872 fi
3873 fi
3874 CC=$ac_cv_prog_CC
3875 if test -n "$CC"; then
3876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3877 $as_echo "$CC" >&6; }
3878 else
3879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3880 $as_echo "no" >&6; }
3881 fi
3882
3883
3884 fi
3885 if test -z "$CC"; then
3886   if test -n "$ac_tool_prefix"; then
3887   for ac_prog in cl.exe
3888   do
3889     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3890 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3892 $as_echo_n "checking for $ac_word... " >&6; }
3893 if ${ac_cv_prog_CC+:} false; then :
3894   $as_echo_n "(cached) " >&6
3895 else
3896   if test -n "$CC"; then
3897   ac_cv_prog_CC="$CC" # Let the user override the test.
3898 else
3899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3900 for as_dir in $PATH
3901 do
3902   IFS=$as_save_IFS
3903   test -z "$as_dir" && as_dir=.
3904     for ac_exec_ext in '' $ac_executable_extensions; do
3905   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3906     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3907     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3908     break 2
3909   fi
3910 done
3911   done
3912 IFS=$as_save_IFS
3913
3914 fi
3915 fi
3916 CC=$ac_cv_prog_CC
3917 if test -n "$CC"; then
3918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3919 $as_echo "$CC" >&6; }
3920 else
3921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3922 $as_echo "no" >&6; }
3923 fi
3924
3925
3926     test -n "$CC" && break
3927   done
3928 fi
3929 if test -z "$CC"; then
3930   ac_ct_CC=$CC
3931   for ac_prog in cl.exe
3932 do
3933   # Extract the first word of "$ac_prog", so it can be a program name with args.
3934 set dummy $ac_prog; ac_word=$2
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3936 $as_echo_n "checking for $ac_word... " >&6; }
3937 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3938   $as_echo_n "(cached) " >&6
3939 else
3940   if test -n "$ac_ct_CC"; then
3941   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3942 else
3943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3944 for as_dir in $PATH
3945 do
3946   IFS=$as_save_IFS
3947   test -z "$as_dir" && as_dir=.
3948     for ac_exec_ext in '' $ac_executable_extensions; do
3949   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3950     ac_cv_prog_ac_ct_CC="$ac_prog"
3951     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3952     break 2
3953   fi
3954 done
3955   done
3956 IFS=$as_save_IFS
3957
3958 fi
3959 fi
3960 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3961 if test -n "$ac_ct_CC"; then
3962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3963 $as_echo "$ac_ct_CC" >&6; }
3964 else
3965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3966 $as_echo "no" >&6; }
3967 fi
3968
3969
3970   test -n "$ac_ct_CC" && break
3971 done
3972
3973   if test "x$ac_ct_CC" = x; then
3974     CC=""
3975   else
3976     case $cross_compiling:$ac_tool_warned in
3977 yes:)
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3979 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3980 ac_tool_warned=yes ;;
3981 esac
3982     CC=$ac_ct_CC
3983   fi
3984 fi
3985
3986 fi
3987
3988
3989 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3990 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3991 as_fn_error $? "no acceptable C compiler found in \$PATH
3992 See \`config.log' for more details" "$LINENO" 5; }
3993
3994 # Provide some information about the compiler.
3995 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3996 set X $ac_compile
3997 ac_compiler=$2
3998 for ac_option in --version -v -V -qversion; do
3999   { { ac_try="$ac_compiler $ac_option >&5"
4000 case "(($ac_try" in
4001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4002   *) ac_try_echo=$ac_try;;
4003 esac
4004 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4005 $as_echo "$ac_try_echo"; } >&5
4006   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4007   ac_status=$?
4008   if test -s conftest.err; then
4009     sed '10a\
4010 ... rest of stderr output deleted ...
4011          10q' conftest.err >conftest.er1
4012     cat conftest.er1 >&5
4013   fi
4014   rm -f conftest.er1 conftest.err
4015   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4016   test $ac_status = 0; }
4017 done
4018
4019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4020 /* end confdefs.h.  */
4021
4022 int
4023 main ()
4024 {
4025
4026   ;
4027   return 0;
4028 }
4029 _ACEOF
4030 ac_clean_files_save=$ac_clean_files
4031 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4032 # Try to create an executable without -o first, disregard a.out.
4033 # It will help us diagnose broken compilers, and finding out an intuition
4034 # of exeext.
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4036 $as_echo_n "checking whether the C compiler works... " >&6; }
4037 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4038
4039 # The possible output files:
4040 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4041
4042 ac_rmfiles=
4043 for ac_file in $ac_files
4044 do
4045   case $ac_file in
4046     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4047     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4048   esac
4049 done
4050 rm -f $ac_rmfiles
4051
4052 if { { ac_try="$ac_link_default"
4053 case "(($ac_try" in
4054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4055   *) ac_try_echo=$ac_try;;
4056 esac
4057 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4058 $as_echo "$ac_try_echo"; } >&5
4059   (eval "$ac_link_default") 2>&5
4060   ac_status=$?
4061   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4062   test $ac_status = 0; }; then :
4063   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4064 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4065 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4066 # so that the user can short-circuit this test for compilers unknown to
4067 # Autoconf.
4068 for ac_file in $ac_files ''
4069 do
4070   test -f "$ac_file" || continue
4071   case $ac_file in
4072     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4073         ;;
4074     [ab].out )
4075         # We found the default executable, but exeext='' is most
4076         # certainly right.
4077         break;;
4078     *.* )
4079         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4080         then :; else
4081            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4082         fi
4083         # We set ac_cv_exeext here because the later test for it is not
4084         # safe: cross compilers may not add the suffix if given an `-o'
4085         # argument, so we may need to know it at that point already.
4086         # Even if this section looks crufty: it has the advantage of
4087         # actually working.
4088         break;;
4089     * )
4090         break;;
4091   esac
4092 done
4093 test "$ac_cv_exeext" = no && ac_cv_exeext=
4094
4095 else
4096   ac_file=''
4097 fi
4098 if test -z "$ac_file"; then :
4099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4100 $as_echo "no" >&6; }
4101 $as_echo "$as_me: failed program was:" >&5
4102 sed 's/^/| /' conftest.$ac_ext >&5
4103
4104 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4105 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4106 as_fn_error 77 "C compiler cannot create executables
4107 See \`config.log' for more details" "$LINENO" 5; }
4108 else
4109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4110 $as_echo "yes" >&6; }
4111 fi
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4113 $as_echo_n "checking for C compiler default output file name... " >&6; }
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4115 $as_echo "$ac_file" >&6; }
4116 ac_exeext=$ac_cv_exeext
4117
4118 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4119 ac_clean_files=$ac_clean_files_save
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4121 $as_echo_n "checking for suffix of executables... " >&6; }
4122 if { { ac_try="$ac_link"
4123 case "(($ac_try" in
4124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4125   *) ac_try_echo=$ac_try;;
4126 esac
4127 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4128 $as_echo "$ac_try_echo"; } >&5
4129   (eval "$ac_link") 2>&5
4130   ac_status=$?
4131   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4132   test $ac_status = 0; }; then :
4133   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4134 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4135 # work properly (i.e., refer to `conftest.exe'), while it won't with
4136 # `rm'.
4137 for ac_file in conftest.exe conftest conftest.*; do
4138   test -f "$ac_file" || continue
4139   case $ac_file in
4140     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4141     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4142           break;;
4143     * ) break;;
4144   esac
4145 done
4146 else
4147   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4148 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4149 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4150 See \`config.log' for more details" "$LINENO" 5; }
4151 fi
4152 rm -f conftest conftest$ac_cv_exeext
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4154 $as_echo "$ac_cv_exeext" >&6; }
4155
4156 rm -f conftest.$ac_ext
4157 EXEEXT=$ac_cv_exeext
4158 ac_exeext=$EXEEXT
4159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4160 /* end confdefs.h.  */
4161 #include <stdio.h>
4162 int
4163 main ()
4164 {
4165 FILE *f = fopen ("conftest.out", "w");
4166  return ferror (f) || fclose (f) != 0;
4167
4168   ;
4169   return 0;
4170 }
4171 _ACEOF
4172 ac_clean_files="$ac_clean_files conftest.out"
4173 # Check that the compiler produces executables we can run.  If not, either
4174 # the compiler is broken, or we cross compile.
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4176 $as_echo_n "checking whether we are cross compiling... " >&6; }
4177 if test "$cross_compiling" != yes; then
4178   { { ac_try="$ac_link"
4179 case "(($ac_try" in
4180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4181   *) ac_try_echo=$ac_try;;
4182 esac
4183 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4184 $as_echo "$ac_try_echo"; } >&5
4185   (eval "$ac_link") 2>&5
4186   ac_status=$?
4187   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4188   test $ac_status = 0; }
4189   if { ac_try='./conftest$ac_cv_exeext'
4190   { { case "(($ac_try" in
4191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4192   *) ac_try_echo=$ac_try;;
4193 esac
4194 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4195 $as_echo "$ac_try_echo"; } >&5
4196   (eval "$ac_try") 2>&5
4197   ac_status=$?
4198   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4199   test $ac_status = 0; }; }; then
4200     cross_compiling=no
4201   else
4202     if test "$cross_compiling" = maybe; then
4203         cross_compiling=yes
4204     else
4205         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4206 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4207 as_fn_error $? "cannot run C compiled programs.
4208 If you meant to cross compile, use \`--host'.
4209 See \`config.log' for more details" "$LINENO" 5; }
4210     fi
4211   fi
4212 fi
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4214 $as_echo "$cross_compiling" >&6; }
4215
4216 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4217 ac_clean_files=$ac_clean_files_save
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4219 $as_echo_n "checking for suffix of object files... " >&6; }
4220 if ${ac_cv_objext+:} false; then :
4221   $as_echo_n "(cached) " >&6
4222 else
4223   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4224 /* end confdefs.h.  */
4225
4226 int
4227 main ()
4228 {
4229
4230   ;
4231   return 0;
4232 }
4233 _ACEOF
4234 rm -f conftest.o conftest.obj
4235 if { { ac_try="$ac_compile"
4236 case "(($ac_try" in
4237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4238   *) ac_try_echo=$ac_try;;
4239 esac
4240 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4241 $as_echo "$ac_try_echo"; } >&5
4242   (eval "$ac_compile") 2>&5
4243   ac_status=$?
4244   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4245   test $ac_status = 0; }; then :
4246   for ac_file in conftest.o conftest.obj conftest.*; do
4247   test -f "$ac_file" || continue;
4248   case $ac_file in
4249     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4250     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4251        break;;
4252   esac
4253 done
4254 else
4255   $as_echo "$as_me: failed program was:" >&5
4256 sed 's/^/| /' conftest.$ac_ext >&5
4257
4258 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4259 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4260 as_fn_error $? "cannot compute suffix of object files: cannot compile
4261 See \`config.log' for more details" "$LINENO" 5; }
4262 fi
4263 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4264 fi
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4266 $as_echo "$ac_cv_objext" >&6; }
4267 OBJEXT=$ac_cv_objext
4268 ac_objext=$OBJEXT
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4270 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4271 if ${ac_cv_c_compiler_gnu+:} false; then :
4272   $as_echo_n "(cached) " >&6
4273 else
4274   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4275 /* end confdefs.h.  */
4276
4277 int
4278 main ()
4279 {
4280 #ifndef __GNUC__
4281        choke me
4282 #endif
4283
4284   ;
4285   return 0;
4286 }
4287 _ACEOF
4288 if ac_fn_c_try_compile "$LINENO"; then :
4289   ac_compiler_gnu=yes
4290 else
4291   ac_compiler_gnu=no
4292 fi
4293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4294 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4295
4296 fi
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4298 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4299 if test $ac_compiler_gnu = yes; then
4300   GCC=yes
4301 else
4302   GCC=
4303 fi
4304 ac_test_CFLAGS=${CFLAGS+set}
4305 ac_save_CFLAGS=$CFLAGS
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4307 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4308 if ${ac_cv_prog_cc_g+:} false; then :
4309   $as_echo_n "(cached) " >&6
4310 else
4311   ac_save_c_werror_flag=$ac_c_werror_flag
4312    ac_c_werror_flag=yes
4313    ac_cv_prog_cc_g=no
4314    CFLAGS="-g"
4315    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4316 /* end confdefs.h.  */
4317
4318 int
4319 main ()
4320 {
4321
4322   ;
4323   return 0;
4324 }
4325 _ACEOF
4326 if ac_fn_c_try_compile "$LINENO"; then :
4327   ac_cv_prog_cc_g=yes
4328 else
4329   CFLAGS=""
4330       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4331 /* end confdefs.h.  */
4332
4333 int
4334 main ()
4335 {
4336
4337   ;
4338   return 0;
4339 }
4340 _ACEOF
4341 if ac_fn_c_try_compile "$LINENO"; then :
4342
4343 else
4344   ac_c_werror_flag=$ac_save_c_werror_flag
4345          CFLAGS="-g"
4346          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4347 /* end confdefs.h.  */
4348
4349 int
4350 main ()
4351 {
4352
4353   ;
4354   return 0;
4355 }
4356 _ACEOF
4357 if ac_fn_c_try_compile "$LINENO"; then :
4358   ac_cv_prog_cc_g=yes
4359 fi
4360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4361 fi
4362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4363 fi
4364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4365    ac_c_werror_flag=$ac_save_c_werror_flag
4366 fi
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4368 $as_echo "$ac_cv_prog_cc_g" >&6; }
4369 if test "$ac_test_CFLAGS" = set; then
4370   CFLAGS=$ac_save_CFLAGS
4371 elif test $ac_cv_prog_cc_g = yes; then
4372   if test "$GCC" = yes; then
4373     CFLAGS="-g -O2"
4374   else
4375     CFLAGS="-g"
4376   fi
4377 else
4378   if test "$GCC" = yes; then
4379     CFLAGS="-O2"
4380   else
4381     CFLAGS=
4382   fi
4383 fi
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4385 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4386 if ${ac_cv_prog_cc_c89+:} false; then :
4387   $as_echo_n "(cached) " >&6
4388 else
4389   ac_cv_prog_cc_c89=no
4390 ac_save_CC=$CC
4391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4392 /* end confdefs.h.  */
4393 #include <stdarg.h>
4394 #include <stdio.h>
4395 #include <sys/types.h>
4396 #include <sys/stat.h>
4397 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4398 struct buf { int x; };
4399 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4400 static char *e (p, i)
4401      char **p;
4402      int i;
4403 {
4404   return p[i];
4405 }
4406 static char *f (char * (*g) (char **, int), char **p, ...)
4407 {
4408   char *s;
4409   va_list v;
4410   va_start (v,p);
4411   s = g (p, va_arg (v,int));
4412   va_end (v);
4413   return s;
4414 }
4415
4416 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4417    function prototypes and stuff, but not '\xHH' hex character constants.
4418    These don't provoke an error unfortunately, instead are silently treated
4419    as 'x'.  The following induces an error, until -std is added to get
4420    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4421    array size at least.  It's necessary to write '\x00'==0 to get something
4422    that's true only with -std.  */
4423 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4424
4425 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4426    inside strings and character constants.  */
4427 #define FOO(x) 'x'
4428 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4429
4430 int test (int i, double x);
4431 struct s1 {int (*f) (int a);};
4432 struct s2 {int (*f) (double a);};
4433 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4434 int argc;
4435 char **argv;
4436 int
4437 main ()
4438 {
4439 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4440   ;
4441   return 0;
4442 }
4443 _ACEOF
4444 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4445         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4446 do
4447   CC="$ac_save_CC $ac_arg"
4448   if ac_fn_c_try_compile "$LINENO"; then :
4449   ac_cv_prog_cc_c89=$ac_arg
4450 fi
4451 rm -f core conftest.err conftest.$ac_objext
4452   test "x$ac_cv_prog_cc_c89" != "xno" && break
4453 done
4454 rm -f conftest.$ac_ext
4455 CC=$ac_save_CC
4456
4457 fi
4458 # AC_CACHE_VAL
4459 case "x$ac_cv_prog_cc_c89" in
4460   x)
4461     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4462 $as_echo "none needed" >&6; } ;;
4463   xno)
4464     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4465 $as_echo "unsupported" >&6; } ;;
4466   *)
4467     CC="$CC $ac_cv_prog_cc_c89"
4468     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4469 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4470 esac
4471 if test "x$ac_cv_prog_cc_c89" != xno; then :
4472
4473 fi
4474
4475 ac_ext=c
4476 ac_cpp='$CPP $CPPFLAGS'
4477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4480
4481 depcc="$CC"   am_compiler_list=
4482
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4484 $as_echo_n "checking dependency style of $depcc... " >&6; }
4485 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4486   $as_echo_n "(cached) " >&6
4487 else
4488   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4489   # We make a subdir and do the tests there.  Otherwise we can end up
4490   # making bogus files that we don't know about and never remove.  For
4491   # instance it was reported that on HP-UX the gcc test will end up
4492   # making a dummy file named `D' -- because `-MD' means `put the output
4493   # in D'.
4494   mkdir conftest.dir
4495   # Copy depcomp to subdir because otherwise we won't find it if we're
4496   # using a relative directory.
4497   cp "$am_depcomp" conftest.dir
4498   cd conftest.dir
4499   # We will build objects and dependencies in a subdirectory because
4500   # it helps to detect inapplicable dependency modes.  For instance
4501   # both Tru64's cc and ICC support -MD to output dependencies as a
4502   # side effect of compilation, but ICC will put the dependencies in
4503   # the current directory while Tru64 will put them in the object
4504   # directory.
4505   mkdir sub
4506
4507   am_cv_CC_dependencies_compiler_type=none
4508   if test "$am_compiler_list" = ""; then
4509      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4510   fi
4511   am__universal=false
4512   case " $depcc " in #(
4513      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4514      esac
4515
4516   for depmode in $am_compiler_list; do
4517     # Setup a source with many dependencies, because some compilers
4518     # like to wrap large dependency lists on column 80 (with \), and
4519     # we should not choose a depcomp mode which is confused by this.
4520     #
4521     # We need to recreate these files for each test, as the compiler may
4522     # overwrite some of them when testing with obscure command lines.
4523     # This happens at least with the AIX C compiler.
4524     : > sub/conftest.c
4525     for i in 1 2 3 4 5 6; do
4526       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4527       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4528       # Solaris 8's {/usr,}/bin/sh.
4529       touch sub/conftst$i.h
4530     done
4531     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4532
4533     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4534     # mode.  It turns out that the SunPro C++ compiler does not properly
4535     # handle `-M -o', and we need to detect this.  Also, some Intel
4536     # versions had trouble with output in subdirs
4537     am__obj=sub/conftest.${OBJEXT-o}
4538     am__minus_obj="-o $am__obj"
4539     case $depmode in
4540     gcc)
4541       # This depmode causes a compiler race in universal mode.
4542       test "$am__universal" = false || continue
4543       ;;
4544     nosideeffect)
4545       # after this tag, mechanisms are not by side-effect, so they'll
4546       # only be used when explicitly requested
4547       if test "x$enable_dependency_tracking" = xyes; then
4548         continue
4549       else
4550         break
4551       fi
4552       ;;
4553     msvisualcpp | msvcmsys)
4554       # This compiler won't grok `-c -o', but also, the minuso test has
4555       # not run yet.  These depmodes are late enough in the game, and
4556       # so weak that their functioning should not be impacted.
4557       am__obj=conftest.${OBJEXT-o}
4558       am__minus_obj=
4559       ;;
4560     none) break ;;
4561     esac
4562     if depmode=$depmode \
4563        source=sub/conftest.c object=$am__obj \
4564        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4565        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4566          >/dev/null 2>conftest.err &&
4567        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4568        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4569        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4570        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4571       # icc doesn't choke on unknown options, it will just issue warnings
4572       # or remarks (even with -Werror).  So we grep stderr for any message
4573       # that says an option was ignored or not supported.
4574       # When given -MP, icc 7.0 and 7.1 complain thusly:
4575       #   icc: Command line warning: ignoring option '-M'; no argument required
4576       # The diagnosis changed in icc 8.0:
4577       #   icc: Command line remark: option '-MP' not supported
4578       if (grep 'ignoring option' conftest.err ||
4579           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4580         am_cv_CC_dependencies_compiler_type=$depmode
4581         break
4582       fi
4583     fi
4584   done
4585
4586   cd ..
4587   rm -rf conftest.dir
4588 else
4589   am_cv_CC_dependencies_compiler_type=none
4590 fi
4591
4592 fi
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4594 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4595 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4596
4597  if
4598   test "x$enable_dependency_tracking" != xno \
4599   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4600   am__fastdepCC_TRUE=
4601   am__fastdepCC_FALSE='#'
4602 else
4603   am__fastdepCC_TRUE='#'
4604   am__fastdepCC_FALSE=
4605 fi
4606
4607
4608
4609 ac_ext=c
4610 ac_cpp='$CPP $CPPFLAGS'
4611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4615 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4616 # On Suns, sometimes $CPP names a directory.
4617 if test -n "$CPP" && test -d "$CPP"; then
4618   CPP=
4619 fi
4620 if test -z "$CPP"; then
4621   if ${ac_cv_prog_CPP+:} false; then :
4622   $as_echo_n "(cached) " >&6
4623 else
4624       # Double quotes because CPP needs to be expanded
4625     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4626     do
4627       ac_preproc_ok=false
4628 for ac_c_preproc_warn_flag in '' yes
4629 do
4630   # Use a header file that comes with gcc, so configuring glibc
4631   # with a fresh cross-compiler works.
4632   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4633   # <limits.h> exists even on freestanding compilers.
4634   # On the NeXT, cc -E runs the code through the compiler's parser,
4635   # not just through cpp. "Syntax error" is here to catch this case.
4636   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4637 /* end confdefs.h.  */
4638 #ifdef __STDC__
4639 # include <limits.h>
4640 #else
4641 # include <assert.h>
4642 #endif
4643                      Syntax error
4644 _ACEOF
4645 if ac_fn_c_try_cpp "$LINENO"; then :
4646
4647 else
4648   # Broken: fails on valid input.
4649 continue
4650 fi
4651 rm -f conftest.err conftest.i conftest.$ac_ext
4652
4653   # OK, works on sane cases.  Now check whether nonexistent headers
4654   # can be detected and how.
4655   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4656 /* end confdefs.h.  */
4657 #include <ac_nonexistent.h>
4658 _ACEOF
4659 if ac_fn_c_try_cpp "$LINENO"; then :
4660   # Broken: success on invalid input.
4661 continue
4662 else
4663   # Passes both tests.
4664 ac_preproc_ok=:
4665 break
4666 fi
4667 rm -f conftest.err conftest.i conftest.$ac_ext
4668
4669 done
4670 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4671 rm -f conftest.i conftest.err conftest.$ac_ext
4672 if $ac_preproc_ok; then :
4673   break
4674 fi
4675
4676     done
4677     ac_cv_prog_CPP=$CPP
4678
4679 fi
4680   CPP=$ac_cv_prog_CPP
4681 else
4682   ac_cv_prog_CPP=$CPP
4683 fi
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4685 $as_echo "$CPP" >&6; }
4686 ac_preproc_ok=false
4687 for ac_c_preproc_warn_flag in '' yes
4688 do
4689   # Use a header file that comes with gcc, so configuring glibc
4690   # with a fresh cross-compiler works.
4691   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4692   # <limits.h> exists even on freestanding compilers.
4693   # On the NeXT, cc -E runs the code through the compiler's parser,
4694   # not just through cpp. "Syntax error" is here to catch this case.
4695   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4696 /* end confdefs.h.  */
4697 #ifdef __STDC__
4698 # include <limits.h>
4699 #else
4700 # include <assert.h>
4701 #endif
4702                      Syntax error
4703 _ACEOF
4704 if ac_fn_c_try_cpp "$LINENO"; then :
4705
4706 else
4707   # Broken: fails on valid input.
4708 continue
4709 fi
4710 rm -f conftest.err conftest.i conftest.$ac_ext
4711
4712   # OK, works on sane cases.  Now check whether nonexistent headers
4713   # can be detected and how.
4714   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4715 /* end confdefs.h.  */
4716 #include <ac_nonexistent.h>
4717 _ACEOF
4718 if ac_fn_c_try_cpp "$LINENO"; then :
4719   # Broken: success on invalid input.
4720 continue
4721 else
4722   # Passes both tests.
4723 ac_preproc_ok=:
4724 break
4725 fi
4726 rm -f conftest.err conftest.i conftest.$ac_ext
4727
4728 done
4729 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4730 rm -f conftest.i conftest.err conftest.$ac_ext
4731 if $ac_preproc_ok; then :
4732
4733 else
4734   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4735 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4736 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4737 See \`config.log' for more details" "$LINENO" 5; }
4738 fi
4739
4740 ac_ext=c
4741 ac_cpp='$CPP $CPPFLAGS'
4742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4745
4746
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4748 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4749 if ${ac_cv_path_GREP+:} false; then :
4750   $as_echo_n "(cached) " >&6
4751 else
4752   if test -z "$GREP"; then
4753   ac_path_GREP_found=false
4754   # Loop through the user's path and test for each of PROGNAME-LIST
4755   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4756 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4757 do
4758   IFS=$as_save_IFS
4759   test -z "$as_dir" && as_dir=.
4760     for ac_prog in grep ggrep; do
4761     for ac_exec_ext in '' $ac_executable_extensions; do
4762       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4763       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4764 # Check for GNU ac_path_GREP and select it if it is found.
4765   # Check for GNU $ac_path_GREP
4766 case `"$ac_path_GREP" --version 2>&1` in
4767 *GNU*)
4768   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4769 *)
4770   ac_count=0
4771   $as_echo_n 0123456789 >"conftest.in"
4772   while :
4773   do
4774     cat "conftest.in" "conftest.in" >"conftest.tmp"
4775     mv "conftest.tmp" "conftest.in"
4776     cp "conftest.in" "conftest.nl"
4777     $as_echo 'GREP' >> "conftest.nl"
4778     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4779     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4780     as_fn_arith $ac_count + 1 && ac_count=$as_val
4781     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4782       # Best one so far, save it but keep looking for a better one
4783       ac_cv_path_GREP="$ac_path_GREP"
4784       ac_path_GREP_max=$ac_count
4785     fi
4786     # 10*(2^10) chars as input seems more than enough
4787     test $ac_count -gt 10 && break
4788   done
4789   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4790 esac
4791
4792       $ac_path_GREP_found && break 3
4793     done
4794   done
4795   done
4796 IFS=$as_save_IFS
4797   if test -z "$ac_cv_path_GREP"; then
4798     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4799   fi
4800 else
4801   ac_cv_path_GREP=$GREP
4802 fi
4803
4804 fi
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4806 $as_echo "$ac_cv_path_GREP" >&6; }
4807  GREP="$ac_cv_path_GREP"
4808
4809
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4811 $as_echo_n "checking for egrep... " >&6; }
4812 if ${ac_cv_path_EGREP+:} false; then :
4813   $as_echo_n "(cached) " >&6
4814 else
4815   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4816    then ac_cv_path_EGREP="$GREP -E"
4817    else
4818      if test -z "$EGREP"; then
4819   ac_path_EGREP_found=false
4820   # Loop through the user's path and test for each of PROGNAME-LIST
4821   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4822 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4823 do
4824   IFS=$as_save_IFS
4825   test -z "$as_dir" && as_dir=.
4826     for ac_prog in egrep; do
4827     for ac_exec_ext in '' $ac_executable_extensions; do
4828       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4829       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4830 # Check for GNU ac_path_EGREP and select it if it is found.
4831   # Check for GNU $ac_path_EGREP
4832 case `"$ac_path_EGREP" --version 2>&1` in
4833 *GNU*)
4834   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4835 *)
4836   ac_count=0
4837   $as_echo_n 0123456789 >"conftest.in"
4838   while :
4839   do
4840     cat "conftest.in" "conftest.in" >"conftest.tmp"
4841     mv "conftest.tmp" "conftest.in"
4842     cp "conftest.in" "conftest.nl"
4843     $as_echo 'EGREP' >> "conftest.nl"
4844     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4845     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4846     as_fn_arith $ac_count + 1 && ac_count=$as_val
4847     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4848       # Best one so far, save it but keep looking for a better one
4849       ac_cv_path_EGREP="$ac_path_EGREP"
4850       ac_path_EGREP_max=$ac_count
4851     fi
4852     # 10*(2^10) chars as input seems more than enough
4853     test $ac_count -gt 10 && break
4854   done
4855   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4856 esac
4857
4858       $ac_path_EGREP_found && break 3
4859     done
4860   done
4861   done
4862 IFS=$as_save_IFS
4863   if test -z "$ac_cv_path_EGREP"; then
4864     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4865   fi
4866 else
4867   ac_cv_path_EGREP=$EGREP
4868 fi
4869
4870    fi
4871 fi
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4873 $as_echo "$ac_cv_path_EGREP" >&6; }
4874  EGREP="$ac_cv_path_EGREP"
4875
4876
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4878 $as_echo_n "checking for ANSI C header files... " >&6; }
4879 if ${ac_cv_header_stdc+:} false; then :
4880   $as_echo_n "(cached) " >&6
4881 else
4882   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4883 /* end confdefs.h.  */
4884 #include <stdlib.h>
4885 #include <stdarg.h>
4886 #include <string.h>
4887 #include <float.h>
4888
4889 int
4890 main ()
4891 {
4892
4893   ;
4894   return 0;
4895 }
4896 _ACEOF
4897 if ac_fn_c_try_compile "$LINENO"; then :
4898   ac_cv_header_stdc=yes
4899 else
4900   ac_cv_header_stdc=no
4901 fi
4902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4903
4904 if test $ac_cv_header_stdc = yes; then
4905   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4906   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4907 /* end confdefs.h.  */
4908 #include <string.h>
4909
4910 _ACEOF
4911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4912   $EGREP "memchr" >/dev/null 2>&1; then :
4913
4914 else
4915   ac_cv_header_stdc=no
4916 fi
4917 rm -f conftest*
4918
4919 fi
4920
4921 if test $ac_cv_header_stdc = yes; then
4922   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4923   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4924 /* end confdefs.h.  */
4925 #include <stdlib.h>
4926
4927 _ACEOF
4928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4929   $EGREP "free" >/dev/null 2>&1; then :
4930
4931 else
4932   ac_cv_header_stdc=no
4933 fi
4934 rm -f conftest*
4935
4936 fi
4937
4938 if test $ac_cv_header_stdc = yes; then
4939   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4940   if test "$cross_compiling" = yes; then :
4941   :
4942 else
4943   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4944 /* end confdefs.h.  */
4945 #include <ctype.h>
4946 #include <stdlib.h>
4947 #if ((' ' & 0x0FF) == 0x020)
4948 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4949 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4950 #else
4951 # define ISLOWER(c) \
4952                    (('a' <= (c) && (c) <= 'i') \
4953                      || ('j' <= (c) && (c) <= 'r') \
4954                      || ('s' <= (c) && (c) <= 'z'))
4955 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4956 #endif
4957
4958 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4959 int
4960 main ()
4961 {
4962   int i;
4963   for (i = 0; i < 256; i++)
4964     if (XOR (islower (i), ISLOWER (i))
4965         || toupper (i) != TOUPPER (i))
4966       return 2;
4967   return 0;
4968 }
4969 _ACEOF
4970 if ac_fn_c_try_run "$LINENO"; then :
4971
4972 else
4973   ac_cv_header_stdc=no
4974 fi
4975 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4976   conftest.$ac_objext conftest.beam conftest.$ac_ext
4977 fi
4978
4979 fi
4980 fi
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4982 $as_echo "$ac_cv_header_stdc" >&6; }
4983 if test $ac_cv_header_stdc = yes; then
4984
4985 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4986
4987 fi
4988
4989 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4990 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4991                   inttypes.h stdint.h unistd.h
4992 do :
4993   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4994 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4995 "
4996 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4997   cat >>confdefs.h <<_ACEOF
4998 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4999 _ACEOF
5000
5001 fi
5002
5003 done
5004
5005
5006
5007
5008
5009 # Check whether --with-tirpcinclude was given.
5010 if test "${with_tirpcinclude+set}" = set; then :
5011   withval=$with_tirpcinclude; tirpc_header_dir=$withval
5012 else
5013   tirpc_header_dir=/usr/include/tirpc
5014 fi
5015
5016
5017
5018   if test "$enable_tirpc" != "no"; then
5019
5020         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clnt_tli_create in -ltirpc" >&5
5021 $as_echo_n "checking for clnt_tli_create in -ltirpc... " >&6; }
5022 if ${ac_cv_lib_tirpc_clnt_tli_create+:} false; then :
5023   $as_echo_n "(cached) " >&6
5024 else
5025   ac_check_lib_save_LIBS=$LIBS
5026 LIBS="-ltirpc  $LIBS"
5027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5028 /* end confdefs.h.  */
5029
5030 /* Override any GCC internal prototype to avoid an error.
5031    Use char because int might match the return type of a GCC
5032    builtin and then its argument prototype would still apply.  */
5033 #ifdef __cplusplus
5034 extern "C"
5035 #endif
5036 char clnt_tli_create ();
5037 int
5038 main ()
5039 {
5040 return clnt_tli_create ();
5041   ;
5042   return 0;
5043 }
5044 _ACEOF
5045 if ac_fn_c_try_link "$LINENO"; then :
5046   ac_cv_lib_tirpc_clnt_tli_create=yes
5047 else
5048   ac_cv_lib_tirpc_clnt_tli_create=no
5049 fi
5050 rm -f core conftest.err conftest.$ac_objext \
5051     conftest$ac_exeext conftest.$ac_ext
5052 LIBS=$ac_check_lib_save_LIBS
5053 fi
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tirpc_clnt_tli_create" >&5
5055 $as_echo "$ac_cv_lib_tirpc_clnt_tli_create" >&6; }
5056 if test "x$ac_cv_lib_tirpc_clnt_tli_create" = xyes; then :
5057   cat >>confdefs.h <<_ACEOF
5058 #define HAVE_LIBTIRPC 1
5059 _ACEOF
5060
5061   LIBS="-ltirpc $LIBS"
5062
5063 else
5064   if test "$enable_tirpc" = "yes"; then
5065                         as_fn_error $? "libtirpc not found." "$LINENO" 5
5066                   else
5067                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libtirpc not found. TIRPC disabled!" >&5
5068 $as_echo "$as_me: WARNING: libtirpc not found. TIRPC disabled!" >&2;}
5069                         enable_tirpc="no"
5070                   fi
5071 fi
5072
5073   fi
5074
5075   if test "$enable_tirpc" != "no"; then
5076             for ac_header in ${tirpc_header_dir}/netconfig.h
5077 do :
5078   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5079 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5080 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5081   cat >>confdefs.h <<_ACEOF
5082 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5083 _ACEOF
5084  AM_CPPFLAGS="-I${tirpc_header_dir}"
5085
5086 else
5087   if test "$enable_tirpc" = "yes"; then
5088                          as_fn_error $? "libtirpc headers not found." "$LINENO" 5
5089                        else
5090                          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libtirpc headers not found. TIRPC disabled!" >&5
5091 $as_echo "$as_me: WARNING: libtirpc headers not found. TIRPC disabled!" >&2;}
5092                          enable_tirpc="no"
5093                        fi
5094 fi
5095
5096 done
5097
5098
5099   fi
5100
5101
5102
5103
5104
5105     ac_fn_c_check_func "$LINENO" "prctl" "ac_cv_func_prctl"
5106 if test "x$ac_cv_func_prctl" = xyes; then :
5107
5108 fi
5109
5110
5111   # Check whether --enable-caps was given.
5112 if test "${enable_caps+set}" = set; then :
5113   enableval=$enable_caps;
5114 fi
5115
5116
5117   LIBCAP=
5118
5119   if test "x$enable_caps" != "xno" ; then
5120         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_get_proc in -lcap" >&5
5121 $as_echo_n "checking for cap_get_proc in -lcap... " >&6; }
5122 if ${ac_cv_lib_cap_cap_get_proc+:} false; then :
5123   $as_echo_n "(cached) " >&6
5124 else
5125   ac_check_lib_save_LIBS=$LIBS
5126 LIBS="-lcap  $LIBS"
5127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5128 /* end confdefs.h.  */
5129
5130 /* Override any GCC internal prototype to avoid an error.
5131    Use char because int might match the return type of a GCC
5132    builtin and then its argument prototype would still apply.  */
5133 #ifdef __cplusplus
5134 extern "C"
5135 #endif
5136 char cap_get_proc ();
5137 int
5138 main ()
5139 {
5140 return cap_get_proc ();
5141   ;
5142   return 0;
5143 }
5144 _ACEOF
5145 if ac_fn_c_try_link "$LINENO"; then :
5146   ac_cv_lib_cap_cap_get_proc=yes
5147 else
5148   ac_cv_lib_cap_cap_get_proc=no
5149 fi
5150 rm -f core conftest.err conftest.$ac_objext \
5151     conftest$ac_exeext conftest.$ac_ext
5152 LIBS=$ac_check_lib_save_LIBS
5153 fi
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_get_proc" >&5
5155 $as_echo "$ac_cv_lib_cap_cap_get_proc" >&6; }
5156 if test "x$ac_cv_lib_cap_cap_get_proc" = xyes; then :
5157   LIBCAP=-lcap
5158 fi
5159
5160
5161     for ac_header in sys/capability.h
5162 do :
5163   ac_fn_c_check_header_mongrel "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default"
5164 if test "x$ac_cv_header_sys_capability_h" = xyes; then :
5165   cat >>confdefs.h <<_ACEOF
5166 #define HAVE_SYS_CAPABILITY_H 1
5167 _ACEOF
5168
5169 else
5170   test "x$enable_caps" = "xyes" && as_fn_error $? "libcap headers not found." "$LINENO" 5
5171 fi
5172
5173 done
5174
5175   fi
5176
5177
5178
5179
5180
5181 # Check whether user wants TCP wrappers support
5182
5183   TCPW_MSG="no"
5184
5185 # Check whether --with-tcp-wrappers was given.
5186 if test "${with_tcp_wrappers+set}" = set; then :
5187   withval=$with_tcp_wrappers; with_tcpw=$withval
5188 else
5189   with_tcpw=yes
5190 fi
5191
5192         if test "x$with_tcpw" != "xno" ; then
5193             saved_LIBS="$LIBS"
5194             saved_LDFLAGS="$LDFLAGS"
5195             saved_CPPFLAGS="$CPPFLAGS"
5196             if test -n "${with_tcpw}" -a "${with_tcpw}" != "yes"; then
5197                 if test -d "${with_tcpw}/lib"; then
5198                     if test -n "${need_dash_r}"; then
5199                         LDFLAGS="-L${with_tcpw}/lib -R${with_tcpw}/lib ${LDFLAGS}"
5200                     else
5201                         LDFLAGS="-L${with_tcpw}/lib ${LDFLAGS}"
5202                     fi
5203                 else
5204                     if test -n "${need_dash_r}"; then
5205                         LDFLAGS="-L${with_tcpw} -R${with_tcpw} ${LDFLAGS}"
5206                     else
5207                         LDFLAGS="-L${with_tcpw} ${LDFLAGS}"
5208                     fi
5209                 fi
5210                 if test -d "${with_tcpw}/include"; then
5211                     CPPFLAGS="-I${with_tcpw}/include ${CPPFLAGS}"
5212                 else
5213                     CPPFLAGS="-I${with_tcpw} ${CPPFLAGS}"
5214                 fi
5215             fi
5216             LIBWRAP="-lwrap"
5217             LIBS="$LIBWRAP $LIBS"
5218             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
5219 $as_echo_n "checking for libwrap... " >&6; }
5220             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5221 /* end confdefs.h.  */
5222
5223                 #include <tcpd.h>
5224                 int deny_severity = 0, allow_severity = 0;
5225
5226 int
5227 main ()
5228 {
5229 hosts_access(0);
5230   ;
5231   return 0;
5232 }
5233 _ACEOF
5234 if ac_fn_c_try_link "$LINENO"; then :
5235
5236                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5237 $as_echo "yes" >&6; }
5238
5239
5240 $as_echo "#define LIBWRAP 1" >>confdefs.h
5241
5242
5243 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
5244
5245
5246 $as_echo "#define HAVE_TCP_WRAPPER 1" >>confdefs.h
5247
5248                 TCPW_MSG="yes"
5249
5250 else
5251
5252                 as_fn_error $? "*** libwrap missing" "$LINENO" 5
5253
5254
5255 fi
5256 rm -f core conftest.err conftest.$ac_objext \
5257     conftest$ac_exeext conftest.$ac_ext
5258             LIBS="$saved_LIBS"
5259         fi
5260
5261
5262
5263
5264
5265 # Arrange for large-file support
5266 # Check whether --enable-largefile was given.
5267 if test "${enable_largefile+set}" = set; then :
5268   enableval=$enable_largefile;
5269 fi
5270
5271 if test "$enable_largefile" != no; then
5272
5273   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5274 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5275 if ${ac_cv_sys_largefile_CC+:} false; then :
5276   $as_echo_n "(cached) " >&6
5277 else
5278   ac_cv_sys_largefile_CC=no
5279      if test "$GCC" != yes; then
5280        ac_save_CC=$CC
5281        while :; do
5282          # IRIX 6.2 and later do not support large files by default,
5283          # so use the C compiler's -n32 option if that helps.
5284          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5285 /* end confdefs.h.  */
5286 #include <sys/types.h>
5287  /* Check that off_t can represent 2**63 - 1 correctly.
5288     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5289     since some C++ compilers masquerading as C compilers
5290     incorrectly reject 9223372036854775807.  */
5291 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5292   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5293                        && LARGE_OFF_T % 2147483647 == 1)
5294                       ? 1 : -1];
5295 int
5296 main ()
5297 {
5298
5299   ;
5300   return 0;
5301 }
5302 _ACEOF
5303          if ac_fn_c_try_compile "$LINENO"; then :
5304   break
5305 fi
5306 rm -f core conftest.err conftest.$ac_objext
5307          CC="$CC -n32"
5308          if ac_fn_c_try_compile "$LINENO"; then :
5309   ac_cv_sys_largefile_CC=' -n32'; break
5310 fi
5311 rm -f core conftest.err conftest.$ac_objext
5312          break
5313        done
5314        CC=$ac_save_CC
5315        rm -f conftest.$ac_ext
5316     fi
5317 fi
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5319 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5320   if test "$ac_cv_sys_largefile_CC" != no; then
5321     CC=$CC$ac_cv_sys_largefile_CC
5322   fi
5323
5324   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5325 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5326 if ${ac_cv_sys_file_offset_bits+:} false; then :
5327   $as_echo_n "(cached) " >&6
5328 else
5329   while :; do
5330   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5331 /* end confdefs.h.  */
5332 #include <sys/types.h>
5333  /* Check that off_t can represent 2**63 - 1 correctly.
5334     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5335     since some C++ compilers masquerading as C compilers
5336     incorrectly reject 9223372036854775807.  */
5337 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5338   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5339                        && LARGE_OFF_T % 2147483647 == 1)
5340                       ? 1 : -1];
5341 int
5342 main ()
5343 {
5344
5345   ;
5346   return 0;
5347 }
5348 _ACEOF
5349 if ac_fn_c_try_compile "$LINENO"; then :
5350   ac_cv_sys_file_offset_bits=no; break
5351 fi
5352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5353   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5354 /* end confdefs.h.  */
5355 #define _FILE_OFFSET_BITS 64
5356 #include <sys/types.h>
5357  /* Check that off_t can represent 2**63 - 1 correctly.
5358     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5359     since some C++ compilers masquerading as C compilers
5360     incorrectly reject 9223372036854775807.  */
5361 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5362   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5363                        && LARGE_OFF_T % 2147483647 == 1)
5364                       ? 1 : -1];
5365 int
5366 main ()
5367 {
5368
5369   ;
5370   return 0;
5371 }
5372 _ACEOF
5373 if ac_fn_c_try_compile "$LINENO"; then :
5374   ac_cv_sys_file_offset_bits=64; break
5375 fi
5376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5377   ac_cv_sys_file_offset_bits=unknown
5378   break
5379 done
5380 fi
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5382 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5383 case $ac_cv_sys_file_offset_bits in #(
5384   no | unknown) ;;
5385   *)
5386 cat >>confdefs.h <<_ACEOF
5387 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5388 _ACEOF
5389 ;;
5390 esac
5391 rm -rf conftest*
5392   if test $ac_cv_sys_file_offset_bits = unknown; then
5393     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5394 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5395 if ${ac_cv_sys_large_files+:} false; then :
5396   $as_echo_n "(cached) " >&6
5397 else
5398   while :; do
5399   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5400 /* end confdefs.h.  */
5401 #include <sys/types.h>
5402  /* Check that off_t can represent 2**63 - 1 correctly.
5403     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5404     since some C++ compilers masquerading as C compilers
5405     incorrectly reject 9223372036854775807.  */
5406 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5407   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5408                        && LARGE_OFF_T % 2147483647 == 1)
5409                       ? 1 : -1];
5410 int
5411 main ()
5412 {
5413
5414   ;
5415   return 0;
5416 }
5417 _ACEOF
5418 if ac_fn_c_try_compile "$LINENO"; then :
5419   ac_cv_sys_large_files=no; break
5420 fi
5421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5422   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5423 /* end confdefs.h.  */
5424 #define _LARGE_FILES 1
5425 #include <sys/types.h>
5426  /* Check that off_t can represent 2**63 - 1 correctly.
5427     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5428     since some C++ compilers masquerading as C compilers
5429     incorrectly reject 9223372036854775807.  */
5430 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5431   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5432                        && LARGE_OFF_T % 2147483647 == 1)
5433                       ? 1 : -1];
5434 int
5435 main ()
5436 {
5437
5438   ;
5439   return 0;
5440 }
5441 _ACEOF
5442 if ac_fn_c_try_compile "$LINENO"; then :
5443   ac_cv_sys_large_files=1; break
5444 fi
5445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5446   ac_cv_sys_large_files=unknown
5447   break
5448 done
5449 fi
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5451 $as_echo "$ac_cv_sys_large_files" >&6; }
5452 case $ac_cv_sys_large_files in #(
5453   no | unknown) ;;
5454   *)
5455 cat >>confdefs.h <<_ACEOF
5456 #define _LARGE_FILES $ac_cv_sys_large_files
5457 _ACEOF
5458 ;;
5459 esac
5460 rm -rf conftest*
5461   fi
5462 fi
5463
5464
5465
5466 ac_config_headers="$ac_config_headers support/include/config.h"
5467
5468
5469 # Checks for programs.
5470 ac_ext=cpp
5471 ac_cpp='$CXXCPP $CPPFLAGS'
5472 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5473 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5474 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5475 if test -z "$CXX"; then
5476   if test -n "$CCC"; then
5477     CXX=$CCC
5478   else
5479     if test -n "$ac_tool_prefix"; then
5480   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5481   do
5482     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5483 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5485 $as_echo_n "checking for $ac_word... " >&6; }
5486 if ${ac_cv_prog_CXX+:} false; then :
5487   $as_echo_n "(cached) " >&6
5488 else
5489   if test -n "$CXX"; then
5490   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5491 else
5492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5493 for as_dir in $PATH
5494 do
5495   IFS=$as_save_IFS
5496   test -z "$as_dir" && as_dir=.
5497     for ac_exec_ext in '' $ac_executable_extensions; do
5498   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5499     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5500     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5501     break 2
5502   fi
5503 done
5504   done
5505 IFS=$as_save_IFS
5506
5507 fi
5508 fi
5509 CXX=$ac_cv_prog_CXX
5510 if test -n "$CXX"; then
5511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5512 $as_echo "$CXX" >&6; }
5513 else
5514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5515 $as_echo "no" >&6; }
5516 fi
5517
5518
5519     test -n "$CXX" && break
5520   done
5521 fi
5522 if test -z "$CXX"; then
5523   ac_ct_CXX=$CXX
5524   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5525 do
5526   # Extract the first word of "$ac_prog", so it can be a program name with args.
5527 set dummy $ac_prog; ac_word=$2
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5529 $as_echo_n "checking for $ac_word... " >&6; }
5530 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5531   $as_echo_n "(cached) " >&6
5532 else
5533   if test -n "$ac_ct_CXX"; then
5534   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5535 else
5536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5537 for as_dir in $PATH
5538 do
5539   IFS=$as_save_IFS
5540   test -z "$as_dir" && as_dir=.
5541     for ac_exec_ext in '' $ac_executable_extensions; do
5542   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5543     ac_cv_prog_ac_ct_CXX="$ac_prog"
5544     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5545     break 2
5546   fi
5547 done
5548   done
5549 IFS=$as_save_IFS
5550
5551 fi
5552 fi
5553 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5554 if test -n "$ac_ct_CXX"; then
5555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5556 $as_echo "$ac_ct_CXX" >&6; }
5557 else
5558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5559 $as_echo "no" >&6; }
5560 fi
5561
5562
5563   test -n "$ac_ct_CXX" && break
5564 done
5565
5566   if test "x$ac_ct_CXX" = x; then
5567     CXX="g++"
5568   else
5569     case $cross_compiling:$ac_tool_warned in
5570 yes:)
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5572 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5573 ac_tool_warned=yes ;;
5574 esac
5575     CXX=$ac_ct_CXX
5576   fi
5577 fi
5578
5579   fi
5580 fi
5581 # Provide some information about the compiler.
5582 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5583 set X $ac_compile
5584 ac_compiler=$2
5585 for ac_option in --version -v -V -qversion; do
5586   { { ac_try="$ac_compiler $ac_option >&5"
5587 case "(($ac_try" in
5588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5589   *) ac_try_echo=$ac_try;;
5590 esac
5591 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5592 $as_echo "$ac_try_echo"; } >&5
5593   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5594   ac_status=$?
5595   if test -s conftest.err; then
5596     sed '10a\
5597 ... rest of stderr output deleted ...
5598          10q' conftest.err >conftest.er1
5599     cat conftest.er1 >&5
5600   fi
5601   rm -f conftest.er1 conftest.err
5602   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5603   test $ac_status = 0; }
5604 done
5605
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5607 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5608 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5609   $as_echo_n "(cached) " >&6
5610 else
5611   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5612 /* end confdefs.h.  */
5613
5614 int
5615 main ()
5616 {
5617 #ifndef __GNUC__
5618        choke me
5619 #endif
5620
5621   ;
5622   return 0;
5623 }
5624 _ACEOF
5625 if ac_fn_cxx_try_compile "$LINENO"; then :
5626   ac_compiler_gnu=yes
5627 else
5628   ac_compiler_gnu=no
5629 fi
5630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5631 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5632
5633 fi
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5635 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5636 if test $ac_compiler_gnu = yes; then
5637   GXX=yes
5638 else
5639   GXX=
5640 fi
5641 ac_test_CXXFLAGS=${CXXFLAGS+set}
5642 ac_save_CXXFLAGS=$CXXFLAGS
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5644 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5645 if ${ac_cv_prog_cxx_g+:} false; then :
5646   $as_echo_n "(cached) " >&6
5647 else
5648   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5649    ac_cxx_werror_flag=yes
5650    ac_cv_prog_cxx_g=no
5651    CXXFLAGS="-g"
5652    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5653 /* end confdefs.h.  */
5654
5655 int
5656 main ()
5657 {
5658
5659   ;
5660   return 0;
5661 }
5662 _ACEOF
5663 if ac_fn_cxx_try_compile "$LINENO"; then :
5664   ac_cv_prog_cxx_g=yes
5665 else
5666   CXXFLAGS=""
5667       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5668 /* end confdefs.h.  */
5669
5670 int
5671 main ()
5672 {
5673
5674   ;
5675   return 0;
5676 }
5677 _ACEOF
5678 if ac_fn_cxx_try_compile "$LINENO"; then :
5679
5680 else
5681   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5682          CXXFLAGS="-g"
5683          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5684 /* end confdefs.h.  */
5685
5686 int
5687 main ()
5688 {
5689
5690   ;
5691   return 0;
5692 }
5693 _ACEOF
5694 if ac_fn_cxx_try_compile "$LINENO"; then :
5695   ac_cv_prog_cxx_g=yes
5696 fi
5697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5698 fi
5699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5700 fi
5701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5702    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5703 fi
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5705 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5706 if test "$ac_test_CXXFLAGS" = set; then
5707   CXXFLAGS=$ac_save_CXXFLAGS
5708 elif test $ac_cv_prog_cxx_g = yes; then
5709   if test "$GXX" = yes; then
5710     CXXFLAGS="-g -O2"
5711   else
5712     CXXFLAGS="-g"
5713   fi
5714 else
5715   if test "$GXX" = yes; then
5716     CXXFLAGS="-O2"
5717   else
5718     CXXFLAGS=
5719   fi
5720 fi
5721 ac_ext=c
5722 ac_cpp='$CPP $CPPFLAGS'
5723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5726
5727 depcc="$CXX"  am_compiler_list=
5728
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5730 $as_echo_n "checking dependency style of $depcc... " >&6; }
5731 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5732   $as_echo_n "(cached) " >&6
5733 else
5734   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5735   # We make a subdir and do the tests there.  Otherwise we can end up
5736   # making bogus files that we don't know about and never remove.  For
5737   # instance it was reported that on HP-UX the gcc test will end up
5738   # making a dummy file named `D' -- because `-MD' means `put the output
5739   # in D'.
5740   mkdir conftest.dir
5741   # Copy depcomp to subdir because otherwise we won't find it if we're
5742   # using a relative directory.
5743   cp "$am_depcomp" conftest.dir
5744   cd conftest.dir
5745   # We will build objects and dependencies in a subdirectory because
5746   # it helps to detect inapplicable dependency modes.  For instance
5747   # both Tru64's cc and ICC support -MD to output dependencies as a
5748   # side effect of compilation, but ICC will put the dependencies in
5749   # the current directory while Tru64 will put them in the object
5750   # directory.
5751   mkdir sub
5752
5753   am_cv_CXX_dependencies_compiler_type=none
5754   if test "$am_compiler_list" = ""; then
5755      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5756   fi
5757   am__universal=false
5758   case " $depcc " in #(
5759      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5760      esac
5761
5762   for depmode in $am_compiler_list; do
5763     # Setup a source with many dependencies, because some compilers
5764     # like to wrap large dependency lists on column 80 (with \), and
5765     # we should not choose a depcomp mode which is confused by this.
5766     #
5767     # We need to recreate these files for each test, as the compiler may
5768     # overwrite some of them when testing with obscure command lines.
5769     # This happens at least with the AIX C compiler.
5770     : > sub/conftest.c
5771     for i in 1 2 3 4 5 6; do
5772       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5773       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5774       # Solaris 8's {/usr,}/bin/sh.
5775       touch sub/conftst$i.h
5776     done
5777     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5778
5779     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5780     # mode.  It turns out that the SunPro C++ compiler does not properly
5781     # handle `-M -o', and we need to detect this.  Also, some Intel
5782     # versions had trouble with output in subdirs
5783     am__obj=sub/conftest.${OBJEXT-o}
5784     am__minus_obj="-o $am__obj"
5785     case $depmode in
5786     gcc)
5787       # This depmode causes a compiler race in universal mode.
5788       test "$am__universal" = false || continue
5789       ;;
5790     nosideeffect)
5791       # after this tag, mechanisms are not by side-effect, so they'll
5792       # only be used when explicitly requested
5793       if test "x$enable_dependency_tracking" = xyes; then
5794         continue
5795       else
5796         break
5797       fi
5798       ;;
5799     msvisualcpp | msvcmsys)
5800       # This compiler won't grok `-c -o', but also, the minuso test has
5801       # not run yet.  These depmodes are late enough in the game, and
5802       # so weak that their functioning should not be impacted.
5803       am__obj=conftest.${OBJEXT-o}
5804       am__minus_obj=
5805       ;;
5806     none) break ;;
5807     esac
5808     if depmode=$depmode \
5809        source=sub/conftest.c object=$am__obj \
5810        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5811        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5812          >/dev/null 2>conftest.err &&
5813        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5814        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5815        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5816        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5817       # icc doesn't choke on unknown options, it will just issue warnings
5818       # or remarks (even with -Werror).  So we grep stderr for any message
5819       # that says an option was ignored or not supported.
5820       # When given -MP, icc 7.0 and 7.1 complain thusly:
5821       #   icc: Command line warning: ignoring option '-M'; no argument required
5822       # The diagnosis changed in icc 8.0:
5823       #   icc: Command line remark: option '-MP' not supported
5824       if (grep 'ignoring option' conftest.err ||
5825           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5826         am_cv_CXX_dependencies_compiler_type=$depmode
5827         break
5828       fi
5829     fi
5830   done
5831
5832   cd ..
5833   rm -rf conftest.dir
5834 else
5835   am_cv_CXX_dependencies_compiler_type=none
5836 fi
5837
5838 fi
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5840 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5841 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5842
5843  if
5844   test "x$enable_dependency_tracking" != xno \
5845   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5846   am__fastdepCXX_TRUE=
5847   am__fastdepCXX_FALSE='#'
5848 else
5849   am__fastdepCXX_TRUE='#'
5850   am__fastdepCXX_FALSE=
5851 fi
5852
5853
5854 ac_ext=c
5855 ac_cpp='$CPP $CPPFLAGS'
5856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5859 if test -n "$ac_tool_prefix"; then
5860   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5861 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5863 $as_echo_n "checking for $ac_word... " >&6; }
5864 if ${ac_cv_prog_CC+:} false; then :
5865   $as_echo_n "(cached) " >&6
5866 else
5867   if test -n "$CC"; then
5868   ac_cv_prog_CC="$CC" # Let the user override the test.
5869 else
5870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5871 for as_dir in $PATH
5872 do
5873   IFS=$as_save_IFS
5874   test -z "$as_dir" && as_dir=.
5875     for ac_exec_ext in '' $ac_executable_extensions; do
5876   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5877     ac_cv_prog_CC="${ac_tool_prefix}gcc"
5878     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5879     break 2
5880   fi
5881 done
5882   done
5883 IFS=$as_save_IFS
5884
5885 fi
5886 fi
5887 CC=$ac_cv_prog_CC
5888 if test -n "$CC"; then
5889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5890 $as_echo "$CC" >&6; }
5891 else
5892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5893 $as_echo "no" >&6; }
5894 fi
5895
5896
5897 fi
5898 if test -z "$ac_cv_prog_CC"; then
5899   ac_ct_CC=$CC
5900   # Extract the first word of "gcc", so it can be a program name with args.
5901 set dummy gcc; ac_word=$2
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5903 $as_echo_n "checking for $ac_word... " >&6; }
5904 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5905   $as_echo_n "(cached) " >&6
5906 else
5907   if test -n "$ac_ct_CC"; then
5908   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5909 else
5910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5911 for as_dir in $PATH
5912 do
5913   IFS=$as_save_IFS
5914   test -z "$as_dir" && as_dir=.
5915     for ac_exec_ext in '' $ac_executable_extensions; do
5916   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5917     ac_cv_prog_ac_ct_CC="gcc"
5918     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5919     break 2
5920   fi
5921 done
5922   done
5923 IFS=$as_save_IFS
5924
5925 fi
5926 fi
5927 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5928 if test -n "$ac_ct_CC"; then
5929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5930 $as_echo "$ac_ct_CC" >&6; }
5931 else
5932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5933 $as_echo "no" >&6; }
5934 fi
5935
5936   if test "x$ac_ct_CC" = x; then
5937     CC=""
5938   else
5939     case $cross_compiling:$ac_tool_warned in
5940 yes:)
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5942 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5943 ac_tool_warned=yes ;;
5944 esac
5945     CC=$ac_ct_CC
5946   fi
5947 else
5948   CC="$ac_cv_prog_CC"
5949 fi
5950
5951 if test -z "$CC"; then
5952           if test -n "$ac_tool_prefix"; then
5953     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5954 set dummy ${ac_tool_prefix}cc; ac_word=$2
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5956 $as_echo_n "checking for $ac_word... " >&6; }
5957 if ${ac_cv_prog_CC+:} false; then :
5958   $as_echo_n "(cached) " >&6
5959 else
5960   if test -n "$CC"; then
5961   ac_cv_prog_CC="$CC" # Let the user override the test.
5962 else
5963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5964 for as_dir in $PATH
5965 do
5966   IFS=$as_save_IFS
5967   test -z "$as_dir" && as_dir=.
5968     for ac_exec_ext in '' $ac_executable_extensions; do
5969   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5970     ac_cv_prog_CC="${ac_tool_prefix}cc"
5971     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5972     break 2
5973   fi
5974 done
5975   done
5976 IFS=$as_save_IFS
5977
5978 fi
5979 fi
5980 CC=$ac_cv_prog_CC
5981 if test -n "$CC"; then
5982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5983 $as_echo "$CC" >&6; }
5984 else
5985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5986 $as_echo "no" >&6; }
5987 fi
5988
5989
5990   fi
5991 fi
5992 if test -z "$CC"; then
5993   # Extract the first word of "cc", so it can be a program name with args.
5994 set dummy cc; ac_word=$2
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5996 $as_echo_n "checking for $ac_word... " >&6; }
5997 if ${ac_cv_prog_CC+:} false; then :
5998   $as_echo_n "(cached) " >&6
5999 else
6000   if test -n "$CC"; then
6001   ac_cv_prog_CC="$CC" # Let the user override the test.
6002 else
6003   ac_prog_rejected=no
6004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6005 for as_dir in $PATH
6006 do
6007   IFS=$as_save_IFS
6008   test -z "$as_dir" && as_dir=.
6009     for ac_exec_ext in '' $ac_executable_extensions; do
6010   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6011     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6012        ac_prog_rejected=yes
6013        continue
6014      fi
6015     ac_cv_prog_CC="cc"
6016     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6017     break 2
6018   fi
6019 done
6020   done
6021 IFS=$as_save_IFS
6022
6023 if test $ac_prog_rejected = yes; then
6024   # We found a bogon in the path, so make sure we never use it.
6025   set dummy $ac_cv_prog_CC
6026   shift
6027   if test $# != 0; then
6028     # We chose a different compiler from the bogus one.
6029     # However, it has the same basename, so the bogon will be chosen
6030     # first if we set CC to just the basename; use the full file name.
6031     shift
6032     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6033   fi
6034 fi
6035 fi
6036 fi
6037 CC=$ac_cv_prog_CC
6038 if test -n "$CC"; then
6039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6040 $as_echo "$CC" >&6; }
6041 else
6042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6043 $as_echo "no" >&6; }
6044 fi
6045
6046
6047 fi
6048 if test -z "$CC"; then
6049   if test -n "$ac_tool_prefix"; then
6050   for ac_prog in cl.exe
6051   do
6052     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6053 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6055 $as_echo_n "checking for $ac_word... " >&6; }
6056 if ${ac_cv_prog_CC+:} false; then :
6057   $as_echo_n "(cached) " >&6
6058 else
6059   if test -n "$CC"; then
6060   ac_cv_prog_CC="$CC" # Let the user override the test.
6061 else
6062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6063 for as_dir in $PATH
6064 do
6065   IFS=$as_save_IFS
6066   test -z "$as_dir" && as_dir=.
6067     for ac_exec_ext in '' $ac_executable_extensions; do
6068   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6069     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6070     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6071     break 2
6072   fi
6073 done
6074   done
6075 IFS=$as_save_IFS
6076
6077 fi
6078 fi
6079 CC=$ac_cv_prog_CC
6080 if test -n "$CC"; then
6081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6082 $as_echo "$CC" >&6; }
6083 else
6084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6085 $as_echo "no" >&6; }
6086 fi
6087
6088
6089     test -n "$CC" && break
6090   done
6091 fi
6092 if test -z "$CC"; then
6093   ac_ct_CC=$CC
6094   for ac_prog in cl.exe
6095 do
6096   # Extract the first word of "$ac_prog", so it can be a program name with args.
6097 set dummy $ac_prog; ac_word=$2
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6099 $as_echo_n "checking for $ac_word... " >&6; }
6100 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6101   $as_echo_n "(cached) " >&6
6102 else
6103   if test -n "$ac_ct_CC"; then
6104   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6105 else
6106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6107 for as_dir in $PATH
6108 do
6109   IFS=$as_save_IFS
6110   test -z "$as_dir" && as_dir=.
6111     for ac_exec_ext in '' $ac_executable_extensions; do
6112   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6113     ac_cv_prog_ac_ct_CC="$ac_prog"
6114     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6115     break 2
6116   fi
6117 done
6118   done
6119 IFS=$as_save_IFS
6120
6121 fi
6122 fi
6123 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6124 if test -n "$ac_ct_CC"; then
6125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6126 $as_echo "$ac_ct_CC" >&6; }
6127 else
6128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6129 $as_echo "no" >&6; }
6130 fi
6131
6132
6133   test -n "$ac_ct_CC" && break
6134 done
6135
6136   if test "x$ac_ct_CC" = x; then
6137     CC=""
6138   else
6139     case $cross_compiling:$ac_tool_warned in
6140 yes:)
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6142 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6143 ac_tool_warned=yes ;;
6144 esac
6145     CC=$ac_ct_CC
6146   fi
6147 fi
6148
6149 fi
6150
6151
6152 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6153 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6154 as_fn_error $? "no acceptable C compiler found in \$PATH
6155 See \`config.log' for more details" "$LINENO" 5; }
6156
6157 # Provide some information about the compiler.
6158 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6159 set X $ac_compile
6160 ac_compiler=$2
6161 for ac_option in --version -v -V -qversion; do
6162   { { ac_try="$ac_compiler $ac_option >&5"
6163 case "(($ac_try" in
6164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6165   *) ac_try_echo=$ac_try;;
6166 esac
6167 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6168 $as_echo "$ac_try_echo"; } >&5
6169   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6170   ac_status=$?
6171   if test -s conftest.err; then
6172     sed '10a\
6173 ... rest of stderr output deleted ...
6174          10q' conftest.err >conftest.er1
6175     cat conftest.er1 >&5
6176   fi
6177   rm -f conftest.er1 conftest.err
6178   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6179   test $ac_status = 0; }
6180 done
6181
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6183 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6184 if ${ac_cv_c_compiler_gnu+:} false; then :
6185   $as_echo_n "(cached) " >&6
6186 else
6187   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6188 /* end confdefs.h.  */
6189
6190 int
6191 main ()
6192 {
6193 #ifndef __GNUC__
6194        choke me
6195 #endif
6196
6197   ;
6198   return 0;
6199 }
6200 _ACEOF
6201 if ac_fn_c_try_compile "$LINENO"; then :
6202   ac_compiler_gnu=yes
6203 else
6204   ac_compiler_gnu=no
6205 fi
6206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6207 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6208
6209 fi
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6211 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6212 if test $ac_compiler_gnu = yes; then
6213   GCC=yes
6214 else
6215   GCC=
6216 fi
6217 ac_test_CFLAGS=${CFLAGS+set}
6218 ac_save_CFLAGS=$CFLAGS
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6220 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6221 if ${ac_cv_prog_cc_g+:} false; then :
6222   $as_echo_n "(cached) " >&6
6223 else
6224   ac_save_c_werror_flag=$ac_c_werror_flag
6225    ac_c_werror_flag=yes
6226    ac_cv_prog_cc_g=no
6227    CFLAGS="-g"
6228    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6229 /* end confdefs.h.  */
6230
6231 int
6232 main ()
6233 {
6234
6235   ;
6236   return 0;
6237 }
6238 _ACEOF
6239 if ac_fn_c_try_compile "$LINENO"; then :
6240   ac_cv_prog_cc_g=yes
6241 else
6242   CFLAGS=""
6243       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6244 /* end confdefs.h.  */
6245
6246 int
6247 main ()
6248 {
6249
6250   ;
6251   return 0;
6252 }
6253 _ACEOF
6254 if ac_fn_c_try_compile "$LINENO"; then :
6255
6256 else
6257   ac_c_werror_flag=$ac_save_c_werror_flag
6258          CFLAGS="-g"
6259          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6260 /* end confdefs.h.  */
6261
6262 int
6263 main ()
6264 {
6265
6266   ;
6267   return 0;
6268 }
6269 _ACEOF
6270 if ac_fn_c_try_compile "$LINENO"; then :
6271   ac_cv_prog_cc_g=yes
6272 fi
6273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6274 fi
6275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6276 fi
6277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6278    ac_c_werror_flag=$ac_save_c_werror_flag
6279 fi
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6281 $as_echo "$ac_cv_prog_cc_g" >&6; }
6282 if test "$ac_test_CFLAGS" = set; then
6283   CFLAGS=$ac_save_CFLAGS
6284 elif test $ac_cv_prog_cc_g = yes; then
6285   if test "$GCC" = yes; then
6286     CFLAGS="-g -O2"
6287   else
6288     CFLAGS="-g"
6289   fi
6290 else
6291   if test "$GCC" = yes; then
6292     CFLAGS="-O2"
6293   else
6294     CFLAGS=
6295   fi
6296 fi
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6298 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6299 if ${ac_cv_prog_cc_c89+:} false; then :
6300   $as_echo_n "(cached) " >&6
6301 else
6302   ac_cv_prog_cc_c89=no
6303 ac_save_CC=$CC
6304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6305 /* end confdefs.h.  */
6306 #include <stdarg.h>
6307 #include <stdio.h>
6308 #include <sys/types.h>
6309 #include <sys/stat.h>
6310 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6311 struct buf { int x; };
6312 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6313 static char *e (p, i)
6314      char **p;
6315      int i;
6316 {
6317   return p[i];
6318 }
6319 static char *f (char * (*g) (char **, int), char **p, ...)
6320 {
6321   char *s;
6322   va_list v;
6323   va_start (v,p);
6324   s = g (p, va_arg (v,int));
6325   va_end (v);
6326   return s;
6327 }
6328
6329 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6330    function prototypes and stuff, but not '\xHH' hex character constants.
6331    These don't provoke an error unfortunately, instead are silently treated
6332    as 'x'.  The following induces an error, until -std is added to get
6333    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6334    array size at least.  It's necessary to write '\x00'==0 to get something
6335    that's true only with -std.  */
6336 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6337
6338 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6339    inside strings and character constants.  */
6340 #define FOO(x) 'x'
6341 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6342
6343 int test (int i, double x);
6344 struct s1 {int (*f) (int a);};
6345 struct s2 {int (*f) (double a);};
6346 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6347 int argc;
6348 char **argv;
6349 int
6350 main ()
6351 {
6352 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6353   ;
6354   return 0;
6355 }
6356 _ACEOF
6357 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6358         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6359 do
6360   CC="$ac_save_CC $ac_arg"
6361   if ac_fn_c_try_compile "$LINENO"; then :
6362   ac_cv_prog_cc_c89=$ac_arg
6363 fi
6364 rm -f core conftest.err conftest.$ac_objext
6365   test "x$ac_cv_prog_cc_c89" != "xno" && break
6366 done
6367 rm -f conftest.$ac_ext
6368 CC=$ac_save_CC
6369
6370 fi
6371 # AC_CACHE_VAL
6372 case "x$ac_cv_prog_cc_c89" in
6373   x)
6374     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6375 $as_echo "none needed" >&6; } ;;
6376   xno)
6377     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6378 $as_echo "unsupported" >&6; } ;;
6379   *)
6380     CC="$CC $ac_cv_prog_cc_c89"
6381     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6382 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6383 esac
6384 if test "x$ac_cv_prog_cc_c89" != xno; then :
6385
6386 fi
6387
6388 ac_ext=c
6389 ac_cpp='$CPP $CPPFLAGS'
6390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6393
6394 depcc="$CC"   am_compiler_list=
6395
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6397 $as_echo_n "checking dependency style of $depcc... " >&6; }
6398 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6399   $as_echo_n "(cached) " >&6
6400 else
6401   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6402   # We make a subdir and do the tests there.  Otherwise we can end up
6403   # making bogus files that we don't know about and never remove.  For
6404   # instance it was reported that on HP-UX the gcc test will end up
6405   # making a dummy file named `D' -- because `-MD' means `put the output
6406   # in D'.
6407   mkdir conftest.dir
6408   # Copy depcomp to subdir because otherwise we won't find it if we're
6409   # using a relative directory.
6410   cp "$am_depcomp" conftest.dir
6411   cd conftest.dir
6412   # We will build objects and dependencies in a subdirectory because
6413   # it helps to detect inapplicable dependency modes.  For instance
6414   # both Tru64's cc and ICC support -MD to output dependencies as a
6415   # side effect of compilation, but ICC will put the dependencies in
6416   # the current directory while Tru64 will put them in the object
6417   # directory.
6418   mkdir sub
6419
6420   am_cv_CC_dependencies_compiler_type=none
6421   if test "$am_compiler_list" = ""; then
6422      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6423   fi
6424   am__universal=false
6425   case " $depcc " in #(
6426      *\ -arch\ *\ -arch\ *) am__universal=true ;;
6427      esac
6428
6429   for depmode in $am_compiler_list; do
6430     # Setup a source with many dependencies, because some compilers
6431     # like to wrap large dependency lists on column 80 (with \), and
6432     # we should not choose a depcomp mode which is confused by this.
6433     #
6434     # We need to recreate these files for each test, as the compiler may
6435     # overwrite some of them when testing with obscure command lines.
6436     # This happens at least with the AIX C compiler.
6437     : > sub/conftest.c
6438     for i in 1 2 3 4 5 6; do
6439       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6440       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6441       # Solaris 8's {/usr,}/bin/sh.
6442       touch sub/conftst$i.h
6443     done
6444     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6445
6446     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6447     # mode.  It turns out that the SunPro C++ compiler does not properly
6448     # handle `-M -o', and we need to detect this.  Also, some Intel
6449     # versions had trouble with output in subdirs
6450     am__obj=sub/conftest.${OBJEXT-o}
6451     am__minus_obj="-o $am__obj"
6452     case $depmode in
6453     gcc)
6454       # This depmode causes a compiler race in universal mode.
6455       test "$am__universal" = false || continue
6456       ;;
6457     nosideeffect)
6458       # after this tag, mechanisms are not by side-effect, so they'll
6459       # only be used when explicitly requested
6460       if test "x$enable_dependency_tracking" = xyes; then
6461         continue
6462       else
6463         break
6464       fi
6465       ;;
6466     msvisualcpp | msvcmsys)
6467       # This compiler won't grok `-c -o', but also, the minuso test has
6468       # not run yet.  These depmodes are late enough in the game, and
6469       # so weak that their functioning should not be impacted.
6470       am__obj=conftest.${OBJEXT-o}
6471       am__minus_obj=
6472       ;;
6473     none) break ;;
6474     esac
6475     if depmode=$depmode \
6476        source=sub/conftest.c object=$am__obj \
6477        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6478        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6479          >/dev/null 2>conftest.err &&
6480        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6481        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6482        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6483        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6484       # icc doesn't choke on unknown options, it will just issue warnings
6485       # or remarks (even with -Werror).  So we grep stderr for any message
6486       # that says an option was ignored or not supported.
6487       # When given -MP, icc 7.0 and 7.1 complain thusly:
6488       #   icc: Command line warning: ignoring option '-M'; no argument required
6489       # The diagnosis changed in icc 8.0:
6490       #   icc: Command line remark: option '-MP' not supported
6491       if (grep 'ignoring option' conftest.err ||
6492           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6493         am_cv_CC_dependencies_compiler_type=$depmode
6494         break
6495       fi
6496     fi
6497   done
6498
6499   cd ..
6500   rm -rf conftest.dir
6501 else
6502   am_cv_CC_dependencies_compiler_type=none
6503 fi
6504
6505 fi
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6507 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6508 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6509
6510  if
6511   test "x$enable_dependency_tracking" != xno \
6512   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6513   am__fastdepCC_TRUE=
6514   am__fastdepCC_FALSE='#'
6515 else
6516   am__fastdepCC_TRUE='#'
6517   am__fastdepCC_FALSE=
6518 fi
6519
6520
6521 ac_ext=c
6522 ac_cpp='$CPP $CPPFLAGS'
6523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6527 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6528 # On Suns, sometimes $CPP names a directory.
6529 if test -n "$CPP" && test -d "$CPP"; then
6530   CPP=
6531 fi
6532 if test -z "$CPP"; then
6533   if ${ac_cv_prog_CPP+:} false; then :
6534   $as_echo_n "(cached) " >&6
6535 else
6536       # Double quotes because CPP needs to be expanded
6537     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6538     do
6539       ac_preproc_ok=false
6540 for ac_c_preproc_warn_flag in '' yes
6541 do
6542   # Use a header file that comes with gcc, so configuring glibc
6543   # with a fresh cross-compiler works.
6544   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6545   # <limits.h> exists even on freestanding compilers.
6546   # On the NeXT, cc -E runs the code through the compiler's parser,
6547   # not just through cpp. "Syntax error" is here to catch this case.
6548   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6549 /* end confdefs.h.  */
6550 #ifdef __STDC__
6551 # include <limits.h>
6552 #else
6553 # include <assert.h>
6554 #endif
6555                      Syntax error
6556 _ACEOF
6557 if ac_fn_c_try_cpp "$LINENO"; then :
6558
6559 else
6560   # Broken: fails on valid input.
6561 continue
6562 fi
6563 rm -f conftest.err conftest.i conftest.$ac_ext
6564
6565   # OK, works on sane cases.  Now check whether nonexistent headers
6566   # can be detected and how.
6567   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6568 /* end confdefs.h.  */
6569 #include <ac_nonexistent.h>
6570 _ACEOF
6571 if ac_fn_c_try_cpp "$LINENO"; then :
6572   # Broken: success on invalid input.
6573 continue
6574 else
6575   # Passes both tests.
6576 ac_preproc_ok=:
6577 break
6578 fi
6579 rm -f conftest.err conftest.i conftest.$ac_ext
6580
6581 done
6582 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6583 rm -f conftest.i conftest.err conftest.$ac_ext
6584 if $ac_preproc_ok; then :
6585   break
6586 fi
6587
6588     done
6589     ac_cv_prog_CPP=$CPP
6590
6591 fi
6592   CPP=$ac_cv_prog_CPP
6593 else
6594   ac_cv_prog_CPP=$CPP
6595 fi
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6597 $as_echo "$CPP" >&6; }
6598 ac_preproc_ok=false
6599 for ac_c_preproc_warn_flag in '' yes
6600 do
6601   # Use a header file that comes with gcc, so configuring glibc
6602   # with a fresh cross-compiler works.
6603   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6604   # <limits.h> exists even on freestanding compilers.
6605   # On the NeXT, cc -E runs the code through the compiler's parser,
6606   # not just through cpp. "Syntax error" is here to catch this case.
6607   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6608 /* end confdefs.h.  */
6609 #ifdef __STDC__
6610 # include <limits.h>
6611 #else
6612 # include <assert.h>
6613 #endif
6614                      Syntax error
6615 _ACEOF
6616 if ac_fn_c_try_cpp "$LINENO"; then :
6617
6618 else
6619   # Broken: fails on valid input.
6620 continue
6621 fi
6622 rm -f conftest.err conftest.i conftest.$ac_ext
6623
6624   # OK, works on sane cases.  Now check whether nonexistent headers
6625   # can be detected and how.
6626   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6627 /* end confdefs.h.  */
6628 #include <ac_nonexistent.h>
6629 _ACEOF
6630 if ac_fn_c_try_cpp "$LINENO"; then :
6631   # Broken: success on invalid input.
6632 continue
6633 else
6634   # Passes both tests.
6635 ac_preproc_ok=:
6636 break
6637 fi
6638 rm -f conftest.err conftest.i conftest.$ac_ext
6639
6640 done
6641 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6642 rm -f conftest.i conftest.err conftest.$ac_ext
6643 if $ac_preproc_ok; then :
6644
6645 else
6646   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6647 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6648 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6649 See \`config.log' for more details" "$LINENO" 5; }
6650 fi
6651
6652 ac_ext=c
6653 ac_cpp='$CPP $CPPFLAGS'
6654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6657
6658
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6660 $as_echo_n "checking whether ln -s works... " >&6; }
6661 LN_S=$as_ln_s
6662 if test "$LN_S" = "ln -s"; then
6663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6664 $as_echo "yes" >&6; }
6665 else
6666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6667 $as_echo "no, using $LN_S" >&6; }
6668 fi
6669
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6671 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6672 set x ${MAKE-make}
6673 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6674 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6675   $as_echo_n "(cached) " >&6
6676 else
6677   cat >conftest.make <<\_ACEOF
6678 SHELL = /bin/sh
6679 all:
6680         @echo '@@@%%%=$(MAKE)=@@@%%%'
6681 _ACEOF
6682 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6683 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6684   *@@@%%%=?*=@@@%%%*)
6685     eval ac_cv_prog_make_${ac_make}_set=yes;;
6686   *)
6687     eval ac_cv_prog_make_${ac_make}_set=no;;
6688 esac
6689 rm -f conftest.make
6690 fi
6691 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6693 $as_echo "yes" >&6; }
6694   SET_MAKE=
6695 else
6696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6697 $as_echo "no" >&6; }
6698   SET_MAKE="MAKE=${MAKE-make}"
6699 fi
6700
6701 case `pwd` in
6702   *\ * | *\     *)
6703     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6704 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6705 esac
6706
6707
6708
6709 macro_version='2.4'
6710 macro_revision='1.3293'
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724 ltmain="$ac_aux_dir/ltmain.sh"
6725
6726 # Backslashify metacharacters that are still active within
6727 # double-quoted strings.
6728 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6729
6730 # Same as above, but do not quote variable references.
6731 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6732
6733 # Sed substitution to delay expansion of an escaped shell variable in a
6734 # double_quote_subst'ed string.
6735 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6736
6737 # Sed substitution to delay expansion of an escaped single quote.
6738 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6739
6740 # Sed substitution to avoid accidental globbing in evaled expressions
6741 no_glob_subst='s/\*/\\\*/g'
6742
6743 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6744 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6745 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6746
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6748 $as_echo_n "checking how to print strings... " >&6; }
6749 # Test print first, because it will be a builtin if present.
6750 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6751    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6752   ECHO='print -r --'
6753 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6754   ECHO='printf %s\n'
6755 else
6756   # Use this function as a fallback that always works.
6757   func_fallback_echo ()
6758   {
6759     eval 'cat <<_LTECHO_EOF
6760 $1
6761 _LTECHO_EOF'
6762   }
6763   ECHO='func_fallback_echo'
6764 fi
6765
6766 # func_echo_all arg...
6767 # Invoke $ECHO with all args, space-separated.
6768 func_echo_all ()
6769 {
6770     $ECHO ""
6771 }
6772
6773 case "$ECHO" in
6774   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6775 $as_echo "printf" >&6; } ;;
6776   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6777 $as_echo "print -r" >&6; } ;;
6778   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6779 $as_echo "cat" >&6; } ;;
6780 esac
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6796 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6797 if ${ac_cv_path_SED+:} false; then :
6798   $as_echo_n "(cached) " >&6
6799 else
6800             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6801      for ac_i in 1 2 3 4 5 6 7; do
6802        ac_script="$ac_script$as_nl$ac_script"
6803      done
6804      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6805      { ac_script=; unset ac_script;}
6806      if test -z "$SED"; then
6807   ac_path_SED_found=false
6808   # Loop through the user's path and test for each of PROGNAME-LIST
6809   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6810 for as_dir in $PATH
6811 do
6812   IFS=$as_save_IFS
6813   test -z "$as_dir" && as_dir=.
6814     for ac_prog in sed gsed; do
6815     for ac_exec_ext in '' $ac_executable_extensions; do
6816       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6817       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6818 # Check for GNU ac_path_SED and select it if it is found.
6819   # Check for GNU $ac_path_SED
6820 case `"$ac_path_SED" --version 2>&1` in
6821 *GNU*)
6822   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6823 *)
6824   ac_count=0
6825   $as_echo_n 0123456789 >"conftest.in"
6826   while :
6827   do
6828     cat "conftest.in" "conftest.in" >"conftest.tmp"
6829     mv "conftest.tmp" "conftest.in"
6830     cp "conftest.in" "conftest.nl"
6831     $as_echo '' >> "conftest.nl"
6832     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6833     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6834     as_fn_arith $ac_count + 1 && ac_count=$as_val
6835     if test $ac_count -gt ${ac_path_SED_max-0}; then
6836       # Best one so far, save it but keep looking for a better one
6837       ac_cv_path_SED="$ac_path_SED"
6838       ac_path_SED_max=$ac_count
6839     fi
6840     # 10*(2^10) chars as input seems more than enough
6841     test $ac_count -gt 10 && break
6842   done
6843   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6844 esac
6845
6846       $ac_path_SED_found && break 3
6847     done
6848   done
6849   done
6850 IFS=$as_save_IFS
6851   if test -z "$ac_cv_path_SED"; then
6852     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6853   fi
6854 else
6855   ac_cv_path_SED=$SED
6856 fi
6857
6858 fi
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6860 $as_echo "$ac_cv_path_SED" >&6; }
6861  SED="$ac_cv_path_SED"
6862   rm -f conftest.sed
6863
6864 test -z "$SED" && SED=sed
6865 Xsed="$SED -e 1s/^X//"
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6878 $as_echo_n "checking for fgrep... " >&6; }
6879 if ${ac_cv_path_FGREP+:} false; then :
6880   $as_echo_n "(cached) " >&6
6881 else
6882   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6883    then ac_cv_path_FGREP="$GREP -F"
6884    else
6885      if test -z "$FGREP"; then
6886   ac_path_FGREP_found=false
6887   # Loop through the user's path and test for each of PROGNAME-LIST
6888   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6889 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6890 do
6891   IFS=$as_save_IFS
6892   test -z "$as_dir" && as_dir=.
6893     for ac_prog in fgrep; do
6894     for ac_exec_ext in '' $ac_executable_extensions; do
6895       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6896       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6897 # Check for GNU ac_path_FGREP and select it if it is found.
6898   # Check for GNU $ac_path_FGREP
6899 case `"$ac_path_FGREP" --version 2>&1` in
6900 *GNU*)
6901   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6902 *)
6903   ac_count=0
6904   $as_echo_n 0123456789 >"conftest.in"
6905   while :
6906   do
6907     cat "conftest.in" "conftest.in" >"conftest.tmp"
6908     mv "conftest.tmp" "conftest.in"
6909     cp "conftest.in" "conftest.nl"
6910     $as_echo 'FGREP' >> "conftest.nl"
6911     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6912     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6913     as_fn_arith $ac_count + 1 && ac_count=$as_val
6914     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6915       # Best one so far, save it but keep looking for a better one
6916       ac_cv_path_FGREP="$ac_path_FGREP"
6917       ac_path_FGREP_max=$ac_count
6918     fi
6919     # 10*(2^10) chars as input seems more than enough
6920     test $ac_count -gt 10 && break
6921   done
6922   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6923 esac
6924
6925       $ac_path_FGREP_found && break 3
6926     done
6927   done
6928   done
6929 IFS=$as_save_IFS
6930   if test -z "$ac_cv_path_FGREP"; then
6931     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6932   fi
6933 else
6934   ac_cv_path_FGREP=$FGREP
6935 fi
6936
6937    fi
6938 fi
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6940 $as_echo "$ac_cv_path_FGREP" >&6; }
6941  FGREP="$ac_cv_path_FGREP"
6942
6943
6944 test -z "$GREP" && GREP=grep
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964 # Check whether --with-gnu-ld was given.
6965 if test "${with_gnu_ld+set}" = set; then :
6966   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6967 else
6968   with_gnu_ld=no
6969 fi
6970
6971 ac_prog=ld
6972 if test "$GCC" = yes; then
6973   # Check if gcc -print-prog-name=ld gives a path.
6974   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6975 $as_echo_n "checking for ld used by $CC... " >&6; }
6976   case $host in
6977   *-*-mingw*)
6978     # gcc leaves a trailing carriage return which upsets mingw
6979     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6980   *)
6981     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6982   esac
6983   case $ac_prog in
6984     # Accept absolute paths.
6985     [\\/]* | ?:[\\/]*)
6986       re_direlt='/[^/][^/]*/\.\./'
6987       # Canonicalize the pathname of ld
6988       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6989       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6990         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6991       done
6992       test -z "$LD" && LD="$ac_prog"
6993       ;;
6994   "")
6995     # If it fails, then pretend we aren't using GCC.
6996     ac_prog=ld
6997     ;;
6998   *)
6999     # If it is relative, then search for the first ld in PATH.
7000     with_gnu_ld=unknown
7001     ;;
7002   esac
7003 elif test "$with_gnu_ld" = yes; then
7004   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7005 $as_echo_n "checking for GNU ld... " >&6; }
7006 else
7007   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7008 $as_echo_n "checking for non-GNU ld... " >&6; }
7009 fi
7010 if ${lt_cv_path_LD+:} false; then :
7011   $as_echo_n "(cached) " >&6
7012 else
7013   if test -z "$LD"; then
7014   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7015   for ac_dir in $PATH; do
7016     IFS="$lt_save_ifs"
7017     test -z "$ac_dir" && ac_dir=.
7018     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7019       lt_cv_path_LD="$ac_dir/$ac_prog"
7020       # Check to see if the program is GNU ld.  I'd rather use --version,
7021       # but apparently some variants of GNU ld only accept -v.
7022       # Break only if it was the GNU/non-GNU ld that we prefer.
7023       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7024       *GNU* | *'with BFD'*)
7025         test "$with_gnu_ld" != no && break
7026         ;;
7027       *)
7028         test "$with_gnu_ld" != yes && break
7029         ;;
7030       esac
7031     fi
7032   done
7033   IFS="$lt_save_ifs"
7034 else
7035   lt_cv_path_LD="$LD" # Let the user override the test with a path.
7036 fi
7037 fi
7038
7039 LD="$lt_cv_path_LD"
7040 if test -n "$LD"; then
7041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7042 $as_echo "$LD" >&6; }
7043 else
7044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7045 $as_echo "no" >&6; }
7046 fi
7047 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7049 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7050 if ${lt_cv_prog_gnu_ld+:} false; then :
7051   $as_echo_n "(cached) " >&6
7052 else
7053   # I'd rather use --version here, but apparently some GNU lds only accept -v.
7054 case `$LD -v 2>&1 </dev/null` in
7055 *GNU* | *'with BFD'*)
7056   lt_cv_prog_gnu_ld=yes
7057   ;;
7058 *)
7059   lt_cv_prog_gnu_ld=no
7060   ;;
7061 esac
7062 fi
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7064 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7065 with_gnu_ld=$lt_cv_prog_gnu_ld
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7076 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7077 if ${lt_cv_path_NM+:} false; then :
7078   $as_echo_n "(cached) " >&6
7079 else
7080   if test -n "$NM"; then
7081   # Let the user override the test.
7082   lt_cv_path_NM="$NM"
7083 else
7084   lt_nm_to_check="${ac_tool_prefix}nm"
7085   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7086     lt_nm_to_check="$lt_nm_to_check nm"
7087   fi
7088   for lt_tmp_nm in $lt_nm_to_check; do
7089     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7090     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7091       IFS="$lt_save_ifs"
7092       test -z "$ac_dir" && ac_dir=.
7093       tmp_nm="$ac_dir/$lt_tmp_nm"
7094       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7095         # Check to see if the nm accepts a BSD-compat flag.
7096         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7097         #   nm: unknown option "B" ignored
7098         # Tru64's nm complains that /dev/null is an invalid object file
7099         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7100         */dev/null* | *'Invalid file or object type'*)
7101           lt_cv_path_NM="$tmp_nm -B"
7102           break
7103           ;;
7104         *)
7105           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7106           */dev/null*)
7107             lt_cv_path_NM="$tmp_nm -p"
7108             break
7109             ;;
7110           *)
7111             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7112             continue # so that we can try to find one that supports BSD flags
7113             ;;
7114           esac
7115           ;;
7116         esac
7117       fi
7118     done
7119     IFS="$lt_save_ifs"
7120   done
7121   : ${lt_cv_path_NM=no}
7122 fi
7123 fi
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7125 $as_echo "$lt_cv_path_NM" >&6; }
7126 if test "$lt_cv_path_NM" != "no"; then
7127   NM="$lt_cv_path_NM"
7128 else
7129   # Didn't find any BSD compatible name lister, look for dumpbin.
7130   if test -n "$DUMPBIN"; then :
7131     # Let the user override the test.
7132   else
7133     if test -n "$ac_tool_prefix"; then
7134   for ac_prog in dumpbin "link -dump"
7135   do
7136     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7137 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7139 $as_echo_n "checking for $ac_word... " >&6; }
7140 if ${ac_cv_prog_DUMPBIN+:} false; then :
7141   $as_echo_n "(cached) " >&6
7142 else
7143   if test -n "$DUMPBIN"; then
7144   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7145 else
7146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7147 for as_dir in $PATH
7148 do
7149   IFS=$as_save_IFS
7150   test -z "$as_dir" && as_dir=.
7151     for ac_exec_ext in '' $ac_executable_extensions; do
7152   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7153     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7154     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7155     break 2
7156   fi
7157 done
7158   done
7159 IFS=$as_save_IFS
7160
7161 fi
7162 fi
7163 DUMPBIN=$ac_cv_prog_DUMPBIN
7164 if test -n "$DUMPBIN"; then
7165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7166 $as_echo "$DUMPBIN" >&6; }
7167 else
7168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7169 $as_echo "no" >&6; }
7170 fi
7171
7172
7173     test -n "$DUMPBIN" && break
7174   done
7175 fi
7176 if test -z "$DUMPBIN"; then
7177   ac_ct_DUMPBIN=$DUMPBIN
7178   for ac_prog in dumpbin "link -dump"
7179 do
7180   # Extract the first word of "$ac_prog", so it can be a program name with args.
7181 set dummy $ac_prog; ac_word=$2
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7183 $as_echo_n "checking for $ac_word... " >&6; }
7184 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7185   $as_echo_n "(cached) " >&6
7186 else
7187   if test -n "$ac_ct_DUMPBIN"; then
7188   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7189 else
7190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7191 for as_dir in $PATH
7192 do
7193   IFS=$as_save_IFS
7194   test -z "$as_dir" && as_dir=.
7195     for ac_exec_ext in '' $ac_executable_extensions; do
7196   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7197     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7198     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7199     break 2
7200   fi
7201 done
7202   done
7203 IFS=$as_save_IFS
7204
7205 fi
7206 fi
7207 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7208 if test -n "$ac_ct_DUMPBIN"; then
7209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7210 $as_echo "$ac_ct_DUMPBIN" >&6; }
7211 else
7212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7213 $as_echo "no" >&6; }
7214 fi
7215
7216
7217   test -n "$ac_ct_DUMPBIN" && break
7218 done
7219
7220   if test "x$ac_ct_DUMPBIN" = x; then
7221     DUMPBIN=":"
7222   else
7223     case $cross_compiling:$ac_tool_warned in
7224 yes:)
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7226 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7227 ac_tool_warned=yes ;;
7228 esac
7229     DUMPBIN=$ac_ct_DUMPBIN
7230   fi
7231 fi
7232
7233     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7234     *COFF*)
7235       DUMPBIN="$DUMPBIN -symbols"
7236       ;;
7237     *)
7238       DUMPBIN=:
7239       ;;
7240     esac
7241   fi
7242
7243   if test "$DUMPBIN" != ":"; then
7244     NM="$DUMPBIN"
7245   fi
7246 fi
7247 test -z "$NM" && NM=nm
7248
7249
7250
7251
7252
7253
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7255 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7256 if ${lt_cv_nm_interface+:} false; then :
7257   $as_echo_n "(cached) " >&6
7258 else
7259   lt_cv_nm_interface="BSD nm"
7260   echo "int some_variable = 0;" > conftest.$ac_ext
7261   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7262   (eval "$ac_compile" 2>conftest.err)
7263   cat conftest.err >&5
7264   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7265   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7266   cat conftest.err >&5
7267   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7268   cat conftest.out >&5
7269   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7270     lt_cv_nm_interface="MS dumpbin"
7271   fi
7272   rm -f conftest*
7273 fi
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7275 $as_echo "$lt_cv_nm_interface" >&6; }
7276
7277 # find the maximum length of command line arguments
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7279 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7280 if ${lt_cv_sys_max_cmd_len+:} false; then :
7281   $as_echo_n "(cached) " >&6
7282 else
7283     i=0
7284   teststring="ABCD"
7285
7286   case $build_os in
7287   msdosdjgpp*)
7288     # On DJGPP, this test can blow up pretty badly due to problems in libc
7289     # (any single argument exceeding 2000 bytes causes a buffer overrun
7290     # during glob expansion).  Even if it were fixed, the result of this
7291     # check would be larger than it should be.
7292     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7293     ;;
7294
7295   gnu*)
7296     # Under GNU Hurd, this test is not required because there is
7297     # no limit to the length of command line arguments.
7298     # Libtool will interpret -1 as no limit whatsoever
7299     lt_cv_sys_max_cmd_len=-1;
7300     ;;
7301
7302   cygwin* | mingw* | cegcc*)
7303     # On Win9x/ME, this test blows up -- it succeeds, but takes
7304     # about 5 minutes as the teststring grows exponentially.
7305     # Worse, since 9x/ME are not pre-emptively multitasking,
7306     # you end up with a "frozen" computer, even though with patience
7307     # the test eventually succeeds (with a max line length of 256k).
7308     # Instead, let's just punt: use the minimum linelength reported by
7309     # all of the supported platforms: 8192 (on NT/2K/XP).
7310     lt_cv_sys_max_cmd_len=8192;
7311     ;;
7312
7313   mint*)
7314     # On MiNT this can take a long time and run out of memory.
7315     lt_cv_sys_max_cmd_len=8192;
7316     ;;
7317
7318   amigaos*)
7319     # On AmigaOS with pdksh, this test takes hours, literally.
7320     # So we just punt and use a minimum line length of 8192.
7321     lt_cv_sys_max_cmd_len=8192;
7322     ;;
7323
7324   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7325     # This has been around since 386BSD, at least.  Likely further.
7326     if test -x /sbin/sysctl; then
7327       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7328     elif test -x /usr/sbin/sysctl; then
7329       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7330     else
7331       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7332     fi
7333     # And add a safety zone
7334     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7335     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7336     ;;
7337
7338   interix*)
7339     # We know the value 262144 and hardcode it with a safety zone (like BSD)
7340     lt_cv_sys_max_cmd_len=196608
7341     ;;
7342
7343   osf*)
7344     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7345     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7346     # nice to cause kernel panics so lets avoid the loop below.
7347     # First set a reasonable default.
7348     lt_cv_sys_max_cmd_len=16384
7349     #
7350     if test -x /sbin/sysconfig; then
7351       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7352         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7353       esac
7354     fi
7355     ;;
7356   sco3.2v5*)
7357     lt_cv_sys_max_cmd_len=102400
7358     ;;
7359   sysv5* | sco5v6* | sysv4.2uw2*)
7360     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7361     if test -n "$kargmax"; then
7362       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
7363     else
7364       lt_cv_sys_max_cmd_len=32768
7365     fi
7366     ;;
7367   *)
7368     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7369     if test -n "$lt_cv_sys_max_cmd_len"; then
7370       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7371       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7372     else
7373       # Make teststring a little bigger before we do anything with it.
7374       # a 1K string should be a reasonable start.
7375       for i in 1 2 3 4 5 6 7 8 ; do
7376         teststring=$teststring$teststring
7377       done
7378       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7379       # If test is not a shell built-in, we'll probably end up computing a
7380       # maximum length that is only half of the actual maximum length, but
7381       # we can't tell.
7382       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
7383                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7384               test $i != 17 # 1/2 MB should be enough
7385       do
7386         i=`expr $i + 1`
7387         teststring=$teststring$teststring
7388       done
7389       # Only check the string length outside the loop.
7390       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7391       teststring=
7392       # Add a significant safety factor because C++ compilers can tack on
7393       # massive amounts of additional arguments before passing them to the
7394       # linker.  It appears as though 1/2 is a usable value.
7395       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7396     fi
7397     ;;
7398   esac
7399
7400 fi
7401
7402 if test -n $lt_cv_sys_max_cmd_len ; then
7403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7404 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7405 else
7406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7407 $as_echo "none" >&6; }
7408 fi
7409 max_cmd_len=$lt_cv_sys_max_cmd_len
7410
7411
7412
7413
7414
7415
7416 : ${CP="cp -f"}
7417 : ${MV="mv -f"}
7418 : ${RM="rm -f"}
7419
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7421 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7422 # Try some XSI features
7423 xsi_shell=no
7424 ( _lt_dummy="a/b/c"
7425   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7426       = c,a/b,b/c, \
7427     && eval 'test $(( 1 + 1 )) -eq 2 \
7428     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7429   && xsi_shell=yes
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7431 $as_echo "$xsi_shell" >&6; }
7432
7433
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7435 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7436 lt_shell_append=no
7437 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7438     >/dev/null 2>&1 \
7439   && lt_shell_append=yes
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7441 $as_echo "$lt_shell_append" >&6; }
7442
7443
7444 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7445   lt_unset=unset
7446 else
7447   lt_unset=false
7448 fi
7449
7450
7451
7452
7453
7454 # test EBCDIC or ASCII
7455 case `echo X|tr X '\101'` in
7456  A) # ASCII based system
7457     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7458   lt_SP2NL='tr \040 \012'
7459   lt_NL2SP='tr \015\012 \040\040'
7460   ;;
7461  *) # EBCDIC based system
7462   lt_SP2NL='tr \100 \n'
7463   lt_NL2SP='tr \r\n \100\100'
7464   ;;
7465 esac
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7476 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7477 if ${lt_cv_to_host_file_cmd+:} false; then :
7478   $as_echo_n "(cached) " >&6
7479 else
7480   case $host in
7481   *-*-mingw* )
7482     case $build in
7483       *-*-mingw* ) # actually msys
7484         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7485         ;;
7486       *-*-cygwin* )
7487         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7488         ;;
7489       * ) # otherwise, assume *nix
7490         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7491         ;;
7492     esac
7493     ;;
7494   *-*-cygwin* )
7495     case $build in
7496       *-*-mingw* ) # actually msys
7497         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7498         ;;
7499       *-*-cygwin* )
7500         lt_cv_to_host_file_cmd=func_convert_file_noop
7501         ;;
7502       * ) # otherwise, assume *nix
7503         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7504         ;;
7505     esac
7506     ;;
7507   * ) # unhandled hosts (and "normal" native builds)
7508     lt_cv_to_host_file_cmd=func_convert_file_noop
7509     ;;
7510 esac
7511
7512 fi
7513
7514 to_host_file_cmd=$lt_cv_to_host_file_cmd
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7516 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7517
7518
7519
7520
7521
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7523 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7524 if ${lt_cv_to_tool_file_cmd+:} false; then :
7525   $as_echo_n "(cached) " >&6
7526 else
7527   #assume ordinary cross tools, or native build.
7528 lt_cv_to_tool_file_cmd=func_convert_file_noop
7529 case $host in
7530   *-*-mingw* )
7531     case $build in
7532       *-*-mingw* ) # actually msys
7533         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7534         ;;
7535     esac
7536     ;;
7537 esac
7538
7539 fi
7540
7541 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7543 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7544
7545
7546
7547
7548
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7550 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7551 if ${lt_cv_ld_reload_flag+:} false; then :
7552   $as_echo_n "(cached) " >&6
7553 else
7554   lt_cv_ld_reload_flag='-r'
7555 fi
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7557 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7558 reload_flag=$lt_cv_ld_reload_flag
7559 case $reload_flag in
7560 "" | " "*) ;;
7561 *) reload_flag=" $reload_flag" ;;
7562 esac
7563 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7564 case $host_os in
7565   cygwin* | mingw* | pw32* | cegcc*)
7566     if test "$GCC" != yes; then
7567       reload_cmds=false
7568     fi
7569     ;;
7570   darwin*)
7571     if test "$GCC" = yes; then
7572       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7573     else
7574       reload_cmds='$LD$reload_flag -o $output$reload_objs'
7575     fi
7576     ;;
7577 esac
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587 if test -n "$ac_tool_prefix"; then
7588   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7589 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7591 $as_echo_n "checking for $ac_word... " >&6; }
7592 if ${ac_cv_prog_OBJDUMP+:} false; then :
7593   $as_echo_n "(cached) " >&6
7594 else
7595   if test -n "$OBJDUMP"; then
7596   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7597 else
7598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7599 for as_dir in $PATH
7600 do
7601   IFS=$as_save_IFS
7602   test -z "$as_dir" && as_dir=.
7603     for ac_exec_ext in '' $ac_executable_extensions; do
7604   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7605     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7606     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7607     break 2
7608   fi
7609 done
7610   done
7611 IFS=$as_save_IFS
7612
7613 fi
7614 fi
7615 OBJDUMP=$ac_cv_prog_OBJDUMP
7616 if test -n "$OBJDUMP"; then
7617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7618 $as_echo "$OBJDUMP" >&6; }
7619 else
7620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7621 $as_echo "no" >&6; }
7622 fi
7623
7624
7625 fi
7626 if test -z "$ac_cv_prog_OBJDUMP"; then
7627   ac_ct_OBJDUMP=$OBJDUMP
7628   # Extract the first word of "objdump", so it can be a program name with args.
7629 set dummy objdump; ac_word=$2
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7631 $as_echo_n "checking for $ac_word... " >&6; }
7632 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7633   $as_echo_n "(cached) " >&6
7634 else
7635   if test -n "$ac_ct_OBJDUMP"; then
7636   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7637 else
7638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7639 for as_dir in $PATH
7640 do
7641   IFS=$as_save_IFS
7642   test -z "$as_dir" && as_dir=.
7643     for ac_exec_ext in '' $ac_executable_extensions; do
7644   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7645     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7646     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7647     break 2
7648   fi
7649 done
7650   done
7651 IFS=$as_save_IFS
7652
7653 fi
7654 fi
7655 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7656 if test -n "$ac_ct_OBJDUMP"; then
7657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7658 $as_echo "$ac_ct_OBJDUMP" >&6; }
7659 else
7660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7661 $as_echo "no" >&6; }
7662 fi
7663
7664   if test "x$ac_ct_OBJDUMP" = x; then
7665     OBJDUMP="false"
7666   else
7667     case $cross_compiling:$ac_tool_warned in
7668 yes:)
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7670 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7671 ac_tool_warned=yes ;;
7672 esac
7673     OBJDUMP=$ac_ct_OBJDUMP
7674   fi
7675 else
7676   OBJDUMP="$ac_cv_prog_OBJDUMP"
7677 fi
7678
7679 test -z "$OBJDUMP" && OBJDUMP=objdump
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7690 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7691 if ${lt_cv_deplibs_check_method+:} false; then :
7692   $as_echo_n "(cached) " >&6
7693 else
7694   lt_cv_file_magic_cmd='$MAGIC_CMD'
7695 lt_cv_file_magic_test_file=
7696 lt_cv_deplibs_check_method='unknown'
7697 # Need to set the preceding variable on all platforms that support
7698 # interlibrary dependencies.
7699 # 'none' -- dependencies not supported.
7700 # `unknown' -- same as none, but documents that we really don't know.
7701 # 'pass_all' -- all dependencies passed with no checks.
7702 # 'test_compile' -- check by making test program.
7703 # 'file_magic [[regex]]' -- check by looking for files in library path
7704 # which responds to the $file_magic_cmd with a given extended regex.
7705 # If you have `file' or equivalent on your system and you're not sure
7706 # whether `pass_all' will *always* work, you probably want this one.
7707
7708 case $host_os in
7709 aix[4-9]*)
7710   lt_cv_deplibs_check_method=pass_all
7711   ;;
7712
7713 beos*)
7714   lt_cv_deplibs_check_method=pass_all
7715   ;;
7716
7717 bsdi[45]*)
7718   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7719   lt_cv_file_magic_cmd='/usr/bin/file -L'
7720   lt_cv_file_magic_test_file=/shlib/libc.so
7721   ;;
7722
7723 cygwin*)
7724   # func_win32_libid is a shell function defined in ltmain.sh
7725   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7726   lt_cv_file_magic_cmd='func_win32_libid'
7727   ;;
7728
7729 mingw* | pw32*)
7730   # Base MSYS/MinGW do not provide the 'file' command needed by
7731   # func_win32_libid shell function, so use a weaker test based on 'objdump',
7732   # unless we find 'file', for example because we are cross-compiling.
7733   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7734   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7735     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7736     lt_cv_file_magic_cmd='func_win32_libid'
7737   else
7738     # Keep this pattern in sync with the one in func_win32_libid.
7739     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7740     lt_cv_file_magic_cmd='$OBJDUMP -f'
7741   fi
7742   ;;
7743
7744 cegcc*)
7745   # use the weaker test based on 'objdump'. See mingw*.
7746   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7747   lt_cv_file_magic_cmd='$OBJDUMP -f'
7748   ;;
7749
7750 darwin* | rhapsody*)
7751   lt_cv_deplibs_check_method=pass_all
7752   ;;
7753
7754 freebsd* | dragonfly*)
7755   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7756     case $host_cpu in
7757     i*86 )
7758       # Not sure whether the presence of OpenBSD here was a mistake.
7759       # Let's accept both of them until this is cleared up.
7760       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7761       lt_cv_file_magic_cmd=/usr/bin/file
7762       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7763       ;;
7764     esac
7765   else
7766     lt_cv_deplibs_check_method=pass_all
7767   fi
7768   ;;
7769
7770 gnu*)
7771   lt_cv_deplibs_check_method=pass_all
7772   ;;
7773
7774 haiku*)
7775   lt_cv_deplibs_check_method=pass_all
7776   ;;
7777
7778 hpux10.20* | hpux11*)
7779   lt_cv_file_magic_cmd=/usr/bin/file
7780   case $host_cpu in
7781   ia64*)
7782     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7783     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7784     ;;
7785   hppa*64*)
7786     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]'
7787     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7788     ;;
7789   *)
7790     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7791     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7792     ;;
7793   esac
7794   ;;
7795
7796 interix[3-9]*)
7797   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7798   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7799   ;;
7800
7801 irix5* | irix6* | nonstopux*)
7802   case $LD in
7803   *-32|*"-32 ") libmagic=32-bit;;
7804   *-n32|*"-n32 ") libmagic=N32;;
7805   *-64|*"-64 ") libmagic=64-bit;;
7806   *) libmagic=never-match;;
7807   esac
7808   lt_cv_deplibs_check_method=pass_all
7809   ;;
7810
7811 # This must be Linux ELF.
7812 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7813   lt_cv_deplibs_check_method=pass_all
7814   ;;
7815
7816 netbsd*)
7817   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7818     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7819   else
7820     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7821   fi
7822   ;;
7823
7824 newos6*)
7825   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7826   lt_cv_file_magic_cmd=/usr/bin/file
7827   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7828   ;;
7829
7830 *nto* | *qnx*)
7831   lt_cv_deplibs_check_method=pass_all
7832   ;;
7833
7834 openbsd*)
7835   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7836     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7837   else
7838     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7839   fi
7840   ;;
7841
7842 osf3* | osf4* | osf5*)
7843   lt_cv_deplibs_check_method=pass_all
7844   ;;
7845
7846 rdos*)
7847   lt_cv_deplibs_check_method=pass_all
7848   ;;
7849
7850 solaris*)
7851   lt_cv_deplibs_check_method=pass_all
7852   ;;
7853
7854 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7855   lt_cv_deplibs_check_method=pass_all
7856   ;;
7857
7858 sysv4 | sysv4.3*)
7859   case $host_vendor in
7860   motorola)
7861     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]'
7862     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7863     ;;
7864   ncr)
7865     lt_cv_deplibs_check_method=pass_all
7866     ;;
7867   sequent)
7868     lt_cv_file_magic_cmd='/bin/file'
7869     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7870     ;;
7871   sni)
7872     lt_cv_file_magic_cmd='/bin/file'
7873     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7874     lt_cv_file_magic_test_file=/lib/libc.so
7875     ;;
7876   siemens)
7877     lt_cv_deplibs_check_method=pass_all
7878     ;;
7879   pc)
7880     lt_cv_deplibs_check_method=pass_all
7881     ;;
7882   esac
7883   ;;
7884
7885 tpf*)
7886   lt_cv_deplibs_check_method=pass_all
7887   ;;
7888 esac
7889
7890 fi
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7892 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7893
7894 file_magic_glob=
7895 want_nocaseglob=no
7896 if test "$build" = "$host"; then
7897   case $host_os in
7898   mingw* | pw32*)
7899     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7900       want_nocaseglob=yes
7901     else
7902       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7903     fi
7904     ;;
7905   esac
7906 fi
7907
7908 file_magic_cmd=$lt_cv_file_magic_cmd
7909 deplibs_check_method=$lt_cv_deplibs_check_method
7910 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933 if test -n "$ac_tool_prefix"; then
7934   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7935 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7937 $as_echo_n "checking for $ac_word... " >&6; }
7938 if ${ac_cv_prog_DLLTOOL+:} false; then :
7939   $as_echo_n "(cached) " >&6
7940 else
7941   if test -n "$DLLTOOL"; then
7942   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7943 else
7944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7945 for as_dir in $PATH
7946 do
7947   IFS=$as_save_IFS
7948   test -z "$as_dir" && as_dir=.
7949     for ac_exec_ext in '' $ac_executable_extensions; do
7950   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7951     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7952     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7953     break 2
7954   fi
7955 done
7956   done
7957 IFS=$as_save_IFS
7958
7959 fi
7960 fi
7961 DLLTOOL=$ac_cv_prog_DLLTOOL
7962 if test -n "$DLLTOOL"; then
7963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7964 $as_echo "$DLLTOOL" >&6; }
7965 else
7966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7967 $as_echo "no" >&6; }
7968 fi
7969
7970
7971 fi
7972 if test -z "$ac_cv_prog_DLLTOOL"; then
7973   ac_ct_DLLTOOL=$DLLTOOL
7974   # Extract the first word of "dlltool", so it can be a program name with args.
7975 set dummy dlltool; ac_word=$2
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7977 $as_echo_n "checking for $ac_word... " >&6; }
7978 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7979   $as_echo_n "(cached) " >&6
7980 else
7981   if test -n "$ac_ct_DLLTOOL"; then
7982   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7983 else
7984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7985 for as_dir in $PATH
7986 do
7987   IFS=$as_save_IFS
7988   test -z "$as_dir" && as_dir=.
7989     for ac_exec_ext in '' $ac_executable_extensions; do
7990   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7991     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7992     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7993     break 2
7994   fi
7995 done
7996   done
7997 IFS=$as_save_IFS
7998
7999 fi
8000 fi
8001 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8002 if test -n "$ac_ct_DLLTOOL"; then
8003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8004 $as_echo "$ac_ct_DLLTOOL" >&6; }
8005 else
8006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8007 $as_echo "no" >&6; }
8008 fi
8009
8010   if test "x$ac_ct_DLLTOOL" = x; then
8011     DLLTOOL="false"
8012   else
8013     case $cross_compiling:$ac_tool_warned in
8014 yes:)
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8016 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8017 ac_tool_warned=yes ;;
8018 esac
8019     DLLTOOL=$ac_ct_DLLTOOL
8020   fi
8021 else
8022   DLLTOOL="$ac_cv_prog_DLLTOOL"
8023 fi
8024
8025 test -z "$DLLTOOL" && DLLTOOL=dlltool
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8037 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8038 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8039   $as_echo_n "(cached) " >&6
8040 else
8041   lt_cv_sharedlib_from_linklib_cmd='unknown'
8042
8043 case $host_os in
8044 cygwin* | mingw* | pw32* | cegcc*)
8045   # two different shell functions defined in ltmain.sh
8046   # decide which to use based on capabilities of $DLLTOOL
8047   case `$DLLTOOL --help 2>&1` in
8048   *--identify-strict*)
8049     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8050     ;;
8051   *)
8052     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8053     ;;
8054   esac
8055   ;;
8056 *)
8057   # fallback: assume linklib IS sharedlib
8058   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
8059   ;;
8060 esac
8061
8062 fi
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8064 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8065 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8066 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8067
8068
8069
8070
8071
8072
8073
8074 if test -n "$ac_tool_prefix"; then
8075   for ac_prog in ar
8076   do
8077     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8078 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8080 $as_echo_n "checking for $ac_word... " >&6; }
8081 if ${ac_cv_prog_AR+:} false; then :
8082   $as_echo_n "(cached) " >&6
8083 else
8084   if test -n "$AR"; then
8085   ac_cv_prog_AR="$AR" # Let the user override the test.
8086 else
8087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8088 for as_dir in $PATH
8089 do
8090   IFS=$as_save_IFS
8091   test -z "$as_dir" && as_dir=.
8092     for ac_exec_ext in '' $ac_executable_extensions; do
8093   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8094     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8095     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8096     break 2
8097   fi
8098 done
8099   done
8100 IFS=$as_save_IFS
8101
8102 fi
8103 fi
8104 AR=$ac_cv_prog_AR
8105 if test -n "$AR"; then
8106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8107 $as_echo "$AR" >&6; }
8108 else
8109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8110 $as_echo "no" >&6; }
8111 fi
8112
8113
8114     test -n "$AR" && break
8115   done
8116 fi
8117 if test -z "$AR"; then
8118   ac_ct_AR=$AR
8119   for ac_prog in ar
8120 do
8121   # Extract the first word of "$ac_prog", so it can be a program name with args.
8122 set dummy $ac_prog; ac_word=$2
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8124 $as_echo_n "checking for $ac_word... " >&6; }
8125 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8126   $as_echo_n "(cached) " >&6
8127 else
8128   if test -n "$ac_ct_AR"; then
8129   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8130 else
8131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8132 for as_dir in $PATH
8133 do
8134   IFS=$as_save_IFS
8135   test -z "$as_dir" && as_dir=.
8136     for ac_exec_ext in '' $ac_executable_extensions; do
8137   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8138     ac_cv_prog_ac_ct_AR="$ac_prog"
8139     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8140     break 2
8141   fi
8142 done
8143   done
8144 IFS=$as_save_IFS
8145
8146 fi
8147 fi
8148 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8149 if test -n "$ac_ct_AR"; then
8150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8151 $as_echo "$ac_ct_AR" >&6; }
8152 else
8153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8154 $as_echo "no" >&6; }
8155 fi
8156
8157
8158   test -n "$ac_ct_AR" && break
8159 done
8160
8161   if test "x$ac_ct_AR" = x; then
8162     AR="false"
8163   else
8164     case $cross_compiling:$ac_tool_warned in
8165 yes:)
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8167 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8168 ac_tool_warned=yes ;;
8169 esac
8170     AR=$ac_ct_AR
8171   fi
8172 fi
8173
8174 : ${AR=ar}
8175 : ${AR_FLAGS=cru}
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8188 $as_echo_n "checking for archiver @FILE support... " >&6; }
8189 if ${lt_cv_ar_at_file+:} false; then :
8190   $as_echo_n "(cached) " >&6
8191 else
8192   lt_cv_ar_at_file=no
8193    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8194 /* end confdefs.h.  */
8195
8196 int
8197 main ()
8198 {
8199
8200   ;
8201   return 0;
8202 }
8203 _ACEOF
8204 if ac_fn_c_try_compile "$LINENO"; then :
8205   echo conftest.$ac_objext > conftest.lst
8206       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8207       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8208   (eval $lt_ar_try) 2>&5
8209   ac_status=$?
8210   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8211   test $ac_status = 0; }
8212       if test "$ac_status" -eq 0; then
8213         # Ensure the archiver fails upon bogus file names.
8214         rm -f conftest.$ac_objext libconftest.a
8215         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8216   (eval $lt_ar_try) 2>&5
8217   ac_status=$?
8218   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8219   test $ac_status = 0; }
8220         if test "$ac_status" -ne 0; then
8221           lt_cv_ar_at_file=@
8222         fi
8223       fi
8224       rm -f conftest.* libconftest.a
8225
8226 fi
8227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8228
8229 fi
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8231 $as_echo "$lt_cv_ar_at_file" >&6; }
8232
8233 if test "x$lt_cv_ar_at_file" = xno; then
8234   archiver_list_spec=
8235 else
8236   archiver_list_spec=$lt_cv_ar_at_file
8237 fi
8238
8239
8240
8241
8242
8243
8244
8245 if test -n "$ac_tool_prefix"; then
8246   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8247 set dummy ${ac_tool_prefix}strip; ac_word=$2
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8249 $as_echo_n "checking for $ac_word... " >&6; }
8250 if ${ac_cv_prog_STRIP+:} false; then :
8251   $as_echo_n "(cached) " >&6
8252 else
8253   if test -n "$STRIP"; then
8254   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8255 else
8256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8257 for as_dir in $PATH
8258 do
8259   IFS=$as_save_IFS
8260   test -z "$as_dir" && as_dir=.
8261     for ac_exec_ext in '' $ac_executable_extensions; do
8262   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8263     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8264     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8265     break 2
8266   fi
8267 done
8268   done
8269 IFS=$as_save_IFS
8270
8271 fi
8272 fi
8273 STRIP=$ac_cv_prog_STRIP
8274 if test -n "$STRIP"; then
8275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8276 $as_echo "$STRIP" >&6; }
8277 else
8278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8279 $as_echo "no" >&6; }
8280 fi
8281
8282
8283 fi
8284 if test -z "$ac_cv_prog_STRIP"; then
8285   ac_ct_STRIP=$STRIP
8286   # Extract the first word of "strip", so it can be a program name with args.
8287 set dummy strip; ac_word=$2
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8289 $as_echo_n "checking for $ac_word... " >&6; }
8290 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8291   $as_echo_n "(cached) " >&6
8292 else
8293   if test -n "$ac_ct_STRIP"; then
8294   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8295 else
8296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8297 for as_dir in $PATH
8298 do
8299   IFS=$as_save_IFS
8300   test -z "$as_dir" && as_dir=.
8301     for ac_exec_ext in '' $ac_executable_extensions; do
8302   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8303     ac_cv_prog_ac_ct_STRIP="strip"
8304     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8305     break 2
8306   fi
8307 done
8308   done
8309 IFS=$as_save_IFS
8310
8311 fi
8312 fi
8313 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8314 if test -n "$ac_ct_STRIP"; then
8315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8316 $as_echo "$ac_ct_STRIP" >&6; }
8317 else
8318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8319 $as_echo "no" >&6; }
8320 fi
8321
8322   if test "x$ac_ct_STRIP" = x; then
8323     STRIP=":"
8324   else
8325     case $cross_compiling:$ac_tool_warned in
8326 yes:)
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8328 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8329 ac_tool_warned=yes ;;
8330 esac
8331     STRIP=$ac_ct_STRIP
8332   fi
8333 else
8334   STRIP="$ac_cv_prog_STRIP"
8335 fi
8336
8337 test -z "$STRIP" && STRIP=:
8338
8339
8340
8341
8342
8343
8344 if test -n "$ac_tool_prefix"; then
8345   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8346 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8348 $as_echo_n "checking for $ac_word... " >&6; }
8349 if ${ac_cv_prog_RANLIB+:} false; then :
8350   $as_echo_n "(cached) " >&6
8351 else
8352   if test -n "$RANLIB"; then
8353   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8354 else
8355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8356 for as_dir in $PATH
8357 do
8358   IFS=$as_save_IFS
8359   test -z "$as_dir" && as_dir=.
8360     for ac_exec_ext in '' $ac_executable_extensions; do
8361   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8362     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8363     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8364     break 2
8365   fi
8366 done
8367   done
8368 IFS=$as_save_IFS
8369
8370 fi
8371 fi
8372 RANLIB=$ac_cv_prog_RANLIB
8373 if test -n "$RANLIB"; then
8374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8375 $as_echo "$RANLIB" >&6; }
8376 else
8377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8378 $as_echo "no" >&6; }
8379 fi
8380
8381
8382 fi
8383 if test -z "$ac_cv_prog_RANLIB"; then
8384   ac_ct_RANLIB=$RANLIB
8385   # Extract the first word of "ranlib", so it can be a program name with args.
8386 set dummy ranlib; ac_word=$2
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8388 $as_echo_n "checking for $ac_word... " >&6; }
8389 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8390   $as_echo_n "(cached) " >&6
8391 else
8392   if test -n "$ac_ct_RANLIB"; then
8393   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8394 else
8395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8396 for as_dir in $PATH
8397 do
8398   IFS=$as_save_IFS
8399   test -z "$as_dir" && as_dir=.
8400     for ac_exec_ext in '' $ac_executable_extensions; do
8401   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8402     ac_cv_prog_ac_ct_RANLIB="ranlib"
8403     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8404     break 2
8405   fi
8406 done
8407   done
8408 IFS=$as_save_IFS
8409
8410 fi
8411 fi
8412 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8413 if test -n "$ac_ct_RANLIB"; then
8414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8415 $as_echo "$ac_ct_RANLIB" >&6; }
8416 else
8417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8418 $as_echo "no" >&6; }
8419 fi
8420
8421   if test "x$ac_ct_RANLIB" = x; then
8422     RANLIB=":"
8423   else
8424     case $cross_compiling:$ac_tool_warned in
8425 yes:)
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8427 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8428 ac_tool_warned=yes ;;
8429 esac
8430     RANLIB=$ac_ct_RANLIB
8431   fi
8432 else
8433   RANLIB="$ac_cv_prog_RANLIB"
8434 fi
8435
8436 test -z "$RANLIB" && RANLIB=:
8437
8438
8439
8440
8441
8442
8443 # Determine commands to create old-style static archives.
8444 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8445 old_postinstall_cmds='chmod 644 $oldlib'
8446 old_postuninstall_cmds=
8447
8448 if test -n "$RANLIB"; then
8449   case $host_os in
8450   openbsd*)
8451     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8452     ;;
8453   *)
8454     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8455     ;;
8456   esac
8457   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8458 fi
8459
8460 case $host_os in
8461   darwin*)
8462     lock_old_archive_extraction=yes ;;
8463   *)
8464     lock_old_archive_extraction=no ;;
8465 esac
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505 # If no C compiler was specified, use CC.
8506 LTCC=${LTCC-"$CC"}
8507
8508 # If no C compiler flags were specified, use CFLAGS.
8509 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8510
8511 # Allow CC to be a program name with arguments.
8512 compiler=$CC
8513
8514
8515 # Check for command to grab the raw symbol name followed by C symbol from nm.
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8517 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8518 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8519   $as_echo_n "(cached) " >&6
8520 else
8521
8522 # These are sane defaults that work on at least a few old systems.
8523 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8524
8525 # Character class describing NM global symbol codes.
8526 symcode='[BCDEGRST]'
8527
8528 # Regexp to match symbols that can be accessed directly from C.
8529 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8530
8531 # Define system-specific variables.
8532 case $host_os in
8533 aix*)
8534   symcode='[BCDT]'
8535   ;;
8536 cygwin* | mingw* | pw32* | cegcc*)
8537   symcode='[ABCDGISTW]'
8538   ;;
8539 hpux*)
8540   if test "$host_cpu" = ia64; then
8541     symcode='[ABCDEGRST]'
8542   fi
8543   ;;
8544 irix* | nonstopux*)
8545   symcode='[BCDEGRST]'
8546   ;;
8547 osf*)
8548   symcode='[BCDEGQRST]'
8549   ;;
8550 solaris*)
8551   symcode='[BDRT]'
8552   ;;
8553 sco3.2v5*)
8554   symcode='[DT]'
8555   ;;
8556 sysv4.2uw2*)
8557   symcode='[DT]'
8558   ;;
8559 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8560   symcode='[ABDT]'
8561   ;;
8562 sysv4)
8563   symcode='[DFNSTU]'
8564   ;;
8565 esac
8566
8567 # If we're using GNU nm, then use its standard symbol codes.
8568 case `$NM -V 2>&1` in
8569 *GNU* | *'with BFD'*)
8570   symcode='[ABCDGIRSTW]' ;;
8571 esac
8572
8573 # Transform an extracted symbol line into a proper C declaration.
8574 # Some systems (esp. on ia64) link data and code symbols differently,
8575 # so use this general approach.
8576 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8577
8578 # Transform an extracted symbol line into symbol name and symbol address
8579 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
8580 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'"
8581
8582 # Handle CRLF in mingw tool chain
8583 opt_cr=
8584 case $build_os in
8585 mingw*)
8586   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8587   ;;
8588 esac
8589
8590 # Try without a prefix underscore, then with it.
8591 for ac_symprfx in "" "_"; do
8592
8593   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8594   symxfrm="\\1 $ac_symprfx\\2 \\2"
8595
8596   # Write the raw and C identifiers.
8597   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8598     # Fake it for dumpbin and say T for any non-static function
8599     # and D for any global variable.
8600     # Also find C++ and __fastcall symbols from MSVC++,
8601     # which start with @ or ?.
8602     lt_cv_sys_global_symbol_pipe="$AWK '"\
8603 "     {last_section=section; section=\$ 3};"\
8604 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8605 "     \$ 0!~/External *\|/{next};"\
8606 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8607 "     {if(hide[section]) next};"\
8608 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8609 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8610 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
8611 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8612 "     ' prfx=^$ac_symprfx"
8613   else
8614     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8615   fi
8616   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8617
8618   # Check to see that the pipe works correctly.
8619   pipe_works=no
8620
8621   rm -f conftest*
8622   cat > conftest.$ac_ext <<_LT_EOF
8623 #ifdef __cplusplus
8624 extern "C" {
8625 #endif
8626 char nm_test_var;
8627 void nm_test_func(void);
8628 void nm_test_func(void){}
8629 #ifdef __cplusplus
8630 }
8631 #endif
8632 int main(){nm_test_var='a';nm_test_func();return(0);}
8633 _LT_EOF
8634
8635   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8636   (eval $ac_compile) 2>&5
8637   ac_status=$?
8638   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8639   test $ac_status = 0; }; then
8640     # Now try to grab the symbols.
8641     nlist=conftest.nm
8642     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8643   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8644   ac_status=$?
8645   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8646   test $ac_status = 0; } && test -s "$nlist"; then
8647       # Try sorting and uniquifying the output.
8648       if sort "$nlist" | uniq > "$nlist"T; then
8649         mv -f "$nlist"T "$nlist"
8650       else
8651         rm -f "$nlist"T
8652       fi
8653
8654       # Make sure that we snagged all the symbols we need.
8655       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8656         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8657           cat <<_LT_EOF > conftest.$ac_ext
8658 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
8659 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8660 /* DATA imports from DLLs on WIN32 con't be const, because runtime
8661    relocations are performed -- see ld's documentation on pseudo-relocs.  */
8662 # define LT_DLSYM_CONST
8663 #elif defined(__osf__)
8664 /* This system does not cope well with relocations in const data.  */
8665 # define LT_DLSYM_CONST
8666 #else
8667 # define LT_DLSYM_CONST const
8668 #endif
8669
8670 #ifdef __cplusplus
8671 extern "C" {
8672 #endif
8673
8674 _LT_EOF
8675           # Now generate the symbol file.
8676           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8677
8678           cat <<_LT_EOF >> conftest.$ac_ext
8679
8680 /* The mapping between symbol names and symbols.  */
8681 LT_DLSYM_CONST struct {
8682   const char *name;
8683   void       *address;
8684 }
8685 lt__PROGRAM__LTX_preloaded_symbols[] =
8686 {
8687   { "@PROGRAM@", (void *) 0 },
8688 _LT_EOF
8689           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8690           cat <<\_LT_EOF >> conftest.$ac_ext
8691   {0, (void *) 0}
8692 };
8693
8694 /* This works around a problem in FreeBSD linker */
8695 #ifdef FREEBSD_WORKAROUND
8696 static const void *lt_preloaded_setup() {
8697   return lt__PROGRAM__LTX_preloaded_symbols;
8698 }
8699 #endif
8700
8701 #ifdef __cplusplus
8702 }
8703 #endif
8704 _LT_EOF
8705           # Now try linking the two files.
8706           mv conftest.$ac_objext conftstm.$ac_objext
8707           lt_globsym_save_LIBS=$LIBS
8708           lt_globsym_save_CFLAGS=$CFLAGS
8709           LIBS="conftstm.$ac_objext"
8710           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8711           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8712   (eval $ac_link) 2>&5
8713   ac_status=$?
8714   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8715   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8716             pipe_works=yes
8717           fi
8718           LIBS=$lt_globsym_save_LIBS
8719           CFLAGS=$lt_globsym_save_CFLAGS
8720         else
8721           echo "cannot find nm_test_func in $nlist" >&5
8722         fi
8723       else
8724         echo "cannot find nm_test_var in $nlist" >&5
8725       fi
8726     else
8727       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8728     fi
8729   else
8730     echo "$progname: failed program was:" >&5
8731     cat conftest.$ac_ext >&5
8732   fi
8733   rm -rf conftest* conftst*
8734
8735   # Do not use the global_symbol_pipe unless it works.
8736   if test "$pipe_works" = yes; then
8737     break
8738   else
8739     lt_cv_sys_global_symbol_pipe=
8740   fi
8741 done
8742
8743 fi
8744
8745 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8746   lt_cv_sys_global_symbol_to_cdecl=
8747 fi
8748 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8750 $as_echo "failed" >&6; }
8751 else
8752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8753 $as_echo "ok" >&6; }
8754 fi
8755
8756 # Response file support.
8757 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8758   nm_file_list_spec='@'
8759 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8760   nm_file_list_spec='@'
8761 fi
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8790 $as_echo_n "checking for sysroot... " >&6; }
8791
8792 # Check whether --with-sysroot was given.
8793 if test "${with_sysroot+set}" = set; then :
8794   withval=$with_sysroot;
8795 else
8796   with_sysroot=no
8797 fi
8798
8799
8800 lt_sysroot=
8801 case ${with_sysroot} in #(
8802  yes)
8803    if test "$GCC" = yes; then
8804      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8805    fi
8806    ;; #(
8807  /*)
8808    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8809    ;; #(
8810  no|'')
8811    ;; #(
8812  *)
8813    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8814 $as_echo "${with_sysroot}" >&6; }
8815    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8816    ;;
8817 esac
8818
8819  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8820 $as_echo "${lt_sysroot:-no}" >&6; }
8821
8822
8823
8824
8825
8826 # Check whether --enable-libtool-lock was given.
8827 if test "${enable_libtool_lock+set}" = set; then :
8828   enableval=$enable_libtool_lock;
8829 fi
8830
8831 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8832
8833 # Some flags need to be propagated to the compiler or linker for good
8834 # libtool support.
8835 case $host in
8836 ia64-*-hpux*)
8837   # Find out which ABI we are using.
8838   echo 'int i;' > conftest.$ac_ext
8839   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8840   (eval $ac_compile) 2>&5
8841   ac_status=$?
8842   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8843   test $ac_status = 0; }; then
8844     case `/usr/bin/file conftest.$ac_objext` in
8845       *ELF-32*)
8846         HPUX_IA64_MODE="32"
8847         ;;
8848       *ELF-64*)
8849         HPUX_IA64_MODE="64"
8850         ;;
8851     esac
8852   fi
8853   rm -rf conftest*
8854   ;;
8855 *-*-irix6*)
8856   # Find out which ABI we are using.
8857   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8858   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8859   (eval $ac_compile) 2>&5
8860   ac_status=$?
8861   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8862   test $ac_status = 0; }; then
8863     if test "$lt_cv_prog_gnu_ld" = yes; then
8864       case `/usr/bin/file conftest.$ac_objext` in
8865         *32-bit*)
8866           LD="${LD-ld} -melf32bsmip"
8867           ;;
8868         *N32*)
8869           LD="${LD-ld} -melf32bmipn32"
8870           ;;
8871         *64-bit*)
8872           LD="${LD-ld} -melf64bmip"
8873         ;;
8874       esac
8875     else
8876       case `/usr/bin/file conftest.$ac_objext` in
8877         *32-bit*)
8878           LD="${LD-ld} -32"
8879           ;;
8880         *N32*)
8881           LD="${LD-ld} -n32"
8882           ;;
8883         *64-bit*)
8884           LD="${LD-ld} -64"
8885           ;;
8886       esac
8887     fi
8888   fi
8889   rm -rf conftest*
8890   ;;
8891
8892 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8893 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8894   # Find out which ABI we are using.
8895   echo 'int i;' > conftest.$ac_ext
8896   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8897   (eval $ac_compile) 2>&5
8898   ac_status=$?
8899   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8900   test $ac_status = 0; }; then
8901     case `/usr/bin/file conftest.o` in
8902       *32-bit*)
8903         case $host in
8904           x86_64-*kfreebsd*-gnu)
8905             LD="${LD-ld} -m elf_i386_fbsd"
8906             ;;
8907           x86_64-*linux*)
8908             LD="${LD-ld} -m elf_i386"
8909             ;;
8910           ppc64-*linux*|powerpc64-*linux*)
8911             LD="${LD-ld} -m elf32ppclinux"
8912             ;;
8913           s390x-*linux*)
8914             LD="${LD-ld} -m elf_s390"
8915             ;;
8916           sparc64-*linux*)
8917             LD="${LD-ld} -m elf32_sparc"
8918             ;;
8919         esac
8920         ;;
8921       *64-bit*)
8922         case $host in
8923           x86_64-*kfreebsd*-gnu)
8924             LD="${LD-ld} -m elf_x86_64_fbsd"
8925             ;;
8926           x86_64-*linux*)
8927             LD="${LD-ld} -m elf_x86_64"
8928             ;;
8929           ppc*-*linux*|powerpc*-*linux*)
8930             LD="${LD-ld} -m elf64ppc"
8931             ;;
8932           s390*-*linux*|s390*-*tpf*)
8933             LD="${LD-ld} -m elf64_s390"
8934             ;;
8935           sparc*-*linux*)
8936             LD="${LD-ld} -m elf64_sparc"
8937             ;;
8938         esac
8939         ;;
8940     esac
8941   fi
8942   rm -rf conftest*
8943   ;;
8944
8945 *-*-sco3.2v5*)
8946   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8947   SAVE_CFLAGS="$CFLAGS"
8948   CFLAGS="$CFLAGS -belf"
8949   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8950 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8951 if ${lt_cv_cc_needs_belf+:} false; then :
8952   $as_echo_n "(cached) " >&6
8953 else
8954   ac_ext=c
8955 ac_cpp='$CPP $CPPFLAGS'
8956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8959
8960      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8961 /* end confdefs.h.  */
8962
8963 int
8964 main ()
8965 {
8966
8967   ;
8968   return 0;
8969 }
8970 _ACEOF
8971 if ac_fn_c_try_link "$LINENO"; then :
8972   lt_cv_cc_needs_belf=yes
8973 else
8974   lt_cv_cc_needs_belf=no
8975 fi
8976 rm -f core conftest.err conftest.$ac_objext \
8977     conftest$ac_exeext conftest.$ac_ext
8978      ac_ext=c
8979 ac_cpp='$CPP $CPPFLAGS'
8980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8983
8984 fi
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8986 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8987   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8988     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8989     CFLAGS="$SAVE_CFLAGS"
8990   fi
8991   ;;
8992 sparc*-*solaris*)
8993   # Find out which ABI we are using.
8994   echo 'int i;' > conftest.$ac_ext
8995   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8996   (eval $ac_compile) 2>&5
8997   ac_status=$?
8998   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8999   test $ac_status = 0; }; then
9000     case `/usr/bin/file conftest.o` in
9001     *64-bit*)
9002       case $lt_cv_prog_gnu_ld in
9003       yes*) LD="${LD-ld} -m elf64_sparc" ;;
9004       *)
9005         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9006           LD="${LD-ld} -64"
9007         fi
9008         ;;
9009       esac
9010       ;;
9011     esac
9012   fi
9013   rm -rf conftest*
9014   ;;
9015 esac
9016
9017 need_locks="$enable_libtool_lock"
9018
9019 if test -n "$ac_tool_prefix"; then
9020   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9021 set dummy ${ac_tool_prefix}mt; ac_word=$2
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9023 $as_echo_n "checking for $ac_word... " >&6; }
9024 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9025   $as_echo_n "(cached) " >&6
9026 else
9027   if test -n "$MANIFEST_TOOL"; then
9028   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9029 else
9030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9031 for as_dir in $PATH
9032 do
9033   IFS=$as_save_IFS
9034   test -z "$as_dir" && as_dir=.
9035     for ac_exec_ext in '' $ac_executable_extensions; do
9036   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9037     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9038     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9039     break 2
9040   fi
9041 done
9042   done
9043 IFS=$as_save_IFS
9044
9045 fi
9046 fi
9047 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9048 if test -n "$MANIFEST_TOOL"; then
9049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9050 $as_echo "$MANIFEST_TOOL" >&6; }
9051 else
9052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9053 $as_echo "no" >&6; }
9054 fi
9055
9056
9057 fi
9058 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9059   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9060   # Extract the first word of "mt", so it can be a program name with args.
9061 set dummy mt; ac_word=$2
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9063 $as_echo_n "checking for $ac_word... " >&6; }
9064 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9065   $as_echo_n "(cached) " >&6
9066 else
9067   if test -n "$ac_ct_MANIFEST_TOOL"; then
9068   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9069 else
9070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9071 for as_dir in $PATH
9072 do
9073   IFS=$as_save_IFS
9074   test -z "$as_dir" && as_dir=.
9075     for ac_exec_ext in '' $ac_executable_extensions; do
9076   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9077     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9078     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9079     break 2
9080   fi
9081 done
9082   done
9083 IFS=$as_save_IFS
9084
9085 fi
9086 fi
9087 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9088 if test -n "$ac_ct_MANIFEST_TOOL"; then
9089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9090 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9091 else
9092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9093 $as_echo "no" >&6; }
9094 fi
9095
9096   if test "x$ac_ct_MANIFEST_TOOL" = x; then
9097     MANIFEST_TOOL=":"
9098   else
9099     case $cross_compiling:$ac_tool_warned in
9100 yes:)
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9102 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9103 ac_tool_warned=yes ;;
9104 esac
9105     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9106   fi
9107 else
9108   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9109 fi
9110
9111 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9113 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9114 if ${lt_cv_path_mainfest_tool+:} false; then :
9115   $as_echo_n "(cached) " >&6
9116 else
9117   lt_cv_path_mainfest_tool=no
9118   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9119   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9120   cat conftest.err >&5
9121   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9122     lt_cv_path_mainfest_tool=yes
9123   fi
9124   rm -f conftest*
9125 fi
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9127 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9128 if test "x$lt_cv_path_mainfest_tool" != xyes; then
9129   MANIFEST_TOOL=:
9130 fi
9131
9132
9133
9134
9135
9136
9137   case $host_os in
9138     rhapsody* | darwin*)
9139     if test -n "$ac_tool_prefix"; then
9140   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9141 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9143 $as_echo_n "checking for $ac_word... " >&6; }
9144 if ${ac_cv_prog_DSYMUTIL+:} false; then :
9145   $as_echo_n "(cached) " >&6
9146 else
9147   if test -n "$DSYMUTIL"; then
9148   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9149 else
9150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9151 for as_dir in $PATH
9152 do
9153   IFS=$as_save_IFS
9154   test -z "$as_dir" && as_dir=.
9155     for ac_exec_ext in '' $ac_executable_extensions; do
9156   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9157     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9158     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9159     break 2
9160   fi
9161 done
9162   done
9163 IFS=$as_save_IFS
9164
9165 fi
9166 fi
9167 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9168 if test -n "$DSYMUTIL"; then
9169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9170 $as_echo "$DSYMUTIL" >&6; }
9171 else
9172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9173 $as_echo "no" >&6; }
9174 fi
9175
9176
9177 fi
9178 if test -z "$ac_cv_prog_DSYMUTIL"; then
9179   ac_ct_DSYMUTIL=$DSYMUTIL
9180   # Extract the first word of "dsymutil", so it can be a program name with args.
9181 set dummy dsymutil; ac_word=$2
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9183 $as_echo_n "checking for $ac_word... " >&6; }
9184 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9185   $as_echo_n "(cached) " >&6
9186 else
9187   if test -n "$ac_ct_DSYMUTIL"; then
9188   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9189 else
9190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9191 for as_dir in $PATH
9192 do
9193   IFS=$as_save_IFS
9194   test -z "$as_dir" && as_dir=.
9195     for ac_exec_ext in '' $ac_executable_extensions; do
9196   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9197     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9198     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9199     break 2
9200   fi
9201 done
9202   done
9203 IFS=$as_save_IFS
9204
9205 fi
9206 fi
9207 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9208 if test -n "$ac_ct_DSYMUTIL"; then
9209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9210 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9211 else
9212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9213 $as_echo "no" >&6; }
9214 fi
9215
9216   if test "x$ac_ct_DSYMUTIL" = x; then
9217     DSYMUTIL=":"
9218   else
9219     case $cross_compiling:$ac_tool_warned in
9220 yes:)
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9222 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9223 ac_tool_warned=yes ;;
9224 esac
9225     DSYMUTIL=$ac_ct_DSYMUTIL
9226   fi
9227 else
9228   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9229 fi
9230
9231     if test -n "$ac_tool_prefix"; then
9232   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9233 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9235 $as_echo_n "checking for $ac_word... " >&6; }
9236 if ${ac_cv_prog_NMEDIT+:} false; then :
9237   $as_echo_n "(cached) " >&6
9238 else
9239   if test -n "$NMEDIT"; then
9240   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9241 else
9242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9243 for as_dir in $PATH
9244 do
9245   IFS=$as_save_IFS
9246   test -z "$as_dir" && as_dir=.
9247     for ac_exec_ext in '' $ac_executable_extensions; do
9248   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9249     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9250     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9251     break 2
9252   fi
9253 done
9254   done
9255 IFS=$as_save_IFS
9256
9257 fi
9258 fi
9259 NMEDIT=$ac_cv_prog_NMEDIT
9260 if test -n "$NMEDIT"; then
9261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9262 $as_echo "$NMEDIT" >&6; }
9263 else
9264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9265 $as_echo "no" >&6; }
9266 fi
9267
9268
9269 fi
9270 if test -z "$ac_cv_prog_NMEDIT"; then
9271   ac_ct_NMEDIT=$NMEDIT
9272   # Extract the first word of "nmedit", so it can be a program name with args.
9273 set dummy nmedit; ac_word=$2
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9275 $as_echo_n "checking for $ac_word... " >&6; }
9276 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9277   $as_echo_n "(cached) " >&6
9278 else
9279   if test -n "$ac_ct_NMEDIT"; then
9280   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9281 else
9282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9283 for as_dir in $PATH
9284 do
9285   IFS=$as_save_IFS
9286   test -z "$as_dir" && as_dir=.
9287     for ac_exec_ext in '' $ac_executable_extensions; do
9288   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9289     ac_cv_prog_ac_ct_NMEDIT="nmedit"
9290     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9291     break 2
9292   fi
9293 done
9294   done
9295 IFS=$as_save_IFS
9296
9297 fi
9298 fi
9299 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9300 if test -n "$ac_ct_NMEDIT"; then
9301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9302 $as_echo "$ac_ct_NMEDIT" >&6; }
9303 else
9304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9305 $as_echo "no" >&6; }
9306 fi
9307
9308   if test "x$ac_ct_NMEDIT" = x; then
9309     NMEDIT=":"
9310   else
9311     case $cross_compiling:$ac_tool_warned in
9312 yes:)
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9314 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9315 ac_tool_warned=yes ;;
9316 esac
9317     NMEDIT=$ac_ct_NMEDIT
9318   fi
9319 else
9320   NMEDIT="$ac_cv_prog_NMEDIT"
9321 fi
9322
9323     if test -n "$ac_tool_prefix"; then
9324   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9325 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9327 $as_echo_n "checking for $ac_word... " >&6; }
9328 if ${ac_cv_prog_LIPO+:} false; then :
9329   $as_echo_n "(cached) " >&6
9330 else
9331   if test -n "$LIPO"; then
9332   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9333 else
9334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9335 for as_dir in $PATH
9336 do
9337   IFS=$as_save_IFS
9338   test -z "$as_dir" && as_dir=.
9339     for ac_exec_ext in '' $ac_executable_extensions; do
9340   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9341     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9342     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9343     break 2
9344   fi
9345 done
9346   done
9347 IFS=$as_save_IFS
9348
9349 fi
9350 fi
9351 LIPO=$ac_cv_prog_LIPO
9352 if test -n "$LIPO"; then
9353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9354 $as_echo "$LIPO" >&6; }
9355 else
9356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9357 $as_echo "no" >&6; }
9358 fi
9359
9360
9361 fi
9362 if test -z "$ac_cv_prog_LIPO"; then
9363   ac_ct_LIPO=$LIPO
9364   # Extract the first word of "lipo", so it can be a program name with args.
9365 set dummy lipo; ac_word=$2
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9367 $as_echo_n "checking for $ac_word... " >&6; }
9368 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9369   $as_echo_n "(cached) " >&6
9370 else
9371   if test -n "$ac_ct_LIPO"; then
9372   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9373 else
9374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9375 for as_dir in $PATH
9376 do
9377   IFS=$as_save_IFS
9378   test -z "$as_dir" && as_dir=.
9379     for ac_exec_ext in '' $ac_executable_extensions; do
9380   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9381     ac_cv_prog_ac_ct_LIPO="lipo"
9382     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9383     break 2
9384   fi
9385 done
9386   done
9387 IFS=$as_save_IFS
9388
9389 fi
9390 fi
9391 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9392 if test -n "$ac_ct_LIPO"; then
9393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9394 $as_echo "$ac_ct_LIPO" >&6; }
9395 else
9396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9397 $as_echo "no" >&6; }
9398 fi
9399
9400   if test "x$ac_ct_LIPO" = x; then
9401     LIPO=":"
9402   else
9403     case $cross_compiling:$ac_tool_warned in
9404 yes:)
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9406 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9407 ac_tool_warned=yes ;;
9408 esac
9409     LIPO=$ac_ct_LIPO
9410   fi
9411 else
9412   LIPO="$ac_cv_prog_LIPO"
9413 fi
9414
9415     if test -n "$ac_tool_prefix"; then
9416   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9417 set dummy ${ac_tool_prefix}otool; ac_word=$2
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9419 $as_echo_n "checking for $ac_word... " >&6; }
9420 if ${ac_cv_prog_OTOOL+:} false; then :
9421   $as_echo_n "(cached) " >&6
9422 else
9423   if test -n "$OTOOL"; then
9424   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9425 else
9426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9427 for as_dir in $PATH
9428 do
9429   IFS=$as_save_IFS
9430   test -z "$as_dir" && as_dir=.
9431     for ac_exec_ext in '' $ac_executable_extensions; do
9432   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9433     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9434     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9435     break 2
9436   fi
9437 done
9438   done
9439 IFS=$as_save_IFS
9440
9441 fi
9442 fi
9443 OTOOL=$ac_cv_prog_OTOOL
9444 if test -n "$OTOOL"; then
9445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9446 $as_echo "$OTOOL" >&6; }
9447 else
9448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9449 $as_echo "no" >&6; }
9450 fi
9451
9452
9453 fi
9454 if test -z "$ac_cv_prog_OTOOL"; then
9455   ac_ct_OTOOL=$OTOOL
9456   # Extract the first word of "otool", so it can be a program name with args.
9457 set dummy otool; ac_word=$2
9458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9459 $as_echo_n "checking for $ac_word... " >&6; }
9460 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9461   $as_echo_n "(cached) " >&6
9462 else
9463   if test -n "$ac_ct_OTOOL"; then
9464   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9465 else
9466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9467 for as_dir in $PATH
9468 do
9469   IFS=$as_save_IFS
9470   test -z "$as_dir" && as_dir=.
9471     for ac_exec_ext in '' $ac_executable_extensions; do
9472   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9473     ac_cv_prog_ac_ct_OTOOL="otool"
9474     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9475     break 2
9476   fi
9477 done
9478   done
9479 IFS=$as_save_IFS
9480
9481 fi
9482 fi
9483 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9484 if test -n "$ac_ct_OTOOL"; then
9485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9486 $as_echo "$ac_ct_OTOOL" >&6; }
9487 else
9488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9489 $as_echo "no" >&6; }
9490 fi
9491
9492   if test "x$ac_ct_OTOOL" = x; then
9493     OTOOL=":"
9494   else
9495     case $cross_compiling:$ac_tool_warned in
9496 yes:)
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9498 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9499 ac_tool_warned=yes ;;
9500 esac
9501     OTOOL=$ac_ct_OTOOL
9502   fi
9503 else
9504   OTOOL="$ac_cv_prog_OTOOL"
9505 fi
9506
9507     if test -n "$ac_tool_prefix"; then
9508   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9509 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9511 $as_echo_n "checking for $ac_word... " >&6; }
9512 if ${ac_cv_prog_OTOOL64+:} false; then :
9513   $as_echo_n "(cached) " >&6
9514 else
9515   if test -n "$OTOOL64"; then
9516   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9517 else
9518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9519 for as_dir in $PATH
9520 do
9521   IFS=$as_save_IFS
9522   test -z "$as_dir" && as_dir=.
9523     for ac_exec_ext in '' $ac_executable_extensions; do
9524   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9525     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9526     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9527     break 2
9528   fi
9529 done
9530   done
9531 IFS=$as_save_IFS
9532
9533 fi
9534 fi
9535 OTOOL64=$ac_cv_prog_OTOOL64
9536 if test -n "$OTOOL64"; then
9537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9538 $as_echo "$OTOOL64" >&6; }
9539 else
9540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9541 $as_echo "no" >&6; }
9542 fi
9543
9544
9545 fi
9546 if test -z "$ac_cv_prog_OTOOL64"; then
9547   ac_ct_OTOOL64=$OTOOL64
9548   # Extract the first word of "otool64", so it can be a program name with args.
9549 set dummy otool64; ac_word=$2
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9551 $as_echo_n "checking for $ac_word... " >&6; }
9552 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9553   $as_echo_n "(cached) " >&6
9554 else
9555   if test -n "$ac_ct_OTOOL64"; then
9556   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9557 else
9558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9559 for as_dir in $PATH
9560 do
9561   IFS=$as_save_IFS
9562   test -z "$as_dir" && as_dir=.
9563     for ac_exec_ext in '' $ac_executable_extensions; do
9564   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9565     ac_cv_prog_ac_ct_OTOOL64="otool64"
9566     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9567     break 2
9568   fi
9569 done
9570   done
9571 IFS=$as_save_IFS
9572
9573 fi
9574 fi
9575 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9576 if test -n "$ac_ct_OTOOL64"; then
9577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9578 $as_echo "$ac_ct_OTOOL64" >&6; }
9579 else
9580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9581 $as_echo "no" >&6; }
9582 fi
9583
9584   if test "x$ac_ct_OTOOL64" = x; then
9585     OTOOL64=":"
9586   else
9587     case $cross_compiling:$ac_tool_warned in
9588 yes:)
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9590 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9591 ac_tool_warned=yes ;;
9592 esac
9593     OTOOL64=$ac_ct_OTOOL64
9594   fi
9595 else
9596   OTOOL64="$ac_cv_prog_OTOOL64"
9597 fi
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9626 $as_echo_n "checking for -single_module linker flag... " >&6; }
9627 if ${lt_cv_apple_cc_single_mod+:} false; then :
9628   $as_echo_n "(cached) " >&6
9629 else
9630   lt_cv_apple_cc_single_mod=no
9631       if test -z "${LT_MULTI_MODULE}"; then
9632         # By default we will add the -single_module flag. You can override
9633         # by either setting the environment variable LT_MULTI_MODULE
9634         # non-empty at configure time, or by adding -multi_module to the
9635         # link flags.
9636         rm -rf libconftest.dylib*
9637         echo "int foo(void){return 1;}" > conftest.c
9638         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9639 -dynamiclib -Wl,-single_module conftest.c" >&5
9640         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9641           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9642         _lt_result=$?
9643         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9644           lt_cv_apple_cc_single_mod=yes
9645         else
9646           cat conftest.err >&5
9647         fi
9648         rm -rf libconftest.dylib*
9649         rm -f conftest.*
9650       fi
9651 fi
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9653 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9654     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9655 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9656 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9657   $as_echo_n "(cached) " >&6
9658 else
9659   lt_cv_ld_exported_symbols_list=no
9660       save_LDFLAGS=$LDFLAGS
9661       echo "_main" > conftest.sym
9662       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9663       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9664 /* end confdefs.h.  */
9665
9666 int
9667 main ()
9668 {
9669
9670   ;
9671   return 0;
9672 }
9673 _ACEOF
9674 if ac_fn_c_try_link "$LINENO"; then :
9675   lt_cv_ld_exported_symbols_list=yes
9676 else
9677   lt_cv_ld_exported_symbols_list=no
9678 fi
9679 rm -f core conftest.err conftest.$ac_objext \
9680     conftest$ac_exeext conftest.$ac_ext
9681         LDFLAGS="$save_LDFLAGS"
9682
9683 fi
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9685 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9686     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9687 $as_echo_n "checking for -force_load linker flag... " >&6; }
9688 if ${lt_cv_ld_force_load+:} false; then :
9689   $as_echo_n "(cached) " >&6
9690 else
9691   lt_cv_ld_force_load=no
9692       cat > conftest.c << _LT_EOF
9693 int forced_loaded() { return 2;}
9694 _LT_EOF
9695       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9696       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9697       echo "$AR cru libconftest.a conftest.o" >&5
9698       $AR cru libconftest.a conftest.o 2>&5
9699       echo "$RANLIB libconftest.a" >&5
9700       $RANLIB libconftest.a 2>&5
9701       cat > conftest.c << _LT_EOF
9702 int main() { return 0;}
9703 _LT_EOF
9704       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9705       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9706       _lt_result=$?
9707       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
9708         lt_cv_ld_force_load=yes
9709       else
9710         cat conftest.err >&5
9711       fi
9712         rm -f conftest.err libconftest.a conftest conftest.c
9713         rm -rf conftest.dSYM
9714
9715 fi
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9717 $as_echo "$lt_cv_ld_force_load" >&6; }
9718     case $host_os in
9719     rhapsody* | darwin1.[012])
9720       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9721     darwin1.*)
9722       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9723     darwin*) # darwin 5.x on
9724       # if running on 10.5 or later, the deployment target defaults
9725       # to the OS version, if on x86, and 10.4, the deployment
9726       # target defaults to 10.4. Don't you love it?
9727       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9728         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9729           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9730         10.[012]*)
9731           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9732         10.*)
9733           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9734       esac
9735     ;;
9736   esac
9737     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9738       _lt_dar_single_mod='$single_module'
9739     fi
9740     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9741       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9742     else
9743       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9744     fi
9745     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9746       _lt_dsymutil='~$DSYMUTIL $lib || :'
9747     else
9748       _lt_dsymutil=
9749     fi
9750     ;;
9751   esac
9752
9753 for ac_header in dlfcn.h
9754 do :
9755   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9756 "
9757 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9758   cat >>confdefs.h <<_ACEOF
9759 #define HAVE_DLFCN_H 1
9760 _ACEOF
9761
9762 fi
9763
9764 done
9765
9766
9767
9768
9769 func_stripname_cnf ()
9770 {
9771   case ${2} in
9772   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9773   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9774   esac
9775 } # func_stripname_cnf
9776
9777
9778
9779
9780
9781 # Set options
9782
9783
9784
9785         enable_dlopen=no
9786
9787
9788   enable_win32_dll=no
9789
9790
9791             # Check whether --enable-shared was given.
9792 if test "${enable_shared+set}" = set; then :
9793   enableval=$enable_shared; p=${PACKAGE-default}
9794     case $enableval in
9795     yes) enable_shared=yes ;;
9796     no) enable_shared=no ;;
9797     *)
9798       enable_shared=no
9799       # Look at the argument we got.  We use all the common list separators.
9800       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9801       for pkg in $enableval; do
9802         IFS="$lt_save_ifs"
9803         if test "X$pkg" = "X$p"; then
9804           enable_shared=yes
9805         fi
9806       done
9807       IFS="$lt_save_ifs"
9808       ;;
9809     esac
9810 else
9811   enable_shared=yes
9812 fi
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822   # Check whether --enable-static was given.
9823 if test "${enable_static+set}" = set; then :
9824   enableval=$enable_static; p=${PACKAGE-default}
9825     case $enableval in
9826     yes) enable_static=yes ;;
9827     no) enable_static=no ;;
9828     *)
9829      enable_static=no
9830       # Look at the argument we got.  We use all the common list separators.
9831       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9832       for pkg in $enableval; do
9833         IFS="$lt_save_ifs"
9834         if test "X$pkg" = "X$p"; then
9835           enable_static=yes
9836         fi
9837       done
9838       IFS="$lt_save_ifs"
9839       ;;
9840     esac
9841 else
9842   enable_static=yes
9843 fi
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854 # Check whether --with-pic was given.
9855 if test "${with_pic+set}" = set; then :
9856   withval=$with_pic; pic_mode="$withval"
9857 else
9858   pic_mode=default
9859 fi
9860
9861
9862 test -z "$pic_mode" && pic_mode=default
9863
9864
9865
9866
9867
9868
9869
9870   # Check whether --enable-fast-install was given.
9871 if test "${enable_fast_install+set}" = set; then :
9872   enableval=$enable_fast_install; p=${PACKAGE-default}
9873     case $enableval in
9874     yes) enable_fast_install=yes ;;
9875     no) enable_fast_install=no ;;
9876     *)
9877       enable_fast_install=no
9878       # Look at the argument we got.  We use all the common list separators.
9879       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9880       for pkg in $enableval; do
9881         IFS="$lt_save_ifs"
9882         if test "X$pkg" = "X$p"; then
9883           enable_fast_install=yes
9884         fi
9885       done
9886       IFS="$lt_save_ifs"
9887       ;;
9888     esac
9889 else
9890   enable_fast_install=yes
9891 fi
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903 # This can be used to rebuild libtool when needed
9904 LIBTOOL_DEPS="$ltmain"
9905
9906 # Always use our own libtool.
9907 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934 test -z "$LN_S" && LN_S="ln -s"
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949 if test -n "${ZSH_VERSION+set}" ; then
9950    setopt NO_GLOB_SUBST
9951 fi
9952
9953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9954 $as_echo_n "checking for objdir... " >&6; }
9955 if ${lt_cv_objdir+:} false; then :
9956   $as_echo_n "(cached) " >&6
9957 else
9958   rm -f .libs 2>/dev/null
9959 mkdir .libs 2>/dev/null
9960 if test -d .libs; then
9961   lt_cv_objdir=.libs
9962 else
9963   # MS-DOS does not allow filenames that begin with a dot.
9964   lt_cv_objdir=_libs
9965 fi
9966 rmdir .libs 2>/dev/null
9967 fi
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9969 $as_echo "$lt_cv_objdir" >&6; }
9970 objdir=$lt_cv_objdir
9971
9972
9973
9974
9975
9976 cat >>confdefs.h <<_ACEOF
9977 #define LT_OBJDIR "$lt_cv_objdir/"
9978 _ACEOF
9979
9980
9981
9982
9983 case $host_os in
9984 aix3*)
9985   # AIX sometimes has problems with the GCC collect2 program.  For some
9986   # reason, if we set the COLLECT_NAMES environment variable, the problems
9987   # vanish in a puff of smoke.
9988   if test "X${COLLECT_NAMES+set}" != Xset; then
9989     COLLECT_NAMES=
9990     export COLLECT_NAMES
9991   fi
9992   ;;
9993 esac
9994
9995 # Global variables:
9996 ofile=libtool
9997 can_build_shared=yes
9998
9999 # All known linkers require a `.a' archive for static linking (except MSVC,
10000 # which needs '.lib').
10001 libext=a
10002
10003 with_gnu_ld="$lt_cv_prog_gnu_ld"
10004
10005 old_CC="$CC"
10006 old_CFLAGS="$CFLAGS"
10007
10008 # Set sane defaults for various variables
10009 test -z "$CC" && CC=cc
10010 test -z "$LTCC" && LTCC=$CC
10011 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10012 test -z "$LD" && LD=ld
10013 test -z "$ac_objext" && ac_objext=o
10014
10015 for cc_temp in $compiler""; do
10016   case $cc_temp in
10017     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10018     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10019     \-*) ;;
10020     *) break;;
10021   esac
10022 done
10023 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10024
10025
10026 # Only perform the check for file, if the check method requires it
10027 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10028 case $deplibs_check_method in
10029 file_magic*)
10030   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10031     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10032 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10033 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10034   $as_echo_n "(cached) " >&6
10035 else
10036   case $MAGIC_CMD in
10037 [\\/*] |  ?:[\\/]*)
10038   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10039   ;;
10040 *)
10041   lt_save_MAGIC_CMD="$MAGIC_CMD"
10042   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10043   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10044   for ac_dir in $ac_dummy; do
10045     IFS="$lt_save_ifs"
10046     test -z "$ac_dir" && ac_dir=.
10047     if test -f $ac_dir/${ac_tool_prefix}file; then
10048       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10049       if test -n "$file_magic_test_file"; then
10050         case $deplibs_check_method in
10051         "file_magic "*)
10052           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10053           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10054           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10055             $EGREP "$file_magic_regex" > /dev/null; then
10056             :
10057           else
10058             cat <<_LT_EOF 1>&2
10059
10060 *** Warning: the command libtool uses to detect shared libraries,
10061 *** $file_magic_cmd, produces output that libtool cannot recognize.
10062 *** The result is that libtool may fail to recognize shared libraries
10063 *** as such.  This will affect the creation of libtool libraries that
10064 *** depend on shared libraries, but programs linked with such libtool
10065 *** libraries will work regardless of this problem.  Nevertheless, you
10066 *** may want to report the problem to your system manager and/or to
10067 *** bug-libtool@gnu.org
10068
10069 _LT_EOF
10070           fi ;;
10071         esac
10072       fi
10073       break
10074     fi
10075   done
10076   IFS="$lt_save_ifs"
10077   MAGIC_CMD="$lt_save_MAGIC_CMD"
10078   ;;
10079 esac
10080 fi
10081
10082 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10083 if test -n "$MAGIC_CMD"; then
10084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10085 $as_echo "$MAGIC_CMD" >&6; }
10086 else
10087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10088 $as_echo "no" >&6; }
10089 fi
10090
10091
10092
10093
10094
10095 if test -z "$lt_cv_path_MAGIC_CMD"; then
10096   if test -n "$ac_tool_prefix"; then
10097     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10098 $as_echo_n "checking for file... " >&6; }
10099 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10100   $as_echo_n "(cached) " >&6
10101 else
10102   case $MAGIC_CMD in
10103 [\\/*] |  ?:[\\/]*)
10104   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10105   ;;
10106 *)
10107   lt_save_MAGIC_CMD="$MAGIC_CMD"
10108   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10109   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10110   for ac_dir in $ac_dummy; do
10111     IFS="$lt_save_ifs"
10112     test -z "$ac_dir" && ac_dir=.
10113     if test -f $ac_dir/file; then
10114       lt_cv_path_MAGIC_CMD="$ac_dir/file"
10115       if test -n "$file_magic_test_file"; then
10116         case $deplibs_check_method in
10117         "file_magic "*)
10118           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10119           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10120           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10121             $EGREP "$file_magic_regex" > /dev/null; then
10122             :
10123           else
10124             cat <<_LT_EOF 1>&2
10125
10126 *** Warning: the command libtool uses to detect shared libraries,
10127 *** $file_magic_cmd, produces output that libtool cannot recognize.
10128 *** The result is that libtool may fail to recognize shared libraries
10129 *** as such.  This will affect the creation of libtool libraries that
10130 *** depend on shared libraries, but programs linked with such libtool
10131 *** libraries will work regardless of this problem.  Nevertheless, you
10132 *** may want to report the problem to your system manager and/or to
10133 *** bug-libtool@gnu.org
10134
10135 _LT_EOF
10136           fi ;;
10137         esac
10138       fi
10139       break
10140     fi
10141   done
10142   IFS="$lt_save_ifs"
10143   MAGIC_CMD="$lt_save_MAGIC_CMD"
10144   ;;
10145 esac
10146 fi
10147
10148 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10149 if test -n "$MAGIC_CMD"; then
10150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10151 $as_echo "$MAGIC_CMD" >&6; }
10152 else
10153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10154 $as_echo "no" >&6; }
10155 fi
10156
10157
10158   else
10159     MAGIC_CMD=:
10160   fi
10161 fi
10162
10163   fi
10164   ;;
10165 esac
10166
10167 # Use C for the default configuration in the libtool script
10168
10169 lt_save_CC="$CC"
10170 ac_ext=c
10171 ac_cpp='$CPP $CPPFLAGS'
10172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10175
10176
10177 # Source file extension for C test sources.
10178 ac_ext=c
10179
10180 # Object file extension for compiled C test sources.
10181 objext=o
10182 objext=$objext
10183
10184 # Code to be used in simple compile tests
10185 lt_simple_compile_test_code="int some_variable = 0;"
10186
10187 # Code to be used in simple link tests
10188 lt_simple_link_test_code='int main(){return(0);}'
10189
10190
10191
10192
10193
10194
10195
10196 # If no C compiler was specified, use CC.
10197 LTCC=${LTCC-"$CC"}
10198
10199 # If no C compiler flags were specified, use CFLAGS.
10200 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10201
10202 # Allow CC to be a program name with arguments.
10203 compiler=$CC
10204
10205 # Save the default compiler, since it gets overwritten when the other
10206 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10207 compiler_DEFAULT=$CC
10208
10209 # save warnings/boilerplate of simple test code
10210 ac_outfile=conftest.$ac_objext
10211 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10212 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10213 _lt_compiler_boilerplate=`cat conftest.err`
10214 $RM conftest*
10215
10216 ac_outfile=conftest.$ac_objext
10217 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10218 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10219 _lt_linker_boilerplate=`cat conftest.err`
10220 $RM -r conftest*
10221
10222
10223 ## CAVEAT EMPTOR:
10224 ## There is no encapsulation within the following macros, do not change
10225 ## the running order or otherwise move them around unless you know exactly
10226 ## what you are doing...
10227 if test -n "$compiler"; then
10228
10229 lt_prog_compiler_no_builtin_flag=
10230
10231 if test "$GCC" = yes; then
10232   case $cc_basename in
10233   nvcc*)
10234     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10235   *)
10236     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10237   esac
10238
10239   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10240 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10241 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10242   $as_echo_n "(cached) " >&6
10243 else
10244   lt_cv_prog_compiler_rtti_exceptions=no
10245    ac_outfile=conftest.$ac_objext
10246    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10247    lt_compiler_flag="-fno-rtti -fno-exceptions"
10248    # Insert the option either (1) after the last *FLAGS variable, or
10249    # (2) before a word containing "conftest.", or (3) at the end.
10250    # Note that $ac_compile itself does not contain backslashes and begins
10251    # with a dollar sign (not a hyphen), so the echo should work correctly.
10252    # The option is referenced via a variable to avoid confusing sed.
10253    lt_compile=`echo "$ac_compile" | $SED \
10254    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10255    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10256    -e 's:$: $lt_compiler_flag:'`
10257    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10258    (eval "$lt_compile" 2>conftest.err)
10259    ac_status=$?
10260    cat conftest.err >&5
10261    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262    if (exit $ac_status) && test -s "$ac_outfile"; then
10263      # The compiler can only warn and ignore the option if not recognized
10264      # So say no if there are warnings other than the usual output.
10265      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10266      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10267      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10268        lt_cv_prog_compiler_rtti_exceptions=yes
10269      fi
10270    fi
10271    $RM conftest*
10272
10273 fi
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10275 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10276
10277 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10278     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10279 else
10280     :
10281 fi
10282
10283 fi
10284
10285
10286
10287
10288
10289
10290   lt_prog_compiler_wl=
10291 lt_prog_compiler_pic=
10292 lt_prog_compiler_static=
10293
10294
10295   if test "$GCC" = yes; then
10296     lt_prog_compiler_wl='-Wl,'
10297     lt_prog_compiler_static='-static'
10298
10299     case $host_os in
10300       aix*)
10301       # All AIX code is PIC.
10302       if test "$host_cpu" = ia64; then
10303         # AIX 5 now supports IA64 processor
10304         lt_prog_compiler_static='-Bstatic'
10305       fi
10306       ;;
10307
10308     amigaos*)
10309       case $host_cpu in
10310       powerpc)
10311             # see comment about AmigaOS4 .so support
10312             lt_prog_compiler_pic='-fPIC'
10313         ;;
10314       m68k)
10315             # FIXME: we need at least 68020 code to build shared libraries, but
10316             # adding the `-m68020' flag to GCC prevents building anything better,
10317             # like `-m68040'.
10318             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10319         ;;
10320       esac
10321       ;;
10322
10323     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10324       # PIC is the default for these OSes.
10325       ;;
10326
10327     mingw* | cygwin* | pw32* | os2* | cegcc*)
10328       # This hack is so that the source file can tell whether it is being
10329       # built for inclusion in a dll (and should export symbols for example).
10330       # Although the cygwin gcc ignores -fPIC, still need this for old-style
10331       # (--disable-auto-import) libraries
10332       lt_prog_compiler_pic='-DDLL_EXPORT'
10333       ;;
10334
10335     darwin* | rhapsody*)
10336       # PIC is the default on this platform
10337       # Common symbols not allowed in MH_DYLIB files
10338       lt_prog_compiler_pic='-fno-common'
10339       ;;
10340
10341     haiku*)
10342       # PIC is the default for Haiku.
10343       # The "-static" flag exists, but is broken.
10344       lt_prog_compiler_static=
10345       ;;
10346
10347     hpux*)
10348       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10349       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10350       # sets the default TLS model and affects inlining.
10351       case $host_cpu in
10352       hppa*64*)
10353         # +Z the default
10354         ;;
10355       *)
10356         lt_prog_compiler_pic='-fPIC'
10357         ;;
10358       esac
10359       ;;
10360
10361     interix[3-9]*)
10362       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10363       # Instead, we relocate shared libraries at runtime.
10364       ;;
10365
10366     msdosdjgpp*)
10367       # Just because we use GCC doesn't mean we suddenly get shared libraries
10368       # on systems that don't support them.
10369       lt_prog_compiler_can_build_shared=no
10370       enable_shared=no
10371       ;;
10372
10373     *nto* | *qnx*)
10374       # QNX uses GNU C++, but need to define -shared option too, otherwise
10375       # it will coredump.
10376       lt_prog_compiler_pic='-fPIC -shared'
10377       ;;
10378
10379     sysv4*MP*)
10380       if test -d /usr/nec; then
10381         lt_prog_compiler_pic=-Kconform_pic
10382       fi
10383       ;;
10384
10385     *)
10386       lt_prog_compiler_pic='-fPIC'
10387       ;;
10388     esac
10389
10390     case $cc_basename in
10391     nvcc*) # Cuda Compiler Driver 2.2
10392       lt_prog_compiler_wl='-Xlinker '
10393       lt_prog_compiler_pic='-Xcompiler -fPIC'
10394       ;;
10395     esac
10396   else
10397     # PORTME Check for flag to pass linker flags through the system compiler.
10398     case $host_os in
10399     aix*)
10400       lt_prog_compiler_wl='-Wl,'
10401       if test "$host_cpu" = ia64; then
10402         # AIX 5 now supports IA64 processor
10403         lt_prog_compiler_static='-Bstatic'
10404       else
10405         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10406       fi
10407       ;;
10408
10409     mingw* | cygwin* | pw32* | os2* | cegcc*)
10410       # This hack is so that the source file can tell whether it is being
10411       # built for inclusion in a dll (and should export symbols for example).
10412       lt_prog_compiler_pic='-DDLL_EXPORT'
10413       ;;
10414
10415     hpux9* | hpux10* | hpux11*)
10416       lt_prog_compiler_wl='-Wl,'
10417       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10418       # not for PA HP-UX.
10419       case $host_cpu in
10420       hppa*64*|ia64*)
10421         # +Z the default
10422         ;;
10423       *)
10424         lt_prog_compiler_pic='+Z'
10425         ;;
10426       esac
10427       # Is there a better lt_prog_compiler_static that works with the bundled CC?
10428       lt_prog_compiler_static='${wl}-a ${wl}archive'
10429       ;;
10430
10431     irix5* | irix6* | nonstopux*)
10432       lt_prog_compiler_wl='-Wl,'
10433       # PIC (with -KPIC) is the default.
10434       lt_prog_compiler_static='-non_shared'
10435       ;;
10436
10437     linux* | k*bsd*-gnu | kopensolaris*-gnu)
10438       case $cc_basename in
10439       # old Intel for x86_64 which still supported -KPIC.
10440       ecc*)
10441         lt_prog_compiler_wl='-Wl,'
10442         lt_prog_compiler_pic='-KPIC'
10443         lt_prog_compiler_static='-static'
10444         ;;
10445       # icc used to be incompatible with GCC.
10446       # ICC 10 doesn't accept -KPIC any more.
10447       icc* | ifort*)
10448         lt_prog_compiler_wl='-Wl,'
10449         lt_prog_compiler_pic='-fPIC'
10450         lt_prog_compiler_static='-static'
10451         ;;
10452       # Lahey Fortran 8.1.
10453       lf95*)
10454         lt_prog_compiler_wl='-Wl,'
10455         lt_prog_compiler_pic='--shared'
10456         lt_prog_compiler_static='--static'
10457         ;;
10458       nagfor*)
10459         # NAG Fortran compiler
10460         lt_prog_compiler_wl='-Wl,-Wl,,'
10461         lt_prog_compiler_pic='-PIC'
10462         lt_prog_compiler_static='-Bstatic'
10463         ;;
10464       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10465         # Portland Group compilers (*not* the Pentium gcc compiler,
10466         # which looks to be a dead project)
10467         lt_prog_compiler_wl='-Wl,'
10468         lt_prog_compiler_pic='-fpic'
10469         lt_prog_compiler_static='-Bstatic'
10470         ;;
10471       ccc*)
10472         lt_prog_compiler_wl='-Wl,'
10473         # All Alpha code is PIC.
10474         lt_prog_compiler_static='-non_shared'
10475         ;;
10476       xl* | bgxl* | bgf* | mpixl*)
10477         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10478         lt_prog_compiler_wl='-Wl,'
10479         lt_prog_compiler_pic='-qpic'
10480         lt_prog_compiler_static='-qstaticlink'
10481         ;;
10482       *)
10483         case `$CC -V 2>&1 | sed 5q` in
10484         *Sun\ F* | *Sun*Fortran*)
10485           # Sun Fortran 8.3 passes all unrecognized flags to the linker
10486           lt_prog_compiler_pic='-KPIC'
10487           lt_prog_compiler_static='-Bstatic'
10488           lt_prog_compiler_wl=''
10489           ;;
10490         *Sun\ C*)
10491           # Sun C 5.9
10492           lt_prog_compiler_pic='-KPIC'
10493           lt_prog_compiler_static='-Bstatic'
10494           lt_prog_compiler_wl='-Wl,'
10495           ;;
10496         esac
10497         ;;
10498       esac
10499       ;;
10500
10501     newsos6)
10502       lt_prog_compiler_pic='-KPIC'
10503       lt_prog_compiler_static='-Bstatic'
10504       ;;
10505
10506     *nto* | *qnx*)
10507       # QNX uses GNU C++, but need to define -shared option too, otherwise
10508       # it will coredump.
10509       lt_prog_compiler_pic='-fPIC -shared'
10510       ;;
10511
10512     osf3* | osf4* | osf5*)
10513       lt_prog_compiler_wl='-Wl,'
10514       # All OSF/1 code is PIC.
10515       lt_prog_compiler_static='-non_shared'
10516       ;;
10517
10518     rdos*)
10519       lt_prog_compiler_static='-non_shared'
10520       ;;
10521
10522     solaris*)
10523       lt_prog_compiler_pic='-KPIC'
10524       lt_prog_compiler_static='-Bstatic'
10525       case $cc_basename in
10526       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10527         lt_prog_compiler_wl='-Qoption ld ';;
10528       *)
10529         lt_prog_compiler_wl='-Wl,';;
10530       esac
10531       ;;
10532
10533     sunos4*)
10534       lt_prog_compiler_wl='-Qoption ld '
10535       lt_prog_compiler_pic='-PIC'
10536       lt_prog_compiler_static='-Bstatic'
10537       ;;
10538
10539     sysv4 | sysv4.2uw2* | sysv4.3*)
10540       lt_prog_compiler_wl='-Wl,'
10541       lt_prog_compiler_pic='-KPIC'
10542       lt_prog_compiler_static='-Bstatic'
10543       ;;
10544
10545     sysv4*MP*)
10546       if test -d /usr/nec ;then
10547         lt_prog_compiler_pic='-Kconform_pic'
10548         lt_prog_compiler_static='-Bstatic'
10549       fi
10550       ;;
10551
10552     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10553       lt_prog_compiler_wl='-Wl,'
10554       lt_prog_compiler_pic='-KPIC'
10555       lt_prog_compiler_static='-Bstatic'
10556       ;;
10557
10558     unicos*)
10559       lt_prog_compiler_wl='-Wl,'
10560       lt_prog_compiler_can_build_shared=no
10561       ;;
10562
10563     uts4*)
10564       lt_prog_compiler_pic='-pic'
10565       lt_prog_compiler_static='-Bstatic'
10566       ;;
10567
10568     *)
10569       lt_prog_compiler_can_build_shared=no
10570       ;;
10571     esac
10572   fi
10573
10574 case $host_os in
10575   # For platforms which do not support PIC, -DPIC is meaningless:
10576   *djgpp*)
10577     lt_prog_compiler_pic=
10578     ;;
10579   *)
10580     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10581     ;;
10582 esac
10583
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10585 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10586 if ${lt_cv_prog_compiler_pic+:} false; then :
10587   $as_echo_n "(cached) " >&6
10588 else
10589   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10590 fi
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10592 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10593 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10594
10595 #
10596 # Check to make sure the PIC flag actually works.
10597 #
10598 if test -n "$lt_prog_compiler_pic"; then
10599   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10600 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10601 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10602   $as_echo_n "(cached) " >&6
10603 else
10604   lt_cv_prog_compiler_pic_works=no
10605    ac_outfile=conftest.$ac_objext
10606    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10607    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10608    # Insert the option either (1) after the last *FLAGS variable, or
10609    # (2) before a word containing "conftest.", or (3) at the end.
10610    # Note that $ac_compile itself does not contain backslashes and begins
10611    # with a dollar sign (not a hyphen), so the echo should work correctly.
10612    # The option is referenced via a variable to avoid confusing sed.
10613    lt_compile=`echo "$ac_compile" | $SED \
10614    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10615    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10616    -e 's:$: $lt_compiler_flag:'`
10617    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10618    (eval "$lt_compile" 2>conftest.err)
10619    ac_status=$?
10620    cat conftest.err >&5
10621    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622    if (exit $ac_status) && test -s "$ac_outfile"; then
10623      # The compiler can only warn and ignore the option if not recognized
10624      # So say no if there are warnings other than the usual output.
10625      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10626      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10627      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10628        lt_cv_prog_compiler_pic_works=yes
10629      fi
10630    fi
10631    $RM conftest*
10632
10633 fi
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10635 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10636
10637 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10638     case $lt_prog_compiler_pic in
10639      "" | " "*) ;;
10640      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10641      esac
10642 else
10643     lt_prog_compiler_pic=
10644      lt_prog_compiler_can_build_shared=no
10645 fi
10646
10647 fi
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659 #
10660 # Check to make sure the static flag actually works.
10661 #
10662 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10664 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10665 if ${lt_cv_prog_compiler_static_works+:} false; then :
10666   $as_echo_n "(cached) " >&6
10667 else
10668   lt_cv_prog_compiler_static_works=no
10669    save_LDFLAGS="$LDFLAGS"
10670    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10671    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10672    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10673      # The linker can only warn and ignore the option if not recognized
10674      # So say no if there are warnings
10675      if test -s conftest.err; then
10676        # Append any errors to the config.log.
10677        cat conftest.err 1>&5
10678        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10679        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10680        if diff conftest.exp conftest.er2 >/dev/null; then
10681          lt_cv_prog_compiler_static_works=yes
10682        fi
10683      else
10684        lt_cv_prog_compiler_static_works=yes
10685      fi
10686    fi
10687    $RM -r conftest*
10688    LDFLAGS="$save_LDFLAGS"
10689
10690 fi
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10692 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10693
10694 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10695     :
10696 else
10697     lt_prog_compiler_static=
10698 fi
10699
10700
10701
10702
10703
10704
10705
10706   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10707 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10708 if ${lt_cv_prog_compiler_c_o+:} false; then :
10709   $as_echo_n "(cached) " >&6
10710 else
10711   lt_cv_prog_compiler_c_o=no
10712    $RM -r conftest 2>/dev/null
10713    mkdir conftest
10714    cd conftest
10715    mkdir out
10716    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10717
10718    lt_compiler_flag="-o out/conftest2.$ac_objext"
10719    # Insert the option either (1) after the last *FLAGS variable, or
10720    # (2) before a word containing "conftest.", or (3) at the end.
10721    # Note that $ac_compile itself does not contain backslashes and begins
10722    # with a dollar sign (not a hyphen), so the echo should work correctly.
10723    lt_compile=`echo "$ac_compile" | $SED \
10724    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10725    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10726    -e 's:$: $lt_compiler_flag:'`
10727    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10728    (eval "$lt_compile" 2>out/conftest.err)
10729    ac_status=$?
10730    cat out/conftest.err >&5
10731    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10732    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10733    then
10734      # The compiler can only warn and ignore the option if not recognized
10735      # So say no if there are warnings
10736      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10737      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10738      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10739        lt_cv_prog_compiler_c_o=yes
10740      fi
10741    fi
10742    chmod u+w . 2>&5
10743    $RM conftest*
10744    # SGI C++ compiler will create directory out/ii_files/ for
10745    # template instantiation
10746    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10747    $RM out/* && rmdir out
10748    cd ..
10749    $RM -r conftest
10750    $RM conftest*
10751
10752 fi
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10754 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10755
10756
10757
10758
10759
10760
10761   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10762 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10763 if ${lt_cv_prog_compiler_c_o+:} false; then :
10764   $as_echo_n "(cached) " >&6
10765 else
10766   lt_cv_prog_compiler_c_o=no
10767    $RM -r conftest 2>/dev/null
10768    mkdir conftest
10769    cd conftest
10770    mkdir out
10771    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10772
10773    lt_compiler_flag="-o out/conftest2.$ac_objext"
10774    # Insert the option either (1) after the last *FLAGS variable, or
10775    # (2) before a word containing "conftest.", or (3) at the end.
10776    # Note that $ac_compile itself does not contain backslashes and begins
10777    # with a dollar sign (not a hyphen), so the echo should work correctly.
10778    lt_compile=`echo "$ac_compile" | $SED \
10779    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10780    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10781    -e 's:$: $lt_compiler_flag:'`
10782    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10783    (eval "$lt_compile" 2>out/conftest.err)
10784    ac_status=$?
10785    cat out/conftest.err >&5
10786    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10788    then
10789      # The compiler can only warn and ignore the option if not recognized
10790      # So say no if there are warnings
10791      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10792      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10793      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10794        lt_cv_prog_compiler_c_o=yes
10795      fi
10796    fi
10797    chmod u+w . 2>&5
10798    $RM conftest*
10799    # SGI C++ compiler will create directory out/ii_files/ for
10800    # template instantiation
10801    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10802    $RM out/* && rmdir out
10803    cd ..
10804    $RM -r conftest
10805    $RM conftest*
10806
10807 fi
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10809 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10810
10811
10812
10813
10814 hard_links="nottested"
10815 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10816   # do not overwrite the value of need_locks provided by the user
10817   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10818 $as_echo_n "checking if we can lock with hard links... " >&6; }
10819   hard_links=yes
10820   $RM conftest*
10821   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10822   touch conftest.a
10823   ln conftest.a conftest.b 2>&5 || hard_links=no
10824   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10826 $as_echo "$hard_links" >&6; }
10827   if test "$hard_links" = no; then
10828     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10829 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10830     need_locks=warn
10831   fi
10832 else
10833   need_locks=no
10834 fi
10835
10836
10837
10838
10839
10840
10841   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10842 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10843
10844   runpath_var=
10845   allow_undefined_flag=
10846   always_export_symbols=no
10847   archive_cmds=
10848   archive_expsym_cmds=
10849   compiler_needs_object=no
10850   enable_shared_with_static_runtimes=no
10851   export_dynamic_flag_spec=
10852   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10853   hardcode_automatic=no
10854   hardcode_direct=no
10855   hardcode_direct_absolute=no
10856   hardcode_libdir_flag_spec=
10857   hardcode_libdir_flag_spec_ld=
10858   hardcode_libdir_separator=
10859   hardcode_minus_L=no
10860   hardcode_shlibpath_var=unsupported
10861   inherit_rpath=no
10862   link_all_deplibs=unknown
10863   module_cmds=
10864   module_expsym_cmds=
10865   old_archive_from_new_cmds=
10866   old_archive_from_expsyms_cmds=
10867   thread_safe_flag_spec=
10868   whole_archive_flag_spec=
10869   # include_expsyms should be a list of space-separated symbols to be *always*
10870   # included in the symbol list
10871   include_expsyms=
10872   # exclude_expsyms can be an extended regexp of symbols to exclude
10873   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10874   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10875   # as well as any symbol that contains `d'.
10876   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10877   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10878   # platforms (ab)use it in PIC code, but their linkers get confused if
10879   # the symbol is explicitly referenced.  Since portable code cannot
10880   # rely on this symbol name, it's probably fine to never include it in
10881   # preloaded symbol tables.
10882   # Exclude shared library initialization/finalization symbols.
10883   extract_expsyms_cmds=
10884
10885   case $host_os in
10886   cygwin* | mingw* | pw32* | cegcc*)
10887     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10888     # When not using gcc, we currently assume that we are using
10889     # Microsoft Visual C++.
10890     if test "$GCC" != yes; then
10891       with_gnu_ld=no
10892     fi
10893     ;;
10894   interix*)
10895     # we just hope/assume this is gcc and not c89 (= MSVC++)
10896     with_gnu_ld=yes
10897     ;;
10898   openbsd*)
10899     with_gnu_ld=no
10900     ;;
10901   esac
10902
10903   ld_shlibs=yes
10904
10905   # On some targets, GNU ld is compatible enough with the native linker
10906   # that we're better off using the native interface for both.
10907   lt_use_gnu_ld_interface=no
10908   if test "$with_gnu_ld" = yes; then
10909     case $host_os in
10910       aix*)
10911         # The AIX port of GNU ld has always aspired to compatibility
10912         # with the native linker.  However, as the warning in the GNU ld
10913         # block says, versions before 2.19.5* couldn't really create working
10914         # shared libraries, regardless of the interface used.
10915         case `$LD -v 2>&1` in
10916           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10917           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10918           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10919           *)
10920             lt_use_gnu_ld_interface=yes
10921             ;;
10922         esac
10923         ;;
10924       *)
10925         lt_use_gnu_ld_interface=yes
10926         ;;
10927     esac
10928   fi
10929
10930   if test "$lt_use_gnu_ld_interface" = yes; then
10931     # If archive_cmds runs LD, not CC, wlarc should be empty
10932     wlarc='${wl}'
10933
10934     # Set some defaults for GNU ld with shared library support. These
10935     # are reset later if shared libraries are not supported. Putting them
10936     # here allows them to be overridden if necessary.
10937     runpath_var=LD_RUN_PATH
10938     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10939     export_dynamic_flag_spec='${wl}--export-dynamic'
10940     # ancient GNU ld didn't support --whole-archive et. al.
10941     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10942       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10943     else
10944       whole_archive_flag_spec=
10945     fi
10946     supports_anon_versioning=no
10947     case `$LD -v 2>&1` in
10948       *GNU\ gold*) supports_anon_versioning=yes ;;
10949       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10950       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10951       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10952       *\ 2.11.*) ;; # other 2.11 versions
10953       *) supports_anon_versioning=yes ;;
10954     esac
10955
10956     # See if GNU ld supports shared libraries.
10957     case $host_os in
10958     aix[3-9]*)
10959       # On AIX/PPC, the GNU linker is very broken
10960       if test "$host_cpu" != ia64; then
10961         ld_shlibs=no
10962         cat <<_LT_EOF 1>&2
10963
10964 *** Warning: the GNU linker, at least up to release 2.19, is reported
10965 *** to be unable to reliably create shared libraries on AIX.
10966 *** Therefore, libtool is disabling shared libraries support.  If you
10967 *** really care for shared libraries, you may want to install binutils
10968 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10969 *** You will then need to restart the configuration process.
10970
10971 _LT_EOF
10972       fi
10973       ;;
10974
10975     amigaos*)
10976       case $host_cpu in
10977       powerpc)
10978             # see comment about AmigaOS4 .so support
10979             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10980             archive_expsym_cmds=''
10981         ;;
10982       m68k)
10983             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)'
10984             hardcode_libdir_flag_spec='-L$libdir'
10985             hardcode_minus_L=yes
10986         ;;
10987       esac
10988       ;;
10989
10990     beos*)
10991       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10992         allow_undefined_flag=unsupported
10993         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10994         # support --undefined.  This deserves some investigation.  FIXME
10995         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10996       else
10997         ld_shlibs=no
10998       fi
10999       ;;
11000
11001     cygwin* | mingw* | pw32* | cegcc*)
11002       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11003       # as there is no search path for DLLs.
11004       hardcode_libdir_flag_spec='-L$libdir'
11005       export_dynamic_flag_spec='${wl}--export-all-symbols'
11006       allow_undefined_flag=unsupported
11007       always_export_symbols=no
11008       enable_shared_with_static_runtimes=yes
11009       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'
11010       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11011
11012       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11013         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11014         # If the export-symbols file already is a .def file (1st line
11015         # is EXPORTS), use it as is; otherwise, prepend...
11016         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11017           cp $export_symbols $output_objdir/$soname.def;
11018         else
11019           echo EXPORTS > $output_objdir/$soname.def;
11020           cat $export_symbols >> $output_objdir/$soname.def;
11021         fi~
11022         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11023       else
11024         ld_shlibs=no
11025       fi
11026       ;;
11027
11028     haiku*)
11029       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11030       link_all_deplibs=yes
11031       ;;
11032
11033     interix[3-9]*)
11034       hardcode_direct=no
11035       hardcode_shlibpath_var=no
11036       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11037       export_dynamic_flag_spec='${wl}-E'
11038       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11039       # Instead, shared libraries are loaded at an image base (0x10000000 by
11040       # default) and relocated if they conflict, which is a slow very memory
11041       # consuming and fragmenting process.  To avoid this, we pick a random,
11042       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11043       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11044       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11045       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'
11046       ;;
11047
11048     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11049       tmp_diet=no
11050       if test "$host_os" = linux-dietlibc; then
11051         case $cc_basename in
11052           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
11053         esac
11054       fi
11055       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11056          && test "$tmp_diet" = no
11057       then
11058         tmp_addflag=' $pic_flag'
11059         tmp_sharedflag='-shared'
11060         case $cc_basename,$host_cpu in
11061         pgcc*)                          # Portland Group C compiler
11062           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'
11063           tmp_addflag=' $pic_flag'
11064           ;;
11065         pgf77* | pgf90* | pgf95* | pgfortran*)
11066                                         # Portland Group f77 and f90 compilers
11067           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'
11068           tmp_addflag=' $pic_flag -Mnomain' ;;
11069         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
11070           tmp_addflag=' -i_dynamic' ;;
11071         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
11072           tmp_addflag=' -i_dynamic -nofor_main' ;;
11073         ifc* | ifort*)                  # Intel Fortran compiler
11074           tmp_addflag=' -nofor_main' ;;
11075         lf95*)                          # Lahey Fortran 8.1
11076           whole_archive_flag_spec=
11077           tmp_sharedflag='--shared' ;;
11078         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11079           tmp_sharedflag='-qmkshrobj'
11080           tmp_addflag= ;;
11081         nvcc*)  # Cuda Compiler Driver 2.2
11082           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'
11083           compiler_needs_object=yes
11084           ;;
11085         esac
11086         case `$CC -V 2>&1 | sed 5q` in
11087         *Sun\ C*)                       # Sun C 5.9
11088           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'
11089           compiler_needs_object=yes
11090           tmp_sharedflag='-G' ;;
11091         *Sun\ F*)                       # Sun Fortran 8.3
11092           tmp_sharedflag='-G' ;;
11093         esac
11094         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11095
11096         if test "x$supports_anon_versioning" = xyes; then
11097           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11098             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11099             echo "local: *; };" >> $output_objdir/$libname.ver~
11100             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11101         fi
11102
11103         case $cc_basename in
11104         xlf* | bgf* | bgxlf* | mpixlf*)
11105           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11106           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11107           hardcode_libdir_flag_spec=
11108           hardcode_libdir_flag_spec_ld='-rpath $libdir'
11109           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11110           if test "x$supports_anon_versioning" = xyes; then
11111             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11112               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11113               echo "local: *; };" >> $output_objdir/$libname.ver~
11114               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11115           fi
11116           ;;
11117         esac
11118       else
11119         ld_shlibs=no
11120       fi
11121       ;;
11122
11123     netbsd*)
11124       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11125         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11126         wlarc=
11127       else
11128         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11129         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11130       fi
11131       ;;
11132
11133     solaris*)
11134       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11135         ld_shlibs=no
11136         cat <<_LT_EOF 1>&2
11137
11138 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11139 *** create shared libraries on Solaris systems.  Therefore, libtool
11140 *** is disabling shared libraries support.  We urge you to upgrade GNU
11141 *** binutils to release 2.9.1 or newer.  Another option is to modify
11142 *** your PATH or compiler configuration so that the native linker is
11143 *** used, and then restart.
11144
11145 _LT_EOF
11146       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11147         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11148         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11149       else
11150         ld_shlibs=no
11151       fi
11152       ;;
11153
11154     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11155       case `$LD -v 2>&1` in
11156         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11157         ld_shlibs=no
11158         cat <<_LT_EOF 1>&2
11159
11160 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11161 *** reliably create shared libraries on SCO systems.  Therefore, libtool
11162 *** is disabling shared libraries support.  We urge you to upgrade GNU
11163 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11164 *** your PATH or compiler configuration so that the native linker is
11165 *** used, and then restart.
11166
11167 _LT_EOF
11168         ;;
11169         *)
11170           # For security reasons, it is highly recommended that you always
11171           # use absolute paths for naming shared libraries, and exclude the
11172           # DT_RUNPATH tag from executables and libraries.  But doing so
11173           # requires that you compile everything twice, which is a pain.
11174           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11175             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11176             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11177             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11178           else
11179             ld_shlibs=no
11180           fi
11181         ;;
11182       esac
11183       ;;
11184
11185     sunos4*)
11186       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11187       wlarc=
11188       hardcode_direct=yes
11189       hardcode_shlibpath_var=no
11190       ;;
11191
11192     *)
11193       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11194         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11195         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11196       else
11197         ld_shlibs=no
11198       fi
11199       ;;
11200     esac
11201
11202     if test "$ld_shlibs" = no; then
11203       runpath_var=
11204       hardcode_libdir_flag_spec=
11205       export_dynamic_flag_spec=
11206       whole_archive_flag_spec=
11207     fi
11208   else
11209     # PORTME fill in a description of your system's linker (not GNU ld)
11210     case $host_os in
11211     aix3*)
11212       allow_undefined_flag=unsupported
11213       always_export_symbols=yes
11214       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'
11215       # Note: this linker hardcodes the directories in LIBPATH if there
11216       # are no directories specified by -L.
11217       hardcode_minus_L=yes
11218       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11219         # Neither direct hardcoding nor static linking is supported with a
11220         # broken collect2.
11221         hardcode_direct=unsupported
11222       fi
11223       ;;
11224
11225     aix[4-9]*)
11226       if test "$host_cpu" = ia64; then
11227         # On IA64, the linker does run time linking by default, so we don't
11228         # have to do anything special.
11229         aix_use_runtimelinking=no
11230         exp_sym_flag='-Bexport'
11231         no_entry_flag=""
11232       else
11233         # If we're using GNU nm, then we don't want the "-C" option.
11234         # -C means demangle to AIX nm, but means don't demangle with GNU nm
11235         # Also, AIX nm treats weak defined symbols like other global
11236         # defined symbols, whereas GNU nm marks them as "W".
11237         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11238           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'
11239         else
11240           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'
11241         fi
11242         aix_use_runtimelinking=no
11243
11244         # Test if we are trying to use run time linking or normal
11245         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11246         # need to do runtime linking.
11247         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11248           for ld_flag in $LDFLAGS; do
11249           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11250             aix_use_runtimelinking=yes
11251             break
11252           fi
11253           done
11254           ;;
11255         esac
11256
11257         exp_sym_flag='-bexport'
11258         no_entry_flag='-bnoentry'
11259       fi
11260
11261       # When large executables or shared objects are built, AIX ld can
11262       # have problems creating the table of contents.  If linking a library
11263       # or program results in "error TOC overflow" add -mminimal-toc to
11264       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11265       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11266
11267       archive_cmds=''
11268       hardcode_direct=yes
11269       hardcode_direct_absolute=yes
11270       hardcode_libdir_separator=':'
11271       link_all_deplibs=yes
11272       file_list_spec='${wl}-f,'
11273
11274       if test "$GCC" = yes; then
11275         case $host_os in aix4.[012]|aix4.[012].*)
11276         # We only want to do this on AIX 4.2 and lower, the check
11277         # below for broken collect2 doesn't work under 4.3+
11278           collect2name=`${CC} -print-prog-name=collect2`
11279           if test -f "$collect2name" &&
11280            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11281           then
11282           # We have reworked collect2
11283           :
11284           else
11285           # We have old collect2
11286           hardcode_direct=unsupported
11287           # It fails to find uninstalled libraries when the uninstalled
11288           # path is not listed in the libpath.  Setting hardcode_minus_L
11289           # to unsupported forces relinking
11290           hardcode_minus_L=yes
11291           hardcode_libdir_flag_spec='-L$libdir'
11292           hardcode_libdir_separator=
11293           fi
11294           ;;
11295         esac
11296         shared_flag='-shared'
11297         if test "$aix_use_runtimelinking" = yes; then
11298           shared_flag="$shared_flag "'${wl}-G'
11299         fi
11300       else
11301         # not using gcc
11302         if test "$host_cpu" = ia64; then
11303         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11304         # chokes on -Wl,-G. The following line is correct:
11305           shared_flag='-G'
11306         else
11307           if test "$aix_use_runtimelinking" = yes; then
11308             shared_flag='${wl}-G'
11309           else
11310             shared_flag='${wl}-bM:SRE'
11311           fi
11312         fi
11313       fi
11314
11315       export_dynamic_flag_spec='${wl}-bexpall'
11316       # It seems that -bexpall does not export symbols beginning with
11317       # underscore (_), so it is better to generate a list of symbols to export.
11318       always_export_symbols=yes
11319       if test "$aix_use_runtimelinking" = yes; then
11320         # Warning - without using the other runtime loading flags (-brtl),
11321         # -berok will link without error, but may produce a broken library.
11322         allow_undefined_flag='-berok'
11323         # Determine the default libpath from the value encoded in an
11324         # empty executable.
11325         if test "${lt_cv_aix_libpath+set}" = set; then
11326   aix_libpath=$lt_cv_aix_libpath
11327 else
11328   if ${lt_cv_aix_libpath_+:} false; then :
11329   $as_echo_n "(cached) " >&6
11330 else
11331   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11332 /* end confdefs.h.  */
11333
11334 int
11335 main ()
11336 {
11337
11338   ;
11339   return 0;
11340 }
11341 _ACEOF
11342 if ac_fn_c_try_link "$LINENO"; then :
11343
11344   lt_aix_libpath_sed='
11345       /Import File Strings/,/^$/ {
11346           /^0/ {
11347               s/^0  *\([^ ]*\) *$/\1/
11348               p
11349           }
11350       }'
11351   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11352   # Check for a 64-bit object if we didn't find anything.
11353   if test -z "$lt_cv_aix_libpath_"; then
11354     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11355   fi
11356 fi
11357 rm -f core conftest.err conftest.$ac_objext \
11358     conftest$ac_exeext conftest.$ac_ext
11359   if test -z "$lt_cv_aix_libpath_"; then
11360     lt_cv_aix_libpath_="/usr/lib:/lib"
11361   fi
11362
11363 fi
11364
11365   aix_libpath=$lt_cv_aix_libpath_
11366 fi
11367
11368         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11369         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"
11370       else
11371         if test "$host_cpu" = ia64; then
11372           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11373           allow_undefined_flag="-z nodefs"
11374           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"
11375         else
11376          # Determine the default libpath from the value encoded in an
11377          # empty executable.
11378          if test "${lt_cv_aix_libpath+set}" = set; then
11379   aix_libpath=$lt_cv_aix_libpath
11380 else
11381   if ${lt_cv_aix_libpath_+:} false; then :
11382   $as_echo_n "(cached) " >&6
11383 else
11384   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11385 /* end confdefs.h.  */
11386
11387 int
11388 main ()
11389 {
11390
11391   ;
11392   return 0;
11393 }
11394 _ACEOF
11395 if ac_fn_c_try_link "$LINENO"; then :
11396
11397   lt_aix_libpath_sed='
11398       /Import File Strings/,/^$/ {
11399           /^0/ {
11400               s/^0  *\([^ ]*\) *$/\1/
11401               p
11402           }
11403       }'
11404   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11405   # Check for a 64-bit object if we didn't find anything.
11406   if test -z "$lt_cv_aix_libpath_"; then
11407     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11408   fi
11409 fi
11410 rm -f core conftest.err conftest.$ac_objext \
11411     conftest$ac_exeext conftest.$ac_ext
11412   if test -z "$lt_cv_aix_libpath_"; then
11413     lt_cv_aix_libpath_="/usr/lib:/lib"
11414   fi
11415
11416 fi
11417
11418   aix_libpath=$lt_cv_aix_libpath_
11419 fi
11420
11421          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11422           # Warning - without using the other run time loading flags,
11423           # -berok will link without error, but may produce a broken library.
11424           no_undefined_flag=' ${wl}-bernotok'
11425           allow_undefined_flag=' ${wl}-berok'
11426           if test "$with_gnu_ld" = yes; then
11427             # We only use this code for GNU lds that support --whole-archive.
11428             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11429           else
11430             # Exported symbols can be pulled into shared objects from archives
11431             whole_archive_flag_spec='$convenience'
11432           fi
11433           archive_cmds_need_lc=yes
11434           # This is similar to how AIX traditionally builds its shared libraries.
11435           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'
11436         fi
11437       fi
11438       ;;
11439
11440     amigaos*)
11441       case $host_cpu in
11442       powerpc)
11443             # see comment about AmigaOS4 .so support
11444             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11445             archive_expsym_cmds=''
11446         ;;
11447       m68k)
11448             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)'
11449             hardcode_libdir_flag_spec='-L$libdir'
11450             hardcode_minus_L=yes
11451         ;;
11452       esac
11453       ;;
11454
11455     bsdi[45]*)
11456       export_dynamic_flag_spec=-rdynamic
11457       ;;
11458
11459     cygwin* | mingw* | pw32* | cegcc*)
11460       # When not using gcc, we currently assume that we are using
11461       # Microsoft Visual C++.
11462       # hardcode_libdir_flag_spec is actually meaningless, as there is
11463       # no search path for DLLs.
11464       case $cc_basename in
11465       cl*)
11466         # Native MSVC
11467         hardcode_libdir_flag_spec=' '
11468         allow_undefined_flag=unsupported
11469         always_export_symbols=yes
11470         file_list_spec='@'
11471         # Tell ltmain to make .lib files, not .a files.
11472         libext=lib
11473         # Tell ltmain to make .dll files, not .so files.
11474         shrext_cmds=".dll"
11475         # FIXME: Setting linknames here is a bad hack.
11476         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11477         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11478             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11479           else
11480             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11481           fi~
11482           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11483           linknames='
11484         # The linker will not automatically build a static lib if we build a DLL.
11485         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11486         enable_shared_with_static_runtimes=yes
11487         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11488         # Don't use ranlib
11489         old_postinstall_cmds='chmod 644 $oldlib'
11490         postlink_cmds='lt_outputfile="@OUTPUT@"~
11491           lt_tool_outputfile="@TOOL_OUTPUT@"~
11492           case $lt_outputfile in
11493             *.exe|*.EXE) ;;
11494             *)
11495               lt_outputfile="$lt_outputfile.exe"
11496               lt_tool_outputfile="$lt_tool_outputfile.exe"
11497               ;;
11498           esac~
11499           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11500             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11501             $RM "$lt_outputfile.manifest";
11502           fi'
11503         ;;
11504       *)
11505         # Assume MSVC wrapper
11506         hardcode_libdir_flag_spec=' '
11507         allow_undefined_flag=unsupported
11508         # Tell ltmain to make .lib files, not .a files.
11509         libext=lib
11510         # Tell ltmain to make .dll files, not .so files.
11511         shrext_cmds=".dll"
11512         # FIXME: Setting linknames here is a bad hack.
11513         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11514         # The linker will automatically build a .lib file if we build a DLL.
11515         old_archive_from_new_cmds='true'
11516         # FIXME: Should let the user specify the lib program.
11517         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11518         enable_shared_with_static_runtimes=yes
11519         ;;
11520       esac
11521       ;;
11522
11523     darwin* | rhapsody*)
11524
11525
11526   archive_cmds_need_lc=no
11527   hardcode_direct=no
11528   hardcode_automatic=yes
11529   hardcode_shlibpath_var=unsupported
11530   if test "$lt_cv_ld_force_load" = "yes"; then
11531     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\"`'
11532   else
11533     whole_archive_flag_spec=''
11534   fi
11535   link_all_deplibs=yes
11536   allow_undefined_flag="$_lt_dar_allow_undefined"
11537   case $cc_basename in
11538      ifort*) _lt_dar_can_shared=yes ;;
11539      *) _lt_dar_can_shared=$GCC ;;
11540   esac
11541   if test "$_lt_dar_can_shared" = "yes"; then
11542     output_verbose_link_cmd=func_echo_all
11543     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11544     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11545     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}"
11546     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}"
11547
11548   else
11549   ld_shlibs=no
11550   fi
11551
11552       ;;
11553
11554     dgux*)
11555       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11556       hardcode_libdir_flag_spec='-L$libdir'
11557       hardcode_shlibpath_var=no
11558       ;;
11559
11560     freebsd1*)
11561       ld_shlibs=no
11562       ;;
11563
11564     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11565     # support.  Future versions do this automatically, but an explicit c++rt0.o
11566     # does not break anything, and helps significantly (at the cost of a little
11567     # extra space).
11568     freebsd2.2*)
11569       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11570       hardcode_libdir_flag_spec='-R$libdir'
11571       hardcode_direct=yes
11572       hardcode_shlibpath_var=no
11573       ;;
11574
11575     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11576     freebsd2*)
11577       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11578       hardcode_direct=yes
11579       hardcode_minus_L=yes
11580       hardcode_shlibpath_var=no
11581       ;;
11582
11583     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11584     freebsd* | dragonfly*)
11585       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11586       hardcode_libdir_flag_spec='-R$libdir'
11587       hardcode_direct=yes
11588       hardcode_shlibpath_var=no
11589       ;;
11590
11591     hpux9*)
11592       if test "$GCC" = yes; then
11593         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'
11594       else
11595         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'
11596       fi
11597       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11598       hardcode_libdir_separator=:
11599       hardcode_direct=yes
11600
11601       # hardcode_minus_L: Not really in the search PATH,
11602       # but as the default location of the library.
11603       hardcode_minus_L=yes
11604       export_dynamic_flag_spec='${wl}-E'
11605       ;;
11606
11607     hpux10*)
11608       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11609         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11610       else
11611         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11612       fi
11613       if test "$with_gnu_ld" = no; then
11614         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11615         hardcode_libdir_flag_spec_ld='+b $libdir'
11616         hardcode_libdir_separator=:
11617         hardcode_direct=yes
11618         hardcode_direct_absolute=yes
11619         export_dynamic_flag_spec='${wl}-E'
11620         # hardcode_minus_L: Not really in the search PATH,
11621         # but as the default location of the library.
11622         hardcode_minus_L=yes
11623       fi
11624       ;;
11625
11626     hpux11*)
11627       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11628         case $host_cpu in
11629         hppa*64*)
11630           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11631           ;;
11632         ia64*)
11633           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11634           ;;
11635         *)
11636           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11637           ;;
11638         esac
11639       else
11640         case $host_cpu in
11641         hppa*64*)
11642           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11643           ;;
11644         ia64*)
11645           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11646           ;;
11647         *)
11648
11649           # Older versions of the 11.00 compiler do not understand -b yet
11650           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11651           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11652 $as_echo_n "checking if $CC understands -b... " >&6; }
11653 if ${lt_cv_prog_compiler__b+:} false; then :
11654   $as_echo_n "(cached) " >&6
11655 else
11656   lt_cv_prog_compiler__b=no
11657    save_LDFLAGS="$LDFLAGS"
11658    LDFLAGS="$LDFLAGS -b"
11659    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11660    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11661      # The linker can only warn and ignore the option if not recognized
11662      # So say no if there are warnings
11663      if test -s conftest.err; then
11664        # Append any errors to the config.log.
11665        cat conftest.err 1>&5
11666        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11667        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11668        if diff conftest.exp conftest.er2 >/dev/null; then
11669          lt_cv_prog_compiler__b=yes
11670        fi
11671      else
11672        lt_cv_prog_compiler__b=yes
11673      fi
11674    fi
11675    $RM -r conftest*
11676    LDFLAGS="$save_LDFLAGS"
11677
11678 fi
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11680 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11681
11682 if test x"$lt_cv_prog_compiler__b" = xyes; then
11683     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11684 else
11685     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11686 fi
11687
11688           ;;
11689         esac
11690       fi
11691       if test "$with_gnu_ld" = no; then
11692         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11693         hardcode_libdir_separator=:
11694
11695         case $host_cpu in
11696         hppa*64*|ia64*)
11697           hardcode_direct=no
11698           hardcode_shlibpath_var=no
11699           ;;
11700         *)
11701           hardcode_direct=yes
11702           hardcode_direct_absolute=yes
11703           export_dynamic_flag_spec='${wl}-E'
11704
11705           # hardcode_minus_L: Not really in the search PATH,
11706           # but as the default location of the library.
11707           hardcode_minus_L=yes
11708           ;;
11709         esac
11710       fi
11711       ;;
11712
11713     irix5* | irix6* | nonstopux*)
11714       if test "$GCC" = yes; then
11715         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'
11716         # Try to use the -exported_symbol ld option, if it does not
11717         # work, assume that -exports_file does not work either and
11718         # implicitly export all symbols.
11719         # This should be the same for all languages, so no per-tag cache variable.
11720         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11721 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11722 if ${lt_cv_irix_exported_symbol+:} false; then :
11723   $as_echo_n "(cached) " >&6
11724 else
11725   save_LDFLAGS="$LDFLAGS"
11726            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11727            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11728 /* end confdefs.h.  */
11729 int foo (void) { return 0; }
11730 _ACEOF
11731 if ac_fn_c_try_link "$LINENO"; then :
11732   lt_cv_irix_exported_symbol=yes
11733 else
11734   lt_cv_irix_exported_symbol=no
11735 fi
11736 rm -f core conftest.err conftest.$ac_objext \
11737     conftest$ac_exeext conftest.$ac_ext
11738            LDFLAGS="$save_LDFLAGS"
11739 fi
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11741 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11742         if test "$lt_cv_irix_exported_symbol" = yes; then
11743           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'
11744         fi
11745       else
11746         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'
11747         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'
11748       fi
11749       archive_cmds_need_lc='no'
11750       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11751       hardcode_libdir_separator=:
11752       inherit_rpath=yes
11753       link_all_deplibs=yes
11754       ;;
11755
11756     netbsd*)
11757       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11758         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11759       else
11760         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11761       fi
11762       hardcode_libdir_flag_spec='-R$libdir'
11763       hardcode_direct=yes
11764       hardcode_shlibpath_var=no
11765       ;;
11766
11767     newsos6)
11768       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11769       hardcode_direct=yes
11770       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11771       hardcode_libdir_separator=:
11772       hardcode_shlibpath_var=no
11773       ;;
11774
11775     *nto* | *qnx*)
11776       ;;
11777
11778     openbsd*)
11779       if test -f /usr/libexec/ld.so; then
11780         hardcode_direct=yes
11781         hardcode_shlibpath_var=no
11782         hardcode_direct_absolute=yes
11783         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11784           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11785           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11786           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11787           export_dynamic_flag_spec='${wl}-E'
11788         else
11789           case $host_os in
11790            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11791              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11792              hardcode_libdir_flag_spec='-R$libdir'
11793              ;;
11794            *)
11795              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11796              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11797              ;;
11798           esac
11799         fi
11800       else
11801         ld_shlibs=no
11802       fi
11803       ;;
11804
11805     os2*)
11806       hardcode_libdir_flag_spec='-L$libdir'
11807       hardcode_minus_L=yes
11808       allow_undefined_flag=unsupported
11809       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'
11810       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11811       ;;
11812
11813     osf3*)
11814       if test "$GCC" = yes; then
11815         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11816         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'
11817       else
11818         allow_undefined_flag=' -expect_unresolved \*'
11819         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'
11820       fi
11821       archive_cmds_need_lc='no'
11822       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11823       hardcode_libdir_separator=:
11824       ;;
11825
11826     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11827       if test "$GCC" = yes; then
11828         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11829         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'
11830         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11831       else
11832         allow_undefined_flag=' -expect_unresolved \*'
11833         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'
11834         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~
11835         $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'
11836
11837         # Both c and cxx compiler support -rpath directly
11838         hardcode_libdir_flag_spec='-rpath $libdir'
11839       fi
11840       archive_cmds_need_lc='no'
11841       hardcode_libdir_separator=:
11842       ;;
11843
11844     solaris*)
11845       no_undefined_flag=' -z defs'
11846       if test "$GCC" = yes; then
11847         wlarc='${wl}'
11848         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11849         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11850           $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'
11851       else
11852         case `$CC -V 2>&1` in
11853         *"Compilers 5.0"*)
11854           wlarc=''
11855           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11856           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11857           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11858           ;;
11859         *)
11860           wlarc='${wl}'
11861           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11862           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11863           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11864           ;;
11865         esac
11866       fi
11867       hardcode_libdir_flag_spec='-R$libdir'
11868       hardcode_shlibpath_var=no
11869       case $host_os in
11870       solaris2.[0-5] | solaris2.[0-5].*) ;;
11871       *)
11872         # The compiler driver will combine and reorder linker options,
11873         # but understands `-z linker_flag'.  GCC discards it without `$wl',
11874         # but is careful enough not to reorder.
11875         # Supported since Solaris 2.6 (maybe 2.5.1?)
11876         if test "$GCC" = yes; then
11877           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11878         else
11879           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11880         fi
11881         ;;
11882       esac
11883       link_all_deplibs=yes
11884       ;;
11885
11886     sunos4*)
11887       if test "x$host_vendor" = xsequent; then
11888         # Use $CC to link under sequent, because it throws in some extra .o
11889         # files that make .init and .fini sections work.
11890         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11891       else
11892         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11893       fi
11894       hardcode_libdir_flag_spec='-L$libdir'
11895       hardcode_direct=yes
11896       hardcode_minus_L=yes
11897       hardcode_shlibpath_var=no
11898       ;;
11899
11900     sysv4)
11901       case $host_vendor in
11902         sni)
11903           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11904           hardcode_direct=yes # is this really true???
11905         ;;
11906         siemens)
11907           ## LD is ld it makes a PLAMLIB
11908           ## CC just makes a GrossModule.
11909           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11910           reload_cmds='$CC -r -o $output$reload_objs'
11911           hardcode_direct=no
11912         ;;
11913         motorola)
11914           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11915           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11916         ;;
11917       esac
11918       runpath_var='LD_RUN_PATH'
11919       hardcode_shlibpath_var=no
11920       ;;
11921
11922     sysv4.3*)
11923       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11924       hardcode_shlibpath_var=no
11925       export_dynamic_flag_spec='-Bexport'
11926       ;;
11927
11928     sysv4*MP*)
11929       if test -d /usr/nec; then
11930         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11931         hardcode_shlibpath_var=no
11932         runpath_var=LD_RUN_PATH
11933         hardcode_runpath_var=yes
11934         ld_shlibs=yes
11935       fi
11936       ;;
11937
11938     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11939       no_undefined_flag='${wl}-z,text'
11940       archive_cmds_need_lc=no
11941       hardcode_shlibpath_var=no
11942       runpath_var='LD_RUN_PATH'
11943
11944       if test "$GCC" = yes; then
11945         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11946         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11947       else
11948         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11949         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11950       fi
11951       ;;
11952
11953     sysv5* | sco3.2v5* | sco5v6*)
11954       # Note: We can NOT use -z defs as we might desire, because we do not
11955       # link with -lc, and that would cause any symbols used from libc to
11956       # always be unresolved, which means just about no library would
11957       # ever link correctly.  If we're not using GNU ld we use -z text
11958       # though, which does catch some bad symbols but isn't as heavy-handed
11959       # as -z defs.
11960       no_undefined_flag='${wl}-z,text'
11961       allow_undefined_flag='${wl}-z,nodefs'
11962       archive_cmds_need_lc=no
11963       hardcode_shlibpath_var=no
11964       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11965       hardcode_libdir_separator=':'
11966       link_all_deplibs=yes
11967       export_dynamic_flag_spec='${wl}-Bexport'
11968       runpath_var='LD_RUN_PATH'
11969
11970       if test "$GCC" = yes; then
11971         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11972         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11973       else
11974         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11975         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11976       fi
11977       ;;
11978
11979     uts4*)
11980       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11981       hardcode_libdir_flag_spec='-L$libdir'
11982       hardcode_shlibpath_var=no
11983       ;;
11984
11985     *)
11986       ld_shlibs=no
11987       ;;
11988     esac
11989
11990     if test x$host_vendor = xsni; then
11991       case $host in
11992       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11993         export_dynamic_flag_spec='${wl}-Blargedynsym'
11994         ;;
11995       esac
11996     fi
11997   fi
11998
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12000 $as_echo "$ld_shlibs" >&6; }
12001 test "$ld_shlibs" = no && can_build_shared=no
12002
12003 with_gnu_ld=$with_gnu_ld
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019 #
12020 # Do we need to explicitly link libc?
12021 #
12022 case "x$archive_cmds_need_lc" in
12023 x|xyes)
12024   # Assume -lc should be added
12025   archive_cmds_need_lc=yes
12026
12027   if test "$enable_shared" = yes && test "$GCC" = yes; then
12028     case $archive_cmds in
12029     *'~'*)
12030       # FIXME: we may have to deal with multi-command sequences.
12031       ;;
12032     '$CC '*)
12033       # Test whether the compiler implicitly links with -lc since on some
12034       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12035       # to ld, don't add -lc before -lgcc.
12036       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12037 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12038 if ${lt_cv_archive_cmds_need_lc+:} false; then :
12039   $as_echo_n "(cached) " >&6
12040 else
12041   $RM conftest*
12042         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12043
12044         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12045   (eval $ac_compile) 2>&5
12046   ac_status=$?
12047   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12048   test $ac_status = 0; } 2>conftest.err; then
12049           soname=conftest
12050           lib=conftest
12051           libobjs=conftest.$ac_objext
12052           deplibs=
12053           wl=$lt_prog_compiler_wl
12054           pic_flag=$lt_prog_compiler_pic
12055           compiler_flags=-v
12056           linker_flags=-v
12057           verstring=
12058           output_objdir=.
12059           libname=conftest
12060           lt_save_allow_undefined_flag=$allow_undefined_flag
12061           allow_undefined_flag=
12062           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12063   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12064   ac_status=$?
12065   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12066   test $ac_status = 0; }
12067           then
12068             lt_cv_archive_cmds_need_lc=no
12069           else
12070             lt_cv_archive_cmds_need_lc=yes
12071           fi
12072           allow_undefined_flag=$lt_save_allow_undefined_flag
12073         else
12074           cat conftest.err 1>&5
12075         fi
12076         $RM conftest*
12077
12078 fi
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12080 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12081       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12082       ;;
12083     esac
12084   fi
12085   ;;
12086 esac
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12245 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12246
12247 if test "$GCC" = yes; then
12248   case $host_os in
12249     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12250     *) lt_awk_arg="/^libraries:/" ;;
12251   esac
12252   case $host_os in
12253     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12254     *) lt_sed_strip_eq="s,=/,/,g" ;;
12255   esac
12256   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12257   case $lt_search_path_spec in
12258   *\;*)
12259     # if the path contains ";" then we assume it to be the separator
12260     # otherwise default to the standard path separator (i.e. ":") - it is
12261     # assumed that no part of a normal pathname contains ";" but that should
12262     # okay in the real world where ";" in dirpaths is itself problematic.
12263     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12264     ;;
12265   *)
12266     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12267     ;;
12268   esac
12269   # Ok, now we have the path, separated by spaces, we can step through it
12270   # and add multilib dir if necessary.
12271   lt_tmp_lt_search_path_spec=
12272   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12273   for lt_sys_path in $lt_search_path_spec; do
12274     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12275       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12276     else
12277       test -d "$lt_sys_path" && \
12278         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12279     fi
12280   done
12281   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12282 BEGIN {RS=" "; FS="/|\n";} {
12283   lt_foo="";
12284   lt_count=0;
12285   for (lt_i = NF; lt_i > 0; lt_i--) {
12286     if ($lt_i != "" && $lt_i != ".") {
12287       if ($lt_i == "..") {
12288         lt_count++;
12289       } else {
12290         if (lt_count == 0) {
12291           lt_foo="/" $lt_i lt_foo;
12292         } else {
12293           lt_count--;
12294         }
12295       }
12296     }
12297   }
12298   if (lt_foo != "") { lt_freq[lt_foo]++; }
12299   if (lt_freq[lt_foo] == 1) { print lt_foo; }
12300 }'`
12301   # AWK program above erroneously prepends '/' to C:/dos/paths
12302   # for these hosts.
12303   case $host_os in
12304     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12305       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12306   esac
12307   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12308 else
12309   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12310 fi
12311 library_names_spec=
12312 libname_spec='lib$name'
12313 soname_spec=
12314 shrext_cmds=".so"
12315 postinstall_cmds=
12316 postuninstall_cmds=
12317 finish_cmds=
12318 finish_eval=
12319 shlibpath_var=
12320 shlibpath_overrides_runpath=unknown
12321 version_type=none
12322 dynamic_linker="$host_os ld.so"
12323 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12324 need_lib_prefix=unknown
12325 hardcode_into_libs=no
12326
12327 # when you set need_version to no, make sure it does not cause -set_version
12328 # flags to be left without arguments
12329 need_version=unknown
12330
12331 case $host_os in
12332 aix3*)
12333   version_type=linux
12334   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12335   shlibpath_var=LIBPATH
12336
12337   # AIX 3 has no versioning support, so we append a major version to the name.
12338   soname_spec='${libname}${release}${shared_ext}$major'
12339   ;;
12340
12341 aix[4-9]*)
12342   version_type=linux
12343   need_lib_prefix=no
12344   need_version=no
12345   hardcode_into_libs=yes
12346   if test "$host_cpu" = ia64; then
12347     # AIX 5 supports IA64
12348     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12349     shlibpath_var=LD_LIBRARY_PATH
12350   else
12351     # With GCC up to 2.95.x, collect2 would create an import file
12352     # for dependence libraries.  The import file would start with
12353     # the line `#! .'.  This would cause the generated library to
12354     # depend on `.', always an invalid library.  This was fixed in
12355     # development snapshots of GCC prior to 3.0.
12356     case $host_os in
12357       aix4 | aix4.[01] | aix4.[01].*)
12358       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12359            echo ' yes '
12360            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12361         :
12362       else
12363         can_build_shared=no
12364       fi
12365       ;;
12366     esac
12367     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12368     # soname into executable. Probably we can add versioning support to
12369     # collect2, so additional links can be useful in future.
12370     if test "$aix_use_runtimelinking" = yes; then
12371       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12372       # instead of lib<name>.a to let people know that these are not
12373       # typical AIX shared libraries.
12374       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12375     else
12376       # We preserve .a as extension for shared libraries through AIX4.2
12377       # and later when we are not doing run time linking.
12378       library_names_spec='${libname}${release}.a $libname.a'
12379       soname_spec='${libname}${release}${shared_ext}$major'
12380     fi
12381     shlibpath_var=LIBPATH
12382   fi
12383   ;;
12384
12385 amigaos*)
12386   case $host_cpu in
12387   powerpc)
12388     # Since July 2007 AmigaOS4 officially supports .so libraries.
12389     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12390     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12391     ;;
12392   m68k)
12393     library_names_spec='$libname.ixlibrary $libname.a'
12394     # Create ${libname}_ixlibrary.a entries in /sys/libs.
12395     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'
12396     ;;
12397   esac
12398   ;;
12399
12400 beos*)
12401   library_names_spec='${libname}${shared_ext}'
12402   dynamic_linker="$host_os ld.so"
12403   shlibpath_var=LIBRARY_PATH
12404   ;;
12405
12406 bsdi[45]*)
12407   version_type=linux
12408   need_version=no
12409   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12410   soname_spec='${libname}${release}${shared_ext}$major'
12411   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12412   shlibpath_var=LD_LIBRARY_PATH
12413   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12414   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12415   # the default ld.so.conf also contains /usr/contrib/lib and
12416   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12417   # libtool to hard-code these into programs
12418   ;;
12419
12420 cygwin* | mingw* | pw32* | cegcc*)
12421   version_type=windows
12422   shrext_cmds=".dll"
12423   need_version=no
12424   need_lib_prefix=no
12425
12426   case $GCC,$cc_basename in
12427   yes,*)
12428     # gcc
12429     library_names_spec='$libname.dll.a'
12430     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12431     postinstall_cmds='base_file=`basename \${file}`~
12432       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12433       dldir=$destdir/`dirname \$dlpath`~
12434       test -d \$dldir || mkdir -p \$dldir~
12435       $install_prog $dir/$dlname \$dldir/$dlname~
12436       chmod a+x \$dldir/$dlname~
12437       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12438         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12439       fi'
12440     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12441       dlpath=$dir/\$dldll~
12442        $RM \$dlpath'
12443     shlibpath_overrides_runpath=yes
12444
12445     case $host_os in
12446     cygwin*)
12447       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12448       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12449
12450       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12451       ;;
12452     mingw* | cegcc*)
12453       # MinGW DLLs use traditional 'lib' prefix
12454       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12455       ;;
12456     pw32*)
12457       # pw32 DLLs use 'pw' prefix rather than 'lib'
12458       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12459       ;;
12460     esac
12461     dynamic_linker='Win32 ld.exe'
12462     ;;
12463
12464   *,cl*)
12465     # Native MSVC
12466     libname_spec='$name'
12467     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12468     library_names_spec='${libname}.dll.lib'
12469
12470     case $build_os in
12471     mingw*)
12472       sys_lib_search_path_spec=
12473       lt_save_ifs=$IFS
12474       IFS=';'
12475       for lt_path in $LIB
12476       do
12477         IFS=$lt_save_ifs
12478         # Let DOS variable expansion print the short 8.3 style file name.
12479         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12480         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12481       done
12482       IFS=$lt_save_ifs
12483       # Convert to MSYS style.
12484       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12485       ;;
12486     cygwin*)
12487       # Convert to unix form, then to dos form, then back to unix form
12488       # but this time dos style (no spaces!) so that the unix form looks
12489       # like /cygdrive/c/PROGRA~1:/cygdr...
12490       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12491       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12492       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12493       ;;
12494     *)
12495       sys_lib_search_path_spec="$LIB"
12496       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12497         # It is most probably a Windows format PATH.
12498         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12499       else
12500         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12501       fi
12502       # FIXME: find the short name or the path components, as spaces are
12503       # common. (e.g. "Program Files" -> "PROGRA~1")
12504       ;;
12505     esac
12506
12507     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12508     postinstall_cmds='base_file=`basename \${file}`~
12509       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12510       dldir=$destdir/`dirname \$dlpath`~
12511       test -d \$dldir || mkdir -p \$dldir~
12512       $install_prog $dir/$dlname \$dldir/$dlname'
12513     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12514       dlpath=$dir/\$dldll~
12515        $RM \$dlpath'
12516     shlibpath_overrides_runpath=yes
12517     dynamic_linker='Win32 link.exe'
12518     ;;
12519
12520   *)
12521     # Assume MSVC wrapper
12522     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12523     dynamic_linker='Win32 ld.exe'
12524     ;;
12525   esac
12526   # FIXME: first we should search . and the directory the executable is in
12527   shlibpath_var=PATH
12528   ;;
12529
12530 darwin* | rhapsody*)
12531   dynamic_linker="$host_os dyld"
12532   version_type=darwin
12533   need_lib_prefix=no
12534   need_version=no
12535   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12536   soname_spec='${libname}${release}${major}$shared_ext'
12537   shlibpath_overrides_runpath=yes
12538   shlibpath_var=DYLD_LIBRARY_PATH
12539   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12540
12541   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12542   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12543   ;;
12544
12545 dgux*)
12546   version_type=linux
12547   need_lib_prefix=no
12548   need_version=no
12549   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12550   soname_spec='${libname}${release}${shared_ext}$major'
12551   shlibpath_var=LD_LIBRARY_PATH
12552   ;;
12553
12554 freebsd1*)
12555   dynamic_linker=no
12556   ;;
12557
12558 freebsd* | dragonfly*)
12559   # DragonFly does not have aout.  When/if they implement a new
12560   # versioning mechanism, adjust this.
12561   if test -x /usr/bin/objformat; then
12562     objformat=`/usr/bin/objformat`
12563   else
12564     case $host_os in
12565     freebsd[123]*) objformat=aout ;;
12566     *) objformat=elf ;;
12567     esac
12568   fi
12569   version_type=freebsd-$objformat
12570   case $version_type in
12571     freebsd-elf*)
12572       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12573       need_version=no
12574       need_lib_prefix=no
12575       ;;
12576     freebsd-*)
12577       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12578       need_version=yes
12579       ;;
12580   esac
12581   shlibpath_var=LD_LIBRARY_PATH
12582   case $host_os in
12583   freebsd2*)
12584     shlibpath_overrides_runpath=yes
12585     ;;
12586   freebsd3.[01]* | freebsdelf3.[01]*)
12587     shlibpath_overrides_runpath=yes
12588     hardcode_into_libs=yes
12589     ;;
12590   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12591   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12592     shlibpath_overrides_runpath=no
12593     hardcode_into_libs=yes
12594     ;;
12595   *) # from 4.6 on, and DragonFly
12596     shlibpath_overrides_runpath=yes
12597     hardcode_into_libs=yes
12598     ;;
12599   esac
12600   ;;
12601
12602 gnu*)
12603   version_type=linux
12604   need_lib_prefix=no
12605   need_version=no
12606   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12607   soname_spec='${libname}${release}${shared_ext}$major'
12608   shlibpath_var=LD_LIBRARY_PATH
12609   hardcode_into_libs=yes
12610   ;;
12611
12612 haiku*)
12613   version_type=linux
12614   need_lib_prefix=no
12615   need_version=no
12616   dynamic_linker="$host_os runtime_loader"
12617   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12618   soname_spec='${libname}${release}${shared_ext}$major'
12619   shlibpath_var=LIBRARY_PATH
12620   shlibpath_overrides_runpath=yes
12621   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12622   hardcode_into_libs=yes
12623   ;;
12624
12625 hpux9* | hpux10* | hpux11*)
12626   # Give a soname corresponding to the major version so that dld.sl refuses to
12627   # link against other versions.
12628   version_type=sunos
12629   need_lib_prefix=no
12630   need_version=no
12631   case $host_cpu in
12632   ia64*)
12633     shrext_cmds='.so'
12634     hardcode_into_libs=yes
12635     dynamic_linker="$host_os dld.so"
12636     shlibpath_var=LD_LIBRARY_PATH
12637     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12638     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12639     soname_spec='${libname}${release}${shared_ext}$major'
12640     if test "X$HPUX_IA64_MODE" = X32; then
12641       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12642     else
12643       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12644     fi
12645     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12646     ;;
12647   hppa*64*)
12648     shrext_cmds='.sl'
12649     hardcode_into_libs=yes
12650     dynamic_linker="$host_os dld.sl"
12651     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12652     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12653     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12654     soname_spec='${libname}${release}${shared_ext}$major'
12655     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12656     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12657     ;;
12658   *)
12659     shrext_cmds='.sl'
12660     dynamic_linker="$host_os dld.sl"
12661     shlibpath_var=SHLIB_PATH
12662     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12663     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12664     soname_spec='${libname}${release}${shared_ext}$major'
12665     ;;
12666   esac
12667   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12668   postinstall_cmds='chmod 555 $lib'
12669   # or fails outright, so override atomically:
12670   install_override_mode=555
12671   ;;
12672
12673 interix[3-9]*)
12674   version_type=linux
12675   need_lib_prefix=no
12676   need_version=no
12677   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12678   soname_spec='${libname}${release}${shared_ext}$major'
12679   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12680   shlibpath_var=LD_LIBRARY_PATH
12681   shlibpath_overrides_runpath=no
12682   hardcode_into_libs=yes
12683   ;;
12684
12685 irix5* | irix6* | nonstopux*)
12686   case $host_os in
12687     nonstopux*) version_type=nonstopux ;;
12688     *)
12689         if test "$lt_cv_prog_gnu_ld" = yes; then
12690                 version_type=linux
12691         else
12692                 version_type=irix
12693         fi ;;
12694   esac
12695   need_lib_prefix=no
12696   need_version=no
12697   soname_spec='${libname}${release}${shared_ext}$major'
12698   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12699   case $host_os in
12700   irix5* | nonstopux*)
12701     libsuff= shlibsuff=
12702     ;;
12703   *)
12704     case $LD in # libtool.m4 will add one of these switches to LD
12705     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12706       libsuff= shlibsuff= libmagic=32-bit;;
12707     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12708       libsuff=32 shlibsuff=N32 libmagic=N32;;
12709     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12710       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12711     *) libsuff= shlibsuff= libmagic=never-match;;
12712     esac
12713     ;;
12714   esac
12715   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12716   shlibpath_overrides_runpath=no
12717   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12718   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12719   hardcode_into_libs=yes
12720   ;;
12721
12722 # No shared lib support for Linux oldld, aout, or coff.
12723 linux*oldld* | linux*aout* | linux*coff*)
12724   dynamic_linker=no
12725   ;;
12726
12727 # This must be Linux ELF.
12728 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12729   version_type=linux
12730   need_lib_prefix=no
12731   need_version=no
12732   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12733   soname_spec='${libname}${release}${shared_ext}$major'
12734   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12735   shlibpath_var=LD_LIBRARY_PATH
12736   shlibpath_overrides_runpath=no
12737
12738   # Some binutils ld are patched to set DT_RUNPATH
12739   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12740   $as_echo_n "(cached) " >&6
12741 else
12742   lt_cv_shlibpath_overrides_runpath=no
12743     save_LDFLAGS=$LDFLAGS
12744     save_libdir=$libdir
12745     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12746          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12747     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12748 /* end confdefs.h.  */
12749
12750 int
12751 main ()
12752 {
12753
12754   ;
12755   return 0;
12756 }
12757 _ACEOF
12758 if ac_fn_c_try_link "$LINENO"; then :
12759   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12760   lt_cv_shlibpath_overrides_runpath=yes
12761 fi
12762 fi
12763 rm -f core conftest.err conftest.$ac_objext \
12764     conftest$ac_exeext conftest.$ac_ext
12765     LDFLAGS=$save_LDFLAGS
12766     libdir=$save_libdir
12767
12768 fi
12769
12770   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12771
12772   # This implies no fast_install, which is unacceptable.
12773   # Some rework will be needed to allow for fast_install
12774   # before this can be enabled.
12775   hardcode_into_libs=yes
12776
12777   # Add ABI-specific directories to the system library path.
12778   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
12779
12780   # Append ld.so.conf contents to the search path
12781   if test -f /etc/ld.so.conf; then
12782     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' ' '`
12783     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
12784
12785   fi
12786
12787   # We used to test for /lib/ld.so.1 and disable shared libraries on
12788   # powerpc, because MkLinux only supported shared libraries with the
12789   # GNU dynamic linker.  Since this was broken with cross compilers,
12790   # most powerpc-linux boxes support dynamic linking these days and
12791   # people can always --disable-shared, the test was removed, and we
12792   # assume the GNU/Linux dynamic linker is in use.
12793   dynamic_linker='GNU/Linux ld.so'
12794   ;;
12795
12796 netbsd*)
12797   version_type=sunos
12798   need_lib_prefix=no
12799   need_version=no
12800   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12801     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12802     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12803     dynamic_linker='NetBSD (a.out) ld.so'
12804   else
12805     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12806     soname_spec='${libname}${release}${shared_ext}$major'
12807     dynamic_linker='NetBSD ld.elf_so'
12808   fi
12809   shlibpath_var=LD_LIBRARY_PATH
12810   shlibpath_overrides_runpath=yes
12811   hardcode_into_libs=yes
12812   ;;
12813
12814 newsos6)
12815   version_type=linux
12816   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12817   shlibpath_var=LD_LIBRARY_PATH
12818   shlibpath_overrides_runpath=yes
12819   ;;
12820
12821 *nto* | *qnx*)
12822   version_type=qnx
12823   need_lib_prefix=no
12824   need_version=no
12825   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12826   soname_spec='${libname}${release}${shared_ext}$major'
12827   shlibpath_var=LD_LIBRARY_PATH
12828   shlibpath_overrides_runpath=no
12829   hardcode_into_libs=yes
12830   dynamic_linker='ldqnx.so'
12831   ;;
12832
12833 openbsd*)
12834   version_type=sunos
12835   sys_lib_dlsearch_path_spec="/usr/lib"
12836   need_lib_prefix=no
12837   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12838   case $host_os in
12839     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
12840     *)                          need_version=no  ;;
12841   esac
12842   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12843   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12844   shlibpath_var=LD_LIBRARY_PATH
12845   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12846     case $host_os in
12847       openbsd2.[89] | openbsd2.[89].*)
12848         shlibpath_overrides_runpath=no
12849         ;;
12850       *)
12851         shlibpath_overrides_runpath=yes
12852         ;;
12853       esac
12854   else
12855     shlibpath_overrides_runpath=yes
12856   fi
12857   ;;
12858
12859 os2*)
12860   libname_spec='$name'
12861   shrext_cmds=".dll"
12862   need_lib_prefix=no
12863   library_names_spec='$libname${shared_ext} $libname.a'
12864   dynamic_linker='OS/2 ld.exe'
12865   shlibpath_var=LIBPATH
12866   ;;
12867
12868 osf3* | osf4* | osf5*)
12869   version_type=osf
12870   need_lib_prefix=no
12871   need_version=no
12872   soname_spec='${libname}${release}${shared_ext}$major'
12873   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12874   shlibpath_var=LD_LIBRARY_PATH
12875   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12876   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12877   ;;
12878
12879 rdos*)
12880   dynamic_linker=no
12881   ;;
12882
12883 solaris*)
12884   version_type=linux
12885   need_lib_prefix=no
12886   need_version=no
12887   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12888   soname_spec='${libname}${release}${shared_ext}$major'
12889   shlibpath_var=LD_LIBRARY_PATH
12890   shlibpath_overrides_runpath=yes
12891   hardcode_into_libs=yes
12892   # ldd complains unless libraries are executable
12893   postinstall_cmds='chmod +x $lib'
12894   ;;
12895
12896 sunos4*)
12897   version_type=sunos
12898   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12899   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12900   shlibpath_var=LD_LIBRARY_PATH
12901   shlibpath_overrides_runpath=yes
12902   if test "$with_gnu_ld" = yes; then
12903     need_lib_prefix=no
12904   fi
12905   need_version=yes
12906   ;;
12907
12908 sysv4 | sysv4.3*)
12909   version_type=linux
12910   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12911   soname_spec='${libname}${release}${shared_ext}$major'
12912   shlibpath_var=LD_LIBRARY_PATH
12913   case $host_vendor in
12914     sni)
12915       shlibpath_overrides_runpath=no
12916       need_lib_prefix=no
12917       runpath_var=LD_RUN_PATH
12918       ;;
12919     siemens)
12920       need_lib_prefix=no
12921       ;;
12922     motorola)
12923       need_lib_prefix=no
12924       need_version=no
12925       shlibpath_overrides_runpath=no
12926       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12927       ;;
12928   esac
12929   ;;
12930
12931 sysv4*MP*)
12932   if test -d /usr/nec ;then
12933     version_type=linux
12934     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12935     soname_spec='$libname${shared_ext}.$major'
12936     shlibpath_var=LD_LIBRARY_PATH
12937   fi
12938   ;;
12939
12940 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12941   version_type=freebsd-elf
12942   need_lib_prefix=no
12943   need_version=no
12944   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12945   soname_spec='${libname}${release}${shared_ext}$major'
12946   shlibpath_var=LD_LIBRARY_PATH
12947   shlibpath_overrides_runpath=yes
12948   hardcode_into_libs=yes
12949   if test "$with_gnu_ld" = yes; then
12950     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12951   else
12952     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12953     case $host_os in
12954       sco3.2v5*)
12955         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12956         ;;
12957     esac
12958   fi
12959   sys_lib_dlsearch_path_spec='/usr/lib'
12960   ;;
12961
12962 tpf*)
12963   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12964   version_type=linux
12965   need_lib_prefix=no
12966   need_version=no
12967   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12968   shlibpath_var=LD_LIBRARY_PATH
12969   shlibpath_overrides_runpath=no
12970   hardcode_into_libs=yes
12971   ;;
12972
12973 uts4*)
12974   version_type=linux
12975   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12976   soname_spec='${libname}${release}${shared_ext}$major'
12977   shlibpath_var=LD_LIBRARY_PATH
12978   ;;
12979
12980 *)
12981   dynamic_linker=no
12982   ;;
12983 esac
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12985 $as_echo "$dynamic_linker" >&6; }
12986 test "$dynamic_linker" = no && can_build_shared=no
12987
12988 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12989 if test "$GCC" = yes; then
12990   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12991 fi
12992
12993 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12994   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12995 fi
12996 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12997   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12998 fi
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090
13091   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13092 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13093 hardcode_action=
13094 if test -n "$hardcode_libdir_flag_spec" ||
13095    test -n "$runpath_var" ||
13096    test "X$hardcode_automatic" = "Xyes" ; then
13097
13098   # We can hardcode non-existent directories.
13099   if test "$hardcode_direct" != no &&
13100      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13101      # have to relink, otherwise we might link with an installed library
13102      # when we should be linking with a yet-to-be-installed one
13103      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13104      test "$hardcode_minus_L" != no; then
13105     # Linking always hardcodes the temporary library directory.
13106     hardcode_action=relink
13107   else
13108     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13109     hardcode_action=immediate
13110   fi
13111 else
13112   # We cannot hardcode anything, or else we can only hardcode existing
13113   # directories.
13114   hardcode_action=unsupported
13115 fi
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13117 $as_echo "$hardcode_action" >&6; }
13118
13119 if test "$hardcode_action" = relink ||
13120    test "$inherit_rpath" = yes; then
13121   # Fast installation is not supported
13122   enable_fast_install=no
13123 elif test "$shlibpath_overrides_runpath" = yes ||
13124      test "$enable_shared" = no; then
13125   # Fast installation is not necessary
13126   enable_fast_install=needless
13127 fi
13128
13129
13130
13131
13132
13133
13134   if test "x$enable_dlopen" != xyes; then
13135   enable_dlopen=unknown
13136   enable_dlopen_self=unknown
13137   enable_dlopen_self_static=unknown
13138 else
13139   lt_cv_dlopen=no
13140   lt_cv_dlopen_libs=
13141
13142   case $host_os in
13143   beos*)
13144     lt_cv_dlopen="load_add_on"
13145     lt_cv_dlopen_libs=
13146     lt_cv_dlopen_self=yes
13147     ;;
13148
13149   mingw* | pw32* | cegcc*)
13150     lt_cv_dlopen="LoadLibrary"
13151     lt_cv_dlopen_libs=
13152     ;;
13153
13154   cygwin*)
13155     lt_cv_dlopen="dlopen"
13156     lt_cv_dlopen_libs=
13157     ;;
13158
13159   darwin*)
13160   # if libdl is installed we need to link against it
13161     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13162 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13163 if ${ac_cv_lib_dl_dlopen+:} false; then :
13164   $as_echo_n "(cached) " >&6
13165 else
13166   ac_check_lib_save_LIBS=$LIBS
13167 LIBS="-ldl  $LIBS"
13168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13169 /* end confdefs.h.  */
13170
13171 /* Override any GCC internal prototype to avoid an error.
13172    Use char because int might match the return type of a GCC
13173    builtin and then its argument prototype would still apply.  */
13174 #ifdef __cplusplus
13175 extern "C"
13176 #endif
13177 char dlopen ();
13178 int
13179 main ()
13180 {
13181 return dlopen ();
13182   ;
13183   return 0;
13184 }
13185 _ACEOF
13186 if ac_fn_c_try_link "$LINENO"; then :
13187   ac_cv_lib_dl_dlopen=yes
13188 else
13189   ac_cv_lib_dl_dlopen=no
13190 fi
13191 rm -f core conftest.err conftest.$ac_objext \
13192     conftest$ac_exeext conftest.$ac_ext
13193 LIBS=$ac_check_lib_save_LIBS
13194 fi
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13196 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13197 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13198   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13199 else
13200
13201     lt_cv_dlopen="dyld"
13202     lt_cv_dlopen_libs=
13203     lt_cv_dlopen_self=yes
13204
13205 fi
13206
13207     ;;
13208
13209   *)
13210     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13211 if test "x$ac_cv_func_shl_load" = xyes; then :
13212   lt_cv_dlopen="shl_load"
13213 else
13214   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13215 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13216 if ${ac_cv_lib_dld_shl_load+:} false; then :
13217   $as_echo_n "(cached) " >&6
13218 else
13219   ac_check_lib_save_LIBS=$LIBS
13220 LIBS="-ldld  $LIBS"
13221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13222 /* end confdefs.h.  */
13223
13224 /* Override any GCC internal prototype to avoid an error.
13225    Use char because int might match the return type of a GCC
13226    builtin and then its argument prototype would still apply.  */
13227 #ifdef __cplusplus
13228 extern "C"
13229 #endif
13230 char shl_load ();
13231 int
13232 main ()
13233 {
13234 return shl_load ();
13235   ;
13236   return 0;
13237 }
13238 _ACEOF
13239 if ac_fn_c_try_link "$LINENO"; then :
13240   ac_cv_lib_dld_shl_load=yes
13241 else
13242   ac_cv_lib_dld_shl_load=no
13243 fi
13244 rm -f core conftest.err conftest.$ac_objext \
13245     conftest$ac_exeext conftest.$ac_ext
13246 LIBS=$ac_check_lib_save_LIBS
13247 fi
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13249 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13250 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13251   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13252 else
13253   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13254 if test "x$ac_cv_func_dlopen" = xyes; then :
13255   lt_cv_dlopen="dlopen"
13256 else
13257   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13258 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13259 if ${ac_cv_lib_dl_dlopen+:} false; then :
13260   $as_echo_n "(cached) " >&6
13261 else
13262   ac_check_lib_save_LIBS=$LIBS
13263 LIBS="-ldl  $LIBS"
13264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13265 /* end confdefs.h.  */
13266
13267 /* Override any GCC internal prototype to avoid an error.
13268    Use char because int might match the return type of a GCC
13269    builtin and then its argument prototype would still apply.  */
13270 #ifdef __cplusplus
13271 extern "C"
13272 #endif
13273 char dlopen ();
13274 int
13275 main ()
13276 {
13277 return dlopen ();
13278   ;
13279   return 0;
13280 }
13281 _ACEOF
13282 if ac_fn_c_try_link "$LINENO"; then :
13283   ac_cv_lib_dl_dlopen=yes
13284 else
13285   ac_cv_lib_dl_dlopen=no
13286 fi
13287 rm -f core conftest.err conftest.$ac_objext \
13288     conftest$ac_exeext conftest.$ac_ext
13289 LIBS=$ac_check_lib_save_LIBS
13290 fi
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13292 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13293 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13294   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13295 else
13296   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13297 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13298 if ${ac_cv_lib_svld_dlopen+:} false; then :
13299   $as_echo_n "(cached) " >&6
13300 else
13301   ac_check_lib_save_LIBS=$LIBS
13302 LIBS="-lsvld  $LIBS"
13303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13304 /* end confdefs.h.  */
13305
13306 /* Override any GCC internal prototype to avoid an error.
13307    Use char because int might match the return type of a GCC
13308    builtin and then its argument prototype would still apply.  */
13309 #ifdef __cplusplus
13310 extern "C"
13311 #endif
13312 char dlopen ();
13313 int
13314 main ()
13315 {
13316 return dlopen ();
13317   ;
13318   return 0;
13319 }
13320 _ACEOF
13321 if ac_fn_c_try_link "$LINENO"; then :
13322   ac_cv_lib_svld_dlopen=yes
13323 else
13324   ac_cv_lib_svld_dlopen=no
13325 fi
13326 rm -f core conftest.err conftest.$ac_objext \
13327     conftest$ac_exeext conftest.$ac_ext
13328 LIBS=$ac_check_lib_save_LIBS
13329 fi
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13331 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13332 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13333   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13334 else
13335   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13336 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13337 if ${ac_cv_lib_dld_dld_link+:} false; then :
13338   $as_echo_n "(cached) " >&6
13339 else
13340   ac_check_lib_save_LIBS=$LIBS
13341 LIBS="-ldld  $LIBS"
13342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13343 /* end confdefs.h.  */
13344
13345 /* Override any GCC internal prototype to avoid an error.
13346    Use char because int might match the return type of a GCC
13347    builtin and then its argument prototype would still apply.  */
13348 #ifdef __cplusplus
13349 extern "C"
13350 #endif
13351 char dld_link ();
13352 int
13353 main ()
13354 {
13355 return dld_link ();
13356   ;
13357   return 0;
13358 }
13359 _ACEOF
13360 if ac_fn_c_try_link "$LINENO"; then :
13361   ac_cv_lib_dld_dld_link=yes
13362 else
13363   ac_cv_lib_dld_dld_link=no
13364 fi
13365 rm -f core conftest.err conftest.$ac_objext \
13366     conftest$ac_exeext conftest.$ac_ext
13367 LIBS=$ac_check_lib_save_LIBS
13368 fi
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13370 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13371 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13372   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13373 fi
13374
13375
13376 fi
13377
13378
13379 fi
13380
13381
13382 fi
13383
13384
13385 fi
13386
13387
13388 fi
13389
13390     ;;
13391   esac
13392
13393   if test "x$lt_cv_dlopen" != xno; then
13394     enable_dlopen=yes
13395   else
13396     enable_dlopen=no
13397   fi
13398
13399   case $lt_cv_dlopen in
13400   dlopen)
13401     save_CPPFLAGS="$CPPFLAGS"
13402     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13403
13404     save_LDFLAGS="$LDFLAGS"
13405     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13406
13407     save_LIBS="$LIBS"
13408     LIBS="$lt_cv_dlopen_libs $LIBS"
13409
13410     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13411 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13412 if ${lt_cv_dlopen_self+:} false; then :
13413   $as_echo_n "(cached) " >&6
13414 else
13415           if test "$cross_compiling" = yes; then :
13416   lt_cv_dlopen_self=cross
13417 else
13418   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13419   lt_status=$lt_dlunknown
13420   cat > conftest.$ac_ext <<_LT_EOF
13421 #line $LINENO "configure"
13422 #include "confdefs.h"
13423
13424 #if HAVE_DLFCN_H
13425 #include <dlfcn.h>
13426 #endif
13427
13428 #include <stdio.h>
13429
13430 #ifdef RTLD_GLOBAL
13431 #  define LT_DLGLOBAL           RTLD_GLOBAL
13432 #else
13433 #  ifdef DL_GLOBAL
13434 #    define LT_DLGLOBAL         DL_GLOBAL
13435 #  else
13436 #    define LT_DLGLOBAL         0
13437 #  endif
13438 #endif
13439
13440 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13441    find out it does not work in some platform. */
13442 #ifndef LT_DLLAZY_OR_NOW
13443 #  ifdef RTLD_LAZY
13444 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13445 #  else
13446 #    ifdef DL_LAZY
13447 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13448 #    else
13449 #      ifdef RTLD_NOW
13450 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13451 #      else
13452 #        ifdef DL_NOW
13453 #          define LT_DLLAZY_OR_NOW      DL_NOW
13454 #        else
13455 #          define LT_DLLAZY_OR_NOW      0
13456 #        endif
13457 #      endif
13458 #    endif
13459 #  endif
13460 #endif
13461
13462 /* When -fvisbility=hidden is used, assume the code has been annotated
13463    correspondingly for the symbols needed.  */
13464 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13465 int fnord () __attribute__((visibility("default")));
13466 #endif
13467
13468 int fnord () { return 42; }
13469 int main ()
13470 {
13471   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13472   int status = $lt_dlunknown;
13473
13474   if (self)
13475     {
13476       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13477       else
13478         {
13479           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13480           else puts (dlerror ());
13481         }
13482       /* dlclose (self); */
13483     }
13484   else
13485     puts (dlerror ());
13486
13487   return status;
13488 }
13489 _LT_EOF
13490   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13491   (eval $ac_link) 2>&5
13492   ac_status=$?
13493   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13494   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13495     (./conftest; exit; ) >&5 2>/dev/null
13496     lt_status=$?
13497     case x$lt_status in
13498       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13499       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13500       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13501     esac
13502   else :
13503     # compilation failed
13504     lt_cv_dlopen_self=no
13505   fi
13506 fi
13507 rm -fr conftest*
13508
13509
13510 fi
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13512 $as_echo "$lt_cv_dlopen_self" >&6; }
13513
13514     if test "x$lt_cv_dlopen_self" = xyes; then
13515       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13516       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13517 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13518 if ${lt_cv_dlopen_self_static+:} false; then :
13519   $as_echo_n "(cached) " >&6
13520 else
13521           if test "$cross_compiling" = yes; then :
13522   lt_cv_dlopen_self_static=cross
13523 else
13524   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13525   lt_status=$lt_dlunknown
13526   cat > conftest.$ac_ext <<_LT_EOF
13527 #line $LINENO "configure"
13528 #include "confdefs.h"
13529
13530 #if HAVE_DLFCN_H
13531 #include <dlfcn.h>
13532 #endif
13533
13534 #include <stdio.h>
13535
13536 #ifdef RTLD_GLOBAL
13537 #  define LT_DLGLOBAL           RTLD_GLOBAL
13538 #else
13539 #  ifdef DL_GLOBAL
13540 #    define LT_DLGLOBAL         DL_GLOBAL
13541 #  else
13542 #    define LT_DLGLOBAL         0
13543 #  endif
13544 #endif
13545
13546 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13547    find out it does not work in some platform. */
13548 #ifndef LT_DLLAZY_OR_NOW
13549 #  ifdef RTLD_LAZY
13550 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13551 #  else
13552 #    ifdef DL_LAZY
13553 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13554 #    else
13555 #      ifdef RTLD_NOW
13556 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13557 #      else
13558 #        ifdef DL_NOW
13559 #          define LT_DLLAZY_OR_NOW      DL_NOW
13560 #        else
13561 #          define LT_DLLAZY_OR_NOW      0
13562 #        endif
13563 #      endif
13564 #    endif
13565 #  endif
13566 #endif
13567
13568 /* When -fvisbility=hidden is used, assume the code has been annotated
13569    correspondingly for the symbols needed.  */
13570 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13571 int fnord () __attribute__((visibility("default")));
13572 #endif
13573
13574 int fnord () { return 42; }
13575 int main ()
13576 {
13577   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13578   int status = $lt_dlunknown;
13579
13580   if (self)
13581     {
13582       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13583       else
13584         {
13585           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13586           else puts (dlerror ());
13587         }
13588       /* dlclose (self); */
13589     }
13590   else
13591     puts (dlerror ());
13592
13593   return status;
13594 }
13595 _LT_EOF
13596   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13597   (eval $ac_link) 2>&5
13598   ac_status=$?
13599   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13600   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13601     (./conftest; exit; ) >&5 2>/dev/null
13602     lt_status=$?
13603     case x$lt_status in
13604       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13605       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13606       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13607     esac
13608   else :
13609     # compilation failed
13610     lt_cv_dlopen_self_static=no
13611   fi
13612 fi
13613 rm -fr conftest*
13614
13615
13616 fi
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13618 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13619     fi
13620
13621     CPPFLAGS="$save_CPPFLAGS"
13622     LDFLAGS="$save_LDFLAGS"
13623     LIBS="$save_LIBS"
13624     ;;
13625   esac
13626
13627   case $lt_cv_dlopen_self in
13628   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13629   *) enable_dlopen_self=unknown ;;
13630   esac
13631
13632   case $lt_cv_dlopen_self_static in
13633   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13634   *) enable_dlopen_self_static=unknown ;;
13635   esac
13636 fi
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654 striplib=
13655 old_striplib=
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13657 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13658 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13659   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13660   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13662 $as_echo "yes" >&6; }
13663 else
13664 # FIXME - insert some real tests, host_os isn't really good enough
13665   case $host_os in
13666   darwin*)
13667     if test -n "$STRIP" ; then
13668       striplib="$STRIP -x"
13669       old_striplib="$STRIP -S"
13670       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13671 $as_echo "yes" >&6; }
13672     else
13673       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13674 $as_echo "no" >&6; }
13675     fi
13676     ;;
13677   *)
13678     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13679 $as_echo "no" >&6; }
13680     ;;
13681   esac
13682 fi
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695   # Report which library types will actually be built
13696   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13697 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13699 $as_echo "$can_build_shared" >&6; }
13700
13701   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13702 $as_echo_n "checking whether to build shared libraries... " >&6; }
13703   test "$can_build_shared" = "no" && enable_shared=no
13704
13705   # On AIX, shared libraries and static libraries use the same namespace, and
13706   # are all built from PIC.
13707   case $host_os in
13708   aix3*)
13709     test "$enable_shared" = yes && enable_static=no
13710     if test -n "$RANLIB"; then
13711       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13712       postinstall_cmds='$RANLIB $lib'
13713     fi
13714     ;;
13715
13716   aix[4-9]*)
13717     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13718       test "$enable_shared" = yes && enable_static=no
13719     fi
13720     ;;
13721   esac
13722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13723 $as_echo "$enable_shared" >&6; }
13724
13725   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13726 $as_echo_n "checking whether to build static libraries... " >&6; }
13727   # Make sure either enable_shared or enable_static is yes.
13728   test "$enable_shared" = yes || enable_static=yes
13729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13730 $as_echo "$enable_static" >&6; }
13731
13732
13733
13734
13735 fi
13736 ac_ext=c
13737 ac_cpp='$CPP $CPPFLAGS'
13738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13741
13742 CC="$lt_save_CC"
13743
13744       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13745     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13746     (test "X$CXX" != "Xg++"))) ; then
13747   ac_ext=cpp
13748 ac_cpp='$CXXCPP $CPPFLAGS'
13749 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13750 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13751 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13753 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13754 if test -z "$CXXCPP"; then
13755   if ${ac_cv_prog_CXXCPP+:} false; then :
13756   $as_echo_n "(cached) " >&6
13757 else
13758       # Double quotes because CXXCPP needs to be expanded
13759     for CXXCPP in "$CXX -E" "/lib/cpp"
13760     do
13761       ac_preproc_ok=false
13762 for ac_cxx_preproc_warn_flag in '' yes
13763 do
13764   # Use a header file that comes with gcc, so configuring glibc
13765   # with a fresh cross-compiler works.
13766   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13767   # <limits.h> exists even on freestanding compilers.
13768   # On the NeXT, cc -E runs the code through the compiler's parser,
13769   # not just through cpp. "Syntax error" is here to catch this case.
13770   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13771 /* end confdefs.h.  */
13772 #ifdef __STDC__
13773 # include <limits.h>
13774 #else
13775 # include <assert.h>
13776 #endif
13777                      Syntax error
13778 _ACEOF
13779 if ac_fn_cxx_try_cpp "$LINENO"; then :
13780
13781 else
13782   # Broken: fails on valid input.
13783 continue
13784 fi
13785 rm -f conftest.err conftest.i conftest.$ac_ext
13786
13787   # OK, works on sane cases.  Now check whether nonexistent headers
13788   # can be detected and how.
13789   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13790 /* end confdefs.h.  */
13791 #include <ac_nonexistent.h>
13792 _ACEOF
13793 if ac_fn_cxx_try_cpp "$LINENO"; then :
13794   # Broken: success on invalid input.
13795 continue
13796 else
13797   # Passes both tests.
13798 ac_preproc_ok=:
13799 break
13800 fi
13801 rm -f conftest.err conftest.i conftest.$ac_ext
13802
13803 done
13804 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13805 rm -f conftest.i conftest.err conftest.$ac_ext
13806 if $ac_preproc_ok; then :
13807   break
13808 fi
13809
13810     done
13811     ac_cv_prog_CXXCPP=$CXXCPP
13812
13813 fi
13814   CXXCPP=$ac_cv_prog_CXXCPP
13815 else
13816   ac_cv_prog_CXXCPP=$CXXCPP
13817 fi
13818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13819 $as_echo "$CXXCPP" >&6; }
13820 ac_preproc_ok=false
13821 for ac_cxx_preproc_warn_flag in '' yes
13822 do
13823   # Use a header file that comes with gcc, so configuring glibc
13824   # with a fresh cross-compiler works.
13825   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13826   # <limits.h> exists even on freestanding compilers.
13827   # On the NeXT, cc -E runs the code through the compiler's parser,
13828   # not just through cpp. "Syntax error" is here to catch this case.
13829   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13830 /* end confdefs.h.  */
13831 #ifdef __STDC__
13832 # include <limits.h>
13833 #else
13834 # include <assert.h>
13835 #endif
13836                      Syntax error
13837 _ACEOF
13838 if ac_fn_cxx_try_cpp "$LINENO"; then :
13839
13840 else
13841   # Broken: fails on valid input.
13842 continue
13843 fi
13844 rm -f conftest.err conftest.i conftest.$ac_ext
13845
13846   # OK, works on sane cases.  Now check whether nonexistent headers
13847   # can be detected and how.
13848   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13849 /* end confdefs.h.  */
13850 #include <ac_nonexistent.h>
13851 _ACEOF
13852 if ac_fn_cxx_try_cpp "$LINENO"; then :
13853   # Broken: success on invalid input.
13854 continue
13855 else
13856   # Passes both tests.
13857 ac_preproc_ok=:
13858 break
13859 fi
13860 rm -f conftest.err conftest.i conftest.$ac_ext
13861
13862 done
13863 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13864 rm -f conftest.i conftest.err conftest.$ac_ext
13865 if $ac_preproc_ok; then :
13866
13867 else
13868   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13869 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13870 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13871 See \`config.log' for more details" "$LINENO" 5; }
13872 fi
13873
13874 ac_ext=c
13875 ac_cpp='$CPP $CPPFLAGS'
13876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13879
13880 else
13881   _lt_caught_CXX_error=yes
13882 fi
13883
13884 ac_ext=cpp
13885 ac_cpp='$CXXCPP $CPPFLAGS'
13886 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13887 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13888 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13889
13890 archive_cmds_need_lc_CXX=no
13891 allow_undefined_flag_CXX=
13892 always_export_symbols_CXX=no
13893 archive_expsym_cmds_CXX=
13894 compiler_needs_object_CXX=no
13895 export_dynamic_flag_spec_CXX=
13896 hardcode_direct_CXX=no
13897 hardcode_direct_absolute_CXX=no
13898 hardcode_libdir_flag_spec_CXX=
13899 hardcode_libdir_flag_spec_ld_CXX=
13900 hardcode_libdir_separator_CXX=
13901 hardcode_minus_L_CXX=no
13902 hardcode_shlibpath_var_CXX=unsupported
13903 hardcode_automatic_CXX=no
13904 inherit_rpath_CXX=no
13905 module_cmds_CXX=
13906 module_expsym_cmds_CXX=
13907 link_all_deplibs_CXX=unknown
13908 old_archive_cmds_CXX=$old_archive_cmds
13909 reload_flag_CXX=$reload_flag
13910 reload_cmds_CXX=$reload_cmds
13911 no_undefined_flag_CXX=
13912 whole_archive_flag_spec_CXX=
13913 enable_shared_with_static_runtimes_CXX=no
13914
13915 # Source file extension for C++ test sources.
13916 ac_ext=cpp
13917
13918 # Object file extension for compiled C++ test sources.
13919 objext=o
13920 objext_CXX=$objext
13921
13922 # No sense in running all these tests if we already determined that
13923 # the CXX compiler isn't working.  Some variables (like enable_shared)
13924 # are currently assumed to apply to all compilers on this platform,
13925 # and will be corrupted by setting them based on a non-working compiler.
13926 if test "$_lt_caught_CXX_error" != yes; then
13927   # Code to be used in simple compile tests
13928   lt_simple_compile_test_code="int some_variable = 0;"
13929
13930   # Code to be used in simple link tests
13931   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13932
13933   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13934
13935
13936
13937
13938
13939
13940 # If no C compiler was specified, use CC.
13941 LTCC=${LTCC-"$CC"}
13942
13943 # If no C compiler flags were specified, use CFLAGS.
13944 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13945
13946 # Allow CC to be a program name with arguments.
13947 compiler=$CC
13948
13949
13950   # save warnings/boilerplate of simple test code
13951   ac_outfile=conftest.$ac_objext
13952 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13953 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13954 _lt_compiler_boilerplate=`cat conftest.err`
13955 $RM conftest*
13956
13957   ac_outfile=conftest.$ac_objext
13958 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13959 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13960 _lt_linker_boilerplate=`cat conftest.err`
13961 $RM -r conftest*
13962
13963
13964   # Allow CC to be a program name with arguments.
13965   lt_save_CC=$CC
13966   lt_save_CFLAGS=$CFLAGS
13967   lt_save_LD=$LD
13968   lt_save_GCC=$GCC
13969   GCC=$GXX
13970   lt_save_with_gnu_ld=$with_gnu_ld
13971   lt_save_path_LD=$lt_cv_path_LD
13972   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13973     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13974   else
13975     $as_unset lt_cv_prog_gnu_ld
13976   fi
13977   if test -n "${lt_cv_path_LDCXX+set}"; then
13978     lt_cv_path_LD=$lt_cv_path_LDCXX
13979   else
13980     $as_unset lt_cv_path_LD
13981   fi
13982   test -z "${LDCXX+set}" || LD=$LDCXX
13983   CC=${CXX-"c++"}
13984   CFLAGS=$CXXFLAGS
13985   compiler=$CC
13986   compiler_CXX=$CC
13987   for cc_temp in $compiler""; do
13988   case $cc_temp in
13989     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13990     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13991     \-*) ;;
13992     *) break;;
13993   esac
13994 done
13995 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13996
13997
13998   if test -n "$compiler"; then
13999     # We don't want -fno-exception when compiling C++ code, so set the
14000     # no_builtin_flag separately
14001     if test "$GXX" = yes; then
14002       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14003     else
14004       lt_prog_compiler_no_builtin_flag_CXX=
14005     fi
14006
14007     if test "$GXX" = yes; then
14008       # Set up default GNU C++ configuration
14009
14010
14011
14012 # Check whether --with-gnu-ld was given.
14013 if test "${with_gnu_ld+set}" = set; then :
14014   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14015 else
14016   with_gnu_ld=no
14017 fi
14018
14019 ac_prog=ld
14020 if test "$GCC" = yes; then
14021   # Check if gcc -print-prog-name=ld gives a path.
14022   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14023 $as_echo_n "checking for ld used by $CC... " >&6; }
14024   case $host in
14025   *-*-mingw*)
14026     # gcc leaves a trailing carriage return which upsets mingw
14027     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14028   *)
14029     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14030   esac
14031   case $ac_prog in
14032     # Accept absolute paths.
14033     [\\/]* | ?:[\\/]*)
14034       re_direlt='/[^/][^/]*/\.\./'
14035       # Canonicalize the pathname of ld
14036       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14037       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14038         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14039       done
14040       test -z "$LD" && LD="$ac_prog"
14041       ;;
14042   "")
14043     # If it fails, then pretend we aren't using GCC.
14044     ac_prog=ld
14045     ;;
14046   *)
14047     # If it is relative, then search for the first ld in PATH.
14048     with_gnu_ld=unknown
14049     ;;
14050   esac
14051 elif test "$with_gnu_ld" = yes; then
14052   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14053 $as_echo_n "checking for GNU ld... " >&6; }
14054 else
14055   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14056 $as_echo_n "checking for non-GNU ld... " >&6; }
14057 fi
14058 if ${lt_cv_path_LD+:} false; then :
14059   $as_echo_n "(cached) " >&6
14060 else
14061   if test -z "$LD"; then
14062   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14063   for ac_dir in $PATH; do
14064     IFS="$lt_save_ifs"
14065     test -z "$ac_dir" && ac_dir=.
14066     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14067       lt_cv_path_LD="$ac_dir/$ac_prog"
14068       # Check to see if the program is GNU ld.  I'd rather use --version,
14069       # but apparently some variants of GNU ld only accept -v.
14070       # Break only if it was the GNU/non-GNU ld that we prefer.
14071       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14072       *GNU* | *'with BFD'*)
14073         test "$with_gnu_ld" != no && break
14074         ;;
14075       *)
14076         test "$with_gnu_ld" != yes && break
14077         ;;
14078       esac
14079     fi
14080   done
14081   IFS="$lt_save_ifs"
14082 else
14083   lt_cv_path_LD="$LD" # Let the user override the test with a path.
14084 fi
14085 fi
14086
14087 LD="$lt_cv_path_LD"
14088 if test -n "$LD"; then
14089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14090 $as_echo "$LD" >&6; }
14091 else
14092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14093 $as_echo "no" >&6; }
14094 fi
14095 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14097 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14098 if ${lt_cv_prog_gnu_ld+:} false; then :
14099   $as_echo_n "(cached) " >&6
14100 else
14101   # I'd rather use --version here, but apparently some GNU lds only accept -v.
14102 case `$LD -v 2>&1 </dev/null` in
14103 *GNU* | *'with BFD'*)
14104   lt_cv_prog_gnu_ld=yes
14105   ;;
14106 *)
14107   lt_cv_prog_gnu_ld=no
14108   ;;
14109 esac
14110 fi
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14112 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14113 with_gnu_ld=$lt_cv_prog_gnu_ld
14114
14115
14116
14117
14118
14119
14120
14121       # Check if GNU C++ uses GNU ld as the underlying linker, since the
14122       # archiving commands below assume that GNU ld is being used.
14123       if test "$with_gnu_ld" = yes; then
14124         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14125         archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14126
14127         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14128         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14129
14130         # If archive_cmds runs LD, not CC, wlarc should be empty
14131         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14132         #     investigate it a little bit more. (MM)
14133         wlarc='${wl}'
14134
14135         # ancient GNU ld didn't support --whole-archive et. al.
14136         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14137           $GREP 'no-whole-archive' > /dev/null; then
14138           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14139         else
14140           whole_archive_flag_spec_CXX=
14141         fi
14142       else
14143         with_gnu_ld=no
14144         wlarc=
14145
14146         # A generic and very simple default shared library creation
14147         # command for GNU C++ for the case where it uses the native
14148         # linker, instead of GNU ld.  If possible, this setting should
14149         # overridden to take advantage of the native linker features on
14150         # the platform it is being used on.
14151         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14152       fi
14153
14154       # Commands to make compiler produce verbose output that lists
14155       # what "hidden" libraries, object files and flags are used when
14156       # linking a shared library.
14157       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14158
14159     else
14160       GXX=no
14161       with_gnu_ld=no
14162       wlarc=
14163     fi
14164
14165     # PORTME: fill in a description of your system's C++ link characteristics
14166     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14167 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14168     ld_shlibs_CXX=yes
14169     case $host_os in
14170       aix3*)
14171         # FIXME: insert proper C++ library support
14172         ld_shlibs_CXX=no
14173         ;;
14174       aix[4-9]*)
14175         if test "$host_cpu" = ia64; then
14176           # On IA64, the linker does run time linking by default, so we don't
14177           # have to do anything special.
14178           aix_use_runtimelinking=no
14179           exp_sym_flag='-Bexport'
14180           no_entry_flag=""
14181         else
14182           aix_use_runtimelinking=no
14183
14184           # Test if we are trying to use run time linking or normal
14185           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14186           # need to do runtime linking.
14187           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14188             for ld_flag in $LDFLAGS; do
14189               case $ld_flag in
14190               *-brtl*)
14191                 aix_use_runtimelinking=yes
14192                 break
14193                 ;;
14194               esac
14195             done
14196             ;;
14197           esac
14198
14199           exp_sym_flag='-bexport'
14200           no_entry_flag='-bnoentry'
14201         fi
14202
14203         # When large executables or shared objects are built, AIX ld can
14204         # have problems creating the table of contents.  If linking a library
14205         # or program results in "error TOC overflow" add -mminimal-toc to
14206         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14207         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14208
14209         archive_cmds_CXX=''
14210         hardcode_direct_CXX=yes
14211         hardcode_direct_absolute_CXX=yes
14212         hardcode_libdir_separator_CXX=':'
14213         link_all_deplibs_CXX=yes
14214         file_list_spec_CXX='${wl}-f,'
14215
14216         if test "$GXX" = yes; then
14217           case $host_os in aix4.[012]|aix4.[012].*)
14218           # We only want to do this on AIX 4.2 and lower, the check
14219           # below for broken collect2 doesn't work under 4.3+
14220           collect2name=`${CC} -print-prog-name=collect2`
14221           if test -f "$collect2name" &&
14222              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14223           then
14224             # We have reworked collect2
14225             :
14226           else
14227             # We have old collect2
14228             hardcode_direct_CXX=unsupported
14229             # It fails to find uninstalled libraries when the uninstalled
14230             # path is not listed in the libpath.  Setting hardcode_minus_L
14231             # to unsupported forces relinking
14232             hardcode_minus_L_CXX=yes
14233             hardcode_libdir_flag_spec_CXX='-L$libdir'
14234             hardcode_libdir_separator_CXX=
14235           fi
14236           esac
14237           shared_flag='-shared'
14238           if test "$aix_use_runtimelinking" = yes; then
14239             shared_flag="$shared_flag "'${wl}-G'
14240           fi
14241         else
14242           # not using gcc
14243           if test "$host_cpu" = ia64; then
14244           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14245           # chokes on -Wl,-G. The following line is correct:
14246           shared_flag='-G'
14247           else
14248             if test "$aix_use_runtimelinking" = yes; then
14249               shared_flag='${wl}-G'
14250             else
14251               shared_flag='${wl}-bM:SRE'
14252             fi
14253           fi
14254         fi
14255
14256         export_dynamic_flag_spec_CXX='${wl}-bexpall'
14257         # It seems that -bexpall does not export symbols beginning with
14258         # underscore (_), so it is better to generate a list of symbols to
14259         # export.
14260         always_export_symbols_CXX=yes
14261         if test "$aix_use_runtimelinking" = yes; then
14262           # Warning - without using the other runtime loading flags (-brtl),
14263           # -berok will link without error, but may produce a broken library.
14264           allow_undefined_flag_CXX='-berok'
14265           # Determine the default libpath from the value encoded in an empty
14266           # executable.
14267           if test "${lt_cv_aix_libpath+set}" = set; then
14268   aix_libpath=$lt_cv_aix_libpath
14269 else
14270   if ${lt_cv_aix_libpath__CXX+:} false; then :
14271   $as_echo_n "(cached) " >&6
14272 else
14273   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14274 /* end confdefs.h.  */
14275
14276 int
14277 main ()
14278 {
14279
14280   ;
14281   return 0;
14282 }
14283 _ACEOF
14284 if ac_fn_cxx_try_link "$LINENO"; then :
14285
14286   lt_aix_libpath_sed='
14287       /Import File Strings/,/^$/ {
14288           /^0/ {
14289               s/^0  *\([^ ]*\) *$/\1/
14290               p
14291           }
14292       }'
14293   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14294   # Check for a 64-bit object if we didn't find anything.
14295   if test -z "$lt_cv_aix_libpath__CXX"; then
14296     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14297   fi
14298 fi
14299 rm -f core conftest.err conftest.$ac_objext \
14300     conftest$ac_exeext conftest.$ac_ext
14301   if test -z "$lt_cv_aix_libpath__CXX"; then
14302     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14303   fi
14304
14305 fi
14306
14307   aix_libpath=$lt_cv_aix_libpath__CXX
14308 fi
14309
14310           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14311
14312           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14313         else
14314           if test "$host_cpu" = ia64; then
14315             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14316             allow_undefined_flag_CXX="-z nodefs"
14317             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14318           else
14319             # Determine the default libpath from the value encoded in an
14320             # empty executable.
14321             if test "${lt_cv_aix_libpath+set}" = set; then
14322   aix_libpath=$lt_cv_aix_libpath
14323 else
14324   if ${lt_cv_aix_libpath__CXX+:} false; then :
14325   $as_echo_n "(cached) " >&6
14326 else
14327   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14328 /* end confdefs.h.  */
14329
14330 int
14331 main ()
14332 {
14333
14334   ;
14335   return 0;
14336 }
14337 _ACEOF
14338 if ac_fn_cxx_try_link "$LINENO"; then :
14339
14340   lt_aix_libpath_sed='
14341       /Import File Strings/,/^$/ {
14342           /^0/ {
14343               s/^0  *\([^ ]*\) *$/\1/
14344               p
14345           }
14346       }'
14347   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14348   # Check for a 64-bit object if we didn't find anything.
14349   if test -z "$lt_cv_aix_libpath__CXX"; then
14350     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14351   fi
14352 fi
14353 rm -f core conftest.err conftest.$ac_objext \
14354     conftest$ac_exeext conftest.$ac_ext
14355   if test -z "$lt_cv_aix_libpath__CXX"; then
14356     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14357   fi
14358
14359 fi
14360
14361   aix_libpath=$lt_cv_aix_libpath__CXX
14362 fi
14363
14364             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14365             # Warning - without using the other run time loading flags,
14366             # -berok will link without error, but may produce a broken library.
14367             no_undefined_flag_CXX=' ${wl}-bernotok'
14368             allow_undefined_flag_CXX=' ${wl}-berok'
14369             if test "$with_gnu_ld" = yes; then
14370               # We only use this code for GNU lds that support --whole-archive.
14371               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14372             else
14373               # Exported symbols can be pulled into shared objects from archives
14374               whole_archive_flag_spec_CXX='$convenience'
14375             fi
14376             archive_cmds_need_lc_CXX=yes
14377             # This is similar to how AIX traditionally builds its shared
14378             # libraries.
14379             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14380           fi
14381         fi
14382         ;;
14383
14384       beos*)
14385         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14386           allow_undefined_flag_CXX=unsupported
14387           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14388           # support --undefined.  This deserves some investigation.  FIXME
14389           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14390         else
14391           ld_shlibs_CXX=no
14392         fi
14393         ;;
14394
14395       chorus*)
14396         case $cc_basename in
14397           *)
14398           # FIXME: insert proper C++ library support
14399           ld_shlibs_CXX=no
14400           ;;
14401         esac
14402         ;;
14403
14404       cygwin* | mingw* | pw32* | cegcc*)
14405         case $GXX,$cc_basename in
14406         ,cl* | no,cl*)
14407           # Native MSVC
14408           # hardcode_libdir_flag_spec is actually meaningless, as there is
14409           # no search path for DLLs.
14410           hardcode_libdir_flag_spec_CXX=' '
14411           allow_undefined_flag_CXX=unsupported
14412           always_export_symbols_CXX=yes
14413           file_list_spec_CXX='@'
14414           # Tell ltmain to make .lib files, not .a files.
14415           libext=lib
14416           # Tell ltmain to make .dll files, not .so files.
14417           shrext_cmds=".dll"
14418           # FIXME: Setting linknames here is a bad hack.
14419           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14420           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14421               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14422             else
14423               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14424             fi~
14425             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14426             linknames='
14427           # The linker will not automatically build a static lib if we build a DLL.
14428           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14429           enable_shared_with_static_runtimes_CXX=yes
14430           # Don't use ranlib
14431           old_postinstall_cmds_CXX='chmod 644 $oldlib'
14432           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14433             lt_tool_outputfile="@TOOL_OUTPUT@"~
14434             case $lt_outputfile in
14435               *.exe|*.EXE) ;;
14436               *)
14437                 lt_outputfile="$lt_outputfile.exe"
14438                 lt_tool_outputfile="$lt_tool_outputfile.exe"
14439                 ;;
14440             esac~
14441             func_to_tool_file "$lt_outputfile"~
14442             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14443               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14444               $RM "$lt_outputfile.manifest";
14445             fi'
14446           ;;
14447         *)
14448           # g++
14449           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14450           # as there is no search path for DLLs.
14451           hardcode_libdir_flag_spec_CXX='-L$libdir'
14452           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
14453           allow_undefined_flag_CXX=unsupported
14454           always_export_symbols_CXX=no
14455           enable_shared_with_static_runtimes_CXX=yes
14456
14457           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14458             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14459             # If the export-symbols file already is a .def file (1st line
14460             # is EXPORTS), use it as is; otherwise, prepend...
14461             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14462               cp $export_symbols $output_objdir/$soname.def;
14463             else
14464               echo EXPORTS > $output_objdir/$soname.def;
14465               cat $export_symbols >> $output_objdir/$soname.def;
14466             fi~
14467             $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14468           else
14469             ld_shlibs_CXX=no
14470           fi
14471           ;;
14472         esac
14473         ;;
14474       darwin* | rhapsody*)
14475
14476
14477   archive_cmds_need_lc_CXX=no
14478   hardcode_direct_CXX=no
14479   hardcode_automatic_CXX=yes
14480   hardcode_shlibpath_var_CXX=unsupported
14481   if test "$lt_cv_ld_force_load" = "yes"; then
14482     whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
14483   else
14484     whole_archive_flag_spec_CXX=''
14485   fi
14486   link_all_deplibs_CXX=yes
14487   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14488   case $cc_basename in
14489      ifort*) _lt_dar_can_shared=yes ;;
14490      *) _lt_dar_can_shared=$GCC ;;
14491   esac
14492   if test "$_lt_dar_can_shared" = "yes"; then
14493     output_verbose_link_cmd=func_echo_all
14494     archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14495     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14496     archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
14497     module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
14498        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14499       archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
14500       archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
14501     fi
14502
14503   else
14504   ld_shlibs_CXX=no
14505   fi
14506
14507         ;;
14508
14509       dgux*)
14510         case $cc_basename in
14511           ec++*)
14512             # FIXME: insert proper C++ library support
14513             ld_shlibs_CXX=no
14514             ;;
14515           ghcx*)
14516             # Green Hills C++ Compiler
14517             # FIXME: insert proper C++ library support
14518             ld_shlibs_CXX=no
14519             ;;
14520           *)
14521             # FIXME: insert proper C++ library support
14522             ld_shlibs_CXX=no
14523             ;;
14524         esac
14525         ;;
14526
14527       freebsd[12]*)
14528         # C++ shared libraries reported to be fairly broken before
14529         # switch to ELF
14530         ld_shlibs_CXX=no
14531         ;;
14532
14533       freebsd-elf*)
14534         archive_cmds_need_lc_CXX=no
14535         ;;
14536
14537       freebsd* | dragonfly*)
14538         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14539         # conventions
14540         ld_shlibs_CXX=yes
14541         ;;
14542
14543       gnu*)
14544         ;;
14545
14546       haiku*)
14547         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14548         link_all_deplibs_CXX=yes
14549         ;;
14550
14551       hpux9*)
14552         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14553         hardcode_libdir_separator_CXX=:
14554         export_dynamic_flag_spec_CXX='${wl}-E'
14555         hardcode_direct_CXX=yes
14556         hardcode_minus_L_CXX=yes # Not in the search PATH,
14557                                              # but as the default
14558                                              # location of the library.
14559
14560         case $cc_basename in
14561           CC*)
14562             # FIXME: insert proper C++ library support
14563             ld_shlibs_CXX=no
14564             ;;
14565           aCC*)
14566             archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14567             # Commands to make compiler produce verbose output that lists
14568             # what "hidden" libraries, object files and flags are used when
14569             # linking a shared library.
14570             #
14571             # There doesn't appear to be a way to prevent this compiler from
14572             # explicitly linking system object files so we need to strip them
14573             # from the output so that they don't get included in the library
14574             # dependencies.
14575             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14576             ;;
14577           *)
14578             if test "$GXX" = yes; then
14579               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14580             else
14581               # FIXME: insert proper C++ library support
14582               ld_shlibs_CXX=no
14583             fi
14584             ;;
14585         esac
14586         ;;
14587
14588       hpux10*|hpux11*)
14589         if test $with_gnu_ld = no; then
14590           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14591           hardcode_libdir_separator_CXX=:
14592
14593           case $host_cpu in
14594             hppa*64*|ia64*)
14595               ;;
14596             *)
14597               export_dynamic_flag_spec_CXX='${wl}-E'
14598               ;;
14599           esac
14600         fi
14601         case $host_cpu in
14602           hppa*64*|ia64*)
14603             hardcode_direct_CXX=no
14604             hardcode_shlibpath_var_CXX=no
14605             ;;
14606           *)
14607             hardcode_direct_CXX=yes
14608             hardcode_direct_absolute_CXX=yes
14609             hardcode_minus_L_CXX=yes # Not in the search PATH,
14610                                                  # but as the default
14611                                                  # location of the library.
14612             ;;
14613         esac
14614
14615         case $cc_basename in
14616           CC*)
14617             # FIXME: insert proper C++ library support
14618             ld_shlibs_CXX=no
14619             ;;
14620           aCC*)
14621             case $host_cpu in
14622               hppa*64*)
14623                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14624                 ;;
14625               ia64*)
14626                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14627                 ;;
14628               *)
14629                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14630                 ;;
14631             esac
14632             # Commands to make compiler produce verbose output that lists
14633             # what "hidden" libraries, object files and flags are used when
14634             # linking a shared library.
14635             #
14636             # There doesn't appear to be a way to prevent this compiler from
14637             # explicitly linking system object files so we need to strip them
14638             # from the output so that they don't get included in the library
14639             # dependencies.
14640             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14641             ;;
14642           *)
14643             if test "$GXX" = yes; then
14644               if test $with_gnu_ld = no; then
14645                 case $host_cpu in
14646                   hppa*64*)
14647                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14648                     ;;
14649                   ia64*)
14650                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14651                     ;;
14652                   *)
14653                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14654                     ;;
14655                 esac
14656               fi
14657             else
14658               # FIXME: insert proper C++ library support
14659               ld_shlibs_CXX=no
14660             fi
14661             ;;
14662         esac
14663         ;;
14664
14665       interix[3-9]*)
14666         hardcode_direct_CXX=no
14667         hardcode_shlibpath_var_CXX=no
14668         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14669         export_dynamic_flag_spec_CXX='${wl}-E'
14670         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14671         # Instead, shared libraries are loaded at an image base (0x10000000 by
14672         # default) and relocated if they conflict, which is a slow very memory
14673         # consuming and fragmenting process.  To avoid this, we pick a random,
14674         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14675         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14676         archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14677         archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14678         ;;
14679       irix5* | irix6*)
14680         case $cc_basename in
14681           CC*)
14682             # SGI C++
14683             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14684
14685             # Archives containing C++ object files must be created using
14686             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14687             # necessary to make sure instantiated templates are included
14688             # in the archive.
14689             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14690             ;;
14691           *)
14692             if test "$GXX" = yes; then
14693               if test "$with_gnu_ld" = no; then
14694                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14695               else
14696                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
14697               fi
14698             fi
14699             link_all_deplibs_CXX=yes
14700             ;;
14701         esac
14702         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14703         hardcode_libdir_separator_CXX=:
14704         inherit_rpath_CXX=yes
14705         ;;
14706
14707       linux* | k*bsd*-gnu | kopensolaris*-gnu)
14708         case $cc_basename in
14709           KCC*)
14710             # Kuck and Associates, Inc. (KAI) C++ Compiler
14711
14712             # KCC will only create a shared library if the output file
14713             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14714             # to its proper name (with version) after linking.
14715             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14716             archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
14717             # Commands to make compiler produce verbose output that lists
14718             # what "hidden" libraries, object files and flags are used when
14719             # linking a shared library.
14720             #
14721             # There doesn't appear to be a way to prevent this compiler from
14722             # explicitly linking system object files so we need to strip them
14723             # from the output so that they don't get included in the library
14724             # dependencies.
14725             output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14726
14727             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14728             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14729
14730             # Archives containing C++ object files must be created using
14731             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14732             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14733             ;;
14734           icpc* | ecpc* )
14735             # Intel C++
14736             with_gnu_ld=yes
14737             # version 8.0 and above of icpc choke on multiply defined symbols
14738             # if we add $predep_objects and $postdep_objects, however 7.1 and
14739             # earlier do not add the objects themselves.
14740             case `$CC -V 2>&1` in
14741               *"Version 7."*)
14742                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14743                 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14744                 ;;
14745               *)  # Version 8.0 or newer
14746                 tmp_idyn=
14747                 case $host_cpu in
14748                   ia64*) tmp_idyn=' -i_dynamic';;
14749                 esac
14750                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14751                 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14752                 ;;
14753             esac
14754             archive_cmds_need_lc_CXX=no
14755             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14756             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14757             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14758             ;;
14759           pgCC* | pgcpp*)
14760             # Portland Group C++ compiler
14761             case `$CC -V` in
14762             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14763               prelink_cmds_CXX='tpldir=Template.dir~
14764                 rm -rf $tpldir~
14765                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14766                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14767               old_archive_cmds_CXX='tpldir=Template.dir~
14768                 rm -rf $tpldir~
14769                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14770                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14771                 $RANLIB $oldlib'
14772               archive_cmds_CXX='tpldir=Template.dir~
14773                 rm -rf $tpldir~
14774                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14775                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14776               archive_expsym_cmds_CXX='tpldir=Template.dir~
14777                 rm -rf $tpldir~
14778                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14779                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14780               ;;
14781             *) # Version 6 and above use weak symbols
14782               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14783               archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14784               ;;
14785             esac
14786
14787             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14788             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14789             whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
14790             ;;
14791           cxx*)
14792             # Compaq C++
14793             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14794             archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
14795
14796             runpath_var=LD_RUN_PATH
14797             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14798             hardcode_libdir_separator_CXX=:
14799
14800             # Commands to make compiler produce verbose output that lists
14801             # what "hidden" libraries, object files and flags are used when
14802             # linking a shared library.
14803             #
14804             # There doesn't appear to be a way to prevent this compiler from
14805             # explicitly linking system object files so we need to strip them
14806             # from the output so that they don't get included in the library
14807             # dependencies.
14808             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
14809             ;;
14810           xl* | mpixl* | bgxl*)
14811             # IBM XL 8.0 on PPC, with GNU ld
14812             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14813             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14814             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14815             if test "x$supports_anon_versioning" = xyes; then
14816               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14817                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14818                 echo "local: *; };" >> $output_objdir/$libname.ver~
14819                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14820             fi
14821             ;;
14822           *)
14823             case `$CC -V 2>&1 | sed 5q` in
14824             *Sun\ C*)
14825               # Sun C++ 5.9
14826               no_undefined_flag_CXX=' -zdefs'
14827               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14828               archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
14829               hardcode_libdir_flag_spec_CXX='-R$libdir'
14830               whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
14831               compiler_needs_object_CXX=yes
14832
14833               # Not sure whether something based on
14834               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14835               # would be better.
14836               output_verbose_link_cmd='func_echo_all'
14837
14838               # Archives containing C++ object files must be created using
14839               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14840               # necessary to make sure instantiated templates are included
14841               # in the archive.
14842               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14843               ;;
14844             esac
14845             ;;
14846         esac
14847         ;;
14848
14849       lynxos*)
14850         # FIXME: insert proper C++ library support
14851         ld_shlibs_CXX=no
14852         ;;
14853
14854       m88k*)
14855         # FIXME: insert proper C++ library support
14856         ld_shlibs_CXX=no
14857         ;;
14858
14859       mvs*)
14860         case $cc_basename in
14861           cxx*)
14862             # FIXME: insert proper C++ library support
14863             ld_shlibs_CXX=no
14864             ;;
14865           *)
14866             # FIXME: insert proper C++ library support
14867             ld_shlibs_CXX=no
14868             ;;
14869         esac
14870         ;;
14871
14872       netbsd*)
14873         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14874           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14875           wlarc=
14876           hardcode_libdir_flag_spec_CXX='-R$libdir'
14877           hardcode_direct_CXX=yes
14878           hardcode_shlibpath_var_CXX=no
14879         fi
14880         # Workaround some broken pre-1.5 toolchains
14881         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14882         ;;
14883
14884       *nto* | *qnx*)
14885         ld_shlibs_CXX=yes
14886         ;;
14887
14888       openbsd2*)
14889         # C++ shared libraries are fairly broken
14890         ld_shlibs_CXX=no
14891         ;;
14892
14893       openbsd*)
14894         if test -f /usr/libexec/ld.so; then
14895           hardcode_direct_CXX=yes
14896           hardcode_shlibpath_var_CXX=no
14897           hardcode_direct_absolute_CXX=yes
14898           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14899           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14900           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14901             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14902             export_dynamic_flag_spec_CXX='${wl}-E'
14903             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14904           fi
14905           output_verbose_link_cmd=func_echo_all
14906         else
14907           ld_shlibs_CXX=no
14908         fi
14909         ;;
14910
14911       osf3* | osf4* | osf5*)
14912         case $cc_basename in
14913           KCC*)
14914             # Kuck and Associates, Inc. (KAI) C++ Compiler
14915
14916             # KCC will only create a shared library if the output file
14917             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14918             # to its proper name (with version) after linking.
14919             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14920
14921             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14922             hardcode_libdir_separator_CXX=:
14923
14924             # Archives containing C++ object files must be created using
14925             # the KAI C++ compiler.
14926             case $host in
14927               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14928               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14929             esac
14930             ;;
14931           RCC*)
14932             # Rational C++ 2.4.1
14933             # FIXME: insert proper C++ library support
14934             ld_shlibs_CXX=no
14935             ;;
14936           cxx*)
14937             case $host in
14938               osf3*)
14939                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14940                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14941                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14942                 ;;
14943               *)
14944                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14945                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14946                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14947                   echo "-hidden">> $lib.exp~
14948                   $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
14949                   $RM $lib.exp'
14950                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14951                 ;;
14952             esac
14953
14954             hardcode_libdir_separator_CXX=:
14955
14956             # Commands to make compiler produce verbose output that lists
14957             # what "hidden" libraries, object files and flags are used when
14958             # linking a shared library.
14959             #
14960             # There doesn't appear to be a way to prevent this compiler from
14961             # explicitly linking system object files so we need to strip them
14962             # from the output so that they don't get included in the library
14963             # dependencies.
14964             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14965             ;;
14966           *)
14967             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14968               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14969               case $host in
14970                 osf3*)
14971                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14972                   ;;
14973                 *)
14974                   archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14975                   ;;
14976               esac
14977
14978               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14979               hardcode_libdir_separator_CXX=:
14980
14981               # Commands to make compiler produce verbose output that lists
14982               # what "hidden" libraries, object files and flags are used when
14983               # linking a shared library.
14984               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14985
14986             else
14987               # FIXME: insert proper C++ library support
14988               ld_shlibs_CXX=no
14989             fi
14990             ;;
14991         esac
14992         ;;
14993
14994       psos*)
14995         # FIXME: insert proper C++ library support
14996         ld_shlibs_CXX=no
14997         ;;
14998
14999       sunos4*)
15000         case $cc_basename in
15001           CC*)
15002             # Sun C++ 4.x
15003             # FIXME: insert proper C++ library support
15004             ld_shlibs_CXX=no
15005             ;;
15006           lcc*)
15007             # Lucid
15008             # FIXME: insert proper C++ library support
15009             ld_shlibs_CXX=no
15010             ;;
15011           *)
15012             # FIXME: insert proper C++ library support
15013             ld_shlibs_CXX=no
15014             ;;
15015         esac
15016         ;;
15017
15018       solaris*)
15019         case $cc_basename in
15020           CC* | sunCC*)
15021             # Sun C++ 4.2, 5.x and Centerline C++
15022             archive_cmds_need_lc_CXX=yes
15023             no_undefined_flag_CXX=' -zdefs'
15024             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15025             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15026               $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15027
15028             hardcode_libdir_flag_spec_CXX='-R$libdir'
15029             hardcode_shlibpath_var_CXX=no
15030             case $host_os in
15031               solaris2.[0-5] | solaris2.[0-5].*) ;;
15032               *)
15033                 # The compiler driver will combine and reorder linker options,
15034                 # but understands `-z linker_flag'.
15035                 # Supported since Solaris 2.6 (maybe 2.5.1?)
15036                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15037                 ;;
15038             esac
15039             link_all_deplibs_CXX=yes
15040
15041             output_verbose_link_cmd='func_echo_all'
15042
15043             # Archives containing C++ object files must be created using
15044             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15045             # necessary to make sure instantiated templates are included
15046             # in the archive.
15047             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15048             ;;
15049           gcx*)
15050             # Green Hills C++ Compiler
15051             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15052
15053             # The C++ compiler must be used to create the archive.
15054             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15055             ;;
15056           *)
15057             # GNU C++ compiler with Solaris linker
15058             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15059               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15060               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15061                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15062                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15063                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15064
15065                 # Commands to make compiler produce verbose output that lists
15066                 # what "hidden" libraries, object files and flags are used when
15067                 # linking a shared library.
15068                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15069               else
15070                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
15071                 # platform.
15072                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15073                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15074                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15075
15076                 # Commands to make compiler produce verbose output that lists
15077                 # what "hidden" libraries, object files and flags are used when
15078                 # linking a shared library.
15079                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15080               fi
15081
15082               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15083               case $host_os in
15084                 solaris2.[0-5] | solaris2.[0-5].*) ;;
15085                 *)
15086                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15087                   ;;
15088               esac
15089             fi
15090             ;;
15091         esac
15092         ;;
15093
15094     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15095       no_undefined_flag_CXX='${wl}-z,text'
15096       archive_cmds_need_lc_CXX=no
15097       hardcode_shlibpath_var_CXX=no
15098       runpath_var='LD_RUN_PATH'
15099
15100       case $cc_basename in
15101         CC*)
15102           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15103           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15104           ;;
15105         *)
15106           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15107           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15108           ;;
15109       esac
15110       ;;
15111
15112       sysv5* | sco3.2v5* | sco5v6*)
15113         # Note: We can NOT use -z defs as we might desire, because we do not
15114         # link with -lc, and that would cause any symbols used from libc to
15115         # always be unresolved, which means just about no library would
15116         # ever link correctly.  If we're not using GNU ld we use -z text
15117         # though, which does catch some bad symbols but isn't as heavy-handed
15118         # as -z defs.
15119         no_undefined_flag_CXX='${wl}-z,text'
15120         allow_undefined_flag_CXX='${wl}-z,nodefs'
15121         archive_cmds_need_lc_CXX=no
15122         hardcode_shlibpath_var_CXX=no
15123         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
15124         hardcode_libdir_separator_CXX=':'
15125         link_all_deplibs_CXX=yes
15126         export_dynamic_flag_spec_CXX='${wl}-Bexport'
15127         runpath_var='LD_RUN_PATH'
15128
15129         case $cc_basename in
15130           CC*)
15131             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15132             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15133             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15134               '"$old_archive_cmds_CXX"
15135             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15136               '"$reload_cmds_CXX"
15137             ;;
15138           *)
15139             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15140             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15141             ;;
15142         esac
15143       ;;
15144
15145       tandem*)
15146         case $cc_basename in
15147           NCC*)
15148             # NonStop-UX NCC 3.20
15149             # FIXME: insert proper C++ library support
15150             ld_shlibs_CXX=no
15151             ;;
15152           *)
15153             # FIXME: insert proper C++ library support
15154             ld_shlibs_CXX=no
15155             ;;
15156         esac
15157         ;;
15158
15159       vxworks*)
15160         # FIXME: insert proper C++ library support
15161         ld_shlibs_CXX=no
15162         ;;
15163
15164       *)
15165         # FIXME: insert proper C++ library support
15166         ld_shlibs_CXX=no
15167         ;;
15168     esac
15169
15170     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15171 $as_echo "$ld_shlibs_CXX" >&6; }
15172     test "$ld_shlibs_CXX" = no && can_build_shared=no
15173
15174     GCC_CXX="$GXX"
15175     LD_CXX="$LD"
15176
15177     ## CAVEAT EMPTOR:
15178     ## There is no encapsulation within the following macros, do not change
15179     ## the running order or otherwise move them around unless you know exactly
15180     ## what you are doing...
15181     # Dependencies to place before and after the object being linked:
15182 predep_objects_CXX=
15183 postdep_objects_CXX=
15184 predeps_CXX=
15185 postdeps_CXX=
15186 compiler_lib_search_path_CXX=
15187
15188 cat > conftest.$ac_ext <<_LT_EOF
15189 class Foo
15190 {
15191 public:
15192   Foo (void) { a = 0; }
15193 private:
15194   int a;
15195 };
15196 _LT_EOF
15197
15198
15199 _lt_libdeps_save_CFLAGS=$CFLAGS
15200 case "$CC $CFLAGS " in #(
15201 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15202 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15203 esac
15204
15205 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15206   (eval $ac_compile) 2>&5
15207   ac_status=$?
15208   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15209   test $ac_status = 0; }; then
15210   # Parse the compiler output and extract the necessary
15211   # objects, libraries and library flags.
15212
15213   # Sentinel used to keep track of whether or not we are before
15214   # the conftest object file.
15215   pre_test_object_deps_done=no
15216
15217   for p in `eval "$output_verbose_link_cmd"`; do
15218     case ${prev}${p} in
15219
15220     -L* | -R* | -l*)
15221        # Some compilers place space between "-{L,R}" and the path.
15222        # Remove the space.
15223        if test $p = "-L" ||
15224           test $p = "-R"; then
15225          prev=$p
15226          continue
15227        fi
15228
15229        # Expand the sysroot to ease extracting the directories later.
15230        if test -z "$prev"; then
15231          case $p in
15232          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15233          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15234          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15235          esac
15236        fi
15237        case $p in
15238        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15239        esac
15240        if test "$pre_test_object_deps_done" = no; then
15241          case ${prev} in
15242          -L | -R)
15243            # Internal compiler library paths should come after those
15244            # provided the user.  The postdeps already come after the
15245            # user supplied libs so there is no need to process them.
15246            if test -z "$compiler_lib_search_path_CXX"; then
15247              compiler_lib_search_path_CXX="${prev}${p}"
15248            else
15249              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15250            fi
15251            ;;
15252          # The "-l" case would never come before the object being
15253          # linked, so don't bother handling this case.
15254          esac
15255        else
15256          if test -z "$postdeps_CXX"; then
15257            postdeps_CXX="${prev}${p}"
15258          else
15259            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15260          fi
15261        fi
15262        prev=
15263        ;;
15264
15265     *.lto.$objext) ;; # Ignore GCC LTO objects
15266     *.$objext)
15267        # This assumes that the test object file only shows up
15268        # once in the compiler output.
15269        if test "$p" = "conftest.$objext"; then
15270          pre_test_object_deps_done=yes
15271          continue
15272        fi
15273
15274        if test "$pre_test_object_deps_done" = no; then
15275          if test -z "$predep_objects_CXX"; then
15276            predep_objects_CXX="$p"
15277          else
15278            predep_objects_CXX="$predep_objects_CXX $p"
15279          fi
15280        else
15281          if test -z "$postdep_objects_CXX"; then
15282            postdep_objects_CXX="$p"
15283          else
15284            postdep_objects_CXX="$postdep_objects_CXX $p"
15285          fi
15286        fi
15287        ;;
15288
15289     *) ;; # Ignore the rest.
15290
15291     esac
15292   done
15293
15294   # Clean up.
15295   rm -f a.out a.exe
15296 else
15297   echo "libtool.m4: error: problem compiling CXX test program"
15298 fi
15299
15300 $RM -f confest.$objext
15301 CFLAGS=$_lt_libdeps_save_CFLAGS
15302
15303 # PORTME: override above test on systems where it is broken
15304 case $host_os in
15305 interix[3-9]*)
15306   # Interix 3.5 installs completely hosed .la files for C++, so rather than
15307   # hack all around it, let's just trust "g++" to DTRT.
15308   predep_objects_CXX=
15309   postdep_objects_CXX=
15310   postdeps_CXX=
15311   ;;
15312
15313 linux*)
15314   case `$CC -V 2>&1 | sed 5q` in
15315   *Sun\ C*)
15316     # Sun C++ 5.9
15317
15318     # The more standards-conforming stlport4 library is
15319     # incompatible with the Cstd library. Avoid specifying
15320     # it if it's in CXXFLAGS. Ignore libCrun as
15321     # -library=stlport4 depends on it.
15322     case " $CXX $CXXFLAGS " in
15323     *" -library=stlport4 "*)
15324       solaris_use_stlport4=yes
15325       ;;
15326     esac
15327
15328     if test "$solaris_use_stlport4" != yes; then
15329       postdeps_CXX='-library=Cstd -library=Crun'
15330     fi
15331     ;;
15332   esac
15333   ;;
15334
15335 solaris*)
15336   case $cc_basename in
15337   CC* | sunCC*)
15338     # The more standards-conforming stlport4 library is
15339     # incompatible with the Cstd library. Avoid specifying
15340     # it if it's in CXXFLAGS. Ignore libCrun as
15341     # -library=stlport4 depends on it.
15342     case " $CXX $CXXFLAGS " in
15343     *" -library=stlport4 "*)
15344       solaris_use_stlport4=yes
15345       ;;
15346     esac
15347
15348     # Adding this requires a known-good setup of shared libraries for
15349     # Sun compiler versions before 5.6, else PIC objects from an old
15350     # archive will be linked into the output, leading to subtle bugs.
15351     if test "$solaris_use_stlport4" != yes; then
15352       postdeps_CXX='-library=Cstd -library=Crun'
15353     fi
15354     ;;
15355   esac
15356   ;;
15357 esac
15358
15359
15360 case " $postdeps_CXX " in
15361 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15362 esac
15363  compiler_lib_search_dirs_CXX=
15364 if test -n "${compiler_lib_search_path_CXX}"; then
15365  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15366 fi
15367
15368
15369
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389
15390
15391
15392
15393
15394
15395
15396
15397
15398     lt_prog_compiler_wl_CXX=
15399 lt_prog_compiler_pic_CXX=
15400 lt_prog_compiler_static_CXX=
15401
15402
15403   # C++ specific cases for pic, static, wl, etc.
15404   if test "$GXX" = yes; then
15405     lt_prog_compiler_wl_CXX='-Wl,'
15406     lt_prog_compiler_static_CXX='-static'
15407
15408     case $host_os in
15409     aix*)
15410       # All AIX code is PIC.
15411       if test "$host_cpu" = ia64; then
15412         # AIX 5 now supports IA64 processor
15413         lt_prog_compiler_static_CXX='-Bstatic'
15414       fi
15415       ;;
15416
15417     amigaos*)
15418       case $host_cpu in
15419       powerpc)
15420             # see comment about AmigaOS4 .so support
15421             lt_prog_compiler_pic_CXX='-fPIC'
15422         ;;
15423       m68k)
15424             # FIXME: we need at least 68020 code to build shared libraries, but
15425             # adding the `-m68020' flag to GCC prevents building anything better,
15426             # like `-m68040'.
15427             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15428         ;;
15429       esac
15430       ;;
15431
15432     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15433       # PIC is the default for these OSes.
15434       ;;
15435     mingw* | cygwin* | os2* | pw32* | cegcc*)
15436       # This hack is so that the source file can tell whether it is being
15437       # built for inclusion in a dll (and should export symbols for example).
15438       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15439       # (--disable-auto-import) libraries
15440       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15441       ;;
15442     darwin* | rhapsody*)
15443       # PIC is the default on this platform
15444       # Common symbols not allowed in MH_DYLIB files
15445       lt_prog_compiler_pic_CXX='-fno-common'
15446       ;;
15447     *djgpp*)
15448       # DJGPP does not support shared libraries at all
15449       lt_prog_compiler_pic_CXX=
15450       ;;
15451     haiku*)
15452       # PIC is the default for Haiku.
15453       # The "-static" flag exists, but is broken.
15454       lt_prog_compiler_static_CXX=
15455       ;;
15456     interix[3-9]*)
15457       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15458       # Instead, we relocate shared libraries at runtime.
15459       ;;
15460     sysv4*MP*)
15461       if test -d /usr/nec; then
15462         lt_prog_compiler_pic_CXX=-Kconform_pic
15463       fi
15464       ;;
15465     hpux*)
15466       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15467       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15468       # sets the default TLS model and affects inlining.
15469       case $host_cpu in
15470       hppa*64*)
15471         ;;
15472       *)
15473         lt_prog_compiler_pic_CXX='-fPIC'
15474         ;;
15475       esac
15476       ;;
15477     *qnx* | *nto*)
15478       # QNX uses GNU C++, but need to define -shared option too, otherwise
15479       # it will coredump.
15480       lt_prog_compiler_pic_CXX='-fPIC -shared'
15481       ;;
15482     *)
15483       lt_prog_compiler_pic_CXX='-fPIC'
15484       ;;
15485     esac
15486   else
15487     case $host_os in
15488       aix[4-9]*)
15489         # All AIX code is PIC.
15490         if test "$host_cpu" = ia64; then
15491           # AIX 5 now supports IA64 processor
15492           lt_prog_compiler_static_CXX='-Bstatic'
15493         else
15494           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15495         fi
15496         ;;
15497       chorus*)
15498         case $cc_basename in
15499         cxch68*)
15500           # Green Hills C++ Compiler
15501           # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
15502           ;;
15503         esac
15504         ;;
15505       mingw* | cygwin* | os2* | pw32* | cegcc*)
15506         # This hack is so that the source file can tell whether it is being
15507         # built for inclusion in a dll (and should export symbols for example).
15508         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15509         ;;
15510       dgux*)
15511         case $cc_basename in
15512           ec++*)
15513             lt_prog_compiler_pic_CXX='-KPIC'
15514             ;;
15515           ghcx*)
15516             # Green Hills C++ Compiler
15517             lt_prog_compiler_pic_CXX='-pic'
15518             ;;
15519           *)
15520             ;;
15521         esac
15522         ;;
15523       freebsd* | dragonfly*)
15524         # FreeBSD uses GNU C++
15525         ;;
15526       hpux9* | hpux10* | hpux11*)
15527         case $cc_basename in
15528           CC*)
15529             lt_prog_compiler_wl_CXX='-Wl,'
15530             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15531             if test "$host_cpu" != ia64; then
15532               lt_prog_compiler_pic_CXX='+Z'
15533             fi
15534             ;;
15535           aCC*)
15536             lt_prog_compiler_wl_CXX='-Wl,'
15537             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15538             case $host_cpu in
15539             hppa*64*|ia64*)
15540               # +Z the default
15541               ;;
15542             *)
15543               lt_prog_compiler_pic_CXX='+Z'
15544               ;;
15545             esac
15546             ;;
15547           *)
15548             ;;
15549         esac
15550         ;;
15551       interix*)
15552         # This is c89, which is MS Visual C++ (no shared libs)
15553         # Anyone wants to do a port?
15554         ;;
15555       irix5* | irix6* | nonstopux*)
15556         case $cc_basename in
15557           CC*)
15558             lt_prog_compiler_wl_CXX='-Wl,'
15559             lt_prog_compiler_static_CXX='-non_shared'
15560             # CC pic flag -KPIC is the default.
15561             ;;
15562           *)
15563             ;;
15564         esac
15565         ;;
15566       linux* | k*bsd*-gnu | kopensolaris*-gnu)
15567         case $cc_basename in
15568           KCC*)
15569             # KAI C++ Compiler
15570             lt_prog_compiler_wl_CXX='--backend -Wl,'
15571             lt_prog_compiler_pic_CXX='-fPIC'
15572             ;;
15573           ecpc* )
15574             # old Intel C++ for x86_64 which still supported -KPIC.
15575             lt_prog_compiler_wl_CXX='-Wl,'
15576             lt_prog_compiler_pic_CXX='-KPIC'
15577             lt_prog_compiler_static_CXX='-static'
15578             ;;
15579           icpc* )
15580             # Intel C++, used to be incompatible with GCC.
15581             # ICC 10 doesn't accept -KPIC any more.
15582             lt_prog_compiler_wl_CXX='-Wl,'
15583             lt_prog_compiler_pic_CXX='-fPIC'
15584             lt_prog_compiler_static_CXX='-static'
15585             ;;
15586           pgCC* | pgcpp*)
15587             # Portland Group C++ compiler
15588             lt_prog_compiler_wl_CXX='-Wl,'
15589             lt_prog_compiler_pic_CXX='-fpic'
15590             lt_prog_compiler_static_CXX='-Bstatic'
15591             ;;
15592           cxx*)
15593             # Compaq C++
15594             # Make sure the PIC flag is empty.  It appears that all Alpha
15595             # Linux and Compaq Tru64 Unix objects are PIC.
15596             lt_prog_compiler_pic_CXX=
15597             lt_prog_compiler_static_CXX='-non_shared'
15598             ;;
15599           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15600             # IBM XL 8.0, 9.0 on PPC and BlueGene
15601             lt_prog_compiler_wl_CXX='-Wl,'
15602             lt_prog_compiler_pic_CXX='-qpic'
15603             lt_prog_compiler_static_CXX='-qstaticlink'
15604             ;;
15605           *)
15606             case `$CC -V 2>&1 | sed 5q` in
15607             *Sun\ C*)
15608               # Sun C++ 5.9
15609               lt_prog_compiler_pic_CXX='-KPIC'
15610               lt_prog_compiler_static_CXX='-Bstatic'
15611               lt_prog_compiler_wl_CXX='-Qoption ld '
15612               ;;
15613             esac
15614             ;;
15615         esac
15616         ;;
15617       lynxos*)
15618         ;;
15619       m88k*)
15620         ;;
15621       mvs*)
15622         case $cc_basename in
15623           cxx*)
15624             lt_prog_compiler_pic_CXX='-W c,exportall'
15625             ;;
15626           *)
15627             ;;
15628         esac
15629         ;;
15630       netbsd*)
15631         ;;
15632       *qnx* | *nto*)
15633         # QNX uses GNU C++, but need to define -shared option too, otherwise
15634         # it will coredump.
15635         lt_prog_compiler_pic_CXX='-fPIC -shared'
15636         ;;
15637       osf3* | osf4* | osf5*)
15638         case $cc_basename in
15639           KCC*)
15640             lt_prog_compiler_wl_CXX='--backend -Wl,'
15641             ;;
15642           RCC*)
15643             # Rational C++ 2.4.1
15644             lt_prog_compiler_pic_CXX='-pic'
15645             ;;
15646           cxx*)
15647             # Digital/Compaq C++
15648             lt_prog_compiler_wl_CXX='-Wl,'
15649             # Make sure the PIC flag is empty.  It appears that all Alpha
15650             # Linux and Compaq Tru64 Unix objects are PIC.
15651             lt_prog_compiler_pic_CXX=
15652             lt_prog_compiler_static_CXX='-non_shared'
15653             ;;
15654           *)
15655             ;;
15656         esac
15657         ;;
15658       psos*)
15659         ;;
15660       solaris*)
15661         case $cc_basename in
15662           CC* | sunCC*)
15663             # Sun C++ 4.2, 5.x and Centerline C++
15664             lt_prog_compiler_pic_CXX='-KPIC'
15665             lt_prog_compiler_static_CXX='-Bstatic'
15666             lt_prog_compiler_wl_CXX='-Qoption ld '
15667             ;;
15668           gcx*)
15669             # Green Hills C++ Compiler
15670             lt_prog_compiler_pic_CXX='-PIC'
15671             ;;
15672           *)
15673             ;;
15674         esac
15675         ;;
15676       sunos4*)
15677         case $cc_basename in
15678           CC*)
15679             # Sun C++ 4.x
15680             lt_prog_compiler_pic_CXX='-pic'
15681             lt_prog_compiler_static_CXX='-Bstatic'
15682             ;;
15683           lcc*)
15684             # Lucid
15685             lt_prog_compiler_pic_CXX='-pic'
15686             ;;
15687           *)
15688             ;;
15689         esac
15690         ;;
15691       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15692         case $cc_basename in
15693           CC*)
15694             lt_prog_compiler_wl_CXX='-Wl,'
15695             lt_prog_compiler_pic_CXX='-KPIC'
15696             lt_prog_compiler_static_CXX='-Bstatic'
15697             ;;
15698         esac
15699         ;;
15700       tandem*)
15701         case $cc_basename in
15702           NCC*)
15703             # NonStop-UX NCC 3.20
15704             lt_prog_compiler_pic_CXX='-KPIC'
15705             ;;
15706           *)
15707             ;;
15708         esac
15709         ;;
15710       vxworks*)
15711         ;;
15712       *)
15713         lt_prog_compiler_can_build_shared_CXX=no
15714         ;;
15715     esac
15716   fi
15717
15718 case $host_os in
15719   # For platforms which do not support PIC, -DPIC is meaningless:
15720   *djgpp*)
15721     lt_prog_compiler_pic_CXX=
15722     ;;
15723   *)
15724     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15725     ;;
15726 esac
15727
15728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15729 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15730 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15731   $as_echo_n "(cached) " >&6
15732 else
15733   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15734 fi
15735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15736 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15737 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15738
15739 #
15740 # Check to make sure the PIC flag actually works.
15741 #
15742 if test -n "$lt_prog_compiler_pic_CXX"; then
15743   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15744 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15745 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15746   $as_echo_n "(cached) " >&6
15747 else
15748   lt_cv_prog_compiler_pic_works_CXX=no
15749    ac_outfile=conftest.$ac_objext
15750    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15751    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15752    # Insert the option either (1) after the last *FLAGS variable, or
15753    # (2) before a word containing "conftest.", or (3) at the end.
15754    # Note that $ac_compile itself does not contain backslashes and begins
15755    # with a dollar sign (not a hyphen), so the echo should work correctly.
15756    # The option is referenced via a variable to avoid confusing sed.
15757    lt_compile=`echo "$ac_compile" | $SED \
15758    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15759    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15760    -e 's:$: $lt_compiler_flag:'`
15761    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15762    (eval "$lt_compile" 2>conftest.err)
15763    ac_status=$?
15764    cat conftest.err >&5
15765    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15766    if (exit $ac_status) && test -s "$ac_outfile"; then
15767      # The compiler can only warn and ignore the option if not recognized
15768      # So say no if there are warnings other than the usual output.
15769      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15770      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15771      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15772        lt_cv_prog_compiler_pic_works_CXX=yes
15773      fi
15774    fi
15775    $RM conftest*
15776
15777 fi
15778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15779 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15780
15781 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15782     case $lt_prog_compiler_pic_CXX in
15783      "" | " "*) ;;
15784      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15785      esac
15786 else
15787     lt_prog_compiler_pic_CXX=
15788      lt_prog_compiler_can_build_shared_CXX=no
15789 fi
15790
15791 fi
15792
15793
15794
15795
15796
15797 #
15798 # Check to make sure the static flag actually works.
15799 #
15800 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15802 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15803 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15804   $as_echo_n "(cached) " >&6
15805 else
15806   lt_cv_prog_compiler_static_works_CXX=no
15807    save_LDFLAGS="$LDFLAGS"
15808    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15809    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15810    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15811      # The linker can only warn and ignore the option if not recognized
15812      # So say no if there are warnings
15813      if test -s conftest.err; then
15814        # Append any errors to the config.log.
15815        cat conftest.err 1>&5
15816        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15817        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15818        if diff conftest.exp conftest.er2 >/dev/null; then
15819          lt_cv_prog_compiler_static_works_CXX=yes
15820        fi
15821      else
15822        lt_cv_prog_compiler_static_works_CXX=yes
15823      fi
15824    fi
15825    $RM -r conftest*
15826    LDFLAGS="$save_LDFLAGS"
15827
15828 fi
15829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15830 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15831
15832 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15833     :
15834 else
15835     lt_prog_compiler_static_CXX=
15836 fi
15837
15838
15839
15840
15841     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15842 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15843 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15844   $as_echo_n "(cached) " >&6
15845 else
15846   lt_cv_prog_compiler_c_o_CXX=no
15847    $RM -r conftest 2>/dev/null
15848    mkdir conftest
15849    cd conftest
15850    mkdir out
15851    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15852
15853    lt_compiler_flag="-o out/conftest2.$ac_objext"
15854    # Insert the option either (1) after the last *FLAGS variable, or
15855    # (2) before a word containing "conftest.", or (3) at the end.
15856    # Note that $ac_compile itself does not contain backslashes and begins
15857    # with a dollar sign (not a hyphen), so the echo should work correctly.
15858    lt_compile=`echo "$ac_compile" | $SED \
15859    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15860    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15861    -e 's:$: $lt_compiler_flag:'`
15862    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15863    (eval "$lt_compile" 2>out/conftest.err)
15864    ac_status=$?
15865    cat out/conftest.err >&5
15866    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15868    then
15869      # The compiler can only warn and ignore the option if not recognized
15870      # So say no if there are warnings
15871      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15872      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15873      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15874        lt_cv_prog_compiler_c_o_CXX=yes
15875      fi
15876    fi
15877    chmod u+w . 2>&5
15878    $RM conftest*
15879    # SGI C++ compiler will create directory out/ii_files/ for
15880    # template instantiation
15881    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15882    $RM out/* && rmdir out
15883    cd ..
15884    $RM -r conftest
15885    $RM conftest*
15886
15887 fi
15888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15889 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15890
15891
15892
15893     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15894 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15895 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15896   $as_echo_n "(cached) " >&6
15897 else
15898   lt_cv_prog_compiler_c_o_CXX=no
15899    $RM -r conftest 2>/dev/null
15900    mkdir conftest
15901    cd conftest
15902    mkdir out
15903    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15904
15905    lt_compiler_flag="-o out/conftest2.$ac_objext"
15906    # Insert the option either (1) after the last *FLAGS variable, or
15907    # (2) before a word containing "conftest.", or (3) at the end.
15908    # Note that $ac_compile itself does not contain backslashes and begins
15909    # with a dollar sign (not a hyphen), so the echo should work correctly.
15910    lt_compile=`echo "$ac_compile" | $SED \
15911    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15912    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15913    -e 's:$: $lt_compiler_flag:'`
15914    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15915    (eval "$lt_compile" 2>out/conftest.err)
15916    ac_status=$?
15917    cat out/conftest.err >&5
15918    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15919    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15920    then
15921      # The compiler can only warn and ignore the option if not recognized
15922      # So say no if there are warnings
15923      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15924      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15925      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15926        lt_cv_prog_compiler_c_o_CXX=yes
15927      fi
15928    fi
15929    chmod u+w . 2>&5
15930    $RM conftest*
15931    # SGI C++ compiler will create directory out/ii_files/ for
15932    # template instantiation
15933    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15934    $RM out/* && rmdir out
15935    cd ..
15936    $RM -r conftest
15937    $RM conftest*
15938
15939 fi
15940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15941 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15942
15943
15944
15945
15946 hard_links="nottested"
15947 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15948   # do not overwrite the value of need_locks provided by the user
15949   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15950 $as_echo_n "checking if we can lock with hard links... " >&6; }
15951   hard_links=yes
15952   $RM conftest*
15953   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15954   touch conftest.a
15955   ln conftest.a conftest.b 2>&5 || hard_links=no
15956   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15958 $as_echo "$hard_links" >&6; }
15959   if test "$hard_links" = no; then
15960     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15961 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15962     need_locks=warn
15963   fi
15964 else
15965   need_locks=no
15966 fi
15967
15968
15969
15970     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15971 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15972
15973   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15974   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15975   case $host_os in
15976   aix[4-9]*)
15977     # If we're using GNU nm, then we don't want the "-C" option.
15978     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15979     # Also, AIX nm treats weak defined symbols like other global defined
15980     # symbols, whereas GNU nm marks them as "W".
15981     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15982       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15983     else
15984       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15985     fi
15986     ;;
15987   pw32*)
15988     export_symbols_cmds_CXX="$ltdll_cmds"
15989     ;;
15990   cygwin* | mingw* | cegcc*)
15991     case $cc_basename in
15992     cl*) ;;
15993     *)
15994       export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15995       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15996       ;;
15997     esac
15998     ;;
15999   *)
16000     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16001     ;;
16002   esac
16003
16004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16005 $as_echo "$ld_shlibs_CXX" >&6; }
16006 test "$ld_shlibs_CXX" = no && can_build_shared=no
16007
16008 with_gnu_ld_CXX=$with_gnu_ld
16009
16010
16011
16012
16013
16014
16015 #
16016 # Do we need to explicitly link libc?
16017 #
16018 case "x$archive_cmds_need_lc_CXX" in
16019 x|xyes)
16020   # Assume -lc should be added
16021   archive_cmds_need_lc_CXX=yes
16022
16023   if test "$enable_shared" = yes && test "$GCC" = yes; then
16024     case $archive_cmds_CXX in
16025     *'~'*)
16026       # FIXME: we may have to deal with multi-command sequences.
16027       ;;
16028     '$CC '*)
16029       # Test whether the compiler implicitly links with -lc since on some
16030       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16031       # to ld, don't add -lc before -lgcc.
16032       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16033 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16034 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
16035   $as_echo_n "(cached) " >&6
16036 else
16037   $RM conftest*
16038         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16039
16040         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16041   (eval $ac_compile) 2>&5
16042   ac_status=$?
16043   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16044   test $ac_status = 0; } 2>conftest.err; then
16045           soname=conftest
16046           lib=conftest
16047           libobjs=conftest.$ac_objext
16048           deplibs=
16049           wl=$lt_prog_compiler_wl_CXX
16050           pic_flag=$lt_prog_compiler_pic_CXX
16051           compiler_flags=-v
16052           linker_flags=-v
16053           verstring=
16054           output_objdir=.
16055           libname=conftest
16056           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16057           allow_undefined_flag_CXX=
16058           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16059   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16060   ac_status=$?
16061   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16062   test $ac_status = 0; }
16063           then
16064             lt_cv_archive_cmds_need_lc_CXX=no
16065           else
16066             lt_cv_archive_cmds_need_lc_CXX=yes
16067           fi
16068           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16069         else
16070           cat conftest.err 1>&5
16071         fi
16072         $RM conftest*
16073
16074 fi
16075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16076 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
16077       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
16078       ;;
16079     esac
16080   fi
16081   ;;
16082 esac
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16148 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16149
16150 library_names_spec=
16151 libname_spec='lib$name'
16152 soname_spec=
16153 shrext_cmds=".so"
16154 postinstall_cmds=
16155 postuninstall_cmds=
16156 finish_cmds=
16157 finish_eval=
16158 shlibpath_var=
16159 shlibpath_overrides_runpath=unknown
16160 version_type=none
16161 dynamic_linker="$host_os ld.so"
16162 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16163 need_lib_prefix=unknown
16164 hardcode_into_libs=no
16165
16166 # when you set need_version to no, make sure it does not cause -set_version
16167 # flags to be left without arguments
16168 need_version=unknown
16169
16170 case $host_os in
16171 aix3*)
16172   version_type=linux
16173   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16174   shlibpath_var=LIBPATH
16175
16176   # AIX 3 has no versioning support, so we append a major version to the name.
16177   soname_spec='${libname}${release}${shared_ext}$major'
16178   ;;
16179
16180 aix[4-9]*)
16181   version_type=linux
16182   need_lib_prefix=no
16183   need_version=no
16184   hardcode_into_libs=yes
16185   if test "$host_cpu" = ia64; then
16186     # AIX 5 supports IA64
16187     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16188     shlibpath_var=LD_LIBRARY_PATH
16189   else
16190     # With GCC up to 2.95.x, collect2 would create an import file
16191     # for dependence libraries.  The import file would start with
16192     # the line `#! .'.  This would cause the generated library to
16193     # depend on `.', always an invalid library.  This was fixed in
16194     # development snapshots of GCC prior to 3.0.
16195     case $host_os in
16196       aix4 | aix4.[01] | aix4.[01].*)
16197       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16198            echo ' yes '
16199            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16200         :
16201       else
16202         can_build_shared=no
16203       fi
16204       ;;
16205     esac
16206     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16207     # soname into executable. Probably we can add versioning support to
16208     # collect2, so additional links can be useful in future.
16209     if test "$aix_use_runtimelinking" = yes; then
16210       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16211       # instead of lib<name>.a to let people know that these are not
16212       # typical AIX shared libraries.
16213       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16214     else
16215       # We preserve .a as extension for shared libraries through AIX4.2
16216       # and later when we are not doing run time linking.
16217       library_names_spec='${libname}${release}.a $libname.a'
16218       soname_spec='${libname}${release}${shared_ext}$major'
16219     fi
16220     shlibpath_var=LIBPATH
16221   fi
16222   ;;
16223
16224 amigaos*)
16225   case $host_cpu in
16226   powerpc)
16227     # Since July 2007 AmigaOS4 officially supports .so libraries.
16228     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16229     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16230     ;;
16231   m68k)
16232     library_names_spec='$libname.ixlibrary $libname.a'
16233     # Create ${libname}_ixlibrary.a entries in /sys/libs.
16234     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'
16235     ;;
16236   esac
16237   ;;
16238
16239 beos*)
16240   library_names_spec='${libname}${shared_ext}'
16241   dynamic_linker="$host_os ld.so"
16242   shlibpath_var=LIBRARY_PATH
16243   ;;
16244
16245 bsdi[45]*)
16246   version_type=linux
16247   need_version=no
16248   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16249   soname_spec='${libname}${release}${shared_ext}$major'
16250   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16251   shlibpath_var=LD_LIBRARY_PATH
16252   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16253   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16254   # the default ld.so.conf also contains /usr/contrib/lib and
16255   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16256   # libtool to hard-code these into programs
16257   ;;
16258
16259 cygwin* | mingw* | pw32* | cegcc*)
16260   version_type=windows
16261   shrext_cmds=".dll"
16262   need_version=no
16263   need_lib_prefix=no
16264
16265   case $GCC,$cc_basename in
16266   yes,*)
16267     # gcc
16268     library_names_spec='$libname.dll.a'
16269     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16270     postinstall_cmds='base_file=`basename \${file}`~
16271       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16272       dldir=$destdir/`dirname \$dlpath`~
16273       test -d \$dldir || mkdir -p \$dldir~
16274       $install_prog $dir/$dlname \$dldir/$dlname~
16275       chmod a+x \$dldir/$dlname~
16276       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16277         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16278       fi'
16279     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16280       dlpath=$dir/\$dldll~
16281        $RM \$dlpath'
16282     shlibpath_overrides_runpath=yes
16283
16284     case $host_os in
16285     cygwin*)
16286       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16287       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16288
16289       ;;
16290     mingw* | cegcc*)
16291       # MinGW DLLs use traditional 'lib' prefix
16292       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16293       ;;
16294     pw32*)
16295       # pw32 DLLs use 'pw' prefix rather than 'lib'
16296       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16297       ;;
16298     esac
16299     dynamic_linker='Win32 ld.exe'
16300     ;;
16301
16302   *,cl*)
16303     # Native MSVC
16304     libname_spec='$name'
16305     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16306     library_names_spec='${libname}.dll.lib'
16307
16308     case $build_os in
16309     mingw*)
16310       sys_lib_search_path_spec=
16311       lt_save_ifs=$IFS
16312       IFS=';'
16313       for lt_path in $LIB
16314       do
16315         IFS=$lt_save_ifs
16316         # Let DOS variable expansion print the short 8.3 style file name.
16317         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16318         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16319       done
16320       IFS=$lt_save_ifs
16321       # Convert to MSYS style.
16322       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16323       ;;
16324     cygwin*)
16325       # Convert to unix form, then to dos form, then back to unix form
16326       # but this time dos style (no spaces!) so that the unix form looks
16327       # like /cygdrive/c/PROGRA~1:/cygdr...
16328       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16329       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16330       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16331       ;;
16332     *)
16333       sys_lib_search_path_spec="$LIB"
16334       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16335         # It is most probably a Windows format PATH.
16336         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16337       else
16338         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16339       fi
16340       # FIXME: find the short name or the path components, as spaces are
16341       # common. (e.g. "Program Files" -> "PROGRA~1")
16342       ;;
16343     esac
16344
16345     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16346     postinstall_cmds='base_file=`basename \${file}`~
16347       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16348       dldir=$destdir/`dirname \$dlpath`~
16349       test -d \$dldir || mkdir -p \$dldir~
16350       $install_prog $dir/$dlname \$dldir/$dlname'
16351     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16352       dlpath=$dir/\$dldll~
16353        $RM \$dlpath'
16354     shlibpath_overrides_runpath=yes
16355     dynamic_linker='Win32 link.exe'
16356     ;;
16357
16358   *)
16359     # Assume MSVC wrapper
16360     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16361     dynamic_linker='Win32 ld.exe'
16362     ;;
16363   esac
16364   # FIXME: first we should search . and the directory the executable is in
16365   shlibpath_var=PATH
16366   ;;
16367
16368 darwin* | rhapsody*)
16369   dynamic_linker="$host_os dyld"
16370   version_type=darwin
16371   need_lib_prefix=no
16372   need_version=no
16373   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16374   soname_spec='${libname}${release}${major}$shared_ext'
16375   shlibpath_overrides_runpath=yes
16376   shlibpath_var=DYLD_LIBRARY_PATH
16377   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16378
16379   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16380   ;;
16381
16382 dgux*)
16383   version_type=linux
16384   need_lib_prefix=no
16385   need_version=no
16386   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16387   soname_spec='${libname}${release}${shared_ext}$major'
16388   shlibpath_var=LD_LIBRARY_PATH
16389   ;;
16390
16391 freebsd1*)
16392   dynamic_linker=no
16393   ;;
16394
16395 freebsd* | dragonfly*)
16396   # DragonFly does not have aout.  When/if they implement a new
16397   # versioning mechanism, adjust this.
16398   if test -x /usr/bin/objformat; then
16399     objformat=`/usr/bin/objformat`
16400   else
16401     case $host_os in
16402     freebsd[123]*) objformat=aout ;;
16403     *) objformat=elf ;;
16404     esac
16405   fi
16406   version_type=freebsd-$objformat
16407   case $version_type in
16408     freebsd-elf*)
16409       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16410       need_version=no
16411       need_lib_prefix=no
16412       ;;
16413     freebsd-*)
16414       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16415       need_version=yes
16416       ;;
16417   esac
16418   shlibpath_var=LD_LIBRARY_PATH
16419   case $host_os in
16420   freebsd2*)
16421     shlibpath_overrides_runpath=yes
16422     ;;
16423   freebsd3.[01]* | freebsdelf3.[01]*)
16424     shlibpath_overrides_runpath=yes
16425     hardcode_into_libs=yes
16426     ;;
16427   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16428   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16429     shlibpath_overrides_runpath=no
16430     hardcode_into_libs=yes
16431     ;;
16432   *) # from 4.6 on, and DragonFly
16433     shlibpath_overrides_runpath=yes
16434     hardcode_into_libs=yes
16435     ;;
16436   esac
16437   ;;
16438
16439 gnu*)
16440   version_type=linux
16441   need_lib_prefix=no
16442   need_version=no
16443   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16444   soname_spec='${libname}${release}${shared_ext}$major'
16445   shlibpath_var=LD_LIBRARY_PATH
16446   hardcode_into_libs=yes
16447   ;;
16448
16449 haiku*)
16450   version_type=linux
16451   need_lib_prefix=no
16452   need_version=no
16453   dynamic_linker="$host_os runtime_loader"
16454   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16455   soname_spec='${libname}${release}${shared_ext}$major'
16456   shlibpath_var=LIBRARY_PATH
16457   shlibpath_overrides_runpath=yes
16458   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16459   hardcode_into_libs=yes
16460   ;;
16461
16462 hpux9* | hpux10* | hpux11*)
16463   # Give a soname corresponding to the major version so that dld.sl refuses to
16464   # link against other versions.
16465   version_type=sunos
16466   need_lib_prefix=no
16467   need_version=no
16468   case $host_cpu in
16469   ia64*)
16470     shrext_cmds='.so'
16471     hardcode_into_libs=yes
16472     dynamic_linker="$host_os dld.so"
16473     shlibpath_var=LD_LIBRARY_PATH
16474     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16475     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16476     soname_spec='${libname}${release}${shared_ext}$major'
16477     if test "X$HPUX_IA64_MODE" = X32; then
16478       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16479     else
16480       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16481     fi
16482     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16483     ;;
16484   hppa*64*)
16485     shrext_cmds='.sl'
16486     hardcode_into_libs=yes
16487     dynamic_linker="$host_os dld.sl"
16488     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16489     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16490     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16491     soname_spec='${libname}${release}${shared_ext}$major'
16492     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16493     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16494     ;;
16495   *)
16496     shrext_cmds='.sl'
16497     dynamic_linker="$host_os dld.sl"
16498     shlibpath_var=SHLIB_PATH
16499     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16500     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16501     soname_spec='${libname}${release}${shared_ext}$major'
16502     ;;
16503   esac
16504   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16505   postinstall_cmds='chmod 555 $lib'
16506   # or fails outright, so override atomically:
16507   install_override_mode=555
16508   ;;
16509
16510 interix[3-9]*)
16511   version_type=linux
16512   need_lib_prefix=no
16513   need_version=no
16514   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16515   soname_spec='${libname}${release}${shared_ext}$major'
16516   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16517   shlibpath_var=LD_LIBRARY_PATH
16518   shlibpath_overrides_runpath=no
16519   hardcode_into_libs=yes
16520   ;;
16521
16522 irix5* | irix6* | nonstopux*)
16523   case $host_os in
16524     nonstopux*) version_type=nonstopux ;;
16525     *)
16526         if test "$lt_cv_prog_gnu_ld" = yes; then
16527                 version_type=linux
16528         else
16529                 version_type=irix
16530         fi ;;
16531   esac
16532   need_lib_prefix=no
16533   need_version=no
16534   soname_spec='${libname}${release}${shared_ext}$major'
16535   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16536   case $host_os in
16537   irix5* | nonstopux*)
16538     libsuff= shlibsuff=
16539     ;;
16540   *)
16541     case $LD in # libtool.m4 will add one of these switches to LD
16542     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16543       libsuff= shlibsuff= libmagic=32-bit;;
16544     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16545       libsuff=32 shlibsuff=N32 libmagic=N32;;
16546     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16547       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16548     *) libsuff= shlibsuff= libmagic=never-match;;
16549     esac
16550     ;;
16551   esac
16552   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16553   shlibpath_overrides_runpath=no
16554   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16555   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16556   hardcode_into_libs=yes
16557   ;;
16558
16559 # No shared lib support for Linux oldld, aout, or coff.
16560 linux*oldld* | linux*aout* | linux*coff*)
16561   dynamic_linker=no
16562   ;;
16563
16564 # This must be Linux ELF.
16565 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16566   version_type=linux
16567   need_lib_prefix=no
16568   need_version=no
16569   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16570   soname_spec='${libname}${release}${shared_ext}$major'
16571   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16572   shlibpath_var=LD_LIBRARY_PATH
16573   shlibpath_overrides_runpath=no
16574
16575   # Some binutils ld are patched to set DT_RUNPATH
16576   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16577   $as_echo_n "(cached) " >&6
16578 else
16579   lt_cv_shlibpath_overrides_runpath=no
16580     save_LDFLAGS=$LDFLAGS
16581     save_libdir=$libdir
16582     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16583          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16584     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16585 /* end confdefs.h.  */
16586
16587 int
16588 main ()
16589 {
16590
16591   ;
16592   return 0;
16593 }
16594 _ACEOF
16595 if ac_fn_cxx_try_link "$LINENO"; then :
16596   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16597   lt_cv_shlibpath_overrides_runpath=yes
16598 fi
16599 fi
16600 rm -f core conftest.err conftest.$ac_objext \
16601     conftest$ac_exeext conftest.$ac_ext
16602     LDFLAGS=$save_LDFLAGS
16603     libdir=$save_libdir
16604
16605 fi
16606
16607   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16608
16609   # This implies no fast_install, which is unacceptable.
16610   # Some rework will be needed to allow for fast_install
16611   # before this can be enabled.
16612   hardcode_into_libs=yes
16613
16614   # Add ABI-specific directories to the system library path.
16615   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16616
16617   # Append ld.so.conf contents to the search path
16618   if test -f /etc/ld.so.conf; then
16619     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' ' '`
16620     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16621
16622   fi
16623
16624   # We used to test for /lib/ld.so.1 and disable shared libraries on
16625   # powerpc, because MkLinux only supported shared libraries with the
16626   # GNU dynamic linker.  Since this was broken with cross compilers,
16627   # most powerpc-linux boxes support dynamic linking these days and
16628   # people can always --disable-shared, the test was removed, and we
16629   # assume the GNU/Linux dynamic linker is in use.
16630   dynamic_linker='GNU/Linux ld.so'
16631   ;;
16632
16633 netbsd*)
16634   version_type=sunos
16635   need_lib_prefix=no
16636   need_version=no
16637   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16638     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16639     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16640     dynamic_linker='NetBSD (a.out) ld.so'
16641   else
16642     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16643     soname_spec='${libname}${release}${shared_ext}$major'
16644     dynamic_linker='NetBSD ld.elf_so'
16645   fi
16646   shlibpath_var=LD_LIBRARY_PATH
16647   shlibpath_overrides_runpath=yes
16648   hardcode_into_libs=yes
16649   ;;
16650
16651 newsos6)
16652   version_type=linux
16653   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16654   shlibpath_var=LD_LIBRARY_PATH
16655   shlibpath_overrides_runpath=yes
16656   ;;
16657
16658 *nto* | *qnx*)
16659   version_type=qnx
16660   need_lib_prefix=no
16661   need_version=no
16662   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16663   soname_spec='${libname}${release}${shared_ext}$major'
16664   shlibpath_var=LD_LIBRARY_PATH
16665   shlibpath_overrides_runpath=no
16666   hardcode_into_libs=yes
16667   dynamic_linker='ldqnx.so'
16668   ;;
16669
16670 openbsd*)
16671   version_type=sunos
16672   sys_lib_dlsearch_path_spec="/usr/lib"
16673   need_lib_prefix=no
16674   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16675   case $host_os in
16676     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16677     *)                          need_version=no  ;;
16678   esac
16679   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16680   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16681   shlibpath_var=LD_LIBRARY_PATH
16682   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16683     case $host_os in
16684       openbsd2.[89] | openbsd2.[89].*)
16685         shlibpath_overrides_runpath=no
16686         ;;
16687       *)
16688         shlibpath_overrides_runpath=yes
16689         ;;
16690       esac
16691   else
16692     shlibpath_overrides_runpath=yes
16693   fi
16694   ;;
16695
16696 os2*)
16697   libname_spec='$name'
16698   shrext_cmds=".dll"
16699   need_lib_prefix=no
16700   library_names_spec='$libname${shared_ext} $libname.a'
16701   dynamic_linker='OS/2 ld.exe'
16702   shlibpath_var=LIBPATH
16703   ;;
16704
16705 osf3* | osf4* | osf5*)
16706   version_type=osf
16707   need_lib_prefix=no
16708   need_version=no
16709   soname_spec='${libname}${release}${shared_ext}$major'
16710   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16711   shlibpath_var=LD_LIBRARY_PATH
16712   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16713   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16714   ;;
16715
16716 rdos*)
16717   dynamic_linker=no
16718   ;;
16719
16720 solaris*)
16721   version_type=linux
16722   need_lib_prefix=no
16723   need_version=no
16724   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16725   soname_spec='${libname}${release}${shared_ext}$major'
16726   shlibpath_var=LD_LIBRARY_PATH
16727   shlibpath_overrides_runpath=yes
16728   hardcode_into_libs=yes
16729   # ldd complains unless libraries are executable
16730   postinstall_cmds='chmod +x $lib'
16731   ;;
16732
16733 sunos4*)
16734   version_type=sunos
16735   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16736   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16737   shlibpath_var=LD_LIBRARY_PATH
16738   shlibpath_overrides_runpath=yes
16739   if test "$with_gnu_ld" = yes; then
16740     need_lib_prefix=no
16741   fi
16742   need_version=yes
16743   ;;
16744
16745 sysv4 | sysv4.3*)
16746   version_type=linux
16747   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16748   soname_spec='${libname}${release}${shared_ext}$major'
16749   shlibpath_var=LD_LIBRARY_PATH
16750   case $host_vendor in
16751     sni)
16752       shlibpath_overrides_runpath=no
16753       need_lib_prefix=no
16754       runpath_var=LD_RUN_PATH
16755       ;;
16756     siemens)
16757       need_lib_prefix=no
16758       ;;
16759     motorola)
16760       need_lib_prefix=no
16761       need_version=no
16762       shlibpath_overrides_runpath=no
16763       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16764       ;;
16765   esac
16766   ;;
16767
16768 sysv4*MP*)
16769   if test -d /usr/nec ;then
16770     version_type=linux
16771     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16772     soname_spec='$libname${shared_ext}.$major'
16773     shlibpath_var=LD_LIBRARY_PATH
16774   fi
16775   ;;
16776
16777 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16778   version_type=freebsd-elf
16779   need_lib_prefix=no
16780   need_version=no
16781   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16782   soname_spec='${libname}${release}${shared_ext}$major'
16783   shlibpath_var=LD_LIBRARY_PATH
16784   shlibpath_overrides_runpath=yes
16785   hardcode_into_libs=yes
16786   if test "$with_gnu_ld" = yes; then
16787     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16788   else
16789     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16790     case $host_os in
16791       sco3.2v5*)
16792         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16793         ;;
16794     esac
16795   fi
16796   sys_lib_dlsearch_path_spec='/usr/lib'
16797   ;;
16798
16799 tpf*)
16800   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16801   version_type=linux
16802   need_lib_prefix=no
16803   need_version=no
16804   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16805   shlibpath_var=LD_LIBRARY_PATH
16806   shlibpath_overrides_runpath=no
16807   hardcode_into_libs=yes
16808   ;;
16809
16810 uts4*)
16811   version_type=linux
16812   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16813   soname_spec='${libname}${release}${shared_ext}$major'
16814   shlibpath_var=LD_LIBRARY_PATH
16815   ;;
16816
16817 *)
16818   dynamic_linker=no
16819   ;;
16820 esac
16821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16822 $as_echo "$dynamic_linker" >&6; }
16823 test "$dynamic_linker" = no && can_build_shared=no
16824
16825 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16826 if test "$GCC" = yes; then
16827   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16828 fi
16829
16830 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16831   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16832 fi
16833 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16834   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16835 fi
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846
16847
16848
16849
16850
16851
16852
16853
16854
16855
16856
16857
16858
16859
16860
16861
16862
16863
16864
16865
16866
16867
16868
16869
16870
16871
16872
16873
16874     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16875 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16876 hardcode_action_CXX=
16877 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16878    test -n "$runpath_var_CXX" ||
16879    test "X$hardcode_automatic_CXX" = "Xyes" ; then
16880
16881   # We can hardcode non-existent directories.
16882   if test "$hardcode_direct_CXX" != no &&
16883      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16884      # have to relink, otherwise we might link with an installed library
16885      # when we should be linking with a yet-to-be-installed one
16886      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16887      test "$hardcode_minus_L_CXX" != no; then
16888     # Linking always hardcodes the temporary library directory.
16889     hardcode_action_CXX=relink
16890   else
16891     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16892     hardcode_action_CXX=immediate
16893   fi
16894 else
16895   # We cannot hardcode anything, or else we can only hardcode existing
16896   # directories.
16897   hardcode_action_CXX=unsupported
16898 fi
16899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16900 $as_echo "$hardcode_action_CXX" >&6; }
16901
16902 if test "$hardcode_action_CXX" = relink ||
16903    test "$inherit_rpath_CXX" = yes; then
16904   # Fast installation is not supported
16905   enable_fast_install=no
16906 elif test "$shlibpath_overrides_runpath" = yes ||
16907      test "$enable_shared" = no; then
16908   # Fast installation is not necessary
16909   enable_fast_install=needless
16910 fi
16911
16912
16913
16914
16915
16916
16917
16918   fi # test -n "$compiler"
16919
16920   CC=$lt_save_CC
16921   CFLAGS=$lt_save_CFLAGS
16922   LDCXX=$LD
16923   LD=$lt_save_LD
16924   GCC=$lt_save_GCC
16925   with_gnu_ld=$lt_save_with_gnu_ld
16926   lt_cv_path_LDCXX=$lt_cv_path_LD
16927   lt_cv_path_LD=$lt_save_path_LD
16928   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16929   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16930 fi # test "$_lt_caught_CXX_error" != yes
16931
16932 ac_ext=c
16933 ac_cpp='$CPP $CPPFLAGS'
16934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950         ac_config_commands="$ac_config_commands libtool"
16951
16952
16953
16954
16955 # Only expand once:
16956
16957
16958 if test "x$CC" != xcc; then
16959   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
16960 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
16961 else
16962   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
16963 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
16964 fi
16965 set dummy $CC; ac_cc=`$as_echo "$2" |
16966                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
16967 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
16968   $as_echo_n "(cached) " >&6
16969 else
16970   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16971 /* end confdefs.h.  */
16972
16973 int
16974 main ()
16975 {
16976
16977   ;
16978   return 0;
16979 }
16980 _ACEOF
16981 # Make sure it works both with $CC and with simple cc.
16982 # We do the test twice because some compilers refuse to overwrite an
16983 # existing .o file with -o, though they will create one.
16984 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
16985 rm -f conftest2.*
16986 if { { case "(($ac_try" in
16987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16988   *) ac_try_echo=$ac_try;;
16989 esac
16990 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16991 $as_echo "$ac_try_echo"; } >&5
16992   (eval "$ac_try") 2>&5
16993   ac_status=$?
16994   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16995   test $ac_status = 0; } &&
16996    test -f conftest2.$ac_objext && { { case "(($ac_try" in
16997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16998   *) ac_try_echo=$ac_try;;
16999 esac
17000 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17001 $as_echo "$ac_try_echo"; } >&5
17002   (eval "$ac_try") 2>&5
17003   ac_status=$?
17004   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17005   test $ac_status = 0; };
17006 then
17007   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
17008   if test "x$CC" != xcc; then
17009     # Test first that cc exists at all.
17010     if { ac_try='cc -c conftest.$ac_ext >&5'
17011   { { case "(($ac_try" in
17012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17013   *) ac_try_echo=$ac_try;;
17014 esac
17015 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17016 $as_echo "$ac_try_echo"; } >&5
17017   (eval "$ac_try") 2>&5
17018   ac_status=$?
17019   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17020   test $ac_status = 0; }; }; then
17021       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
17022       rm -f conftest2.*
17023       if { { case "(($ac_try" in
17024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17025   *) ac_try_echo=$ac_try;;
17026 esac
17027 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17028 $as_echo "$ac_try_echo"; } >&5
17029   (eval "$ac_try") 2>&5
17030   ac_status=$?
17031   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17032   test $ac_status = 0; } &&
17033          test -f conftest2.$ac_objext && { { case "(($ac_try" in
17034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17035   *) ac_try_echo=$ac_try;;
17036 esac
17037 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17038 $as_echo "$ac_try_echo"; } >&5
17039   (eval "$ac_try") 2>&5
17040   ac_status=$?
17041   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17042   test $ac_status = 0; };
17043       then
17044         # cc works too.
17045         :
17046       else
17047         # cc exists but doesn't like -o.
17048         eval ac_cv_prog_cc_${ac_cc}_c_o=no
17049       fi
17050     fi
17051   fi
17052 else
17053   eval ac_cv_prog_cc_${ac_cc}_c_o=no
17054 fi
17055 rm -f core conftest*
17056
17057 fi
17058 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
17059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17060 $as_echo "yes" >&6; }
17061 else
17062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17063 $as_echo "no" >&6; }
17064
17065 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
17066
17067 fi
17068
17069 # FIXME: we rely on the cache variable name because
17070 # there is no other way.
17071 set dummy $CC
17072 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
17073 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
17074 if test "$am_t" != yes; then
17075    # Losing compiler, so override with the script.
17076    # FIXME: It is wrong to rewrite CC.
17077    # But if we don't then we get into trouble of one sort or another.
17078    # A longer-term fix would be to have automake use am__CC in this case,
17079    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
17080    CC="$am_aux_dir/compile $CC"
17081 fi
17082
17083
17084
17085 if test "x$cross_compiling" = "xno"; then
17086         CC_FOR_BUILD=${CC_FOR_BUILD-${CC-gcc}}
17087 else
17088         CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
17089 fi
17090
17091
17092
17093 if test -n "$ac_tool_prefix"; then
17094   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
17095 set dummy ${ac_tool_prefix}ar; ac_word=$2
17096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17097 $as_echo_n "checking for $ac_word... " >&6; }
17098 if ${ac_cv_prog_AR+:} false; then :
17099   $as_echo_n "(cached) " >&6
17100 else
17101   if test -n "$AR"; then
17102   ac_cv_prog_AR="$AR" # Let the user override the test.
17103 else
17104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17105 for as_dir in $PATH
17106 do
17107   IFS=$as_save_IFS
17108   test -z "$as_dir" && as_dir=.
17109     for ac_exec_ext in '' $ac_executable_extensions; do
17110   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17111     ac_cv_prog_AR="${ac_tool_prefix}ar"
17112     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17113     break 2
17114   fi
17115 done
17116   done
17117 IFS=$as_save_IFS
17118
17119 fi
17120 fi
17121 AR=$ac_cv_prog_AR
17122 if test -n "$AR"; then
17123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
17124 $as_echo "$AR" >&6; }
17125 else
17126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17127 $as_echo "no" >&6; }
17128 fi
17129
17130
17131 fi
17132 if test -z "$ac_cv_prog_AR"; then
17133   ac_ct_AR=$AR
17134   # Extract the first word of "ar", so it can be a program name with args.
17135 set dummy ar; ac_word=$2
17136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17137 $as_echo_n "checking for $ac_word... " >&6; }
17138 if ${ac_cv_prog_ac_ct_AR+:} false; then :
17139   $as_echo_n "(cached) " >&6
17140 else
17141   if test -n "$ac_ct_AR"; then
17142   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
17143 else
17144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17145 for as_dir in $PATH
17146 do
17147   IFS=$as_save_IFS
17148   test -z "$as_dir" && as_dir=.
17149     for ac_exec_ext in '' $ac_executable_extensions; do
17150   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17151     ac_cv_prog_ac_ct_AR="ar"
17152     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17153     break 2
17154   fi
17155 done
17156   done
17157 IFS=$as_save_IFS
17158
17159 fi
17160 fi
17161 ac_ct_AR=$ac_cv_prog_ac_ct_AR
17162 if test -n "$ac_ct_AR"; then
17163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
17164 $as_echo "$ac_ct_AR" >&6; }
17165 else
17166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17167 $as_echo "no" >&6; }
17168 fi
17169
17170   if test "x$ac_ct_AR" = x; then
17171     AR=""
17172   else
17173     case $cross_compiling:$ac_tool_warned in
17174 yes:)
17175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17176 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17177 ac_tool_warned=yes ;;
17178 esac
17179     AR=$ac_ct_AR
17180   fi
17181 else
17182   AR="$ac_cv_prog_AR"
17183 fi
17184
17185 if test -n "$ac_tool_prefix"; then
17186   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
17187 set dummy ${ac_tool_prefix}ld; ac_word=$2
17188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17189 $as_echo_n "checking for $ac_word... " >&6; }
17190 if ${ac_cv_prog_LD+:} false; then :
17191   $as_echo_n "(cached) " >&6
17192 else
17193   if test -n "$LD"; then
17194   ac_cv_prog_LD="$LD" # Let the user override the test.
17195 else
17196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17197 for as_dir in $PATH
17198 do
17199   IFS=$as_save_IFS
17200   test -z "$as_dir" && as_dir=.
17201     for ac_exec_ext in '' $ac_executable_extensions; do
17202   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17203     ac_cv_prog_LD="${ac_tool_prefix}ld"
17204     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17205     break 2
17206   fi
17207 done
17208   done
17209 IFS=$as_save_IFS
17210
17211 fi
17212 fi
17213 LD=$ac_cv_prog_LD
17214 if test -n "$LD"; then
17215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17216 $as_echo "$LD" >&6; }
17217 else
17218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17219 $as_echo "no" >&6; }
17220 fi
17221
17222
17223 fi
17224 if test -z "$ac_cv_prog_LD"; then
17225   ac_ct_LD=$LD
17226   # Extract the first word of "ld", so it can be a program name with args.
17227 set dummy ld; ac_word=$2
17228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17229 $as_echo_n "checking for $ac_word... " >&6; }
17230 if ${ac_cv_prog_ac_ct_LD+:} false; then :
17231   $as_echo_n "(cached) " >&6
17232 else
17233   if test -n "$ac_ct_LD"; then
17234   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
17235 else
17236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17237 for as_dir in $PATH
17238 do
17239   IFS=$as_save_IFS
17240   test -z "$as_dir" && as_dir=.
17241     for ac_exec_ext in '' $ac_executable_extensions; do
17242   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17243     ac_cv_prog_ac_ct_LD="ld"
17244     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17245     break 2
17246   fi
17247 done
17248   done
17249 IFS=$as_save_IFS
17250
17251 fi
17252 fi
17253 ac_ct_LD=$ac_cv_prog_ac_ct_LD
17254 if test -n "$ac_ct_LD"; then
17255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
17256 $as_echo "$ac_ct_LD" >&6; }
17257 else
17258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17259 $as_echo "no" >&6; }
17260 fi
17261
17262   if test "x$ac_ct_LD" = x; then
17263     LD=""
17264   else
17265     case $cross_compiling:$ac_tool_warned in
17266 yes:)
17267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17268 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17269 ac_tool_warned=yes ;;
17270 esac
17271     LD=$ac_ct_LD
17272   fi
17273 else
17274   LD="$ac_cv_prog_LD"
17275 fi
17276
17277
17278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
17279 $as_echo_n "checking for ANSI C header files... " >&6; }
17280 if ${ac_cv_header_stdc+:} false; then :
17281   $as_echo_n "(cached) " >&6
17282 else
17283   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17284 /* end confdefs.h.  */
17285 #include <stdlib.h>
17286 #include <stdarg.h>
17287 #include <string.h>
17288 #include <float.h>
17289
17290 int
17291 main ()
17292 {
17293
17294   ;
17295   return 0;
17296 }
17297 _ACEOF
17298 if ac_fn_c_try_compile "$LINENO"; then :
17299   ac_cv_header_stdc=yes
17300 else
17301   ac_cv_header_stdc=no
17302 fi
17303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17304
17305 if test $ac_cv_header_stdc = yes; then
17306   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
17307   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17308 /* end confdefs.h.  */
17309 #include <string.h>
17310
17311 _ACEOF
17312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17313   $EGREP "memchr" >/dev/null 2>&1; then :
17314
17315 else
17316   ac_cv_header_stdc=no
17317 fi
17318 rm -f conftest*
17319
17320 fi
17321
17322 if test $ac_cv_header_stdc = yes; then
17323   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
17324   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17325 /* end confdefs.h.  */
17326 #include <stdlib.h>
17327
17328 _ACEOF
17329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17330   $EGREP "free" >/dev/null 2>&1; then :
17331
17332 else
17333   ac_cv_header_stdc=no
17334 fi
17335 rm -f conftest*
17336
17337 fi
17338
17339 if test $ac_cv_header_stdc = yes; then
17340   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
17341   if test "$cross_compiling" = yes; then :
17342   :
17343 else
17344   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17345 /* end confdefs.h.  */
17346 #include <ctype.h>
17347 #include <stdlib.h>
17348 #if ((' ' & 0x0FF) == 0x020)
17349 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
17350 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
17351 #else
17352 # define ISLOWER(c) \
17353                    (('a' <= (c) && (c) <= 'i') \
17354                      || ('j' <= (c) && (c) <= 'r') \
17355                      || ('s' <= (c) && (c) <= 'z'))
17356 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
17357 #endif
17358
17359 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
17360 int
17361 main ()
17362 {
17363   int i;
17364   for (i = 0; i < 256; i++)
17365     if (XOR (islower (i), ISLOWER (i))
17366         || toupper (i) != TOUPPER (i))
17367       return 2;
17368   return 0;
17369 }
17370 _ACEOF
17371 if ac_fn_c_try_run "$LINENO"; then :
17372
17373 else
17374   ac_cv_header_stdc=no
17375 fi
17376 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17377   conftest.$ac_objext conftest.beam conftest.$ac_ext
17378 fi
17379
17380 fi
17381 fi
17382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
17383 $as_echo "$ac_cv_header_stdc" >&6; }
17384 if test $ac_cv_header_stdc = yes; then
17385
17386 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
17387
17388 fi
17389
17390
17391   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc2" >&5
17392 $as_echo_n "checking for GNU libc2... " >&6; }
17393   if ${knfsd_cv_glibc2+:} false; then :
17394   $as_echo_n "(cached) " >&6
17395 else
17396   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17397 /* end confdefs.h.  */
17398
17399       #include <features.h>
17400       #if !defined(__GLIBC__)
17401       # error Nope
17402       #endif
17403
17404 _ACEOF
17405 if ac_fn_c_try_cpp "$LINENO"; then :
17406   knfsd_cv_glibc2=yes
17407 else
17408   knfsd_cv_glibc2=no
17409 fi
17410 rm -f conftest.err conftest.i conftest.$ac_ext
17411 fi
17412
17413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $knfsd_cv_glibc2" >&5
17414 $as_echo "$knfsd_cv_glibc2" >&6; }
17415   if test $knfsd_cv_glibc2 = yes; then
17416     CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
17417     CPPFLAGS_FOR_BUILD="$CPPFLAGS_FOR_BUILD -D_GNU_SOURCE"
17418   fi
17419
17420
17421   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD signal semantics" >&5
17422 $as_echo_n "checking for BSD signal semantics... " >&6; }
17423   if ${knfsd_cv_bsd_signals+:} false; then :
17424   $as_echo_n "(cached) " >&6
17425 else
17426   if test "$cross_compiling" = yes; then :
17427
17428       case "$host_os" in
17429         *linux*) knfsd_cv_bsd_signals=no;;
17430         *bsd*)   knfsd_cv_bsd_signals=yes;;
17431         *)       as_fn_error $? "unable to guess signal semantics for $host_os; please set knfsd_cv_bsd_signals" "$LINENO" 5;;
17432       esac
17433
17434 else
17435   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17436 /* end confdefs.h.  */
17437
17438         #include <signal.h>
17439         #include <unistd.h>
17440         #include <sys/wait.h>
17441
17442         static int counter = 0;
17443         static RETSIGTYPE handler(int num) { counter++; }
17444
17445         int main()
17446         {
17447                 int     s;
17448                 if ((s = fork()) < 0) return 1;
17449                 if (s != 0) {
17450                         if (wait(&s) < 0) return 1;
17451                         return WIFSIGNALED(s)? 1 : 0;
17452                 }
17453
17454                 signal(SIGHUP, handler);
17455                 kill(getpid(), SIGHUP); kill(getpid(), SIGHUP);
17456                 return (counter == 2)? 0 : 1;
17457         }
17458
17459 _ACEOF
17460 if ac_fn_c_try_run "$LINENO"; then :
17461   knfsd_cv_bsd_signals=yes
17462 else
17463   knfsd_cv_bsd_signals=no
17464 fi
17465 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17466   conftest.$ac_objext conftest.beam conftest.$ac_ext
17467 fi
17468
17469 fi
17470      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $knfsd_cv_bsd_signals" >&5
17471 $as_echo "$knfsd_cv_bsd_signals" >&6; }
17472     test $knfsd_cv_bsd_signals = yes &&
17473 $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
17474
17475
17476
17477
17478 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
17479 if test "x$ac_cv_func_gethostbyname" = xyes; then :
17480
17481 else
17482   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
17483 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
17484 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
17485   $as_echo_n "(cached) " >&6
17486 else
17487   ac_check_lib_save_LIBS=$LIBS
17488 LIBS="-lnsl  $LIBS"
17489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17490 /* end confdefs.h.  */
17491
17492 /* Override any GCC internal prototype to avoid an error.
17493    Use char because int might match the return type of a GCC
17494    builtin and then its argument prototype would still apply.  */
17495 #ifdef __cplusplus
17496 extern "C"
17497 #endif
17498 char gethostbyname ();
17499 int
17500 main ()
17501 {
17502 return gethostbyname ();
17503   ;
17504   return 0;
17505 }
17506 _ACEOF
17507 if ac_fn_c_try_link "$LINENO"; then :
17508   ac_cv_lib_nsl_gethostbyname=yes
17509 else
17510   ac_cv_lib_nsl_gethostbyname=no
17511 fi
17512 rm -f core conftest.err conftest.$ac_objext \
17513     conftest$ac_exeext conftest.$ac_ext
17514 LIBS=$ac_check_lib_save_LIBS
17515 fi
17516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
17517 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
17518 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
17519   LIBNSL="-lnsl"
17520 fi
17521
17522 fi
17523
17524
17525
17526 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
17527 if test "x$ac_cv_func_connect" = xyes; then :
17528
17529 else
17530   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
17531 $as_echo_n "checking for connect in -lsocket... " >&6; }
17532 if ${ac_cv_lib_socket_connect+:} false; then :
17533   $as_echo_n "(cached) " >&6
17534 else
17535   ac_check_lib_save_LIBS=$LIBS
17536 LIBS="-lsocket $LIBNSL $LIBS"
17537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17538 /* end confdefs.h.  */
17539
17540 /* Override any GCC internal prototype to avoid an error.
17541    Use char because int might match the return type of a GCC
17542    builtin and then its argument prototype would still apply.  */
17543 #ifdef __cplusplus
17544 extern "C"
17545 #endif
17546 char connect ();
17547 int
17548 main ()
17549 {
17550 return connect ();
17551   ;
17552   return 0;
17553 }
17554 _ACEOF
17555 if ac_fn_c_try_link "$LINENO"; then :
17556   ac_cv_lib_socket_connect=yes
17557 else
17558   ac_cv_lib_socket_connect=no
17559 fi
17560 rm -f core conftest.err conftest.$ac_objext \
17561     conftest$ac_exeext conftest.$ac_ext
17562 LIBS=$ac_check_lib_save_LIBS
17563 fi
17564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
17565 $as_echo "$ac_cv_lib_socket_connect" >&6; }
17566 if test "x$ac_cv_lib_socket_connect" = xyes; then :
17567   LIBSOCKET="-lsocket"
17568 else
17569   as_fn_error $? "Function 'socket' not found." "$LINENO" 5
17570 fi
17571
17572 fi
17573
17574
17575 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
17576 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
17577
17578 else
17579   as_fn_error $? "Function 'getaddrinfo' not found." "$LINENO" 5
17580 fi
17581
17582
17583 ac_fn_c_check_func "$LINENO" "getrpcbynumber" "ac_cv_func_getrpcbynumber"
17584 if test "x$ac_cv_func_getrpcbynumber" = xyes; then :
17585
17586 else
17587   as_fn_error $? "Function 'getrpcbynumber' not found." "$LINENO" 5
17588 fi
17589
17590
17591 ac_fn_c_check_func "$LINENO" "getservbyname" "ac_cv_func_getservbyname"
17592 if test "x$ac_cv_func_getservbyname" = xyes; then :
17593
17594 else
17595   as_fn_error $? "Function 'getservbyname' not found." "$LINENO" 5
17596 fi
17597
17598
17599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
17600 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
17601 if ${ac_cv_lib_crypt_crypt+:} false; then :
17602   $as_echo_n "(cached) " >&6
17603 else
17604   ac_check_lib_save_LIBS=$LIBS
17605 LIBS="-lcrypt  $LIBS"
17606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17607 /* end confdefs.h.  */
17608
17609 /* Override any GCC internal prototype to avoid an error.
17610    Use char because int might match the return type of a GCC
17611    builtin and then its argument prototype would still apply.  */
17612 #ifdef __cplusplus
17613 extern "C"
17614 #endif
17615 char crypt ();
17616 int
17617 main ()
17618 {
17619 return crypt ();
17620   ;
17621   return 0;
17622 }
17623 _ACEOF
17624 if ac_fn_c_try_link "$LINENO"; then :
17625   ac_cv_lib_crypt_crypt=yes
17626 else
17627   ac_cv_lib_crypt_crypt=no
17628 fi
17629 rm -f core conftest.err conftest.$ac_objext \
17630     conftest$ac_exeext conftest.$ac_ext
17631 LIBS=$ac_check_lib_save_LIBS
17632 fi
17633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
17634 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
17635 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
17636   LIBCRYPT="-lcrypt"
17637 fi
17638
17639
17640 if test "$enable_nfsv4" = yes; then
17641
17642
17643     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for event_dispatch in -levent" >&5
17644 $as_echo_n "checking for event_dispatch in -levent... " >&6; }
17645 if ${ac_cv_lib_event_event_dispatch+:} false; then :
17646   $as_echo_n "(cached) " >&6
17647 else
17648   ac_check_lib_save_LIBS=$LIBS
17649 LIBS="-levent  $LIBS"
17650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17651 /* end confdefs.h.  */
17652
17653 /* Override any GCC internal prototype to avoid an error.
17654    Use char because int might match the return type of a GCC
17655    builtin and then its argument prototype would still apply.  */
17656 #ifdef __cplusplus
17657 extern "C"
17658 #endif
17659 char event_dispatch ();
17660 int
17661 main ()
17662 {
17663 return event_dispatch ();
17664   ;
17665   return 0;
17666 }
17667 _ACEOF
17668 if ac_fn_c_try_link "$LINENO"; then :
17669   ac_cv_lib_event_event_dispatch=yes
17670 else
17671   ac_cv_lib_event_event_dispatch=no
17672 fi
17673 rm -f core conftest.err conftest.$ac_objext \
17674     conftest$ac_exeext conftest.$ac_ext
17675 LIBS=$ac_check_lib_save_LIBS
17676 fi
17677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_event_event_dispatch" >&5
17678 $as_echo "$ac_cv_lib_event_event_dispatch" >&6; }
17679 if test "x$ac_cv_lib_event_event_dispatch" = xyes; then :
17680   libevent=1
17681 else
17682   as_fn_error $? "libevent not found." "$LINENO" 5
17683 fi
17684
17685
17686   for ac_header in event.h
17687 do :
17688   ac_fn_c_check_header_mongrel "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default"
17689 if test "x$ac_cv_header_event_h" = xyes; then :
17690   cat >>confdefs.h <<_ACEOF
17691 #define HAVE_EVENT_H 1
17692 _ACEOF
17693
17694 else
17695   as_fn_error $? "libevent headers not found." "$LINENO" 5
17696 fi
17697
17698 done
17699
17700
17701
17702
17703
17704
17705     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
17706 $as_echo_n "checking for nfs4_init_name_mapping in -lnfsidmap... " >&6; }
17707 if ${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+:} false; then :
17708   $as_echo_n "(cached) " >&6
17709 else
17710   ac_check_lib_save_LIBS=$LIBS
17711 LIBS="-lnfsidmap  $LIBS"
17712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17713 /* end confdefs.h.  */
17714
17715 /* Override any GCC internal prototype to avoid an error.
17716    Use char because int might match the return type of a GCC
17717    builtin and then its argument prototype would still apply.  */
17718 #ifdef __cplusplus
17719 extern "C"
17720 #endif
17721 char nfs4_init_name_mapping ();
17722 int
17723 main ()
17724 {
17725 return nfs4_init_name_mapping ();
17726   ;
17727   return 0;
17728 }
17729 _ACEOF
17730 if ac_fn_c_try_link "$LINENO"; then :
17731   ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
17732 else
17733   ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
17734 fi
17735 rm -f core conftest.err conftest.$ac_objext \
17736     conftest$ac_exeext conftest.$ac_ext
17737 LIBS=$ac_check_lib_save_LIBS
17738 fi
17739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
17740 $as_echo "$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6; }
17741 if test "x$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" = xyes; then :
17742   libnfsidmap=1
17743 else
17744   as_fn_error $? "libnfsidmap not found." "$LINENO" 5
17745 fi
17746
17747
17748   for ac_header in nfsidmap.h
17749 do :
17750   ac_fn_c_check_header_mongrel "$LINENO" "nfsidmap.h" "ac_cv_header_nfsidmap_h" "$ac_includes_default"
17751 if test "x$ac_cv_header_nfsidmap_h" = xyes; then :
17752   cat >>confdefs.h <<_ACEOF
17753 #define HAVE_NFSIDMAP_H 1
17754 _ACEOF
17755
17756 else
17757   as_fn_error $? "libnfsidmap headers not found." "$LINENO" 5
17758 fi
17759
17760 done
17761
17762
17763     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nfs4_set_debug in -lnfsidmap" >&5
17764 $as_echo_n "checking for nfs4_set_debug in -lnfsidmap... " >&6; }
17765 if ${ac_cv_lib_nfsidmap_nfs4_set_debug+:} false; then :
17766   $as_echo_n "(cached) " >&6
17767 else
17768   ac_check_lib_save_LIBS=$LIBS
17769 LIBS="-lnfsidmap  $LIBS"
17770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17771 /* end confdefs.h.  */
17772
17773 /* Override any GCC internal prototype to avoid an error.
17774    Use char because int might match the return type of a GCC
17775    builtin and then its argument prototype would still apply.  */
17776 #ifdef __cplusplus
17777 extern "C"
17778 #endif
17779 char nfs4_set_debug ();
17780 int
17781 main ()
17782 {
17783 return nfs4_set_debug ();
17784   ;
17785   return 0;
17786 }
17787 _ACEOF
17788 if ac_fn_c_try_link "$LINENO"; then :
17789   ac_cv_lib_nfsidmap_nfs4_set_debug=yes
17790 else
17791   ac_cv_lib_nfsidmap_nfs4_set_debug=no
17792 fi
17793 rm -f core conftest.err conftest.$ac_objext \
17794     conftest$ac_exeext conftest.$ac_ext
17795 LIBS=$ac_check_lib_save_LIBS
17796 fi
17797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nfsidmap_nfs4_set_debug" >&5
17798 $as_echo "$ac_cv_lib_nfsidmap_nfs4_set_debug" >&6; }
17799 if test "x$ac_cv_lib_nfsidmap_nfs4_set_debug" = xyes; then :
17800
17801 $as_echo "#define HAVE_NFS4_SET_DEBUG 1" >>confdefs.h
17802
17803 fi
17804
17805
17806     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nfs4_owner_to_uid in -lnfsidmap" >&5
17807 $as_echo_n "checking for nfs4_owner_to_uid in -lnfsidmap... " >&6; }
17808 if ${ac_cv_lib_nfsidmap_nfs4_owner_to_uid+:} false; then :
17809   $as_echo_n "(cached) " >&6
17810 else
17811   ac_check_lib_save_LIBS=$LIBS
17812 LIBS="-lnfsidmap  $LIBS"
17813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17814 /* end confdefs.h.  */
17815
17816 /* Override any GCC internal prototype to avoid an error.
17817    Use char because int might match the return type of a GCC
17818    builtin and then its argument prototype would still apply.  */
17819 #ifdef __cplusplus
17820 extern "C"
17821 #endif
17822 char nfs4_owner_to_uid ();
17823 int
17824 main ()
17825 {
17826 return nfs4_owner_to_uid ();
17827   ;
17828   return 0;
17829 }
17830 _ACEOF
17831 if ac_fn_c_try_link "$LINENO"; then :
17832   ac_cv_lib_nfsidmap_nfs4_owner_to_uid=yes
17833 else
17834   ac_cv_lib_nfsidmap_nfs4_owner_to_uid=no
17835 fi
17836 rm -f core conftest.err conftest.$ac_objext \
17837     conftest$ac_exeext conftest.$ac_ext
17838 LIBS=$ac_check_lib_save_LIBS
17839 fi
17840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nfsidmap_nfs4_owner_to_uid" >&5
17841 $as_echo "$ac_cv_lib_nfsidmap_nfs4_owner_to_uid" >&6; }
17842 if test "x$ac_cv_lib_nfsidmap_nfs4_owner_to_uid" = xyes; then :
17843   enable_nfsidmap=yes
17844 else
17845   enable_nfsidmap=no
17846 fi
17847
17848
17849
17850
17851      if test "$enable_nfsidmap" = "yes"; then
17852   CONFIG_NFSIDMAP_TRUE=
17853   CONFIG_NFSIDMAP_FALSE='#'
17854 else
17855   CONFIG_NFSIDMAP_TRUE='#'
17856   CONFIG_NFSIDMAP_FALSE=
17857 fi
17858
17859
17860
17861
17862     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for keyctl_instantiate in -lkeyutils" >&5
17863 $as_echo_n "checking for keyctl_instantiate in -lkeyutils... " >&6; }
17864 if ${ac_cv_lib_keyutils_keyctl_instantiate+:} false; then :
17865   $as_echo_n "(cached) " >&6
17866 else
17867   ac_check_lib_save_LIBS=$LIBS
17868 LIBS="-lkeyutils  $LIBS"
17869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17870 /* end confdefs.h.  */
17871
17872 /* Override any GCC internal prototype to avoid an error.
17873    Use char because int might match the return type of a GCC
17874    builtin and then its argument prototype would still apply.  */
17875 #ifdef __cplusplus
17876 extern "C"
17877 #endif
17878 char keyctl_instantiate ();
17879 int
17880 main ()
17881 {
17882 return keyctl_instantiate ();
17883   ;
17884   return 0;
17885 }
17886 _ACEOF
17887 if ac_fn_c_try_link "$LINENO"; then :
17888   ac_cv_lib_keyutils_keyctl_instantiate=yes
17889 else
17890   ac_cv_lib_keyutils_keyctl_instantiate=no
17891 fi
17892 rm -f core conftest.err conftest.$ac_objext \
17893     conftest$ac_exeext conftest.$ac_ext
17894 LIBS=$ac_check_lib_save_LIBS
17895 fi
17896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_keyutils_keyctl_instantiate" >&5
17897 $as_echo "$ac_cv_lib_keyutils_keyctl_instantiate" >&6; }
17898 if test "x$ac_cv_lib_keyutils_keyctl_instantiate" = xyes; then :
17899   LIBKEYUTILS=-lkeyutils
17900 fi
17901
17902
17903
17904   for ac_header in keyutils.h
17905 do :
17906   ac_fn_c_check_header_mongrel "$LINENO" "keyutils.h" "ac_cv_header_keyutils_h" "$ac_includes_default"
17907 if test "x$ac_cv_header_keyutils_h" = xyes; then :
17908   cat >>confdefs.h <<_ACEOF
17909 #define HAVE_KEYUTILS_H 1
17910 _ACEOF
17911
17912 else
17913   as_fn_error $? "keyutils.h header not found." "$LINENO" 5
17914 fi
17915
17916 done
17917
17918
17919
17920       if test "$enable_gss" = yes; then
17921
17922
17923
17924
17925
17926
17927 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
17928         if test -n "$ac_tool_prefix"; then
17929   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
17930 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
17931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17932 $as_echo_n "checking for $ac_word... " >&6; }
17933 if ${ac_cv_path_PKG_CONFIG+:} false; then :
17934   $as_echo_n "(cached) " >&6
17935 else
17936   case $PKG_CONFIG in
17937   [\\/]* | ?:[\\/]*)
17938   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17939   ;;
17940   *)
17941   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17942 for as_dir in $PATH
17943 do
17944   IFS=$as_save_IFS
17945   test -z "$as_dir" && as_dir=.
17946     for ac_exec_ext in '' $ac_executable_extensions; do
17947   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17948     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17949     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17950     break 2
17951   fi
17952 done
17953   done
17954 IFS=$as_save_IFS
17955
17956   ;;
17957 esac
17958 fi
17959 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17960 if test -n "$PKG_CONFIG"; then
17961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17962 $as_echo "$PKG_CONFIG" >&6; }
17963 else
17964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17965 $as_echo "no" >&6; }
17966 fi
17967
17968
17969 fi
17970 if test -z "$ac_cv_path_PKG_CONFIG"; then
17971   ac_pt_PKG_CONFIG=$PKG_CONFIG
17972   # Extract the first word of "pkg-config", so it can be a program name with args.
17973 set dummy pkg-config; ac_word=$2
17974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17975 $as_echo_n "checking for $ac_word... " >&6; }
17976 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
17977   $as_echo_n "(cached) " >&6
17978 else
17979   case $ac_pt_PKG_CONFIG in
17980   [\\/]* | ?:[\\/]*)
17981   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
17982   ;;
17983   *)
17984   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17985 for as_dir in $PATH
17986 do
17987   IFS=$as_save_IFS
17988   test -z "$as_dir" && as_dir=.
17989     for ac_exec_ext in '' $ac_executable_extensions; do
17990   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17991     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17992     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17993     break 2
17994   fi
17995 done
17996   done
17997 IFS=$as_save_IFS
17998
17999   ;;
18000 esac
18001 fi
18002 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18003 if test -n "$ac_pt_PKG_CONFIG"; then
18004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
18005 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
18006 else
18007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18008 $as_echo "no" >&6; }
18009 fi
18010
18011   if test "x$ac_pt_PKG_CONFIG" = x; then
18012     PKG_CONFIG=""
18013   else
18014     case $cross_compiling:$ac_tool_warned in
18015 yes:)
18016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18017 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18018 ac_tool_warned=yes ;;
18019 esac
18020     PKG_CONFIG=$ac_pt_PKG_CONFIG
18021   fi
18022 else
18023   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18024 fi
18025
18026 fi
18027 if test -n "$PKG_CONFIG"; then
18028         _pkg_min_version=0.9.0
18029         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
18030 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
18031         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
18032                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18033 $as_echo "yes" >&6; }
18034         else
18035                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18036 $as_echo "no" >&6; }
18037                 PKG_CONFIG=""
18038         fi
18039 fi
18040
18041
18042
18043 pkg_failed=no
18044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSSGLUE" >&5
18045 $as_echo_n "checking for GSSGLUE... " >&6; }
18046
18047 if test -n "$GSSGLUE_CFLAGS"; then
18048     pkg_cv_GSSGLUE_CFLAGS="$GSSGLUE_CFLAGS"
18049  elif test -n "$PKG_CONFIG"; then
18050     if test -n "$PKG_CONFIG" && \
18051     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgssglue >= 0.1\""; } >&5
18052   ($PKG_CONFIG --exists --print-errors "libgssglue >= 0.1") 2>&5
18053   ac_status=$?
18054   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18055   test $ac_status = 0; }; then
18056   pkg_cv_GSSGLUE_CFLAGS=`$PKG_CONFIG --cflags "libgssglue >= 0.1" 2>/dev/null`
18057 else
18058   pkg_failed=yes
18059 fi
18060  else
18061     pkg_failed=untried
18062 fi
18063 if test -n "$GSSGLUE_LIBS"; then
18064     pkg_cv_GSSGLUE_LIBS="$GSSGLUE_LIBS"
18065  elif test -n "$PKG_CONFIG"; then
18066     if test -n "$PKG_CONFIG" && \
18067     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgssglue >= 0.1\""; } >&5
18068   ($PKG_CONFIG --exists --print-errors "libgssglue >= 0.1") 2>&5
18069   ac_status=$?
18070   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18071   test $ac_status = 0; }; then
18072   pkg_cv_GSSGLUE_LIBS=`$PKG_CONFIG --libs "libgssglue >= 0.1" 2>/dev/null`
18073 else
18074   pkg_failed=yes
18075 fi
18076  else
18077     pkg_failed=untried
18078 fi
18079
18080
18081
18082 if test $pkg_failed = yes; then
18083         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18084 $as_echo "no" >&6; }
18085
18086 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18087         _pkg_short_errors_supported=yes
18088 else
18089         _pkg_short_errors_supported=no
18090 fi
18091         if test $_pkg_short_errors_supported = yes; then
18092                 GSSGLUE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgssglue >= 0.1" 2>&1`
18093         else
18094                 GSSGLUE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgssglue >= 0.1" 2>&1`
18095         fi
18096         # Put the nasty error message in config.log where it belongs
18097         echo "$GSSGLUE_PKG_ERRORS" >&5
18098
18099         as_fn_error $? "Package requirements (libgssglue >= 0.1) were not met:
18100
18101 $GSSGLUE_PKG_ERRORS
18102
18103 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18104 installed software in a non-standard prefix.
18105
18106 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
18107 and GSSGLUE_LIBS to avoid the need to call pkg-config.
18108 See the pkg-config man page for more details." "$LINENO" 5
18109
18110 elif test $pkg_failed = untried; then
18111         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18112 $as_echo "no" >&6; }
18113         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18114 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18115 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18116 is in your PATH or set the PKG_CONFIG environment variable to the full
18117 path to pkg-config.
18118
18119 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
18120 and GSSGLUE_LIBS to avoid the need to call pkg-config.
18121 See the pkg-config man page for more details.
18122
18123 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18124 See \`config.log' for more details" "$LINENO" 5; }
18125
18126 else
18127         GSSGLUE_CFLAGS=$pkg_cv_GSSGLUE_CFLAGS
18128         GSSGLUE_LIBS=$pkg_cv_GSSGLUE_LIBS
18129         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18130 $as_echo "yes" >&6; }
18131
18132 fi
18133
18134     if test "$enable_tirpc" = no; then
18135
18136 pkg_failed=no
18137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RPCSECGSS" >&5
18138 $as_echo_n "checking for RPCSECGSS... " >&6; }
18139
18140 if test -n "$RPCSECGSS_CFLAGS"; then
18141     pkg_cv_RPCSECGSS_CFLAGS="$RPCSECGSS_CFLAGS"
18142  elif test -n "$PKG_CONFIG"; then
18143     if test -n "$PKG_CONFIG" && \
18144     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.16\""; } >&5
18145   ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.16") 2>&5
18146   ac_status=$?
18147   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18148   test $ac_status = 0; }; then
18149   pkg_cv_RPCSECGSS_CFLAGS=`$PKG_CONFIG --cflags "librpcsecgss >= 0.16" 2>/dev/null`
18150 else
18151   pkg_failed=yes
18152 fi
18153  else
18154     pkg_failed=untried
18155 fi
18156 if test -n "$RPCSECGSS_LIBS"; then
18157     pkg_cv_RPCSECGSS_LIBS="$RPCSECGSS_LIBS"
18158  elif test -n "$PKG_CONFIG"; then
18159     if test -n "$PKG_CONFIG" && \
18160     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.16\""; } >&5
18161   ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.16") 2>&5
18162   ac_status=$?
18163   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18164   test $ac_status = 0; }; then
18165   pkg_cv_RPCSECGSS_LIBS=`$PKG_CONFIG --libs "librpcsecgss >= 0.16" 2>/dev/null`
18166 else
18167   pkg_failed=yes
18168 fi
18169  else
18170     pkg_failed=untried
18171 fi
18172
18173
18174
18175 if test $pkg_failed = yes; then
18176         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18177 $as_echo "no" >&6; }
18178
18179 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18180         _pkg_short_errors_supported=yes
18181 else
18182         _pkg_short_errors_supported=no
18183 fi
18184         if test $_pkg_short_errors_supported = yes; then
18185                 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librpcsecgss >= 0.16" 2>&1`
18186         else
18187                 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --print-errors "librpcsecgss >= 0.16" 2>&1`
18188         fi
18189         # Put the nasty error message in config.log where it belongs
18190         echo "$RPCSECGSS_PKG_ERRORS" >&5
18191
18192         as_fn_error $? "Package requirements (librpcsecgss >= 0.16) were not met:
18193
18194 $RPCSECGSS_PKG_ERRORS
18195
18196 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18197 installed software in a non-standard prefix.
18198
18199 Alternatively, you may set the environment variables RPCSECGSS_CFLAGS
18200 and RPCSECGSS_LIBS to avoid the need to call pkg-config.
18201 See the pkg-config man page for more details." "$LINENO" 5
18202
18203 elif test $pkg_failed = untried; then
18204         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18205 $as_echo "no" >&6; }
18206         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18207 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18208 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18209 is in your PATH or set the PKG_CONFIG environment variable to the full
18210 path to pkg-config.
18211
18212 Alternatively, you may set the environment variables RPCSECGSS_CFLAGS
18213 and RPCSECGSS_LIBS to avoid the need to call pkg-config.
18214 See the pkg-config man page for more details.
18215
18216 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18217 See \`config.log' for more details" "$LINENO" 5; }
18218
18219 else
18220         RPCSECGSS_CFLAGS=$pkg_cv_RPCSECGSS_CFLAGS
18221         RPCSECGSS_LIBS=$pkg_cv_RPCSECGSS_LIBS
18222         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18223 $as_echo "yes" >&6; }
18224
18225 fi
18226   fi
18227
18228
18229   fi
18230 fi
18231
18232 if test "$knfsd_cv_glibc2" = no; then
18233     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daemon in -lbsd" >&5
18234 $as_echo_n "checking for daemon in -lbsd... " >&6; }
18235 if ${ac_cv_lib_bsd_daemon+:} false; then :
18236   $as_echo_n "(cached) " >&6
18237 else
18238   ac_check_lib_save_LIBS=$LIBS
18239 LIBS="-lbsd  $LIBS"
18240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18241 /* end confdefs.h.  */
18242
18243 /* Override any GCC internal prototype to avoid an error.
18244    Use char because int might match the return type of a GCC
18245    builtin and then its argument prototype would still apply.  */
18246 #ifdef __cplusplus
18247 extern "C"
18248 #endif
18249 char daemon ();
18250 int
18251 main ()
18252 {
18253 return daemon ();
18254   ;
18255   return 0;
18256 }
18257 _ACEOF
18258 if ac_fn_c_try_link "$LINENO"; then :
18259   ac_cv_lib_bsd_daemon=yes
18260 else
18261   ac_cv_lib_bsd_daemon=no
18262 fi
18263 rm -f core conftest.err conftest.$ac_objext \
18264     conftest$ac_exeext conftest.$ac_ext
18265 LIBS=$ac_check_lib_save_LIBS
18266 fi
18267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_daemon" >&5
18268 $as_echo "$ac_cv_lib_bsd_daemon" >&6; }
18269 if test "x$ac_cv_lib_bsd_daemon" = xyes; then :
18270   LIBBSD="-lbsd"
18271 fi
18272
18273 fi
18274
18275 if test "$choose_blkid" != no; then
18276    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_library_version in -lblkid" >&5
18277 $as_echo_n "checking for blkid_get_library_version in -lblkid... " >&6; }
18278 if ${ac_cv_lib_blkid_blkid_get_library_version+:} false; then :
18279   $as_echo_n "(cached) " >&6
18280 else
18281   ac_check_lib_save_LIBS=$LIBS
18282 LIBS="-lblkid  $LIBS"
18283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18284 /* end confdefs.h.  */
18285
18286 /* Override any GCC internal prototype to avoid an error.
18287    Use char because int might match the return type of a GCC
18288    builtin and then its argument prototype would still apply.  */
18289 #ifdef __cplusplus
18290 extern "C"
18291 #endif
18292 char blkid_get_library_version ();
18293 int
18294 main ()
18295 {
18296 return blkid_get_library_version ();
18297   ;
18298   return 0;
18299 }
18300 _ACEOF
18301 if ac_fn_c_try_link "$LINENO"; then :
18302   ac_cv_lib_blkid_blkid_get_library_version=yes
18303 else
18304   ac_cv_lib_blkid_blkid_get_library_version=no
18305 fi
18306 rm -f core conftest.err conftest.$ac_objext \
18307     conftest$ac_exeext conftest.$ac_ext
18308 LIBS=$ac_check_lib_save_LIBS
18309 fi
18310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_library_version" >&5
18311 $as_echo "$ac_cv_lib_blkid_blkid_get_library_version" >&6; }
18312 if test "x$ac_cv_lib_blkid_blkid_get_library_version" = xyes; then :
18313   LIBBLKID="-lblkid"
18314 else
18315   as_fn_error $? "libblkid needed" "$LINENO" 5
18316 fi
18317
18318    ac_fn_c_check_header_mongrel "$LINENO" "blkid/blkid.h" "ac_cv_header_blkid_blkid_h" "$ac_includes_default"
18319 if test "x$ac_cv_header_blkid_blkid_h" = xyes; then :
18320
18321 else
18322   as_fn_error $? "Cannot find libblkid header file blkid/blkid.h" "$LINENO" 5
18323 fi
18324
18325
18326
18327   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suitable libblkid version" >&5
18328 $as_echo_n "checking for suitable libblkid version... " >&6; }
18329   if ${libblkid_cv_is_recent+:} false; then :
18330   $as_echo_n "(cached) " >&6
18331 else
18332
18333     saved_LIBS="$LIBS"
18334     LIBS=-lblkid
18335     if test "$cross_compiling" = yes; then :
18336   libblkid_cv_is_recent=unknown
18337 else
18338   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18339 /* end confdefs.h.  */
18340
18341         #include <blkid/blkid.h>
18342         int main()
18343         {
18344                 int vers = blkid_get_library_version(0, 0);
18345                 return vers >= 140 ? 0 : 1;
18346         }
18347
18348 _ACEOF
18349 if ac_fn_c_try_run "$LINENO"; then :
18350   libblkid_cv_is_recent=yes
18351 else
18352   libblkid_cv_is_recent=no
18353 fi
18354 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18355   conftest.$ac_objext conftest.beam conftest.$ac_ext
18356 fi
18357
18358     LIBS="$saved_LIBS"
18359 fi
18360
18361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libblkid_cv_is_recent" >&5
18362 $as_echo "$libblkid_cv_is_recent" >&6; }
18363
18364    if test $choose_blkid = yes; then
18365       use_blkid=1
18366       test $libblkid_cv_is_recent = no && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libblkid is old and may cause mountd to leak memory" >&5
18367 $as_echo "$as_me: WARNING: libblkid is old and may cause mountd to leak memory" >&2;}
18368    else
18369       if test $libblkid_cv_is_recent = yes
18370       then use_blkid=1
18371       else use_blkid=0
18372            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: uuid support disabled as libblkid is too old" >&5
18373 $as_echo "$as_me: WARNING: uuid support disabled as libblkid is too old" >&2;}
18374       fi
18375     fi
18376
18377 cat >>confdefs.h <<_ACEOF
18378 #define USE_BLKID $use_blkid
18379 _ACEOF
18380
18381 fi
18382
18383
18384
18385
18386
18387 if test "$enable_libmount" != no; then
18388    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mnt_context_do_mount in -lmount" >&5
18389 $as_echo_n "checking for mnt_context_do_mount in -lmount... " >&6; }
18390 if ${ac_cv_lib_mount_mnt_context_do_mount+:} false; then :
18391   $as_echo_n "(cached) " >&6
18392 else
18393   ac_check_lib_save_LIBS=$LIBS
18394 LIBS="-lmount  $LIBS"
18395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18396 /* end confdefs.h.  */
18397
18398 /* Override any GCC internal prototype to avoid an error.
18399    Use char because int might match the return type of a GCC
18400    builtin and then its argument prototype would still apply.  */
18401 #ifdef __cplusplus
18402 extern "C"
18403 #endif
18404 char mnt_context_do_mount ();
18405 int
18406 main ()
18407 {
18408 return mnt_context_do_mount ();
18409   ;
18410   return 0;
18411 }
18412 _ACEOF
18413 if ac_fn_c_try_link "$LINENO"; then :
18414   ac_cv_lib_mount_mnt_context_do_mount=yes
18415 else
18416   ac_cv_lib_mount_mnt_context_do_mount=no
18417 fi
18418 rm -f core conftest.err conftest.$ac_objext \
18419     conftest$ac_exeext conftest.$ac_ext
18420 LIBS=$ac_check_lib_save_LIBS
18421 fi
18422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mount_mnt_context_do_mount" >&5
18423 $as_echo "$ac_cv_lib_mount_mnt_context_do_mount" >&6; }
18424 if test "x$ac_cv_lib_mount_mnt_context_do_mount" = xyes; then :
18425   LIBMOUNT="-lmount"
18426 else
18427   as_fn_error $? "libmount needed" "$LINENO" 5
18428 fi
18429
18430    ac_fn_c_check_header_mongrel "$LINENO" "libmount/libmount.h" "ac_cv_header_libmount_libmount_h" "$ac_includes_default"
18431 if test "x$ac_cv_header_libmount_libmount_h" = xyes; then :
18432
18433 else
18434   as_fn_error $? "Cannot find libmount header file libmount/libmount.h" "$LINENO" 5
18435 fi
18436
18437
18438 fi
18439  if test "$enable_libmount" = "yes"; then
18440   CONFIG_LIBMOUNT_TRUE=
18441   CONFIG_LIBMOUNT_FALSE='#'
18442 else
18443   CONFIG_LIBMOUNT_TRUE='#'
18444   CONFIG_LIBMOUNT_FALSE=
18445 fi
18446
18447
18448
18449 if test "$enable_gss" = yes; then
18450     ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
18451 if test "x$ac_cv_func_getnameinfo" = xyes; then :
18452
18453 else
18454   as_fn_error $? "GSSAPI support requires 'getnameinfo' function" "$LINENO" 5
18455 fi
18456
18457
18458
18459
18460     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
18461 $as_echo_n "checking for nfs4_init_name_mapping in -lnfsidmap... " >&6; }
18462 if ${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+:} false; then :
18463   $as_echo_n "(cached) " >&6
18464 else
18465   ac_check_lib_save_LIBS=$LIBS
18466 LIBS="-lnfsidmap  $LIBS"
18467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18468 /* end confdefs.h.  */
18469
18470 /* Override any GCC internal prototype to avoid an error.
18471    Use char because int might match the return type of a GCC
18472    builtin and then its argument prototype would still apply.  */
18473 #ifdef __cplusplus
18474 extern "C"
18475 #endif
18476 char nfs4_init_name_mapping ();
18477 int
18478 main ()
18479 {
18480 return nfs4_init_name_mapping ();
18481   ;
18482   return 0;
18483 }
18484 _ACEOF
18485 if ac_fn_c_try_link "$LINENO"; then :
18486   ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
18487 else
18488   ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
18489 fi
18490 rm -f core conftest.err conftest.$ac_objext \
18491     conftest$ac_exeext conftest.$ac_ext
18492 LIBS=$ac_check_lib_save_LIBS
18493 fi
18494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
18495 $as_echo "$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6; }
18496 if test "x$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" = xyes; then :
18497   libnfsidmap=1
18498 else
18499   as_fn_error $? "libnfsidmap not found." "$LINENO" 5
18500 fi
18501
18502
18503   for ac_header in nfsidmap.h
18504 do :
18505   ac_fn_c_check_header_mongrel "$LINENO" "nfsidmap.h" "ac_cv_header_nfsidmap_h" "$ac_includes_default"
18506 if test "x$ac_cv_header_nfsidmap_h" = xyes; then :
18507   cat >>confdefs.h <<_ACEOF
18508 #define HAVE_NFSIDMAP_H 1
18509 _ACEOF
18510
18511 else
18512   as_fn_error $? "libnfsidmap headers not found." "$LINENO" 5
18513 fi
18514
18515 done
18516
18517
18518     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nfs4_set_debug in -lnfsidmap" >&5
18519 $as_echo_n "checking for nfs4_set_debug in -lnfsidmap... " >&6; }
18520 if ${ac_cv_lib_nfsidmap_nfs4_set_debug+:} false; then :
18521   $as_echo_n "(cached) " >&6
18522 else
18523   ac_check_lib_save_LIBS=$LIBS
18524 LIBS="-lnfsidmap  $LIBS"
18525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18526 /* end confdefs.h.  */
18527
18528 /* Override any GCC internal prototype to avoid an error.
18529    Use char because int might match the return type of a GCC
18530    builtin and then its argument prototype would still apply.  */
18531 #ifdef __cplusplus
18532 extern "C"
18533 #endif
18534 char nfs4_set_debug ();
18535 int
18536 main ()
18537 {
18538 return nfs4_set_debug ();
18539   ;
18540   return 0;
18541 }
18542 _ACEOF
18543 if ac_fn_c_try_link "$LINENO"; then :
18544   ac_cv_lib_nfsidmap_nfs4_set_debug=yes
18545 else
18546   ac_cv_lib_nfsidmap_nfs4_set_debug=no
18547 fi
18548 rm -f core conftest.err conftest.$ac_objext \
18549     conftest$ac_exeext conftest.$ac_ext
18550 LIBS=$ac_check_lib_save_LIBS
18551 fi
18552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nfsidmap_nfs4_set_debug" >&5
18553 $as_echo "$ac_cv_lib_nfsidmap_nfs4_set_debug" >&6; }
18554 if test "x$ac_cv_lib_nfsidmap_nfs4_set_debug" = xyes; then :
18555
18556 $as_echo "#define HAVE_NFS4_SET_DEBUG 1" >>confdefs.h
18557
18558 fi
18559
18560
18561     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nfs4_owner_to_uid in -lnfsidmap" >&5
18562 $as_echo_n "checking for nfs4_owner_to_uid in -lnfsidmap... " >&6; }
18563 if ${ac_cv_lib_nfsidmap_nfs4_owner_to_uid+:} false; then :
18564   $as_echo_n "(cached) " >&6
18565 else
18566   ac_check_lib_save_LIBS=$LIBS
18567 LIBS="-lnfsidmap  $LIBS"
18568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18569 /* end confdefs.h.  */
18570
18571 /* Override any GCC internal prototype to avoid an error.
18572    Use char because int might match the return type of a GCC
18573    builtin and then its argument prototype would still apply.  */
18574 #ifdef __cplusplus
18575 extern "C"
18576 #endif
18577 char nfs4_owner_to_uid ();
18578 int
18579 main ()
18580 {
18581 return nfs4_owner_to_uid ();
18582   ;
18583   return 0;
18584 }
18585 _ACEOF
18586 if ac_fn_c_try_link "$LINENO"; then :
18587   ac_cv_lib_nfsidmap_nfs4_owner_to_uid=yes
18588 else
18589   ac_cv_lib_nfsidmap_nfs4_owner_to_uid=no
18590 fi
18591 rm -f core conftest.err conftest.$ac_objext \
18592     conftest$ac_exeext conftest.$ac_ext
18593 LIBS=$ac_check_lib_save_LIBS
18594 fi
18595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nfsidmap_nfs4_owner_to_uid" >&5
18596 $as_echo "$ac_cv_lib_nfsidmap_nfs4_owner_to_uid" >&6; }
18597 if test "x$ac_cv_lib_nfsidmap_nfs4_owner_to_uid" = xyes; then :
18598   enable_nfsidmap=yes
18599 else
18600   enable_nfsidmap=no
18601 fi
18602
18603
18604
18605
18606   for ac_header in spkm3.h
18607 do :
18608   ac_fn_c_check_header_mongrel "$LINENO" "spkm3.h" "ac_cv_header_spkm3_h" "$ac_includes_default"
18609 if test "x$ac_cv_header_spkm3_h" = xyes; then :
18610   cat >>confdefs.h <<_ACEOF
18611 #define HAVE_SPKM3_H 1
18612 _ACEOF
18613
18614 else
18615   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not locate SPKM3 header; will not have SPKM3 support" >&5
18616 $as_echo "$as_me: WARNING: Could not locate SPKM3 header; will not have SPKM3 support" >&2;}
18617 fi
18618
18619 done
18620
18621
18622
18623   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kerberos v5" >&5
18624 $as_echo_n "checking for Kerberos v5... " >&6; }
18625
18626 # Check whether --with-krb5 was given.
18627 if test "${with_krb5+set}" = set; then :
18628   withval=$with_krb5;  case "$withval" in
18629     yes|no)
18630        krb5_with=""
18631        ;;
18632     *)
18633        krb5_with="$withval"
18634        ;;
18635     esac
18636
18637 fi
18638
18639
18640   for dir in $krb5_with /usr /usr/kerberos /usr/local /usr/local/krb5 \
18641              /usr/krb5 /usr/heimdal /usr/local/heimdal /usr/athena ; do
18642             K5CONFIG=""
18643     if test -f $dir/bin/krb5-config; then
18644       K5CONFIG=$dir/bin/krb5-config
18645     elif test -f "/usr/kerberos/bin/krb5-config"; then
18646       K5CONFIG="/usr/kerberos/bin/krb5-config"
18647     elif test -f "/usr/lib/mit/bin/krb5-config"; then
18648       K5CONFIG="/usr/lib/mit/bin/krb5-config"
18649     fi
18650     if test "$K5CONFIG" != ""; then
18651       KRBCFLAGS=`$K5CONFIG --cflags`
18652       KRBLIBS=`$K5CONFIG --libs gssapi`
18653       K5VERS=`$K5CONFIG --version | head -n 1 | awk '{split($(4),v,"."); if (v["3"] == "") v["3"] = "0"; print v["1"]v["2"]v["3"] }'`
18654
18655 cat >>confdefs.h <<_ACEOF
18656 #define KRB5_VERSION $K5VERS
18657 _ACEOF
18658
18659       if test -f $dir/include/gssapi/gssapi_krb5.h -a \
18660                 \( -f $dir/lib/libgssapi_krb5.a -o \
18661                    -f $dir/lib64/libgssapi_krb5.a -o \
18662                    -f $dir/lib64/libgssapi_krb5.so -o \
18663                    -f $dir/lib/libgssapi_krb5.so \) ; then
18664
18665 $as_echo "#define HAVE_KRB5 1" >>confdefs.h
18666
18667          KRBDIR="$dir"
18668                      if test $K5VERS -le 131; then
18669
18670 $as_echo "#define USE_GSS_KRB5_CCACHE_NAME 1" >>confdefs.h
18671
18672          fi
18673          gssapi_lib=gssapi_krb5
18674          break
18675                   elif test \( -f $dir/include/heim_err.h -o\
18676                  -f $dir/include/heimdal/heim_err.h \) -a \
18677                 -f $dir/lib/libroken.a; then
18678
18679 $as_echo "#define HAVE_HEIMDAL 1" >>confdefs.h
18680
18681          KRBDIR="$dir"
18682          gssapi_lib=gssapi
18683         break
18684       fi
18685     fi
18686   done
18687     if test "x$KRBDIR" = "x"; then
18688     if test "x$krb5_with" = "x"; then
18689       as_fn_error $? "Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" "$LINENO" 5
18690     else
18691       as_fn_error $? "Kerberos v5 with GSS support not found at $krb5_with" "$LINENO" 5
18692     fi
18693   fi
18694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRBDIR" >&5
18695 $as_echo "$KRBDIR" >&6; }
18696
18697     echo "The current KRBDIR is $KRBDIR"
18698   if test "$KRBDIR/lib" = "/lib" -o "$KRBDIR/lib" = "/usr/lib" \
18699        -o "$KRBDIR/lib" = "//lib" -o "$KRBDIR/lib" = "/usr//lib" ; then
18700     KRBLDFLAGS="";
18701   elif /sbin/ldconfig -p | grep > /dev/null "=> $KRBDIR/lib/"; then
18702     KRBLDFLAGS="";
18703   else
18704     KRBLDFLAGS="-Wl,-rpath=$KRBDIR/lib"
18705   fi
18706
18707     as_ac_Lib=`$as_echo "ac_cv_lib_$gssapi_lib''_gss_krb5_export_lucid_sec_context" | $as_tr_sh`
18708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib" >&5
18709 $as_echo_n "checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib... " >&6; }
18710 if eval \${$as_ac_Lib+:} false; then :
18711   $as_echo_n "(cached) " >&6
18712 else
18713   ac_check_lib_save_LIBS=$LIBS
18714 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
18715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18716 /* end confdefs.h.  */
18717
18718 /* Override any GCC internal prototype to avoid an error.
18719    Use char because int might match the return type of a GCC
18720    builtin and then its argument prototype would still apply.  */
18721 #ifdef __cplusplus
18722 extern "C"
18723 #endif
18724 char gss_krb5_export_lucid_sec_context ();
18725 int
18726 main ()
18727 {
18728 return gss_krb5_export_lucid_sec_context ();
18729   ;
18730   return 0;
18731 }
18732 _ACEOF
18733 if ac_fn_c_try_link "$LINENO"; then :
18734   eval "$as_ac_Lib=yes"
18735 else
18736   eval "$as_ac_Lib=no"
18737 fi
18738 rm -f core conftest.err conftest.$ac_objext \
18739     conftest$ac_exeext conftest.$ac_ext
18740 LIBS=$ac_check_lib_save_LIBS
18741 fi
18742 eval ac_res=\$$as_ac_Lib
18743                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18744 $as_echo "$ac_res" >&6; }
18745 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18746
18747 $as_echo "#define HAVE_LUCID_CONTEXT_SUPPORT 1" >>confdefs.h
18748
18749 fi
18750
18751   as_ac_Lib=`$as_echo "ac_cv_lib_$gssapi_lib''_gss_krb5_set_allowable_enctypes" | $as_tr_sh`
18752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib" >&5
18753 $as_echo_n "checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib... " >&6; }
18754 if eval \${$as_ac_Lib+:} false; then :
18755   $as_echo_n "(cached) " >&6
18756 else
18757   ac_check_lib_save_LIBS=$LIBS
18758 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
18759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18760 /* end confdefs.h.  */
18761
18762 /* Override any GCC internal prototype to avoid an error.
18763    Use char because int might match the return type of a GCC
18764    builtin and then its argument prototype would still apply.  */
18765 #ifdef __cplusplus
18766 extern "C"
18767 #endif
18768 char gss_krb5_set_allowable_enctypes ();
18769 int
18770 main ()
18771 {
18772 return gss_krb5_set_allowable_enctypes ();
18773   ;
18774   return 0;
18775 }
18776 _ACEOF
18777 if ac_fn_c_try_link "$LINENO"; then :
18778   eval "$as_ac_Lib=yes"
18779 else
18780   eval "$as_ac_Lib=no"
18781 fi
18782 rm -f core conftest.err conftest.$ac_objext \
18783     conftest$ac_exeext conftest.$ac_ext
18784 LIBS=$ac_check_lib_save_LIBS
18785 fi
18786 eval ac_res=\$$as_ac_Lib
18787                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18788 $as_echo "$ac_res" >&6; }
18789 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18790
18791 $as_echo "#define HAVE_SET_ALLOWABLE_ENCTYPES 1" >>confdefs.h
18792
18793 fi
18794
18795   as_ac_Lib=`$as_echo "ac_cv_lib_$gssapi_lib''_gss_krb5_ccache_name" | $as_tr_sh`
18796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_ccache_name in -l$gssapi_lib" >&5
18797 $as_echo_n "checking for gss_krb5_ccache_name in -l$gssapi_lib... " >&6; }
18798 if eval \${$as_ac_Lib+:} false; then :
18799   $as_echo_n "(cached) " >&6
18800 else
18801   ac_check_lib_save_LIBS=$LIBS
18802 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
18803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18804 /* end confdefs.h.  */
18805
18806 /* Override any GCC internal prototype to avoid an error.
18807    Use char because int might match the return type of a GCC
18808    builtin and then its argument prototype would still apply.  */
18809 #ifdef __cplusplus
18810 extern "C"
18811 #endif
18812 char gss_krb5_ccache_name ();
18813 int
18814 main ()
18815 {
18816 return gss_krb5_ccache_name ();
18817   ;
18818   return 0;
18819 }
18820 _ACEOF
18821 if ac_fn_c_try_link "$LINENO"; then :
18822   eval "$as_ac_Lib=yes"
18823 else
18824   eval "$as_ac_Lib=no"
18825 fi
18826 rm -f core conftest.err conftest.$ac_objext \
18827     conftest$ac_exeext conftest.$ac_ext
18828 LIBS=$ac_check_lib_save_LIBS
18829 fi
18830 eval ac_res=\$$as_ac_Lib
18831                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18832 $as_echo "$ac_res" >&6; }
18833 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18834
18835 $as_echo "#define HAVE_GSS_KRB5_CCACHE_NAME 1" >>confdefs.h
18836
18837 fi
18838
18839
18840     as_ac_Lib=`$as_echo "ac_cv_lib_$gssapi_lib''_krb5_get_error_message" | $as_tr_sh`
18841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_get_error_message in -l$gssapi_lib" >&5
18842 $as_echo_n "checking for krb5_get_error_message in -l$gssapi_lib... " >&6; }
18843 if eval \${$as_ac_Lib+:} false; then :
18844   $as_echo_n "(cached) " >&6
18845 else
18846   ac_check_lib_save_LIBS=$LIBS
18847 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
18848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18849 /* end confdefs.h.  */
18850
18851 /* Override any GCC internal prototype to avoid an error.
18852    Use char because int might match the return type of a GCC
18853    builtin and then its argument prototype would still apply.  */
18854 #ifdef __cplusplus
18855 extern "C"
18856 #endif
18857 char krb5_get_error_message ();
18858 int
18859 main ()
18860 {
18861 return krb5_get_error_message ();
18862   ;
18863   return 0;
18864 }
18865 _ACEOF
18866 if ac_fn_c_try_link "$LINENO"; then :
18867   eval "$as_ac_Lib=yes"
18868 else
18869   eval "$as_ac_Lib=no"
18870 fi
18871 rm -f core conftest.err conftest.$ac_objext \
18872     conftest$ac_exeext conftest.$ac_ext
18873 LIBS=$ac_check_lib_save_LIBS
18874 fi
18875 eval ac_res=\$$as_ac_Lib
18876                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18877 $as_echo "$ac_res" >&6; }
18878 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18879
18880 $as_echo "#define HAVE_KRB5_GET_ERROR_MESSAGE 1" >>confdefs.h
18881
18882 fi
18883
18884
18885     as_ac_Lib=`$as_echo "ac_cv_lib_$gssapi_lib''_krb5_get_init_creds_opt_set_addressless" | $as_tr_sh`
18886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_get_init_creds_opt_set_addressless in -l$gssapi_lib" >&5
18887 $as_echo_n "checking for krb5_get_init_creds_opt_set_addressless in -l$gssapi_lib... " >&6; }
18888 if eval \${$as_ac_Lib+:} false; then :
18889   $as_echo_n "(cached) " >&6
18890 else
18891   ac_check_lib_save_LIBS=$LIBS
18892 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
18893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18894 /* end confdefs.h.  */
18895
18896 /* Override any GCC internal prototype to avoid an error.
18897    Use char because int might match the return type of a GCC
18898    builtin and then its argument prototype would still apply.  */
18899 #ifdef __cplusplus
18900 extern "C"
18901 #endif
18902 char krb5_get_init_creds_opt_set_addressless ();
18903 int
18904 main ()
18905 {
18906 return krb5_get_init_creds_opt_set_addressless ();
18907   ;
18908   return 0;
18909 }
18910 _ACEOF
18911 if ac_fn_c_try_link "$LINENO"; then :
18912   eval "$as_ac_Lib=yes"
18913 else
18914   eval "$as_ac_Lib=no"
18915 fi
18916 rm -f core conftest.err conftest.$ac_objext \
18917     conftest$ac_exeext conftest.$ac_ext
18918 LIBS=$ac_check_lib_save_LIBS
18919 fi
18920 eval ac_res=\$$as_ac_Lib
18921                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18922 $as_echo "$ac_res" >&6; }
18923 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18924
18925 $as_echo "#define HAVE_KRB5_GET_INIT_CREDS_OPT_SET_ADDRESSLESS 1" >>confdefs.h
18926
18927 fi
18928
18929
18930     if test "x$krb5_with" != "x" -a "$krb5_with" != "$KRBDIR"; then
18931     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&5
18932 $as_echo "$as_me: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&2;}
18933   fi
18934
18935
18936
18937
18938
18939
18940
18941
18942
18943
18944
18945     if test "$enable_tirpc" = no; then
18946
18947         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for authgss_create_default in -lrpcsecgss" >&5
18948 $as_echo_n "checking for authgss_create_default in -lrpcsecgss... " >&6; }
18949 if ${ac_cv_lib_rpcsecgss_authgss_create_default+:} false; then :
18950   $as_echo_n "(cached) " >&6
18951 else
18952   ac_check_lib_save_LIBS=$LIBS
18953 LIBS="-lrpcsecgss  $LIBS"
18954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18955 /* end confdefs.h.  */
18956
18957 /* Override any GCC internal prototype to avoid an error.
18958    Use char because int might match the return type of a GCC
18959    builtin and then its argument prototype would still apply.  */
18960 #ifdef __cplusplus
18961 extern "C"
18962 #endif
18963 char authgss_create_default ();
18964 int
18965 main ()
18966 {
18967 return authgss_create_default ();
18968   ;
18969   return 0;
18970 }
18971 _ACEOF
18972 if ac_fn_c_try_link "$LINENO"; then :
18973   ac_cv_lib_rpcsecgss_authgss_create_default=yes
18974 else
18975   ac_cv_lib_rpcsecgss_authgss_create_default=no
18976 fi
18977 rm -f core conftest.err conftest.$ac_objext \
18978     conftest$ac_exeext conftest.$ac_ext
18979 LIBS=$ac_check_lib_save_LIBS
18980 fi
18981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpcsecgss_authgss_create_default" >&5
18982 $as_echo "$ac_cv_lib_rpcsecgss_authgss_create_default" >&6; }
18983 if test "x$ac_cv_lib_rpcsecgss_authgss_create_default" = xyes; then :
18984   librpcsecgss=1
18985 else
18986   as_fn_error $? "librpcsecgss not found." "$LINENO" 5
18987 fi
18988
18989
18990     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for authgss_set_debug_level in -lrpcsecgss" >&5
18991 $as_echo_n "checking for authgss_set_debug_level in -lrpcsecgss... " >&6; }
18992 if ${ac_cv_lib_rpcsecgss_authgss_set_debug_level+:} false; then :
18993   $as_echo_n "(cached) " >&6
18994 else
18995   ac_check_lib_save_LIBS=$LIBS
18996 LIBS="-lrpcsecgss  $LIBS"
18997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18998 /* end confdefs.h.  */
18999
19000 /* Override any GCC internal prototype to avoid an error.
19001    Use char because int might match the return type of a GCC
19002    builtin and then its argument prototype would still apply.  */
19003 #ifdef __cplusplus
19004 extern "C"
19005 #endif
19006 char authgss_set_debug_level ();
19007 int
19008 main ()
19009 {
19010 return authgss_set_debug_level ();
19011   ;
19012   return 0;
19013 }
19014 _ACEOF
19015 if ac_fn_c_try_link "$LINENO"; then :
19016   ac_cv_lib_rpcsecgss_authgss_set_debug_level=yes
19017 else
19018   ac_cv_lib_rpcsecgss_authgss_set_debug_level=no
19019 fi
19020 rm -f core conftest.err conftest.$ac_objext \
19021     conftest$ac_exeext conftest.$ac_ext
19022 LIBS=$ac_check_lib_save_LIBS
19023 fi
19024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&5
19025 $as_echo "$ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&6; }
19026 if test "x$ac_cv_lib_rpcsecgss_authgss_set_debug_level" = xyes; then :
19027
19028 $as_echo "#define HAVE_AUTHGSS_SET_DEBUG_LEVEL 1" >>confdefs.h
19029
19030 fi
19031
19032
19033   fi
19034
19035
19036
19037 fi
19038
19039
19040
19041   ac_fn_c_check_decl "$LINENO" "AI_ADDRCONFIG" "ac_cv_have_decl_AI_ADDRCONFIG" " #include <netdb.h>
19042 "
19043 if test "x$ac_cv_have_decl_AI_ADDRCONFIG" = xyes; then :
19044
19045 $as_echo "#define HAVE_DECL_AI_ADDRCONFIG 1" >>confdefs.h
19046
19047 fi
19048
19049
19050   if test "$enable_ipv6" = yes; then
19051
19052         if test "$enable_tirpc" = no; then
19053       as_fn_error $? "'--enable-ipv6' requires TIRPC support." "$LINENO" 5
19054     fi
19055
19056         for ac_func in getifaddrs getnameinfo bindresvport_sa
19057 do :
19058   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19059 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19060 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19061   cat >>confdefs.h <<_ACEOF
19062 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19063 _ACEOF
19064
19065 else
19066   as_fn_error $? "Missing library functions needed for IPv6." "$LINENO" 5
19067 fi
19068 done
19069
19070
19071             ac_fn_c_check_decl "$LINENO" "AI_ADDRCONFIG" "ac_cv_have_decl_AI_ADDRCONFIG" " #include <netdb.h>
19072 "
19073 if test "x$ac_cv_have_decl_AI_ADDRCONFIG" = xyes; then :
19074
19075 else
19076   as_fn_error $? "full getaddrinfo(3) implementation needed for IPv6 support" "$LINENO" 5
19077 fi
19078
19079
19080   fi
19081
19082
19083
19084 for ac_header in arpa/inet.h fcntl.h libintl.h limits.h \
19085                  malloc.h memory.h netdb.h netinet/in.h paths.h \
19086                  stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h \
19087                  sys/param.h sys/socket.h sys/time.h sys/vfs.h \
19088                  syslog.h unistd.h com_err.h et/com_err.h \
19089                  ifaddrs.h
19090 do :
19091   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19092 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19093 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19094   cat >>confdefs.h <<_ACEOF
19095 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19096 _ACEOF
19097
19098 fi
19099
19100 done
19101
19102
19103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
19104 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
19105 if ${ac_cv_c_const+:} false; then :
19106   $as_echo_n "(cached) " >&6
19107 else
19108   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19109 /* end confdefs.h.  */
19110
19111 int
19112 main ()
19113 {
19114 /* FIXME: Include the comments suggested by Paul. */
19115 #ifndef __cplusplus
19116   /* Ultrix mips cc rejects this.  */
19117   typedef int charset[2];
19118   const charset cs;
19119   /* SunOS 4.1.1 cc rejects this.  */
19120   char const *const *pcpcc;
19121   char **ppc;
19122   /* NEC SVR4.0.2 mips cc rejects this.  */
19123   struct point {int x, y;};
19124   static struct point const zero = {0,0};
19125   /* AIX XL C 1.02.0.0 rejects this.
19126      It does not let you subtract one const X* pointer from another in
19127      an arm of an if-expression whose if-part is not a constant
19128      expression */
19129   const char *g = "string";
19130   pcpcc = &g + (g ? g-g : 0);
19131   /* HPUX 7.0 cc rejects these. */
19132   ++pcpcc;
19133   ppc = (char**) pcpcc;
19134   pcpcc = (char const *const *) ppc;
19135   { /* SCO 3.2v4 cc rejects this.  */
19136     char *t;
19137     char const *s = 0 ? (char *) 0 : (char const *) 0;
19138
19139     *t++ = 0;
19140     if (s) return 0;
19141   }
19142   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19143     int x[] = {25, 17};
19144     const int *foo = &x[0];
19145     ++foo;
19146   }
19147   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19148     typedef const int *iptr;
19149     iptr p = 0;
19150     ++p;
19151   }
19152   { /* AIX XL C 1.02.0.0 rejects this saying
19153        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19154     struct s { int j; const int *ap[3]; };
19155     struct s *b; b->j = 5;
19156   }
19157   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19158     const int foo = 10;
19159     if (!foo) return 0;
19160   }
19161   return !cs[0] && !zero.x;
19162 #endif
19163
19164   ;
19165   return 0;
19166 }
19167 _ACEOF
19168 if ac_fn_c_try_compile "$LINENO"; then :
19169   ac_cv_c_const=yes
19170 else
19171   ac_cv_c_const=no
19172 fi
19173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19174 fi
19175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
19176 $as_echo "$ac_cv_c_const" >&6; }
19177 if test $ac_cv_c_const = no; then
19178
19179 $as_echo "#define const /**/" >>confdefs.h
19180
19181 fi
19182
19183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
19184 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
19185 if ${ac_cv_type_uid_t+:} false; then :
19186   $as_echo_n "(cached) " >&6
19187 else
19188   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19189 /* end confdefs.h.  */
19190 #include <sys/types.h>
19191
19192 _ACEOF
19193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19194   $EGREP "uid_t" >/dev/null 2>&1; then :
19195   ac_cv_type_uid_t=yes
19196 else
19197   ac_cv_type_uid_t=no
19198 fi
19199 rm -f conftest*
19200
19201 fi
19202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
19203 $as_echo "$ac_cv_type_uid_t" >&6; }
19204 if test $ac_cv_type_uid_t = no; then
19205
19206 $as_echo "#define uid_t int" >>confdefs.h
19207
19208
19209 $as_echo "#define gid_t int" >>confdefs.h
19210
19211 fi
19212
19213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
19214 $as_echo_n "checking for inline... " >&6; }
19215 if ${ac_cv_c_inline+:} false; then :
19216   $as_echo_n "(cached) " >&6
19217 else
19218   ac_cv_c_inline=no
19219 for ac_kw in inline __inline__ __inline; do
19220   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19221 /* end confdefs.h.  */
19222 #ifndef __cplusplus
19223 typedef int foo_t;
19224 static $ac_kw foo_t static_foo () {return 0; }
19225 $ac_kw foo_t foo () {return 0; }
19226 #endif
19227
19228 _ACEOF
19229 if ac_fn_c_try_compile "$LINENO"; then :
19230   ac_cv_c_inline=$ac_kw
19231 fi
19232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19233   test "$ac_cv_c_inline" != no && break
19234 done
19235
19236 fi
19237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
19238 $as_echo "$ac_cv_c_inline" >&6; }
19239
19240 case $ac_cv_c_inline in
19241   inline | yes) ;;
19242   *)
19243     case $ac_cv_c_inline in
19244       no) ac_val=;;
19245       *) ac_val=$ac_cv_c_inline;;
19246     esac
19247     cat >>confdefs.h <<_ACEOF
19248 #ifndef __cplusplus
19249 #define inline $ac_val
19250 #endif
19251 _ACEOF
19252     ;;
19253 esac
19254
19255 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
19256 if test "x$ac_cv_type_off_t" = xyes; then :
19257
19258 else
19259
19260 cat >>confdefs.h <<_ACEOF
19261 #define off_t long int
19262 _ACEOF
19263
19264 fi
19265
19266 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
19267 if test "x$ac_cv_type_pid_t" = xyes; then :
19268
19269 else
19270
19271 cat >>confdefs.h <<_ACEOF
19272 #define pid_t int
19273 _ACEOF
19274
19275 fi
19276
19277 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19278 if test "x$ac_cv_type_size_t" = xyes; then :
19279
19280 else
19281
19282 cat >>confdefs.h <<_ACEOF
19283 #define size_t unsigned int
19284 _ACEOF
19285
19286 fi
19287
19288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
19289 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
19290 if ${ac_cv_header_time+:} false; then :
19291   $as_echo_n "(cached) " >&6
19292 else
19293   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19294 /* end confdefs.h.  */
19295 #include <sys/types.h>
19296 #include <sys/time.h>
19297 #include <time.h>
19298
19299 int
19300 main ()
19301 {
19302 if ((struct tm *) 0)
19303 return 0;
19304   ;
19305   return 0;
19306 }
19307 _ACEOF
19308 if ac_fn_c_try_compile "$LINENO"; then :
19309   ac_cv_header_time=yes
19310 else
19311   ac_cv_header_time=no
19312 fi
19313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19314 fi
19315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
19316 $as_echo "$ac_cv_header_time" >&6; }
19317 if test $ac_cv_header_time = yes; then
19318
19319 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
19320
19321 fi
19322
19323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
19324 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
19325 if ${ac_cv_struct_tm+:} false; then :
19326   $as_echo_n "(cached) " >&6
19327 else
19328   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19329 /* end confdefs.h.  */
19330 #include <sys/types.h>
19331 #include <time.h>
19332
19333 int
19334 main ()
19335 {
19336 struct tm tm;
19337                                      int *p = &tm.tm_sec;
19338                                      return !p;
19339   ;
19340   return 0;
19341 }
19342 _ACEOF
19343 if ac_fn_c_try_compile "$LINENO"; then :
19344   ac_cv_struct_tm=time.h
19345 else
19346   ac_cv_struct_tm=sys/time.h
19347 fi
19348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19349 fi
19350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
19351 $as_echo "$ac_cv_struct_tm" >&6; }
19352 if test $ac_cv_struct_tm = sys/time.h; then
19353
19354 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
19355
19356 fi
19357
19358
19359 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19360 # for constant arguments.  Useless!
19361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
19362 $as_echo_n "checking for working alloca.h... " >&6; }
19363 if ${ac_cv_working_alloca_h+:} false; then :
19364   $as_echo_n "(cached) " >&6
19365 else
19366   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19367 /* end confdefs.h.  */
19368 #include <alloca.h>
19369 int
19370 main ()
19371 {
19372 char *p = (char *) alloca (2 * sizeof (int));
19373                           if (p) return 0;
19374   ;
19375   return 0;
19376 }
19377 _ACEOF
19378 if ac_fn_c_try_link "$LINENO"; then :
19379   ac_cv_working_alloca_h=yes
19380 else
19381   ac_cv_working_alloca_h=no
19382 fi
19383 rm -f core conftest.err conftest.$ac_objext \
19384     conftest$ac_exeext conftest.$ac_ext
19385 fi
19386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
19387 $as_echo "$ac_cv_working_alloca_h" >&6; }
19388 if test $ac_cv_working_alloca_h = yes; then
19389
19390 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
19391
19392 fi
19393
19394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
19395 $as_echo_n "checking for alloca... " >&6; }
19396 if ${ac_cv_func_alloca_works+:} false; then :
19397   $as_echo_n "(cached) " >&6
19398 else
19399   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19400 /* end confdefs.h.  */
19401 #ifdef __GNUC__
19402 # define alloca __builtin_alloca
19403 #else
19404 # ifdef _MSC_VER
19405 #  include <malloc.h>
19406 #  define alloca _alloca
19407 # else
19408 #  ifdef HAVE_ALLOCA_H
19409 #   include <alloca.h>
19410 #  else
19411 #   ifdef _AIX
19412  #pragma alloca
19413 #   else
19414 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19415 void *alloca (size_t);
19416 #    endif
19417 #   endif
19418 #  endif
19419 # endif
19420 #endif
19421
19422 int
19423 main ()
19424 {
19425 char *p = (char *) alloca (1);
19426                                     if (p) return 0;
19427   ;
19428   return 0;
19429 }
19430 _ACEOF
19431 if ac_fn_c_try_link "$LINENO"; then :
19432   ac_cv_func_alloca_works=yes
19433 else
19434   ac_cv_func_alloca_works=no
19435 fi
19436 rm -f core conftest.err conftest.$ac_objext \
19437     conftest$ac_exeext conftest.$ac_ext
19438 fi
19439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
19440 $as_echo "$ac_cv_func_alloca_works" >&6; }
19441
19442 if test $ac_cv_func_alloca_works = yes; then
19443
19444 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19445
19446 else
19447   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19448 # that cause trouble.  Some versions do not even contain alloca or
19449 # contain a buggy version.  If you still want to use their alloca,
19450 # use ar to extract alloca.o from them instead of compiling alloca.c.
19451
19452 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19453
19454 $as_echo "#define C_ALLOCA 1" >>confdefs.h
19455
19456
19457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
19458 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
19459 if ${ac_cv_os_cray+:} false; then :
19460   $as_echo_n "(cached) " >&6
19461 else
19462   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19463 /* end confdefs.h.  */
19464 #if defined CRAY && ! defined CRAY2
19465 webecray
19466 #else
19467 wenotbecray
19468 #endif
19469
19470 _ACEOF
19471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19472   $EGREP "webecray" >/dev/null 2>&1; then :
19473   ac_cv_os_cray=yes
19474 else
19475   ac_cv_os_cray=no
19476 fi
19477 rm -f conftest*
19478
19479 fi
19480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
19481 $as_echo "$ac_cv_os_cray" >&6; }
19482 if test $ac_cv_os_cray = yes; then
19483   for ac_func in _getb67 GETB67 getb67; do
19484     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19485 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19486 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19487
19488 cat >>confdefs.h <<_ACEOF
19489 #define CRAY_STACKSEG_END $ac_func
19490 _ACEOF
19491
19492     break
19493 fi
19494
19495   done
19496 fi
19497
19498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
19499 $as_echo_n "checking stack direction for C alloca... " >&6; }
19500 if ${ac_cv_c_stack_direction+:} false; then :
19501   $as_echo_n "(cached) " >&6
19502 else
19503   if test "$cross_compiling" = yes; then :
19504   ac_cv_c_stack_direction=0
19505 else
19506   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19507 /* end confdefs.h.  */
19508 $ac_includes_default
19509 int
19510 find_stack_direction ()
19511 {
19512   static char *addr = 0;
19513   auto char dummy;
19514   if (addr == 0)
19515     {
19516       addr = &dummy;
19517       return find_stack_direction ();
19518     }
19519   else
19520     return (&dummy > addr) ? 1 : -1;
19521 }
19522
19523 int
19524 main ()
19525 {
19526   return find_stack_direction () < 0;
19527 }
19528 _ACEOF
19529 if ac_fn_c_try_run "$LINENO"; then :
19530   ac_cv_c_stack_direction=1
19531 else
19532   ac_cv_c_stack_direction=-1
19533 fi
19534 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19535   conftest.$ac_objext conftest.beam conftest.$ac_ext
19536 fi
19537
19538 fi
19539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
19540 $as_echo "$ac_cv_c_stack_direction" >&6; }
19541 cat >>confdefs.h <<_ACEOF
19542 #define STACK_DIRECTION $ac_cv_c_stack_direction
19543 _ACEOF
19544
19545
19546 fi
19547
19548 ac_header_dirent=no
19549 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19550   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
19552 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
19553 if eval \${$as_ac_Header+:} false; then :
19554   $as_echo_n "(cached) " >&6
19555 else
19556   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19557 /* end confdefs.h.  */
19558 #include <sys/types.h>
19559 #include <$ac_hdr>
19560
19561 int
19562 main ()
19563 {
19564 if ((DIR *) 0)
19565 return 0;
19566   ;
19567   return 0;
19568 }
19569 _ACEOF
19570 if ac_fn_c_try_compile "$LINENO"; then :
19571   eval "$as_ac_Header=yes"
19572 else
19573   eval "$as_ac_Header=no"
19574 fi
19575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19576 fi
19577 eval ac_res=\$$as_ac_Header
19578                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19579 $as_echo "$ac_res" >&6; }
19580 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19581   cat >>confdefs.h <<_ACEOF
19582 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19583 _ACEOF
19584
19585 ac_header_dirent=$ac_hdr; break
19586 fi
19587
19588 done
19589 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19590 if test $ac_header_dirent = dirent.h; then
19591   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
19592 $as_echo_n "checking for library containing opendir... " >&6; }
19593 if ${ac_cv_search_opendir+:} false; then :
19594   $as_echo_n "(cached) " >&6
19595 else
19596   ac_func_search_save_LIBS=$LIBS
19597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19598 /* end confdefs.h.  */
19599
19600 /* Override any GCC internal prototype to avoid an error.
19601    Use char because int might match the return type of a GCC
19602    builtin and then its argument prototype would still apply.  */
19603 #ifdef __cplusplus
19604 extern "C"
19605 #endif
19606 char opendir ();
19607 int
19608 main ()
19609 {
19610 return opendir ();
19611   ;
19612   return 0;
19613 }
19614 _ACEOF
19615 for ac_lib in '' dir; do
19616   if test -z "$ac_lib"; then
19617     ac_res="none required"
19618   else
19619     ac_res=-l$ac_lib
19620     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19621   fi
19622   if ac_fn_c_try_link "$LINENO"; then :
19623   ac_cv_search_opendir=$ac_res
19624 fi
19625 rm -f core conftest.err conftest.$ac_objext \
19626     conftest$ac_exeext
19627   if ${ac_cv_search_opendir+:} false; then :
19628   break
19629 fi
19630 done
19631 if ${ac_cv_search_opendir+:} false; then :
19632
19633 else
19634   ac_cv_search_opendir=no
19635 fi
19636 rm conftest.$ac_ext
19637 LIBS=$ac_func_search_save_LIBS
19638 fi
19639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
19640 $as_echo "$ac_cv_search_opendir" >&6; }
19641 ac_res=$ac_cv_search_opendir
19642 if test "$ac_res" != no; then :
19643   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19644
19645 fi
19646
19647 else
19648   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
19649 $as_echo_n "checking for library containing opendir... " >&6; }
19650 if ${ac_cv_search_opendir+:} false; then :
19651   $as_echo_n "(cached) " >&6
19652 else
19653   ac_func_search_save_LIBS=$LIBS
19654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19655 /* end confdefs.h.  */
19656
19657 /* Override any GCC internal prototype to avoid an error.
19658    Use char because int might match the return type of a GCC
19659    builtin and then its argument prototype would still apply.  */
19660 #ifdef __cplusplus
19661 extern "C"
19662 #endif
19663 char opendir ();
19664 int
19665 main ()
19666 {
19667 return opendir ();
19668   ;
19669   return 0;
19670 }
19671 _ACEOF
19672 for ac_lib in '' x; do
19673   if test -z "$ac_lib"; then
19674     ac_res="none required"
19675   else
19676     ac_res=-l$ac_lib
19677     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19678   fi
19679   if ac_fn_c_try_link "$LINENO"; then :
19680   ac_cv_search_opendir=$ac_res
19681 fi
19682 rm -f core conftest.err conftest.$ac_objext \
19683     conftest$ac_exeext
19684   if ${ac_cv_search_opendir+:} false; then :
19685   break
19686 fi
19687 done
19688 if ${ac_cv_search_opendir+:} false; then :
19689
19690 else
19691   ac_cv_search_opendir=no
19692 fi
19693 rm conftest.$ac_ext
19694 LIBS=$ac_func_search_save_LIBS
19695 fi
19696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
19697 $as_echo "$ac_cv_search_opendir" >&6; }
19698 ac_res=$ac_cv_search_opendir
19699 if test "$ac_res" != no; then :
19700   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19701
19702 fi
19703
19704 fi
19705
19706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
19707 $as_echo_n "checking whether closedir returns void... " >&6; }
19708 if ${ac_cv_func_closedir_void+:} false; then :
19709   $as_echo_n "(cached) " >&6
19710 else
19711   if test "$cross_compiling" = yes; then :
19712   ac_cv_func_closedir_void=yes
19713 else
19714   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19715 /* end confdefs.h.  */
19716 $ac_includes_default
19717 #include <$ac_header_dirent>
19718 #ifndef __cplusplus
19719 int closedir ();
19720 #endif
19721
19722 int
19723 main ()
19724 {
19725 return closedir (opendir (".")) != 0;
19726   ;
19727   return 0;
19728 }
19729 _ACEOF
19730 if ac_fn_c_try_run "$LINENO"; then :
19731   ac_cv_func_closedir_void=no
19732 else
19733   ac_cv_func_closedir_void=yes
19734 fi
19735 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19736   conftest.$ac_objext conftest.beam conftest.$ac_ext
19737 fi
19738
19739 fi
19740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
19741 $as_echo "$ac_cv_func_closedir_void" >&6; }
19742 if test $ac_cv_func_closedir_void = yes; then
19743
19744 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
19745
19746 fi
19747
19748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
19749 $as_echo_n "checking for error_at_line... " >&6; }
19750 if ${ac_cv_lib_error_at_line+:} false; then :
19751   $as_echo_n "(cached) " >&6
19752 else
19753   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19754 /* end confdefs.h.  */
19755 #include <error.h>
19756 int
19757 main ()
19758 {
19759 error_at_line (0, 0, "", 0, "an error occurred");
19760   ;
19761   return 0;
19762 }
19763 _ACEOF
19764 if ac_fn_c_try_link "$LINENO"; then :
19765   ac_cv_lib_error_at_line=yes
19766 else
19767   ac_cv_lib_error_at_line=no
19768 fi
19769 rm -f core conftest.err conftest.$ac_objext \
19770     conftest$ac_exeext conftest.$ac_ext
19771 fi
19772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
19773 $as_echo "$ac_cv_lib_error_at_line" >&6; }
19774 if test $ac_cv_lib_error_at_line = no; then
19775   case " $LIBOBJS " in
19776   *" error.$ac_objext "* ) ;;
19777   *) LIBOBJS="$LIBOBJS error.$ac_objext"
19778  ;;
19779 esac
19780
19781 fi
19782
19783 for ac_header in vfork.h
19784 do :
19785   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
19786 if test "x$ac_cv_header_vfork_h" = xyes; then :
19787   cat >>confdefs.h <<_ACEOF
19788 #define HAVE_VFORK_H 1
19789 _ACEOF
19790
19791 fi
19792
19793 done
19794
19795 for ac_func in fork vfork
19796 do :
19797   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19798 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19799 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19800   cat >>confdefs.h <<_ACEOF
19801 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19802 _ACEOF
19803
19804 fi
19805 done
19806
19807 if test "x$ac_cv_func_fork" = xyes; then
19808   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
19809 $as_echo_n "checking for working fork... " >&6; }
19810 if ${ac_cv_func_fork_works+:} false; then :
19811   $as_echo_n "(cached) " >&6
19812 else
19813   if test "$cross_compiling" = yes; then :
19814   ac_cv_func_fork_works=cross
19815 else
19816   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19817 /* end confdefs.h.  */
19818 $ac_includes_default
19819 int
19820 main ()
19821 {
19822
19823           /* By Ruediger Kuhlmann. */
19824           return fork () < 0;
19825
19826   ;
19827   return 0;
19828 }
19829 _ACEOF
19830 if ac_fn_c_try_run "$LINENO"; then :
19831   ac_cv_func_fork_works=yes
19832 else
19833   ac_cv_func_fork_works=no
19834 fi
19835 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19836   conftest.$ac_objext conftest.beam conftest.$ac_ext
19837 fi
19838
19839 fi
19840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
19841 $as_echo "$ac_cv_func_fork_works" >&6; }
19842
19843 else
19844   ac_cv_func_fork_works=$ac_cv_func_fork
19845 fi
19846 if test "x$ac_cv_func_fork_works" = xcross; then
19847   case $host in
19848     *-*-amigaos* | *-*-msdosdjgpp*)
19849       # Override, as these systems have only a dummy fork() stub
19850       ac_cv_func_fork_works=no
19851       ;;
19852     *)
19853       ac_cv_func_fork_works=yes
19854       ;;
19855   esac
19856   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
19857 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
19858 fi
19859 ac_cv_func_vfork_works=$ac_cv_func_vfork
19860 if test "x$ac_cv_func_vfork" = xyes; then
19861   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
19862 $as_echo_n "checking for working vfork... " >&6; }
19863 if ${ac_cv_func_vfork_works+:} false; then :
19864   $as_echo_n "(cached) " >&6
19865 else
19866   if test "$cross_compiling" = yes; then :
19867   ac_cv_func_vfork_works=cross
19868 else
19869   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19870 /* end confdefs.h.  */
19871 /* Thanks to Paul Eggert for this test.  */
19872 $ac_includes_default
19873 #include <sys/wait.h>
19874 #ifdef HAVE_VFORK_H
19875 # include <vfork.h>
19876 #endif
19877 /* On some sparc systems, changes by the child to local and incoming
19878    argument registers are propagated back to the parent.  The compiler
19879    is told about this with #include <vfork.h>, but some compilers
19880    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
19881    static variable whose address is put into a register that is
19882    clobbered by the vfork.  */
19883 static void
19884 #ifdef __cplusplus
19885 sparc_address_test (int arg)
19886 # else
19887 sparc_address_test (arg) int arg;
19888 #endif
19889 {
19890   static pid_t child;
19891   if (!child) {
19892     child = vfork ();
19893     if (child < 0) {
19894       perror ("vfork");
19895       _exit(2);
19896     }
19897     if (!child) {
19898       arg = getpid();
19899       write(-1, "", 0);
19900       _exit (arg);
19901     }
19902   }
19903 }
19904
19905 int
19906 main ()
19907 {
19908   pid_t parent = getpid ();
19909   pid_t child;
19910
19911   sparc_address_test (0);
19912
19913   child = vfork ();
19914
19915   if (child == 0) {
19916     /* Here is another test for sparc vfork register problems.  This
19917        test uses lots of local variables, at least as many local
19918        variables as main has allocated so far including compiler
19919        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
19920        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
19921        reuse the register of parent for one of the local variables,
19922        since it will think that parent can't possibly be used any more
19923        in this routine.  Assigning to the local variable will thus
19924        munge parent in the parent process.  */
19925     pid_t
19926       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
19927       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
19928     /* Convince the compiler that p..p7 are live; otherwise, it might
19929        use the same hardware register for all 8 local variables.  */
19930     if (p != p1 || p != p2 || p != p3 || p != p4
19931         || p != p5 || p != p6 || p != p7)
19932       _exit(1);
19933
19934     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
19935        from child file descriptors.  If the child closes a descriptor
19936        before it execs or exits, this munges the parent's descriptor
19937        as well.  Test for this by closing stdout in the child.  */
19938     _exit(close(fileno(stdout)) != 0);
19939   } else {
19940     int status;
19941     struct stat st;
19942
19943     while (wait(&status) != child)
19944       ;
19945     return (
19946          /* Was there some problem with vforking?  */
19947          child < 0
19948
19949          /* Did the child fail?  (This shouldn't happen.)  */
19950          || status
19951
19952          /* Did the vfork/compiler bug occur?  */
19953          || parent != getpid()
19954
19955          /* Did the file descriptor bug occur?  */
19956          || fstat(fileno(stdout), &st) != 0
19957          );
19958   }
19959 }
19960 _ACEOF
19961 if ac_fn_c_try_run "$LINENO"; then :
19962   ac_cv_func_vfork_works=yes
19963 else
19964   ac_cv_func_vfork_works=no
19965 fi
19966 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19967   conftest.$ac_objext conftest.beam conftest.$ac_ext
19968 fi
19969
19970 fi
19971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
19972 $as_echo "$ac_cv_func_vfork_works" >&6; }
19973
19974 fi;
19975 if test "x$ac_cv_func_fork_works" = xcross; then
19976   ac_cv_func_vfork_works=$ac_cv_func_vfork
19977   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
19978 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
19979 fi
19980
19981 if test "x$ac_cv_func_vfork_works" = xyes; then
19982
19983 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
19984
19985 else
19986
19987 $as_echo "#define vfork fork" >>confdefs.h
19988
19989 fi
19990 if test "x$ac_cv_func_fork_works" = xyes; then
19991
19992 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
19993
19994 fi
19995
19996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
19997 $as_echo_n "checking type of array argument to getgroups... " >&6; }
19998 if ${ac_cv_type_getgroups+:} false; then :
19999   $as_echo_n "(cached) " >&6
20000 else
20001   if test "$cross_compiling" = yes; then :
20002   ac_cv_type_getgroups=cross
20003 else
20004   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20005 /* end confdefs.h.  */
20006 /* Thanks to Mike Rendell for this test.  */
20007 $ac_includes_default
20008 #define NGID 256
20009 #undef MAX
20010 #define MAX(x, y) ((x) > (y) ? (x) : (y))
20011
20012 int
20013 main ()
20014 {
20015   gid_t gidset[NGID];
20016   int i, n;
20017   union { gid_t gval; long int lval; }  val;
20018
20019   val.lval = -1;
20020   for (i = 0; i < NGID; i++)
20021     gidset[i] = val.gval;
20022   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
20023                  gidset);
20024   /* Exit non-zero if getgroups seems to require an array of ints.  This
20025      happens when gid_t is short int but getgroups modifies an array
20026      of ints.  */
20027   return n > 0 && gidset[n] != val.gval;
20028 }
20029 _ACEOF
20030 if ac_fn_c_try_run "$LINENO"; then :
20031   ac_cv_type_getgroups=gid_t
20032 else
20033   ac_cv_type_getgroups=int
20034 fi
20035 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20036   conftest.$ac_objext conftest.beam conftest.$ac_ext
20037 fi
20038
20039 if test $ac_cv_type_getgroups = cross; then
20040         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20041 /* end confdefs.h.  */
20042 #include <unistd.h>
20043
20044 _ACEOF
20045 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20046   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
20047   ac_cv_type_getgroups=gid_t
20048 else
20049   ac_cv_type_getgroups=int
20050 fi
20051 rm -f conftest*
20052
20053 fi
20054 fi
20055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
20056 $as_echo "$ac_cv_type_getgroups" >&6; }
20057
20058 cat >>confdefs.h <<_ACEOF
20059 #define GETGROUPS_T $ac_cv_type_getgroups
20060 _ACEOF
20061
20062
20063 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
20064 if test "x$ac_cv_func_getgroups" = xyes; then :
20065
20066 fi
20067
20068
20069 # If we don't yet have getgroups, see if it's in -lbsd.
20070 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
20071 ac_save_LIBS=$LIBS
20072 if test $ac_cv_func_getgroups = no; then
20073   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
20074 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
20075 if ${ac_cv_lib_bsd_getgroups+:} false; then :
20076   $as_echo_n "(cached) " >&6
20077 else
20078   ac_check_lib_save_LIBS=$LIBS
20079 LIBS="-lbsd  $LIBS"
20080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20081 /* end confdefs.h.  */
20082
20083 /* Override any GCC internal prototype to avoid an error.
20084    Use char because int might match the return type of a GCC
20085    builtin and then its argument prototype would still apply.  */
20086 #ifdef __cplusplus
20087 extern "C"
20088 #endif
20089 char getgroups ();
20090 int
20091 main ()
20092 {
20093 return getgroups ();
20094   ;
20095   return 0;
20096 }
20097 _ACEOF
20098 if ac_fn_c_try_link "$LINENO"; then :
20099   ac_cv_lib_bsd_getgroups=yes
20100 else
20101   ac_cv_lib_bsd_getgroups=no
20102 fi
20103 rm -f core conftest.err conftest.$ac_objext \
20104     conftest$ac_exeext conftest.$ac_ext
20105 LIBS=$ac_check_lib_save_LIBS
20106 fi
20107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
20108 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
20109 if test "x$ac_cv_lib_bsd_getgroups" = xyes; then :
20110   GETGROUPS_LIB=-lbsd
20111 fi
20112
20113 fi
20114
20115 # Run the program to test the functionality of the system-supplied
20116 # getgroups function only if there is such a function.
20117 if test $ac_cv_func_getgroups = yes; then
20118   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
20119 $as_echo_n "checking for working getgroups... " >&6; }
20120 if ${ac_cv_func_getgroups_works+:} false; then :
20121   $as_echo_n "(cached) " >&6
20122 else
20123   if test "$cross_compiling" = yes; then :
20124   ac_cv_func_getgroups_works=no
20125 else
20126   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20127 /* end confdefs.h.  */
20128 $ac_includes_default
20129 int
20130 main ()
20131 {
20132 /* On Ultrix 4.3, getgroups (0, 0) always fails.  */
20133        return getgroups (0, 0) == -1;
20134   ;
20135   return 0;
20136 }
20137 _ACEOF
20138 if ac_fn_c_try_run "$LINENO"; then :
20139   ac_cv_func_getgroups_works=yes
20140 else
20141   ac_cv_func_getgroups_works=no
20142 fi
20143 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20144   conftest.$ac_objext conftest.beam conftest.$ac_ext
20145 fi
20146
20147
20148 fi
20149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
20150 $as_echo "$ac_cv_func_getgroups_works" >&6; }
20151 else
20152   ac_cv_func_getgroups_works=no
20153 fi
20154 if test $ac_cv_func_getgroups_works = yes; then
20155
20156 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
20157
20158 fi
20159 LIBS=$ac_save_LIBS
20160
20161 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
20162 # -lseq on Dynix/PTX, -lgen on Unixware.
20163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
20164 $as_echo_n "checking for library containing getmntent... " >&6; }
20165 if ${ac_cv_search_getmntent+:} false; then :
20166   $as_echo_n "(cached) " >&6
20167 else
20168   ac_func_search_save_LIBS=$LIBS
20169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20170 /* end confdefs.h.  */
20171
20172 /* Override any GCC internal prototype to avoid an error.
20173    Use char because int might match the return type of a GCC
20174    builtin and then its argument prototype would still apply.  */
20175 #ifdef __cplusplus
20176 extern "C"
20177 #endif
20178 char getmntent ();
20179 int
20180 main ()
20181 {
20182 return getmntent ();
20183   ;
20184   return 0;
20185 }
20186 _ACEOF
20187 for ac_lib in '' sun seq gen; do
20188   if test -z "$ac_lib"; then
20189     ac_res="none required"
20190   else
20191     ac_res=-l$ac_lib
20192     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20193   fi
20194   if ac_fn_c_try_link "$LINENO"; then :
20195   ac_cv_search_getmntent=$ac_res
20196 fi
20197 rm -f core conftest.err conftest.$ac_objext \
20198     conftest$ac_exeext
20199   if ${ac_cv_search_getmntent+:} false; then :
20200   break
20201 fi
20202 done
20203 if ${ac_cv_search_getmntent+:} false; then :
20204
20205 else
20206   ac_cv_search_getmntent=no
20207 fi
20208 rm conftest.$ac_ext
20209 LIBS=$ac_func_search_save_LIBS
20210 fi
20211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
20212 $as_echo "$ac_cv_search_getmntent" >&6; }
20213 ac_res=$ac_cv_search_getmntent
20214 if test "$ac_res" != no; then :
20215   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20216   ac_cv_func_getmntent=yes
20217
20218 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
20219
20220 else
20221   ac_cv_func_getmntent=no
20222 fi
20223
20224
20225 if test $ac_cv_c_compiler_gnu = yes; then
20226     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
20227 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
20228 if ${ac_cv_prog_gcc_traditional+:} false; then :
20229   $as_echo_n "(cached) " >&6
20230 else
20231     ac_pattern="Autoconf.*'x'"
20232   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20233 /* end confdefs.h.  */
20234 #include <sgtty.h>
20235 Autoconf TIOCGETP
20236 _ACEOF
20237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20238   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
20239   ac_cv_prog_gcc_traditional=yes
20240 else
20241   ac_cv_prog_gcc_traditional=no
20242 fi
20243 rm -f conftest*
20244
20245
20246   if test $ac_cv_prog_gcc_traditional = no; then
20247     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20248 /* end confdefs.h.  */
20249 #include <termio.h>
20250 Autoconf TCGETA
20251 _ACEOF
20252 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20253   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
20254   ac_cv_prog_gcc_traditional=yes
20255 fi
20256 rm -f conftest*
20257
20258   fi
20259 fi
20260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
20261 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
20262   if test $ac_cv_prog_gcc_traditional = yes; then
20263     CC="$CC -traditional"
20264   fi
20265 fi
20266
20267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
20268 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
20269 if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
20270   $as_echo_n "(cached) " >&6
20271 else
20272   rm -f conftest.sym conftest.file
20273 echo >conftest.file
20274 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
20275   if test "$cross_compiling" = yes; then :
20276   ac_cv_func_lstat_dereferences_slashed_symlink=no
20277 else
20278   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20279 /* end confdefs.h.  */
20280 $ac_includes_default
20281 int
20282 main ()
20283 {
20284 struct stat sbuf;
20285      /* Linux will dereference the symlink and fail, as required by POSIX.
20286         That is better in the sense that it means we will not
20287         have to compile and use the lstat wrapper.  */
20288      return lstat ("conftest.sym/", &sbuf) == 0;
20289   ;
20290   return 0;
20291 }
20292 _ACEOF
20293 if ac_fn_c_try_run "$LINENO"; then :
20294   ac_cv_func_lstat_dereferences_slashed_symlink=yes
20295 else
20296   ac_cv_func_lstat_dereferences_slashed_symlink=no
20297 fi
20298 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20299   conftest.$ac_objext conftest.beam conftest.$ac_ext
20300 fi
20301
20302 else
20303   # If the `ln -s' command failed, then we probably don't even
20304   # have an lstat function.
20305   ac_cv_func_lstat_dereferences_slashed_symlink=no
20306 fi
20307 rm -f conftest.sym conftest.file
20308
20309 fi
20310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
20311 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
20312
20313 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
20314
20315 cat >>confdefs.h <<_ACEOF
20316 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
20317 _ACEOF
20318
20319
20320 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
20321   case " $LIBOBJS " in
20322   *" lstat.$ac_objext "* ) ;;
20323   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
20324  ;;
20325 esac
20326
20327 fi
20328
20329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
20330 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
20331 if ${ac_cv_func_lstat_empty_string_bug+:} false; then :
20332   $as_echo_n "(cached) " >&6
20333 else
20334   if test "$cross_compiling" = yes; then :
20335   ac_cv_func_lstat_empty_string_bug=yes
20336 else
20337   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20338 /* end confdefs.h.  */
20339 $ac_includes_default
20340 int
20341 main ()
20342 {
20343 struct stat sbuf;
20344   return lstat ("", &sbuf) == 0;
20345   ;
20346   return 0;
20347 }
20348 _ACEOF
20349 if ac_fn_c_try_run "$LINENO"; then :
20350   ac_cv_func_lstat_empty_string_bug=no
20351 else
20352   ac_cv_func_lstat_empty_string_bug=yes
20353 fi
20354 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20355   conftest.$ac_objext conftest.beam conftest.$ac_ext
20356 fi
20357
20358 fi
20359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
20360 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
20361 if test $ac_cv_func_lstat_empty_string_bug = yes; then
20362   case " $LIBOBJS " in
20363   *" lstat.$ac_objext "* ) ;;
20364   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
20365  ;;
20366 esac
20367
20368
20369 cat >>confdefs.h <<_ACEOF
20370 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
20371 _ACEOF
20372
20373 fi
20374
20375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
20376 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
20377 if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
20378   $as_echo_n "(cached) " >&6
20379 else
20380   rm -f conftest.sym conftest.file
20381 echo >conftest.file
20382 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
20383   if test "$cross_compiling" = yes; then :
20384   ac_cv_func_lstat_dereferences_slashed_symlink=no
20385 else
20386   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20387 /* end confdefs.h.  */
20388 $ac_includes_default
20389 int
20390 main ()
20391 {
20392 struct stat sbuf;
20393      /* Linux will dereference the symlink and fail, as required by POSIX.
20394         That is better in the sense that it means we will not
20395         have to compile and use the lstat wrapper.  */
20396      return lstat ("conftest.sym/", &sbuf) == 0;
20397   ;
20398   return 0;
20399 }
20400 _ACEOF
20401 if ac_fn_c_try_run "$LINENO"; then :
20402   ac_cv_func_lstat_dereferences_slashed_symlink=yes
20403 else
20404   ac_cv_func_lstat_dereferences_slashed_symlink=no
20405 fi
20406 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20407   conftest.$ac_objext conftest.beam conftest.$ac_ext
20408 fi
20409
20410 else
20411   # If the `ln -s' command failed, then we probably don't even
20412   # have an lstat function.
20413   ac_cv_func_lstat_dereferences_slashed_symlink=no
20414 fi
20415 rm -f conftest.sym conftest.file
20416
20417 fi
20418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
20419 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
20420
20421 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
20422
20423 cat >>confdefs.h <<_ACEOF
20424 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
20425 _ACEOF
20426
20427
20428 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
20429   case " $LIBOBJS " in
20430   *" lstat.$ac_objext "* ) ;;
20431   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
20432  ;;
20433 esac
20434
20435 fi
20436
20437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
20438 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
20439 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
20440   $as_echo_n "(cached) " >&6
20441 else
20442   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20443 /* end confdefs.h.  */
20444 #include <sys/types.h>
20445 int
20446 main ()
20447 {
20448 return makedev(0, 0);
20449   ;
20450   return 0;
20451 }
20452 _ACEOF
20453 if ac_fn_c_try_link "$LINENO"; then :
20454   ac_cv_header_sys_types_h_makedev=yes
20455 else
20456   ac_cv_header_sys_types_h_makedev=no
20457 fi
20458 rm -f core conftest.err conftest.$ac_objext \
20459     conftest$ac_exeext conftest.$ac_ext
20460
20461 fi
20462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
20463 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
20464
20465 if test $ac_cv_header_sys_types_h_makedev = no; then
20466 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
20467 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
20468
20469 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
20470
20471 fi
20472
20473
20474
20475   if test $ac_cv_header_sys_mkdev_h = no; then
20476     ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
20477 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
20478
20479 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
20480
20481 fi
20482
20483
20484   fi
20485 fi
20486
20487 #AC_FUNC_MALLOC
20488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
20489 $as_echo_n "checking for working memcmp... " >&6; }
20490 if ${ac_cv_func_memcmp_working+:} false; then :
20491   $as_echo_n "(cached) " >&6
20492 else
20493   if test "$cross_compiling" = yes; then :
20494   ac_cv_func_memcmp_working=no
20495 else
20496   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20497 /* end confdefs.h.  */
20498 $ac_includes_default
20499 int
20500 main ()
20501 {
20502
20503   /* Some versions of memcmp are not 8-bit clean.  */
20504   char c0 = '\100', c1 = '\200', c2 = '\201';
20505   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
20506     return 1;
20507
20508   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
20509      or more and with at least one buffer not starting on a 4-byte boundary.
20510      William Lewis provided this test program.   */
20511   {
20512     char foo[21];
20513     char bar[21];
20514     int i;
20515     for (i = 0; i < 4; i++)
20516       {
20517         char *a = foo + i;
20518         char *b = bar + i;
20519         strcpy (a, "--------01111111");
20520         strcpy (b, "--------10000000");
20521         if (memcmp (a, b, 16) >= 0)
20522           return 1;
20523       }
20524     return 0;
20525   }
20526
20527   ;
20528   return 0;
20529 }
20530 _ACEOF
20531 if ac_fn_c_try_run "$LINENO"; then :
20532   ac_cv_func_memcmp_working=yes
20533 else
20534   ac_cv_func_memcmp_working=no
20535 fi
20536 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20537   conftest.$ac_objext conftest.beam conftest.$ac_ext
20538 fi
20539
20540 fi
20541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
20542 $as_echo "$ac_cv_func_memcmp_working" >&6; }
20543 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
20544   *" memcmp.$ac_objext "* ) ;;
20545   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
20546  ;;
20547 esac
20548
20549
20550 #AC_FUNC_REALLOC
20551 for ac_header in sys/select.h sys/socket.h
20552 do :
20553   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20554 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20555 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20556   cat >>confdefs.h <<_ACEOF
20557 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20558 _ACEOF
20559
20560 fi
20561
20562 done
20563
20564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
20565 $as_echo_n "checking types of arguments for select... " >&6; }
20566 if ${ac_cv_func_select_args+:} false; then :
20567   $as_echo_n "(cached) " >&6
20568 else
20569   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
20570  for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
20571   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
20572    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20573 /* end confdefs.h.  */
20574 $ac_includes_default
20575 #ifdef HAVE_SYS_SELECT_H
20576 # include <sys/select.h>
20577 #endif
20578 #ifdef HAVE_SYS_SOCKET_H
20579 # include <sys/socket.h>
20580 #endif
20581
20582 int
20583 main ()
20584 {
20585 extern int select ($ac_arg1,
20586                                             $ac_arg234, $ac_arg234, $ac_arg234,
20587                                             $ac_arg5);
20588   ;
20589   return 0;
20590 }
20591 _ACEOF
20592 if ac_fn_c_try_compile "$LINENO"; then :
20593   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
20594 fi
20595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20596   done
20597  done
20598 done
20599 # Provide a safe default value.
20600 : "${ac_cv_func_select_args=int,int *,struct timeval *}"
20601
20602 fi
20603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
20604 $as_echo "$ac_cv_func_select_args" >&6; }
20605 ac_save_IFS=$IFS; IFS=','
20606 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
20607 IFS=$ac_save_IFS
20608 shift
20609
20610 cat >>confdefs.h <<_ACEOF
20611 #define SELECT_TYPE_ARG1 $1
20612 _ACEOF
20613
20614
20615 cat >>confdefs.h <<_ACEOF
20616 #define SELECT_TYPE_ARG234 ($2)
20617 _ACEOF
20618
20619
20620 cat >>confdefs.h <<_ACEOF
20621 #define SELECT_TYPE_ARG5 ($3)
20622 _ACEOF
20623
20624 rm -f conftest*
20625
20626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
20627 $as_echo_n "checking return type of signal handlers... " >&6; }
20628 if ${ac_cv_type_signal+:} false; then :
20629   $as_echo_n "(cached) " >&6
20630 else
20631   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20632 /* end confdefs.h.  */
20633 #include <sys/types.h>
20634 #include <signal.h>
20635
20636 int
20637 main ()
20638 {
20639 return *(signal (0, 0)) (0) == 1;
20640   ;
20641   return 0;
20642 }
20643 _ACEOF
20644 if ac_fn_c_try_compile "$LINENO"; then :
20645   ac_cv_type_signal=int
20646 else
20647   ac_cv_type_signal=void
20648 fi
20649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20650 fi
20651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
20652 $as_echo "$ac_cv_type_signal" >&6; }
20653
20654 cat >>confdefs.h <<_ACEOF
20655 #define RETSIGTYPE $ac_cv_type_signal
20656 _ACEOF
20657
20658
20659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
20660 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
20661 if ${ac_cv_func_stat_empty_string_bug+:} false; then :
20662   $as_echo_n "(cached) " >&6
20663 else
20664   if test "$cross_compiling" = yes; then :
20665   ac_cv_func_stat_empty_string_bug=yes
20666 else
20667   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20668 /* end confdefs.h.  */
20669 $ac_includes_default
20670 int
20671 main ()
20672 {
20673 struct stat sbuf;
20674   return stat ("", &sbuf) == 0;
20675   ;
20676   return 0;
20677 }
20678 _ACEOF
20679 if ac_fn_c_try_run "$LINENO"; then :
20680   ac_cv_func_stat_empty_string_bug=no
20681 else
20682   ac_cv_func_stat_empty_string_bug=yes
20683 fi
20684 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20685   conftest.$ac_objext conftest.beam conftest.$ac_ext
20686 fi
20687
20688 fi
20689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
20690 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
20691 if test $ac_cv_func_stat_empty_string_bug = yes; then
20692   case " $LIBOBJS " in
20693   *" stat.$ac_objext "* ) ;;
20694   *) LIBOBJS="$LIBOBJS stat.$ac_objext"
20695  ;;
20696 esac
20697
20698
20699 cat >>confdefs.h <<_ACEOF
20700 #define HAVE_STAT_EMPTY_STRING_BUG 1
20701 _ACEOF
20702
20703 fi
20704
20705 for ac_func in vprintf
20706 do :
20707   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
20708 if test "x$ac_cv_func_vprintf" = xyes; then :
20709   cat >>confdefs.h <<_ACEOF
20710 #define HAVE_VPRINTF 1
20711 _ACEOF
20712
20713 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
20714 if test "x$ac_cv_func__doprnt" = xyes; then :
20715
20716 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
20717
20718 fi
20719
20720 fi
20721 done
20722
20723
20724 for ac_func in alarm atexit dup2 fdatasync ftruncate getcwd \
20725                gethostbyaddr gethostbyname gethostname getmntent \
20726                getnameinfo getrpcbyname getifaddrs \
20727                gettimeofday hasmntopt inet_ntoa innetgr memset mkdir pathconf \
20728                realpath rmdir select socket strcasecmp strchr strdup \
20729                strerror strrchr strtol strtoul sigprocmask
20730 do :
20731   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20732 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20733 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20734   cat >>confdefs.h <<_ACEOF
20735 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20736 _ACEOF
20737
20738 fi
20739 done
20740
20741
20742
20743 # The cast to long int works around a bug in the HP C Compiler
20744 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20745 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20746 # This bug is HP SR number 8606223364.
20747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
20748 $as_echo_n "checking size of short... " >&6; }
20749 if ${ac_cv_sizeof_short+:} false; then :
20750   $as_echo_n "(cached) " >&6
20751 else
20752   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
20753
20754 else
20755   if test "$ac_cv_type_short" = yes; then
20756      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20757 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20758 as_fn_error 77 "cannot compute sizeof (short)
20759 See \`config.log' for more details" "$LINENO" 5; }
20760    else
20761      ac_cv_sizeof_short=0
20762    fi
20763 fi
20764
20765 fi
20766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
20767 $as_echo "$ac_cv_sizeof_short" >&6; }
20768
20769
20770
20771 cat >>confdefs.h <<_ACEOF
20772 #define SIZEOF_SHORT $ac_cv_sizeof_short
20773 _ACEOF
20774
20775
20776 # The cast to long int works around a bug in the HP C Compiler
20777 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20778 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20779 # This bug is HP SR number 8606223364.
20780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
20781 $as_echo_n "checking size of int... " >&6; }
20782 if ${ac_cv_sizeof_int+:} false; then :
20783   $as_echo_n "(cached) " >&6
20784 else
20785   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
20786
20787 else
20788   if test "$ac_cv_type_int" = yes; then
20789      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20790 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20791 as_fn_error 77 "cannot compute sizeof (int)
20792 See \`config.log' for more details" "$LINENO" 5; }
20793    else
20794      ac_cv_sizeof_int=0
20795    fi
20796 fi
20797
20798 fi
20799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
20800 $as_echo "$ac_cv_sizeof_int" >&6; }
20801
20802
20803
20804 cat >>confdefs.h <<_ACEOF
20805 #define SIZEOF_INT $ac_cv_sizeof_int
20806 _ACEOF
20807
20808
20809 # The cast to long int works around a bug in the HP C Compiler
20810 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20811 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20812 # This bug is HP SR number 8606223364.
20813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
20814 $as_echo_n "checking size of long... " >&6; }
20815 if ${ac_cv_sizeof_long+:} false; then :
20816   $as_echo_n "(cached) " >&6
20817 else
20818   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
20819
20820 else
20821   if test "$ac_cv_type_long" = yes; then
20822      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20823 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20824 as_fn_error 77 "cannot compute sizeof (long)
20825 See \`config.log' for more details" "$LINENO" 5; }
20826    else
20827      ac_cv_sizeof_long=0
20828    fi
20829 fi
20830
20831 fi
20832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
20833 $as_echo "$ac_cv_sizeof_long" >&6; }
20834
20835
20836
20837 cat >>confdefs.h <<_ACEOF
20838 #define SIZEOF_LONG $ac_cv_sizeof_long
20839 _ACEOF
20840
20841
20842 # The cast to long int works around a bug in the HP C Compiler
20843 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20844 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20845 # This bug is HP SR number 8606223364.
20846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
20847 $as_echo_n "checking size of size_t... " >&6; }
20848 if ${ac_cv_sizeof_size_t+:} false; then :
20849   $as_echo_n "(cached) " >&6
20850 else
20851   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
20852
20853 else
20854   if test "$ac_cv_type_size_t" = yes; then
20855      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20856 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20857 as_fn_error 77 "cannot compute sizeof (size_t)
20858 See \`config.log' for more details" "$LINENO" 5; }
20859    else
20860      ac_cv_sizeof_size_t=0
20861    fi
20862 fi
20863
20864 fi
20865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
20866 $as_echo "$ac_cv_sizeof_size_t" >&6; }
20867
20868
20869
20870 cat >>confdefs.h <<_ACEOF
20871 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
20872 _ACEOF
20873
20874
20875 # The cast to long int works around a bug in the HP C Compiler
20876 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20877 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20878 # This bug is HP SR number 8606223364.
20879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of socklen_t" >&5
20880 $as_echo_n "checking size of socklen_t... " >&6; }
20881 if ${ac_cv_sizeof_socklen_t+:} false; then :
20882   $as_echo_n "(cached) " >&6
20883 else
20884   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (socklen_t))" "ac_cv_sizeof_socklen_t"        "$ac_includes_default"; then :
20885
20886 else
20887   if test "$ac_cv_type_socklen_t" = yes; then
20888      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20889 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20890 as_fn_error 77 "cannot compute sizeof (socklen_t)
20891 See \`config.log' for more details" "$LINENO" 5; }
20892    else
20893      ac_cv_sizeof_socklen_t=0
20894    fi
20895 fi
20896
20897 fi
20898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_socklen_t" >&5
20899 $as_echo "$ac_cv_sizeof_socklen_t" >&6; }
20900
20901
20902
20903 cat >>confdefs.h <<_ACEOF
20904 #define SIZEOF_SOCKLEN_T $ac_cv_sizeof_socklen_t
20905 _ACEOF
20906
20907
20908
20909
20910
20911 cat >>confdefs.h <<_ACEOF
20912 #define NFS_STATEDIR "$statedir"
20913 _ACEOF
20914
20915
20916 if test "x$cross_compiling" = "xno"; then
20917         CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"$CFLAGS"}
20918         CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-"$CXXFLAGS"}
20919         CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
20920         LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-"$LDFLAGS"}
20921 else
20922         CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-""}
20923         CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-""}
20924         CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
20925         LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
20926 fi
20927
20928
20929
20930
20931
20932
20933
20934
20935
20936
20937
20938 case $host in
20939   *)
20940     ARCHFLAGS="" ;;
20941 esac
20942
20943 my_am_cflags="-Wall -Wextra -Wstrict-prototypes $ARCHFLAGS -pipe"
20944
20945 AM_CFLAGS="$my_am_cflags"
20946
20947
20948 # Make sure that $ACLOCAL_FLAGS are used during a rebuild
20949 ACLOCAL_AMFLAGS="-I $ac_macro_dir \$(ACLOCAL_FLAGS)"
20950
20951
20952 ac_config_files="$ac_config_files Makefile linux-nfs/Makefile support/Makefile support/export/Makefile support/include/nfs/Makefile support/include/rpcsvc/Makefile support/include/sys/fs/Makefile support/include/sys/Makefile support/include/Makefile support/misc/Makefile support/nfs/Makefile support/nsm/Makefile tools/Makefile tools/locktest/Makefile tools/nlmtest/Makefile tools/rpcdebug/Makefile tools/rpcgen/Makefile tools/mountstats/Makefile tools/nfs-iostat/Makefile utils/Makefile utils/exportfs/Makefile utils/gssd/Makefile utils/idmapd/Makefile utils/mount/Makefile utils/mountd/Makefile utils/nfsd/Makefile utils/nfsstat/Makefile utils/nfsidmap/Makefile utils/showmount/Makefile utils/statd/Makefile tests/Makefile tests/nsm_client/Makefile"
20953
20954 cat >confcache <<\_ACEOF
20955 # This file is a shell script that caches the results of configure
20956 # tests run on this system so they can be shared between configure
20957 # scripts and configure runs, see configure's option --config-cache.
20958 # It is not useful on other systems.  If it contains results you don't
20959 # want to keep, you may remove or edit it.
20960 #
20961 # config.status only pays attention to the cache file if you give it
20962 # the --recheck option to rerun configure.
20963 #
20964 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20965 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20966 # following values.
20967
20968 _ACEOF
20969
20970 # The following way of writing the cache mishandles newlines in values,
20971 # but we know of no workaround that is simple, portable, and efficient.
20972 # So, we kill variables containing newlines.
20973 # Ultrix sh set writes to stderr and can't be redirected directly,
20974 # and sets the high bit in the cache file unless we assign to the vars.
20975 (
20976   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20977     eval ac_val=\$$ac_var
20978     case $ac_val in #(
20979     *${as_nl}*)
20980       case $ac_var in #(
20981       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20982 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20983       esac
20984       case $ac_var in #(
20985       _ | IFS | as_nl) ;; #(
20986       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20987       *) { eval $ac_var=; unset $ac_var;} ;;
20988       esac ;;
20989     esac
20990   done
20991
20992   (set) 2>&1 |
20993     case $as_nl`(ac_space=' '; set) 2>&1` in #(
20994     *${as_nl}ac_space=\ *)
20995       # `set' does not quote correctly, so add quotes: double-quote
20996       # substitution turns \\\\ into \\, and sed turns \\ into \.
20997       sed -n \
20998         "s/'/'\\\\''/g;
20999           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21000       ;; #(
21001     *)
21002       # `set' quotes correctly as required by POSIX, so do not add quotes.
21003       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21004       ;;
21005     esac |
21006     sort
21007 ) |
21008   sed '
21009      /^ac_cv_env_/b end
21010      t clear
21011      :clear
21012      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21013      t end
21014      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21015      :end' >>confcache
21016 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21017   if test -w "$cache_file"; then
21018     if test "x$cache_file" != "x/dev/null"; then
21019       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21020 $as_echo "$as_me: updating cache $cache_file" >&6;}
21021       if test ! -f "$cache_file" || test -h "$cache_file"; then
21022         cat confcache >"$cache_file"
21023       else
21024         case $cache_file in #(
21025         */* | ?:*)
21026           mv -f confcache "$cache_file"$$ &&
21027           mv -f "$cache_file"$$ "$cache_file" ;; #(
21028         *)
21029           mv -f confcache "$cache_file" ;;
21030         esac
21031       fi
21032     fi
21033   else
21034     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21035 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21036   fi
21037 fi
21038 rm -f confcache
21039
21040 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21041 # Let make expand exec_prefix.
21042 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21043
21044 DEFS=-DHAVE_CONFIG_H
21045
21046 ac_libobjs=
21047 ac_ltlibobjs=
21048 U=
21049 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21050   # 1. Remove the extension, and $U if already installed.
21051   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21052   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21053   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21054   #    will be set to the directory where LIBOBJS objects are built.
21055   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21056   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21057 done
21058 LIBOBJS=$ac_libobjs
21059
21060 LTLIBOBJS=$ac_ltlibobjs
21061
21062
21063  if test -n "$EXEEXT"; then
21064   am__EXEEXT_TRUE=
21065   am__EXEEXT_FALSE='#'
21066 else
21067   am__EXEEXT_TRUE='#'
21068   am__EXEEXT_FALSE=
21069 fi
21070
21071 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21072   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
21073 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21074 fi
21075 if test -z "${CONFIG_NFSV4_TRUE}" && test -z "${CONFIG_NFSV4_FALSE}"; then
21076   as_fn_error $? "conditional \"CONFIG_NFSV4\" was never defined.
21077 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21078 fi
21079 if test -z "${CONFIG_NFSV41_TRUE}" && test -z "${CONFIG_NFSV41_FALSE}"; then
21080   as_fn_error $? "conditional \"CONFIG_NFSV41\" was never defined.
21081 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21082 fi
21083 if test -z "${CONFIG_GSS_TRUE}" && test -z "${CONFIG_GSS_FALSE}"; then
21084   as_fn_error $? "conditional \"CONFIG_GSS\" was never defined.
21085 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21086 fi
21087 if test -z "${CONFIG_RPCGEN_TRUE}" && test -z "${CONFIG_RPCGEN_FALSE}"; then
21088   as_fn_error $? "conditional \"CONFIG_RPCGEN\" was never defined.
21089 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21090 fi
21091 if test -z "${CONFIG_MOUNT_TRUE}" && test -z "${CONFIG_MOUNT_FALSE}"; then
21092   as_fn_error $? "conditional \"CONFIG_MOUNT\" was never defined.
21093 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21094 fi
21095 if test -z "${CONFIG_IPV6_TRUE}" && test -z "${CONFIG_IPV6_FALSE}"; then
21096   as_fn_error $? "conditional \"CONFIG_IPV6\" was never defined.
21097 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21098 fi
21099 if test -z "${MOUNT_CONFIG_TRUE}" && test -z "${MOUNT_CONFIG_FALSE}"; then
21100   as_fn_error $? "conditional \"MOUNT_CONFIG\" was never defined.
21101 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21102 fi
21103 if test -z "${MOUNT_CONFIG_TRUE}" && test -z "${MOUNT_CONFIG_FALSE}"; then
21104   as_fn_error $? "conditional \"MOUNT_CONFIG\" was never defined.
21105 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21106 fi
21107 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21108   as_fn_error $? "conditional \"AMDEP\" was never defined.
21109 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21110 fi
21111 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21112   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21113 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21114 fi
21115 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21116   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
21117 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21118 fi
21119 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21120   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21121 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21122 fi
21123 if test -z "${CONFIG_NFSIDMAP_TRUE}" && test -z "${CONFIG_NFSIDMAP_FALSE}"; then
21124   as_fn_error $? "conditional \"CONFIG_NFSIDMAP\" was never defined.
21125 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21126 fi
21127 if test -z "${CONFIG_LIBMOUNT_TRUE}" && test -z "${CONFIG_LIBMOUNT_FALSE}"; then
21128   as_fn_error $? "conditional \"CONFIG_LIBMOUNT\" was never defined.
21129 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21130 fi
21131
21132 : "${CONFIG_STATUS=./config.status}"
21133 ac_write_fail=0
21134 ac_clean_files_save=$ac_clean_files
21135 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21136 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21137 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21138 as_write_fail=0
21139 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21140 #! $SHELL
21141 # Generated by $as_me.
21142 # Run this file to recreate the current configuration.
21143 # Compiler output produced by configure, useful for debugging
21144 # configure, is in config.log if it exists.
21145
21146 debug=false
21147 ac_cs_recheck=false
21148 ac_cs_silent=false
21149
21150 SHELL=\${CONFIG_SHELL-$SHELL}
21151 export SHELL
21152 _ASEOF
21153 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21154 ## -------------------- ##
21155 ## M4sh Initialization. ##
21156 ## -------------------- ##
21157
21158 # Be more Bourne compatible
21159 DUALCASE=1; export DUALCASE # for MKS sh
21160 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21161   emulate sh
21162   NULLCMD=:
21163   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21164   # is contrary to our usage.  Disable this feature.
21165   alias -g '${1+"$@"}'='"$@"'
21166   setopt NO_GLOB_SUBST
21167 else
21168   case `(set -o) 2>/dev/null` in #(
21169   *posix*) :
21170     set -o posix ;; #(
21171   *) :
21172      ;;
21173 esac
21174 fi
21175
21176
21177 as_nl='
21178 '
21179 export as_nl
21180 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21181 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21182 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21183 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21184 # Prefer a ksh shell builtin over an external printf program on Solaris,
21185 # but without wasting forks for bash or zsh.
21186 if test -z "$BASH_VERSION$ZSH_VERSION" \
21187     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21188   as_echo='print -r --'
21189   as_echo_n='print -rn --'
21190 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21191   as_echo='printf %s\n'
21192   as_echo_n='printf %s'
21193 else
21194   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21195     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21196     as_echo_n='/usr/ucb/echo -n'
21197   else
21198     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21199     as_echo_n_body='eval
21200       arg=$1;
21201       case $arg in #(
21202       *"$as_nl"*)
21203         expr "X$arg" : "X\\(.*\\)$as_nl";
21204         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21205       esac;
21206       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21207     '
21208     export as_echo_n_body
21209     as_echo_n='sh -c $as_echo_n_body as_echo'
21210   fi
21211   export as_echo_body
21212   as_echo='sh -c $as_echo_body as_echo'
21213 fi
21214
21215 # The user is always right.
21216 if test "${PATH_SEPARATOR+set}" != set; then
21217   PATH_SEPARATOR=:
21218   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21219     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21220       PATH_SEPARATOR=';'
21221   }
21222 fi
21223
21224
21225 # IFS
21226 # We need space, tab and new line, in precisely that order.  Quoting is
21227 # there to prevent editors from complaining about space-tab.
21228 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21229 # splitting by setting IFS to empty value.)
21230 IFS=" ""        $as_nl"
21231
21232 # Find who we are.  Look in the path if we contain no directory separator.
21233 as_myself=
21234 case $0 in #((
21235   *[\\/]* ) as_myself=$0 ;;
21236   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21237 for as_dir in $PATH
21238 do
21239   IFS=$as_save_IFS
21240   test -z "$as_dir" && as_dir=.
21241     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21242   done
21243 IFS=$as_save_IFS
21244
21245      ;;
21246 esac
21247 # We did not find ourselves, most probably we were run as `sh COMMAND'
21248 # in which case we are not to be found in the path.
21249 if test "x$as_myself" = x; then
21250   as_myself=$0
21251 fi
21252 if test ! -f "$as_myself"; then
21253   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21254   exit 1
21255 fi
21256
21257 # Unset variables that we do not need and which cause bugs (e.g. in
21258 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
21259 # suppresses any "Segmentation fault" message there.  '((' could
21260 # trigger a bug in pdksh 5.2.14.
21261 for as_var in BASH_ENV ENV MAIL MAILPATH
21262 do eval test x\${$as_var+set} = xset \
21263   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21264 done
21265 PS1='$ '
21266 PS2='> '
21267 PS4='+ '
21268
21269 # NLS nuisances.
21270 LC_ALL=C
21271 export LC_ALL
21272 LANGUAGE=C
21273 export LANGUAGE
21274
21275 # CDPATH.
21276 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21277
21278
21279 # as_fn_error STATUS ERROR [LINENO LOG_FD]
21280 # ----------------------------------------
21281 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21282 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21283 # script with STATUS, using 1 if that was 0.
21284 as_fn_error ()
21285 {
21286   as_status=$1; test $as_status -eq 0 && as_status=1
21287   if test "$4"; then
21288     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21289     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21290   fi
21291   $as_echo "$as_me: error: $2" >&2
21292   as_fn_exit $as_status
21293 } # as_fn_error
21294
21295
21296 # as_fn_set_status STATUS
21297 # -----------------------
21298 # Set $? to STATUS, without forking.
21299 as_fn_set_status ()
21300 {
21301   return $1
21302 } # as_fn_set_status
21303
21304 # as_fn_exit STATUS
21305 # -----------------
21306 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21307 as_fn_exit ()
21308 {
21309   set +e
21310   as_fn_set_status $1
21311   exit $1
21312 } # as_fn_exit
21313
21314 # as_fn_unset VAR
21315 # ---------------
21316 # Portably unset VAR.
21317 as_fn_unset ()
21318 {
21319   { eval $1=; unset $1;}
21320 }
21321 as_unset=as_fn_unset
21322 # as_fn_append VAR VALUE
21323 # ----------------------
21324 # Append the text in VALUE to the end of the definition contained in VAR. Take
21325 # advantage of any shell optimizations that allow amortized linear growth over
21326 # repeated appends, instead of the typical quadratic growth present in naive
21327 # implementations.
21328 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
21329   eval 'as_fn_append ()
21330   {
21331     eval $1+=\$2
21332   }'
21333 else
21334   as_fn_append ()
21335   {
21336     eval $1=\$$1\$2
21337   }
21338 fi # as_fn_append
21339
21340 # as_fn_arith ARG...
21341 # ------------------
21342 # Perform arithmetic evaluation on the ARGs, and store the result in the
21343 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21344 # must be portable across $(()) and expr.
21345 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
21346   eval 'as_fn_arith ()
21347   {
21348     as_val=$(( $* ))
21349   }'
21350 else
21351   as_fn_arith ()
21352   {
21353     as_val=`expr "$@" || test $? -eq 1`
21354   }
21355 fi # as_fn_arith
21356
21357
21358 if expr a : '\(a\)' >/dev/null 2>&1 &&
21359    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21360   as_expr=expr
21361 else
21362   as_expr=false
21363 fi
21364
21365 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21366   as_basename=basename
21367 else
21368   as_basename=false
21369 fi
21370
21371 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21372   as_dirname=dirname
21373 else
21374   as_dirname=false
21375 fi
21376
21377 as_me=`$as_basename -- "$0" ||
21378 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21379          X"$0" : 'X\(//\)$' \| \
21380          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21381 $as_echo X/"$0" |
21382     sed '/^.*\/\([^/][^/]*\)\/*$/{
21383             s//\1/
21384             q
21385           }
21386           /^X\/\(\/\/\)$/{
21387             s//\1/
21388             q
21389           }
21390           /^X\/\(\/\).*/{
21391             s//\1/
21392             q
21393           }
21394           s/.*/./; q'`
21395
21396 # Avoid depending upon Character Ranges.
21397 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21398 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21399 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21400 as_cr_digits='0123456789'
21401 as_cr_alnum=$as_cr_Letters$as_cr_digits
21402
21403 ECHO_C= ECHO_N= ECHO_T=
21404 case `echo -n x` in #(((((
21405 -n*)
21406   case `echo 'xy\c'` in
21407   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21408   xy)  ECHO_C='\c';;
21409   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
21410        ECHO_T=' ';;
21411   esac;;
21412 *)
21413   ECHO_N='-n';;
21414 esac
21415
21416 rm -f conf$$ conf$$.exe conf$$.file
21417 if test -d conf$$.dir; then
21418   rm -f conf$$.dir/conf$$.file
21419 else
21420   rm -f conf$$.dir
21421   mkdir conf$$.dir 2>/dev/null
21422 fi
21423 if (echo >conf$$.file) 2>/dev/null; then
21424   if ln -s conf$$.file conf$$ 2>/dev/null; then
21425     as_ln_s='ln -s'
21426     # ... but there are two gotchas:
21427     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21428     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21429     # In both cases, we have to default to `cp -p'.
21430     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21431       as_ln_s='cp -p'
21432   elif ln conf$$.file conf$$ 2>/dev/null; then
21433     as_ln_s=ln
21434   else
21435     as_ln_s='cp -p'
21436   fi
21437 else
21438   as_ln_s='cp -p'
21439 fi
21440 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21441 rmdir conf$$.dir 2>/dev/null
21442
21443
21444 # as_fn_mkdir_p
21445 # -------------
21446 # Create "$as_dir" as a directory, including parents if necessary.
21447 as_fn_mkdir_p ()
21448 {
21449
21450   case $as_dir in #(
21451   -*) as_dir=./$as_dir;;
21452   esac
21453   test -d "$as_dir" || eval $as_mkdir_p || {
21454     as_dirs=
21455     while :; do
21456       case $as_dir in #(
21457       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21458       *) as_qdir=$as_dir;;
21459       esac
21460       as_dirs="'$as_qdir' $as_dirs"
21461       as_dir=`$as_dirname -- "$as_dir" ||
21462 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21463          X"$as_dir" : 'X\(//\)[^/]' \| \
21464          X"$as_dir" : 'X\(//\)$' \| \
21465          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21466 $as_echo X"$as_dir" |
21467     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21468             s//\1/
21469             q
21470           }
21471           /^X\(\/\/\)[^/].*/{
21472             s//\1/
21473             q
21474           }
21475           /^X\(\/\/\)$/{
21476             s//\1/
21477             q
21478           }
21479           /^X\(\/\).*/{
21480             s//\1/
21481             q
21482           }
21483           s/.*/./; q'`
21484       test -d "$as_dir" && break
21485     done
21486     test -z "$as_dirs" || eval "mkdir $as_dirs"
21487   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21488
21489
21490 } # as_fn_mkdir_p
21491 if mkdir -p . 2>/dev/null; then
21492   as_mkdir_p='mkdir -p "$as_dir"'
21493 else
21494   test -d ./-p && rmdir ./-p
21495   as_mkdir_p=false
21496 fi
21497
21498 if test -x / >/dev/null 2>&1; then
21499   as_test_x='test -x'
21500 else
21501   if ls -dL / >/dev/null 2>&1; then
21502     as_ls_L_option=L
21503   else
21504     as_ls_L_option=
21505   fi
21506   as_test_x='
21507     eval sh -c '\''
21508       if test -d "$1"; then
21509         test -d "$1/.";
21510       else
21511         case $1 in #(
21512         -*)set "./$1";;
21513         esac;
21514         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
21515         ???[sx]*):;;*)false;;esac;fi
21516     '\'' sh
21517   '
21518 fi
21519 as_executable_p=$as_test_x
21520
21521 # Sed expression to map a string onto a valid CPP name.
21522 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21523
21524 # Sed expression to map a string onto a valid variable name.
21525 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21526
21527
21528 exec 6>&1
21529 ## ----------------------------------- ##
21530 ## Main body of $CONFIG_STATUS script. ##
21531 ## ----------------------------------- ##
21532 _ASEOF
21533 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21534
21535 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21536 # Save the log message, to keep $0 and so on meaningful, and to
21537 # report actual input values of CONFIG_FILES etc. instead of their
21538 # values after options handling.
21539 ac_log="
21540 This file was extended by linux nfs-utils $as_me 1.2.4, which was
21541 generated by GNU Autoconf 2.68.  Invocation command line was
21542
21543   CONFIG_FILES    = $CONFIG_FILES
21544   CONFIG_HEADERS  = $CONFIG_HEADERS
21545   CONFIG_LINKS    = $CONFIG_LINKS
21546   CONFIG_COMMANDS = $CONFIG_COMMANDS
21547   $ $0 $@
21548
21549 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21550 "
21551
21552 _ACEOF
21553
21554 case $ac_config_files in *"
21555 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21556 esac
21557
21558 case $ac_config_headers in *"
21559 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21560 esac
21561
21562
21563 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21564 # Files that config.status was made for.
21565 config_files="$ac_config_files"
21566 config_headers="$ac_config_headers"
21567 config_commands="$ac_config_commands"
21568
21569 _ACEOF
21570
21571 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21572 ac_cs_usage="\
21573 \`$as_me' instantiates files and other configuration actions
21574 from templates according to the current configuration.  Unless the files
21575 and actions are specified as TAGs, all are instantiated by default.
21576
21577 Usage: $0 [OPTION]... [TAG]...
21578
21579   -h, --help       print this help, then exit
21580   -V, --version    print version number and configuration settings, then exit
21581       --config     print configuration, then exit
21582   -q, --quiet, --silent
21583                    do not print progress messages
21584   -d, --debug      don't remove temporary files
21585       --recheck    update $as_me by reconfiguring in the same conditions
21586       --file=FILE[:TEMPLATE]
21587                    instantiate the configuration file FILE
21588       --header=FILE[:TEMPLATE]
21589                    instantiate the configuration header FILE
21590
21591 Configuration files:
21592 $config_files
21593
21594 Configuration headers:
21595 $config_headers
21596
21597 Configuration commands:
21598 $config_commands
21599
21600 Report bugs to <linux-nfs@vger.kernel.org>."
21601
21602 _ACEOF
21603 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21604 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21605 ac_cs_version="\\
21606 linux nfs-utils config.status 1.2.4
21607 configured by $0, generated by GNU Autoconf 2.68,
21608   with options \\"\$ac_cs_config\\"
21609
21610 Copyright (C) 2010 Free Software Foundation, Inc.
21611 This config.status script is free software; the Free Software Foundation
21612 gives unlimited permission to copy, distribute and modify it."
21613
21614 ac_pwd='$ac_pwd'
21615 srcdir='$srcdir'
21616 INSTALL='$INSTALL'
21617 MKDIR_P='$MKDIR_P'
21618 AWK='$AWK'
21619 test -n "\$AWK" || AWK=awk
21620 _ACEOF
21621
21622 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21623 # The default lists apply if the user does not specify any file.
21624 ac_need_defaults=:
21625 while test $# != 0
21626 do
21627   case $1 in
21628   --*=?*)
21629     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21630     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21631     ac_shift=:
21632     ;;
21633   --*=)
21634     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21635     ac_optarg=
21636     ac_shift=:
21637     ;;
21638   *)
21639     ac_option=$1
21640     ac_optarg=$2
21641     ac_shift=shift
21642     ;;
21643   esac
21644
21645   case $ac_option in
21646   # Handling of the options.
21647   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21648     ac_cs_recheck=: ;;
21649   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21650     $as_echo "$ac_cs_version"; exit ;;
21651   --config | --confi | --conf | --con | --co | --c )
21652     $as_echo "$ac_cs_config"; exit ;;
21653   --debug | --debu | --deb | --de | --d | -d )
21654     debug=: ;;
21655   --file | --fil | --fi | --f )
21656     $ac_shift
21657     case $ac_optarg in
21658     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21659     '') as_fn_error $? "missing file argument" ;;
21660     esac
21661     as_fn_append CONFIG_FILES " '$ac_optarg'"
21662     ac_need_defaults=false;;
21663   --header | --heade | --head | --hea )
21664     $ac_shift
21665     case $ac_optarg in
21666     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21667     esac
21668     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21669     ac_need_defaults=false;;
21670   --he | --h)
21671     # Conflict between --help and --header
21672     as_fn_error $? "ambiguous option: \`$1'
21673 Try \`$0 --help' for more information.";;
21674   --help | --hel | -h )
21675     $as_echo "$ac_cs_usage"; exit ;;
21676   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21677   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21678     ac_cs_silent=: ;;
21679
21680   # This is an error.
21681   -*) as_fn_error $? "unrecognized option: \`$1'
21682 Try \`$0 --help' for more information." ;;
21683
21684   *) as_fn_append ac_config_targets " $1"
21685      ac_need_defaults=false ;;
21686
21687   esac
21688   shift
21689 done
21690
21691 ac_configure_extra_args=
21692
21693 if $ac_cs_silent; then
21694   exec 6>/dev/null
21695   ac_configure_extra_args="$ac_configure_extra_args --silent"
21696 fi
21697
21698 _ACEOF
21699 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21700 if \$ac_cs_recheck; then
21701   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21702   shift
21703   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21704   CONFIG_SHELL='$SHELL'
21705   export CONFIG_SHELL
21706   exec "\$@"
21707 fi
21708
21709 _ACEOF
21710 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21711 exec 5>>config.log
21712 {
21713   echo
21714   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21715 ## Running $as_me. ##
21716 _ASBOX
21717   $as_echo "$ac_log"
21718 } >&5
21719
21720 _ACEOF
21721 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21722 #
21723 # INIT-COMMANDS
21724 #
21725 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21726
21727
21728 # The HP-UX ksh and POSIX shell print the target directory to stdout
21729 # if CDPATH is set.
21730 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21731
21732 sed_quote_subst='$sed_quote_subst'
21733 double_quote_subst='$double_quote_subst'
21734 delay_variable_subst='$delay_variable_subst'
21735 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21736 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21737 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21738 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21739 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21740 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21741 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21742 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21743 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21744 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21745 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21746 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21747 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21748 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21749 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21750 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21751 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21752 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21753 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21754 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21755 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21756 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21757 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21758 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21759 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21760 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21761 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21762 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21763 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21764 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21765 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21766 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21767 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21768 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21769 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21770 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21771 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21772 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21773 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21774 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21775 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21776 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21777 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21778 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21779 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21780 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21781 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21782 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21783 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21784 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21785 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21786 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21787 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21788 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21789 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21790 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"`'
21791 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21792 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21793 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21794 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21795 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21796 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21797 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21798 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21799 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21800 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21801 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21802 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21803 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21804 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21805 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21806 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21807 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21808 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21809 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21810 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21811 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21812 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21813 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21814 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21815 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21816 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21817 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21818 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21819 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21820 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21821 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21822 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21823 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21824 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21825 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
21826 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21827 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21828 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21829 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21830 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21831 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21832 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21833 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21834 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21835 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21836 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21837 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21838 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21839 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21840 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21841 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21842 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21843 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21844 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21845 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21846 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21847 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21848 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21849 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21850 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21851 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21852 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21853 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21854 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21855 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21856 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21857 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21858 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
21859 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21860 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21861 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21862 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21863 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21864 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21865 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
21866 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
21867 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
21868 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
21869 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
21870 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
21871 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
21872 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
21873 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21874 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21875 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
21876 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
21877 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
21878 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
21879 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
21880 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
21881 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
21882 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
21883 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
21884 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21885 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21886 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
21887 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21888 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21889 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21890 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21891 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21892 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21893 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
21894 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21895 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21896 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21897 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
21898 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
21899 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
21900 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
21901 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
21902 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
21903 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
21904 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
21905 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
21906 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
21907 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21908 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21909 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21910 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21911 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21912 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
21913 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
21914 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
21915 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21916 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21917 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
21918 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
21919 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
21920
21921 LTCC='$LTCC'
21922 LTCFLAGS='$LTCFLAGS'
21923 compiler='$compiler_DEFAULT'
21924
21925 # A function that is used when there is no print builtin or printf.
21926 func_fallback_echo ()
21927 {
21928   eval 'cat <<_LTECHO_EOF
21929 \$1
21930 _LTECHO_EOF'
21931 }
21932
21933 # Quote evaled strings.
21934 for var in SHELL \
21935 ECHO \
21936 SED \
21937 GREP \
21938 EGREP \
21939 FGREP \
21940 LD \
21941 NM \
21942 LN_S \
21943 lt_SP2NL \
21944 lt_NL2SP \
21945 reload_flag \
21946 OBJDUMP \
21947 deplibs_check_method \
21948 file_magic_cmd \
21949 file_magic_glob \
21950 want_nocaseglob \
21951 DLLTOOL \
21952 sharedlib_from_linklib_cmd \
21953 AR \
21954 AR_FLAGS \
21955 archiver_list_spec \
21956 STRIP \
21957 RANLIB \
21958 CC \
21959 CFLAGS \
21960 compiler \
21961 lt_cv_sys_global_symbol_pipe \
21962 lt_cv_sys_global_symbol_to_cdecl \
21963 lt_cv_sys_global_symbol_to_c_name_address \
21964 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21965 nm_file_list_spec \
21966 lt_prog_compiler_no_builtin_flag \
21967 lt_prog_compiler_pic \
21968 lt_prog_compiler_wl \
21969 lt_prog_compiler_static \
21970 lt_cv_prog_compiler_c_o \
21971 need_locks \
21972 MANIFEST_TOOL \
21973 DSYMUTIL \
21974 NMEDIT \
21975 LIPO \
21976 OTOOL \
21977 OTOOL64 \
21978 shrext_cmds \
21979 export_dynamic_flag_spec \
21980 whole_archive_flag_spec \
21981 compiler_needs_object \
21982 with_gnu_ld \
21983 allow_undefined_flag \
21984 no_undefined_flag \
21985 hardcode_libdir_flag_spec \
21986 hardcode_libdir_flag_spec_ld \
21987 hardcode_libdir_separator \
21988 exclude_expsyms \
21989 include_expsyms \
21990 file_list_spec \
21991 variables_saved_for_relink \
21992 libname_spec \
21993 library_names_spec \
21994 soname_spec \
21995 install_override_mode \
21996 finish_eval \
21997 old_striplib \
21998 striplib \
21999 compiler_lib_search_dirs \
22000 predep_objects \
22001 postdep_objects \
22002 predeps \
22003 postdeps \
22004 compiler_lib_search_path \
22005 LD_CXX \
22006 reload_flag_CXX \
22007 compiler_CXX \
22008 lt_prog_compiler_no_builtin_flag_CXX \
22009 lt_prog_compiler_pic_CXX \
22010 lt_prog_compiler_wl_CXX \
22011 lt_prog_compiler_static_CXX \
22012 lt_cv_prog_compiler_c_o_CXX \
22013 export_dynamic_flag_spec_CXX \
22014 whole_archive_flag_spec_CXX \
22015 compiler_needs_object_CXX \
22016 with_gnu_ld_CXX \
22017 allow_undefined_flag_CXX \
22018 no_undefined_flag_CXX \
22019 hardcode_libdir_flag_spec_CXX \
22020 hardcode_libdir_flag_spec_ld_CXX \
22021 hardcode_libdir_separator_CXX \
22022 exclude_expsyms_CXX \
22023 include_expsyms_CXX \
22024 file_list_spec_CXX \
22025 compiler_lib_search_dirs_CXX \
22026 predep_objects_CXX \
22027 postdep_objects_CXX \
22028 predeps_CXX \
22029 postdeps_CXX \
22030 compiler_lib_search_path_CXX; do
22031     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22032     *[\\\\\\\`\\"\\\$]*)
22033       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
22034       ;;
22035     *)
22036       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22037       ;;
22038     esac
22039 done
22040
22041 # Double-quote double-evaled strings.
22042 for var in reload_cmds \
22043 old_postinstall_cmds \
22044 old_postuninstall_cmds \
22045 old_archive_cmds \
22046 extract_expsyms_cmds \
22047 old_archive_from_new_cmds \
22048 old_archive_from_expsyms_cmds \
22049 archive_cmds \
22050 archive_expsym_cmds \
22051 module_cmds \
22052 module_expsym_cmds \
22053 export_symbols_cmds \
22054 prelink_cmds \
22055 postlink_cmds \
22056 postinstall_cmds \
22057 postuninstall_cmds \
22058 finish_cmds \
22059 sys_lib_search_path_spec \
22060 sys_lib_dlsearch_path_spec \
22061 reload_cmds_CXX \
22062 old_archive_cmds_CXX \
22063 old_archive_from_new_cmds_CXX \
22064 old_archive_from_expsyms_cmds_CXX \
22065 archive_cmds_CXX \
22066 archive_expsym_cmds_CXX \
22067 module_cmds_CXX \
22068 module_expsym_cmds_CXX \
22069 export_symbols_cmds_CXX \
22070 prelink_cmds_CXX \
22071 postlink_cmds_CXX; do
22072     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22073     *[\\\\\\\`\\"\\\$]*)
22074       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
22075       ;;
22076     *)
22077       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22078       ;;
22079     esac
22080 done
22081
22082 ac_aux_dir='$ac_aux_dir'
22083 xsi_shell='$xsi_shell'
22084 lt_shell_append='$lt_shell_append'
22085
22086 # See if we are running on zsh, and set the options which allow our
22087 # commands through without removal of \ escapes INIT.
22088 if test -n "\${ZSH_VERSION+set}" ; then
22089    setopt NO_GLOB_SUBST
22090 fi
22091
22092
22093     PACKAGE='$PACKAGE'
22094     VERSION='$VERSION'
22095     TIMESTAMP='$TIMESTAMP'
22096     RM='$RM'
22097     ofile='$ofile'
22098
22099
22100
22101
22102
22103
22104 _ACEOF
22105
22106 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22107
22108 # Handling of arguments.
22109 for ac_config_target in $ac_config_targets
22110 do
22111   case $ac_config_target in
22112     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22113     "support/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS support/include/config.h" ;;
22114     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22115     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22116     "linux-nfs/Makefile") CONFIG_FILES="$CONFIG_FILES linux-nfs/Makefile" ;;
22117     "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
22118     "support/export/Makefile") CONFIG_FILES="$CONFIG_FILES support/export/Makefile" ;;
22119     "support/include/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/nfs/Makefile" ;;
22120     "support/include/rpcsvc/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/rpcsvc/Makefile" ;;
22121     "support/include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/fs/Makefile" ;;
22122     "support/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/Makefile" ;;
22123     "support/include/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/Makefile" ;;
22124     "support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES support/misc/Makefile" ;;
22125     "support/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/nfs/Makefile" ;;
22126     "support/nsm/Makefile") CONFIG_FILES="$CONFIG_FILES support/nsm/Makefile" ;;
22127     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
22128     "tools/locktest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/locktest/Makefile" ;;
22129     "tools/nlmtest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/nlmtest/Makefile" ;;
22130     "tools/rpcdebug/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcdebug/Makefile" ;;
22131     "tools/rpcgen/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcgen/Makefile" ;;
22132     "tools/mountstats/Makefile") CONFIG_FILES="$CONFIG_FILES tools/mountstats/Makefile" ;;
22133     "tools/nfs-iostat/Makefile") CONFIG_FILES="$CONFIG_FILES tools/nfs-iostat/Makefile" ;;
22134     "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
22135     "utils/exportfs/Makefile") CONFIG_FILES="$CONFIG_FILES utils/exportfs/Makefile" ;;
22136     "utils/gssd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/gssd/Makefile" ;;
22137     "utils/idmapd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/idmapd/Makefile" ;;
22138     "utils/mount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mount/Makefile" ;;
22139     "utils/mountd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mountd/Makefile" ;;
22140     "utils/nfsd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsd/Makefile" ;;
22141     "utils/nfsstat/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsstat/Makefile" ;;
22142     "utils/nfsidmap/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsidmap/Makefile" ;;
22143     "utils/showmount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/showmount/Makefile" ;;
22144     "utils/statd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/statd/Makefile" ;;
22145     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
22146     "tests/nsm_client/Makefile") CONFIG_FILES="$CONFIG_FILES tests/nsm_client/Makefile" ;;
22147
22148   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22149   esac
22150 done
22151
22152
22153 # If the user did not use the arguments to specify the items to instantiate,
22154 # then the envvar interface is used.  Set only those that are not.
22155 # We use the long form for the default assignment because of an extremely
22156 # bizarre bug on SunOS 4.1.3.
22157 if $ac_need_defaults; then
22158   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22159   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22160   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22161 fi
22162
22163 # Have a temporary directory for convenience.  Make it in the build tree
22164 # simply because there is no reason against having it here, and in addition,
22165 # creating and moving files from /tmp can sometimes cause problems.
22166 # Hook for its removal unless debugging.
22167 # Note that there is a small window in which the directory will not be cleaned:
22168 # after its creation but before its name has been assigned to `$tmp'.
22169 $debug ||
22170 {
22171   tmp= ac_tmp=
22172   trap 'exit_status=$?
22173   : "${ac_tmp:=$tmp}"
22174   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22175 ' 0
22176   trap 'as_fn_exit 1' 1 2 13 15
22177 }
22178 # Create a (secure) tmp directory for tmp files.
22179
22180 {
22181   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22182   test -d "$tmp"
22183 }  ||
22184 {
22185   tmp=./conf$$-$RANDOM
22186   (umask 077 && mkdir "$tmp")
22187 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22188 ac_tmp=$tmp
22189
22190 # Set up the scripts for CONFIG_FILES section.
22191 # No need to generate them if there are no CONFIG_FILES.
22192 # This happens for instance with `./config.status config.h'.
22193 if test -n "$CONFIG_FILES"; then
22194
22195
22196 ac_cr=`echo X | tr X '\015'`
22197 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22198 # But we know of no other shell where ac_cr would be empty at this
22199 # point, so we can use a bashism as a fallback.
22200 if test "x$ac_cr" = x; then
22201   eval ac_cr=\$\'\\r\'
22202 fi
22203 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22204 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22205   ac_cs_awk_cr='\\r'
22206 else
22207   ac_cs_awk_cr=$ac_cr
22208 fi
22209
22210 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22211 _ACEOF
22212
22213
22214 {
22215   echo "cat >conf$$subs.awk <<_ACEOF" &&
22216   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22217   echo "_ACEOF"
22218 } >conf$$subs.sh ||
22219   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22220 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22221 ac_delim='%!_!# '
22222 for ac_last_try in false false false false false :; do
22223   . ./conf$$subs.sh ||
22224     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22225
22226   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22227   if test $ac_delim_n = $ac_delim_num; then
22228     break
22229   elif $ac_last_try; then
22230     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22231   else
22232     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22233   fi
22234 done
22235 rm -f conf$$subs.sh
22236
22237 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22238 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22239 _ACEOF
22240 sed -n '
22241 h
22242 s/^/S["/; s/!.*/"]=/
22243 p
22244 g
22245 s/^[^!]*!//
22246 :repl
22247 t repl
22248 s/'"$ac_delim"'$//
22249 t delim
22250 :nl
22251 h
22252 s/\(.\{148\}\)..*/\1/
22253 t more1
22254 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22255 p
22256 n
22257 b repl
22258 :more1
22259 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22260 p
22261 g
22262 s/.\{148\}//
22263 t nl
22264 :delim
22265 h
22266 s/\(.\{148\}\)..*/\1/
22267 t more2
22268 s/["\\]/\\&/g; s/^/"/; s/$/"/
22269 p
22270 b
22271 :more2
22272 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22273 p
22274 g
22275 s/.\{148\}//
22276 t delim
22277 ' <conf$$subs.awk | sed '
22278 /^[^""]/{
22279   N
22280   s/\n//
22281 }
22282 ' >>$CONFIG_STATUS || ac_write_fail=1
22283 rm -f conf$$subs.awk
22284 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22285 _ACAWK
22286 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22287   for (key in S) S_is_set[key] = 1
22288   FS = "\a"
22289
22290 }
22291 {
22292   line = $ 0
22293   nfields = split(line, field, "@")
22294   substed = 0
22295   len = length(field[1])
22296   for (i = 2; i < nfields; i++) {
22297     key = field[i]
22298     keylen = length(key)
22299     if (S_is_set[key]) {
22300       value = S[key]
22301       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22302       len += length(value) + length(field[++i])
22303       substed = 1
22304     } else
22305       len += 1 + keylen
22306   }
22307
22308   print line
22309 }
22310
22311 _ACAWK
22312 _ACEOF
22313 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22314 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22315   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22316 else
22317   cat
22318 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22319   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22320 _ACEOF
22321
22322 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22323 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22324 # trailing colons and then remove the whole line if VPATH becomes empty
22325 # (actually we leave an empty line to preserve line numbers).
22326 if test "x$srcdir" = x.; then
22327   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
22328 h
22329 s///
22330 s/^/:/
22331 s/[      ]*$/:/
22332 s/:\$(srcdir):/:/g
22333 s/:\${srcdir}:/:/g
22334 s/:@srcdir@:/:/g
22335 s/^:*//
22336 s/:*$//
22337 x
22338 s/\(=[   ]*\).*/\1/
22339 G
22340 s/\n//
22341 s/^[^=]*=[       ]*$//
22342 }'
22343 fi
22344
22345 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22346 fi # test -n "$CONFIG_FILES"
22347
22348 # Set up the scripts for CONFIG_HEADERS section.
22349 # No need to generate them if there are no CONFIG_HEADERS.
22350 # This happens for instance with `./config.status Makefile'.
22351 if test -n "$CONFIG_HEADERS"; then
22352 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22353 BEGIN {
22354 _ACEOF
22355
22356 # Transform confdefs.h into an awk script `defines.awk', embedded as
22357 # here-document in config.status, that substitutes the proper values into
22358 # config.h.in to produce config.h.
22359
22360 # Create a delimiter string that does not exist in confdefs.h, to ease
22361 # handling of long lines.
22362 ac_delim='%!_!# '
22363 for ac_last_try in false false :; do
22364   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22365   if test -z "$ac_tt"; then
22366     break
22367   elif $ac_last_try; then
22368     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22369   else
22370     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22371   fi
22372 done
22373
22374 # For the awk script, D is an array of macro values keyed by name,
22375 # likewise P contains macro parameters if any.  Preserve backslash
22376 # newline sequences.
22377
22378 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22379 sed -n '
22380 s/.\{148\}/&'"$ac_delim"'/g
22381 t rset
22382 :rset
22383 s/^[     ]*#[    ]*define[       ][      ]*/ /
22384 t def
22385 d
22386 :def
22387 s/\\$//
22388 t bsnl
22389 s/["\\]/\\&/g
22390 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
22391 D["\1"]=" \3"/p
22392 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
22393 d
22394 :bsnl
22395 s/["\\]/\\&/g
22396 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
22397 D["\1"]=" \3\\\\\\n"\\/p
22398 t cont
22399 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22400 t cont
22401 d
22402 :cont
22403 n
22404 s/.\{148\}/&'"$ac_delim"'/g
22405 t clear
22406 :clear
22407 s/\\$//
22408 t bsnlc
22409 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22410 d
22411 :bsnlc
22412 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22413 b cont
22414 ' <confdefs.h | sed '
22415 s/'"$ac_delim"'/"\\\
22416 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22417
22418 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22419   for (key in D) D_is_set[key] = 1
22420   FS = "\a"
22421 }
22422 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22423   line = \$ 0
22424   split(line, arg, " ")
22425   if (arg[1] == "#") {
22426     defundef = arg[2]
22427     mac1 = arg[3]
22428   } else {
22429     defundef = substr(arg[1], 2)
22430     mac1 = arg[2]
22431   }
22432   split(mac1, mac2, "(") #)
22433   macro = mac2[1]
22434   prefix = substr(line, 1, index(line, defundef) - 1)
22435   if (D_is_set[macro]) {
22436     # Preserve the white space surrounding the "#".
22437     print prefix "define", macro P[macro] D[macro]
22438     next
22439   } else {
22440     # Replace #undef with comments.  This is necessary, for example,
22441     # in the case of _POSIX_SOURCE, which is predefined and required
22442     # on some systems where configure will not decide to define it.
22443     if (defundef == "undef") {
22444       print "/*", prefix defundef, macro, "*/"
22445       next
22446     }
22447   }
22448 }
22449 { print }
22450 _ACAWK
22451 _ACEOF
22452 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22453   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22454 fi # test -n "$CONFIG_HEADERS"
22455
22456
22457 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
22458 shift
22459 for ac_tag
22460 do
22461   case $ac_tag in
22462   :[FHLC]) ac_mode=$ac_tag; continue;;
22463   esac
22464   case $ac_mode$ac_tag in
22465   :[FHL]*:*);;
22466   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22467   :[FH]-) ac_tag=-:-;;
22468   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22469   esac
22470   ac_save_IFS=$IFS
22471   IFS=:
22472   set x $ac_tag
22473   IFS=$ac_save_IFS
22474   shift
22475   ac_file=$1
22476   shift
22477
22478   case $ac_mode in
22479   :L) ac_source=$1;;
22480   :[FH])
22481     ac_file_inputs=
22482     for ac_f
22483     do
22484       case $ac_f in
22485       -) ac_f="$ac_tmp/stdin";;
22486       *) # Look for the file first in the build tree, then in the source tree
22487          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22488          # because $ac_f cannot contain `:'.
22489          test -f "$ac_f" ||
22490            case $ac_f in
22491            [\\/$]*) false;;
22492            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22493            esac ||
22494            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22495       esac
22496       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22497       as_fn_append ac_file_inputs " '$ac_f'"
22498     done
22499
22500     # Let's still pretend it is `configure' which instantiates (i.e., don't
22501     # use $as_me), people would be surprised to read:
22502     #    /* config.h.  Generated by config.status.  */
22503     configure_input='Generated from '`
22504           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22505         `' by configure.'
22506     if test x"$ac_file" != x-; then
22507       configure_input="$ac_file.  $configure_input"
22508       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22509 $as_echo "$as_me: creating $ac_file" >&6;}
22510     fi
22511     # Neutralize special characters interpreted by sed in replacement strings.
22512     case $configure_input in #(
22513     *\&* | *\|* | *\\* )
22514        ac_sed_conf_input=`$as_echo "$configure_input" |
22515        sed 's/[\\\\&|]/\\\\&/g'`;; #(
22516     *) ac_sed_conf_input=$configure_input;;
22517     esac
22518
22519     case $ac_tag in
22520     *:-:* | *:-) cat >"$ac_tmp/stdin" \
22521       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22522     esac
22523     ;;
22524   esac
22525
22526   ac_dir=`$as_dirname -- "$ac_file" ||
22527 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22528          X"$ac_file" : 'X\(//\)[^/]' \| \
22529          X"$ac_file" : 'X\(//\)$' \| \
22530          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22531 $as_echo X"$ac_file" |
22532     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22533             s//\1/
22534             q
22535           }
22536           /^X\(\/\/\)[^/].*/{
22537             s//\1/
22538             q
22539           }
22540           /^X\(\/\/\)$/{
22541             s//\1/
22542             q
22543           }
22544           /^X\(\/\).*/{
22545             s//\1/
22546             q
22547           }
22548           s/.*/./; q'`
22549   as_dir="$ac_dir"; as_fn_mkdir_p
22550   ac_builddir=.
22551
22552 case "$ac_dir" in
22553 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22554 *)
22555   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22556   # A ".." for each directory in $ac_dir_suffix.
22557   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22558   case $ac_top_builddir_sub in
22559   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22560   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22561   esac ;;
22562 esac
22563 ac_abs_top_builddir=$ac_pwd
22564 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22565 # for backward compatibility:
22566 ac_top_builddir=$ac_top_build_prefix
22567
22568 case $srcdir in
22569   .)  # We are building in place.
22570     ac_srcdir=.
22571     ac_top_srcdir=$ac_top_builddir_sub
22572     ac_abs_top_srcdir=$ac_pwd ;;
22573   [\\/]* | ?:[\\/]* )  # Absolute name.
22574     ac_srcdir=$srcdir$ac_dir_suffix;
22575     ac_top_srcdir=$srcdir
22576     ac_abs_top_srcdir=$srcdir ;;
22577   *) # Relative name.
22578     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22579     ac_top_srcdir=$ac_top_build_prefix$srcdir
22580     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22581 esac
22582 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22583
22584
22585   case $ac_mode in
22586   :F)
22587   #
22588   # CONFIG_FILE
22589   #
22590
22591   case $INSTALL in
22592   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22593   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22594   esac
22595   ac_MKDIR_P=$MKDIR_P
22596   case $MKDIR_P in
22597   [\\/$]* | ?:[\\/]* ) ;;
22598   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22599   esac
22600 _ACEOF
22601
22602 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22603 # If the template does not know about datarootdir, expand it.
22604 # FIXME: This hack should be removed a few years after 2.60.
22605 ac_datarootdir_hack=; ac_datarootdir_seen=
22606 ac_sed_dataroot='
22607 /datarootdir/ {
22608   p
22609   q
22610 }
22611 /@datadir@/p
22612 /@docdir@/p
22613 /@infodir@/p
22614 /@localedir@/p
22615 /@mandir@/p'
22616 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22617 *datarootdir*) ac_datarootdir_seen=yes;;
22618 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22619   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22620 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22621 _ACEOF
22622 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22623   ac_datarootdir_hack='
22624   s&@datadir@&$datadir&g
22625   s&@docdir@&$docdir&g
22626   s&@infodir@&$infodir&g
22627   s&@localedir@&$localedir&g
22628   s&@mandir@&$mandir&g
22629   s&\\\${datarootdir}&$datarootdir&g' ;;
22630 esac
22631 _ACEOF
22632
22633 # Neutralize VPATH when `$srcdir' = `.'.
22634 # Shell code in configure.ac might set extrasub.
22635 # FIXME: do we really want to maintain this feature?
22636 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22637 ac_sed_extra="$ac_vpsub
22638 $extrasub
22639 _ACEOF
22640 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22641 :t
22642 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22643 s|@configure_input@|$ac_sed_conf_input|;t t
22644 s&@top_builddir@&$ac_top_builddir_sub&;t t
22645 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22646 s&@srcdir@&$ac_srcdir&;t t
22647 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22648 s&@top_srcdir@&$ac_top_srcdir&;t t
22649 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22650 s&@builddir@&$ac_builddir&;t t
22651 s&@abs_builddir@&$ac_abs_builddir&;t t
22652 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22653 s&@INSTALL@&$ac_INSTALL&;t t
22654 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22655 $ac_datarootdir_hack
22656 "
22657 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22658   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22659
22660 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22661   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22662   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
22663       "$ac_tmp/out"`; test -z "$ac_out"; } &&
22664   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22665 which seems to be undefined.  Please make sure it is defined" >&5
22666 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22667 which seems to be undefined.  Please make sure it is defined" >&2;}
22668
22669   rm -f "$ac_tmp/stdin"
22670   case $ac_file in
22671   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22672   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22673   esac \
22674   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22675  ;;
22676   :H)
22677   #
22678   # CONFIG_HEADER
22679   #
22680   if test x"$ac_file" != x-; then
22681     {
22682       $as_echo "/* $configure_input  */" \
22683       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22684     } >"$ac_tmp/config.h" \
22685       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22686     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22687       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22688 $as_echo "$as_me: $ac_file is unchanged" >&6;}
22689     else
22690       rm -f "$ac_file"
22691       mv "$ac_tmp/config.h" "$ac_file" \
22692         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22693     fi
22694   else
22695     $as_echo "/* $configure_input  */" \
22696       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22697       || as_fn_error $? "could not create -" "$LINENO" 5
22698   fi
22699 # Compute "$ac_file"'s index in $config_headers.
22700 _am_arg="$ac_file"
22701 _am_stamp_count=1
22702 for _am_header in $config_headers :; do
22703   case $_am_header in
22704     $_am_arg | $_am_arg:* )
22705       break ;;
22706     * )
22707       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22708   esac
22709 done
22710 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22711 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22712          X"$_am_arg" : 'X\(//\)[^/]' \| \
22713          X"$_am_arg" : 'X\(//\)$' \| \
22714          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22715 $as_echo X"$_am_arg" |
22716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22717             s//\1/
22718             q
22719           }
22720           /^X\(\/\/\)[^/].*/{
22721             s//\1/
22722             q
22723           }
22724           /^X\(\/\/\)$/{
22725             s//\1/
22726             q
22727           }
22728           /^X\(\/\).*/{
22729             s//\1/
22730             q
22731           }
22732           s/.*/./; q'`/stamp-h$_am_stamp_count
22733  ;;
22734
22735   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22736 $as_echo "$as_me: executing $ac_file commands" >&6;}
22737  ;;
22738   esac
22739
22740
22741   case $ac_file$ac_mode in
22742     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22743   # Autoconf 2.62 quotes --file arguments for eval, but not when files
22744   # are listed without --file.  Let's play safe and only enable the eval
22745   # if we detect the quoting.
22746   case $CONFIG_FILES in
22747   *\'*) eval set x "$CONFIG_FILES" ;;
22748   *)   set x $CONFIG_FILES ;;
22749   esac
22750   shift
22751   for mf
22752   do
22753     # Strip MF so we end up with the name of the file.
22754     mf=`echo "$mf" | sed -e 's/:.*$//'`
22755     # Check whether this is an Automake generated Makefile or not.
22756     # We used to match only the files named `Makefile.in', but
22757     # some people rename them; so instead we look at the file content.
22758     # Grep'ing the first line is not enough: some people post-process
22759     # each Makefile.in and add a new line on top of each file to say so.
22760     # Grep'ing the whole file is not good either: AIX grep has a line
22761     # limit of 2048, but all sed's we know have understand at least 4000.
22762     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22763       dirpart=`$as_dirname -- "$mf" ||
22764 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22765          X"$mf" : 'X\(//\)[^/]' \| \
22766          X"$mf" : 'X\(//\)$' \| \
22767          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22768 $as_echo X"$mf" |
22769     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22770             s//\1/
22771             q
22772           }
22773           /^X\(\/\/\)[^/].*/{
22774             s//\1/
22775             q
22776           }
22777           /^X\(\/\/\)$/{
22778             s//\1/
22779             q
22780           }
22781           /^X\(\/\).*/{
22782             s//\1/
22783             q
22784           }
22785           s/.*/./; q'`
22786     else
22787       continue
22788     fi
22789     # Extract the definition of DEPDIR, am__include, and am__quote
22790     # from the Makefile without running `make'.
22791     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22792     test -z "$DEPDIR" && continue
22793     am__include=`sed -n 's/^am__include = //p' < "$mf"`
22794     test -z "am__include" && continue
22795     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22796     # When using ansi2knr, U may be empty or an underscore; expand it
22797     U=`sed -n 's/^U = //p' < "$mf"`
22798     # Find all dependency output files, they are included files with
22799     # $(DEPDIR) in their names.  We invoke sed twice because it is the
22800     # simplest approach to changing $(DEPDIR) to its actual value in the
22801     # expansion.
22802     for file in `sed -n "
22803       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22804          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22805       # Make sure the directory exists.
22806       test -f "$dirpart/$file" && continue
22807       fdir=`$as_dirname -- "$file" ||
22808 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22809          X"$file" : 'X\(//\)[^/]' \| \
22810          X"$file" : 'X\(//\)$' \| \
22811          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22812 $as_echo X"$file" |
22813     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22814             s//\1/
22815             q
22816           }
22817           /^X\(\/\/\)[^/].*/{
22818             s//\1/
22819             q
22820           }
22821           /^X\(\/\/\)$/{
22822             s//\1/
22823             q
22824           }
22825           /^X\(\/\).*/{
22826             s//\1/
22827             q
22828           }
22829           s/.*/./; q'`
22830       as_dir=$dirpart/$fdir; as_fn_mkdir_p
22831       # echo "creating $dirpart/$file"
22832       echo '# dummy' > "$dirpart/$file"
22833     done
22834   done
22835 }
22836  ;;
22837     "libtool":C)
22838
22839     # See if we are running on zsh, and set the options which allow our
22840     # commands through without removal of \ escapes.
22841     if test -n "${ZSH_VERSION+set}" ; then
22842       setopt NO_GLOB_SUBST
22843     fi
22844
22845     cfgfile="${ofile}T"
22846     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22847     $RM "$cfgfile"
22848
22849     cat <<_LT_EOF >> "$cfgfile"
22850 #! $SHELL
22851
22852 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
22853 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
22854 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22855 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22856 #
22857 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
22858 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
22859 #                 Inc.
22860 #   Written by Gordon Matzigkeit, 1996
22861 #
22862 #   This file is part of GNU Libtool.
22863 #
22864 # GNU Libtool is free software; you can redistribute it and/or
22865 # modify it under the terms of the GNU General Public License as
22866 # published by the Free Software Foundation; either version 2 of
22867 # the License, or (at your option) any later version.
22868 #
22869 # As a special exception to the GNU General Public License,
22870 # if you distribute this file as part of a program or library that
22871 # is built using GNU Libtool, you may include this file under the
22872 # same distribution terms that you use for the rest of that program.
22873 #
22874 # GNU Libtool is distributed in the hope that it will be useful,
22875 # but WITHOUT ANY WARRANTY; without even the implied warranty of
22876 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22877 # GNU General Public License for more details.
22878 #
22879 # You should have received a copy of the GNU General Public License
22880 # along with GNU Libtool; see the file COPYING.  If not, a copy
22881 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
22882 # obtained by writing to the Free Software Foundation, Inc.,
22883 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22884
22885
22886 # The names of the tagged configurations supported by this script.
22887 available_tags="CXX "
22888
22889 # ### BEGIN LIBTOOL CONFIG
22890
22891 # Which release of libtool.m4 was used?
22892 macro_version=$macro_version
22893 macro_revision=$macro_revision
22894
22895 # Whether or not to build shared libraries.
22896 build_libtool_libs=$enable_shared
22897
22898 # Whether or not to build static libraries.
22899 build_old_libs=$enable_static
22900
22901 # What type of objects to build.
22902 pic_mode=$pic_mode
22903
22904 # Whether or not to optimize for fast installation.
22905 fast_install=$enable_fast_install
22906
22907 # Shell to use when invoking shell scripts.
22908 SHELL=$lt_SHELL
22909
22910 # An echo program that protects backslashes.
22911 ECHO=$lt_ECHO
22912
22913 # The host system.
22914 host_alias=$host_alias
22915 host=$host
22916 host_os=$host_os
22917
22918 # The build system.
22919 build_alias=$build_alias
22920 build=$build
22921 build_os=$build_os
22922
22923 # A sed program that does not truncate output.
22924 SED=$lt_SED
22925
22926 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22927 Xsed="\$SED -e 1s/^X//"
22928
22929 # A grep program that handles long lines.
22930 GREP=$lt_GREP
22931
22932 # An ERE matcher.
22933 EGREP=$lt_EGREP
22934
22935 # A literal string matcher.
22936 FGREP=$lt_FGREP
22937
22938 # A BSD- or MS-compatible name lister.
22939 NM=$lt_NM
22940
22941 # Whether we need soft or hard links.
22942 LN_S=$lt_LN_S
22943
22944 # What is the maximum length of a command?
22945 max_cmd_len=$max_cmd_len
22946
22947 # Object file suffix (normally "o").
22948 objext=$ac_objext
22949
22950 # Executable file suffix (normally "").
22951 exeext=$exeext
22952
22953 # whether the shell understands "unset".
22954 lt_unset=$lt_unset
22955
22956 # turn spaces into newlines.
22957 SP2NL=$lt_lt_SP2NL
22958
22959 # turn newlines into spaces.
22960 NL2SP=$lt_lt_NL2SP
22961
22962 # convert \$build file names to \$host format.
22963 to_host_file_cmd=$lt_cv_to_host_file_cmd
22964
22965 # convert \$build files to toolchain format.
22966 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22967
22968 # An object symbol dumper.
22969 OBJDUMP=$lt_OBJDUMP
22970
22971 # Method to check whether dependent libraries are shared objects.
22972 deplibs_check_method=$lt_deplibs_check_method
22973
22974 # Command to use when deplibs_check_method = "file_magic".
22975 file_magic_cmd=$lt_file_magic_cmd
22976
22977 # How to find potential files when deplibs_check_method = "file_magic".
22978 file_magic_glob=$lt_file_magic_glob
22979
22980 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22981 want_nocaseglob=$lt_want_nocaseglob
22982
22983 # DLL creation program.
22984 DLLTOOL=$lt_DLLTOOL
22985
22986 # Command to associate shared and link libraries.
22987 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22988
22989 # The archiver.
22990 AR=$lt_AR
22991
22992 # Flags to create an archive.
22993 AR_FLAGS=$lt_AR_FLAGS
22994
22995 # How to feed a file listing to the archiver.
22996 archiver_list_spec=$lt_archiver_list_spec
22997
22998 # A symbol stripping program.
22999 STRIP=$lt_STRIP
23000
23001 # Commands used to install an old-style archive.
23002 RANLIB=$lt_RANLIB
23003 old_postinstall_cmds=$lt_old_postinstall_cmds
23004 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23005
23006 # Whether to use a lock for old archive extraction.
23007 lock_old_archive_extraction=$lock_old_archive_extraction
23008
23009 # A C compiler.
23010 LTCC=$lt_CC
23011
23012 # LTCC compiler flags.
23013 LTCFLAGS=$lt_CFLAGS
23014
23015 # Take the output of nm and produce a listing of raw symbols and C names.
23016 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23017
23018 # Transform the output of nm in a proper C declaration.
23019 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23020
23021 # Transform the output of nm in a C name address pair.
23022 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23023
23024 # Transform the output of nm in a C name address pair when lib prefix is needed.
23025 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23026
23027 # Specify filename containing input files for \$NM.
23028 nm_file_list_spec=$lt_nm_file_list_spec
23029
23030 # The root where to search for dependent libraries,and in which our libraries should be installed.
23031 lt_sysroot=$lt_sysroot
23032
23033 # The name of the directory that contains temporary libtool files.
23034 objdir=$objdir
23035
23036 # Used to examine libraries when file_magic_cmd begins with "file".
23037 MAGIC_CMD=$MAGIC_CMD
23038
23039 # Must we lock files when doing compilation?
23040 need_locks=$lt_need_locks
23041
23042 # Manifest tool.
23043 MANIFEST_TOOL=$lt_MANIFEST_TOOL
23044
23045 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23046 DSYMUTIL=$lt_DSYMUTIL
23047
23048 # Tool to change global to local symbols on Mac OS X.
23049 NMEDIT=$lt_NMEDIT
23050
23051 # Tool to manipulate fat objects and archives on Mac OS X.
23052 LIPO=$lt_LIPO
23053
23054 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23055 OTOOL=$lt_OTOOL
23056
23057 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23058 OTOOL64=$lt_OTOOL64
23059
23060 # Old archive suffix (normally "a").
23061 libext=$libext
23062
23063 # Shared library suffix (normally ".so").
23064 shrext_cmds=$lt_shrext_cmds
23065
23066 # The commands to extract the exported symbol list from a shared archive.
23067 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23068
23069 # Variables whose values should be saved in libtool wrapper scripts and
23070 # restored at link time.
23071 variables_saved_for_relink=$lt_variables_saved_for_relink
23072
23073 # Do we need the "lib" prefix for modules?
23074 need_lib_prefix=$need_lib_prefix
23075
23076 # Do we need a version for libraries?
23077 need_version=$need_version
23078
23079 # Library versioning type.
23080 version_type=$version_type
23081
23082 # Shared library runtime path variable.
23083 runpath_var=$runpath_var
23084
23085 # Shared library path variable.
23086 shlibpath_var=$shlibpath_var
23087
23088 # Is shlibpath searched before the hard-coded library search path?
23089 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23090
23091 # Format of library name prefix.
23092 libname_spec=$lt_libname_spec
23093
23094 # List of archive names.  First name is the real one, the rest are links.
23095 # The last name is the one that the linker finds with -lNAME
23096 library_names_spec=$lt_library_names_spec
23097
23098 # The coded name of the library, if different from the real name.
23099 soname_spec=$lt_soname_spec
23100
23101 # Permission mode override for installation of shared libraries.
23102 install_override_mode=$lt_install_override_mode
23103
23104 # Command to use after installation of a shared archive.
23105 postinstall_cmds=$lt_postinstall_cmds
23106
23107 # Command to use after uninstallation of a shared archive.
23108 postuninstall_cmds=$lt_postuninstall_cmds
23109
23110 # Commands used to finish a libtool library installation in a directory.
23111 finish_cmds=$lt_finish_cmds
23112
23113 # As "finish_cmds", except a single script fragment to be evaled but
23114 # not shown.
23115 finish_eval=$lt_finish_eval
23116
23117 # Whether we should hardcode library paths into libraries.
23118 hardcode_into_libs=$hardcode_into_libs
23119
23120 # Compile-time system search path for libraries.
23121 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23122
23123 # Run-time system search path for libraries.
23124 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23125
23126 # Whether dlopen is supported.
23127 dlopen_support=$enable_dlopen
23128
23129 # Whether dlopen of programs is supported.
23130 dlopen_self=$enable_dlopen_self
23131
23132 # Whether dlopen of statically linked programs is supported.
23133 dlopen_self_static=$enable_dlopen_self_static
23134
23135 # Commands to strip libraries.
23136 old_striplib=$lt_old_striplib
23137 striplib=$lt_striplib
23138
23139
23140 # The linker used to build libraries.
23141 LD=$lt_LD
23142
23143 # How to create reloadable object files.
23144 reload_flag=$lt_reload_flag
23145 reload_cmds=$lt_reload_cmds
23146
23147 # Commands used to build an old-style archive.
23148 old_archive_cmds=$lt_old_archive_cmds
23149
23150 # A language specific compiler.
23151 CC=$lt_compiler
23152
23153 # Is the compiler the GNU compiler?
23154 with_gcc=$GCC
23155
23156 # Compiler flag to turn off builtin functions.
23157 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23158
23159 # Additional compiler flags for building library objects.
23160 pic_flag=$lt_lt_prog_compiler_pic
23161
23162 # How to pass a linker flag through the compiler.
23163 wl=$lt_lt_prog_compiler_wl
23164
23165 # Compiler flag to prevent dynamic linking.
23166 link_static_flag=$lt_lt_prog_compiler_static
23167
23168 # Does compiler simultaneously support -c and -o options?
23169 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23170
23171 # Whether or not to add -lc for building shared libraries.
23172 build_libtool_need_lc=$archive_cmds_need_lc
23173
23174 # Whether or not to disallow shared libs when runtime libs are static.
23175 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23176
23177 # Compiler flag to allow reflexive dlopens.
23178 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23179
23180 # Compiler flag to generate shared objects directly from archives.
23181 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23182
23183 # Whether the compiler copes with passing no objects directly.
23184 compiler_needs_object=$lt_compiler_needs_object
23185
23186 # Create an old-style archive from a shared archive.
23187 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23188
23189 # Create a temporary old-style archive to link instead of a shared archive.
23190 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23191
23192 # Commands used to build a shared archive.
23193 archive_cmds=$lt_archive_cmds
23194 archive_expsym_cmds=$lt_archive_expsym_cmds
23195
23196 # Commands used to build a loadable module if different from building
23197 # a shared archive.
23198 module_cmds=$lt_module_cmds
23199 module_expsym_cmds=$lt_module_expsym_cmds
23200
23201 # Whether we are building with GNU ld or not.
23202 with_gnu_ld=$lt_with_gnu_ld
23203
23204 # Flag that allows shared libraries with undefined symbols to be built.
23205 allow_undefined_flag=$lt_allow_undefined_flag
23206
23207 # Flag that enforces no undefined symbols.
23208 no_undefined_flag=$lt_no_undefined_flag
23209
23210 # Flag to hardcode \$libdir into a binary during linking.
23211 # This must work even if \$libdir does not exist
23212 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23213
23214 # If ld is used when linking, flag to hardcode \$libdir into a binary
23215 # during linking.  This must work even if \$libdir does not exist.
23216 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
23217
23218 # Whether we need a single "-rpath" flag with a separated argument.
23219 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23220
23221 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23222 # DIR into the resulting binary.
23223 hardcode_direct=$hardcode_direct
23224
23225 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23226 # DIR into the resulting binary and the resulting library dependency is
23227 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23228 # library is relocated.
23229 hardcode_direct_absolute=$hardcode_direct_absolute
23230
23231 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23232 # into the resulting binary.
23233 hardcode_minus_L=$hardcode_minus_L
23234
23235 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23236 # into the resulting binary.
23237 hardcode_shlibpath_var=$hardcode_shlibpath_var
23238
23239 # Set to "yes" if building a shared library automatically hardcodes DIR
23240 # into the library and all subsequent libraries and executables linked
23241 # against it.
23242 hardcode_automatic=$hardcode_automatic
23243
23244 # Set to yes if linker adds runtime paths of dependent libraries
23245 # to runtime path list.
23246 inherit_rpath=$inherit_rpath
23247
23248 # Whether libtool must link a program against all its dependency libraries.
23249 link_all_deplibs=$link_all_deplibs
23250
23251 # Set to "yes" if exported symbols are required.
23252 always_export_symbols=$always_export_symbols
23253
23254 # The commands to list exported symbols.
23255 export_symbols_cmds=$lt_export_symbols_cmds
23256
23257 # Symbols that should not be listed in the preloaded symbols.
23258 exclude_expsyms=$lt_exclude_expsyms
23259
23260 # Symbols that must always be exported.
23261 include_expsyms=$lt_include_expsyms
23262
23263 # Commands necessary for linking programs (against libraries) with templates.
23264 prelink_cmds=$lt_prelink_cmds
23265
23266 # Commands necessary for finishing linking programs.
23267 postlink_cmds=$lt_postlink_cmds
23268
23269 # Specify filename containing input files.
23270 file_list_spec=$lt_file_list_spec
23271
23272 # How to hardcode a shared library path into an executable.
23273 hardcode_action=$hardcode_action
23274
23275 # The directories searched by this compiler when creating a shared library.
23276 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
23277
23278 # Dependencies to place before and after the objects being linked to
23279 # create a shared library.
23280 predep_objects=$lt_predep_objects
23281 postdep_objects=$lt_postdep_objects
23282 predeps=$lt_predeps
23283 postdeps=$lt_postdeps
23284
23285 # The library search path used internally by the compiler when linking
23286 # a shared library.
23287 compiler_lib_search_path=$lt_compiler_lib_search_path
23288
23289 # ### END LIBTOOL CONFIG
23290
23291 _LT_EOF
23292
23293   case $host_os in
23294   aix3*)
23295     cat <<\_LT_EOF >> "$cfgfile"
23296 # AIX sometimes has problems with the GCC collect2 program.  For some
23297 # reason, if we set the COLLECT_NAMES environment variable, the problems
23298 # vanish in a puff of smoke.
23299 if test "X${COLLECT_NAMES+set}" != Xset; then
23300   COLLECT_NAMES=
23301   export COLLECT_NAMES
23302 fi
23303 _LT_EOF
23304     ;;
23305   esac
23306
23307
23308 ltmain="$ac_aux_dir/ltmain.sh"
23309
23310
23311   # We use sed instead of cat because bash on DJGPP gets confused if
23312   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
23313   # text mode, it properly converts lines to CR/LF.  This bash problem
23314   # is reportedly fixed, but why not run on old versions too?
23315   sed '$q' "$ltmain" >> "$cfgfile" \
23316      || (rm -f "$cfgfile"; exit 1)
23317
23318   if test x"$xsi_shell" = xyes; then
23319   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
23320 func_dirname ()\
23321 {\
23322 \    case ${1} in\
23323 \      */*) func_dirname_result="${1%/*}${2}" ;;\
23324 \      *  ) func_dirname_result="${3}" ;;\
23325 \    esac\
23326 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
23327   && mv -f "$cfgfile.tmp" "$cfgfile" \
23328     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23329 test 0 -eq $? || _lt_function_replace_fail=:
23330
23331
23332   sed -e '/^func_basename ()$/,/^} # func_basename /c\
23333 func_basename ()\
23334 {\
23335 \    func_basename_result="${1##*/}"\
23336 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
23337   && mv -f "$cfgfile.tmp" "$cfgfile" \
23338     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23339 test 0 -eq $? || _lt_function_replace_fail=:
23340
23341
23342   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
23343 func_dirname_and_basename ()\
23344 {\
23345 \    case ${1} in\
23346 \      */*) func_dirname_result="${1%/*}${2}" ;;\
23347 \      *  ) func_dirname_result="${3}" ;;\
23348 \    esac\
23349 \    func_basename_result="${1##*/}"\
23350 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
23351   && mv -f "$cfgfile.tmp" "$cfgfile" \
23352     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23353 test 0 -eq $? || _lt_function_replace_fail=:
23354
23355
23356   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
23357 func_stripname ()\
23358 {\
23359 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
23360 \    # positional parameters, so assign one to ordinary parameter first.\
23361 \    func_stripname_result=${3}\
23362 \    func_stripname_result=${func_stripname_result#"${1}"}\
23363 \    func_stripname_result=${func_stripname_result%"${2}"}\
23364 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
23365   && mv -f "$cfgfile.tmp" "$cfgfile" \
23366     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23367 test 0 -eq $? || _lt_function_replace_fail=:
23368
23369
23370   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
23371 func_split_long_opt ()\
23372 {\
23373 \    func_split_long_opt_name=${1%%=*}\
23374 \    func_split_long_opt_arg=${1#*=}\
23375 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
23376   && mv -f "$cfgfile.tmp" "$cfgfile" \
23377     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23378 test 0 -eq $? || _lt_function_replace_fail=:
23379
23380
23381   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
23382 func_split_short_opt ()\
23383 {\
23384 \    func_split_short_opt_arg=${1#??}\
23385 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
23386 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
23387   && mv -f "$cfgfile.tmp" "$cfgfile" \
23388     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23389 test 0 -eq $? || _lt_function_replace_fail=:
23390
23391
23392   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
23393 func_lo2o ()\
23394 {\
23395 \    case ${1} in\
23396 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
23397 \      *)    func_lo2o_result=${1} ;;\
23398 \    esac\
23399 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
23400   && mv -f "$cfgfile.tmp" "$cfgfile" \
23401     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23402 test 0 -eq $? || _lt_function_replace_fail=:
23403
23404
23405   sed -e '/^func_xform ()$/,/^} # func_xform /c\
23406 func_xform ()\
23407 {\
23408     func_xform_result=${1%.*}.lo\
23409 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
23410   && mv -f "$cfgfile.tmp" "$cfgfile" \
23411     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23412 test 0 -eq $? || _lt_function_replace_fail=:
23413
23414
23415   sed -e '/^func_arith ()$/,/^} # func_arith /c\
23416 func_arith ()\
23417 {\
23418     func_arith_result=$(( $* ))\
23419 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
23420   && mv -f "$cfgfile.tmp" "$cfgfile" \
23421     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23422 test 0 -eq $? || _lt_function_replace_fail=:
23423
23424
23425   sed -e '/^func_len ()$/,/^} # func_len /c\
23426 func_len ()\
23427 {\
23428     func_len_result=${#1}\
23429 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
23430   && mv -f "$cfgfile.tmp" "$cfgfile" \
23431     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23432 test 0 -eq $? || _lt_function_replace_fail=:
23433
23434 fi
23435
23436 if test x"$lt_shell_append" = xyes; then
23437   sed -e '/^func_append ()$/,/^} # func_append /c\
23438 func_append ()\
23439 {\
23440     eval "${1}+=\\${2}"\
23441 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
23442   && mv -f "$cfgfile.tmp" "$cfgfile" \
23443     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23444 test 0 -eq $? || _lt_function_replace_fail=:
23445
23446
23447   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
23448 func_append_quoted ()\
23449 {\
23450 \    func_quote_for_eval "${2}"\
23451 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
23452 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
23453   && mv -f "$cfgfile.tmp" "$cfgfile" \
23454     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23455 test 0 -eq $? || _lt_function_replace_fail=:
23456
23457
23458   # Save a `func_append' function call where possible by direct use of '+='
23459   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
23460     && mv -f "$cfgfile.tmp" "$cfgfile" \
23461       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23462   test 0 -eq $? || _lt_function_replace_fail=:
23463 else
23464   # Save a `func_append' function call even when '+=' is not available
23465   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
23466     && mv -f "$cfgfile.tmp" "$cfgfile" \
23467       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23468   test 0 -eq $? || _lt_function_replace_fail=:
23469 fi
23470
23471 if test x"$_lt_function_replace_fail" = x":"; then
23472   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
23473 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
23474 fi
23475
23476
23477    mv -f "$cfgfile" "$ofile" ||
23478     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23479   chmod +x "$ofile"
23480
23481
23482     cat <<_LT_EOF >> "$ofile"
23483
23484 # ### BEGIN LIBTOOL TAG CONFIG: CXX
23485
23486 # The linker used to build libraries.
23487 LD=$lt_LD_CXX
23488
23489 # How to create reloadable object files.
23490 reload_flag=$lt_reload_flag_CXX
23491 reload_cmds=$lt_reload_cmds_CXX
23492
23493 # Commands used to build an old-style archive.
23494 old_archive_cmds=$lt_old_archive_cmds_CXX
23495
23496 # A language specific compiler.
23497 CC=$lt_compiler_CXX
23498
23499 # Is the compiler the GNU compiler?
23500 with_gcc=$GCC_CXX
23501
23502 # Compiler flag to turn off builtin functions.
23503 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
23504
23505 # Additional compiler flags for building library objects.
23506 pic_flag=$lt_lt_prog_compiler_pic_CXX
23507
23508 # How to pass a linker flag through the compiler.
23509 wl=$lt_lt_prog_compiler_wl_CXX
23510
23511 # Compiler flag to prevent dynamic linking.
23512 link_static_flag=$lt_lt_prog_compiler_static_CXX
23513
23514 # Does compiler simultaneously support -c and -o options?
23515 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
23516
23517 # Whether or not to add -lc for building shared libraries.
23518 build_libtool_need_lc=$archive_cmds_need_lc_CXX
23519
23520 # Whether or not to disallow shared libs when runtime libs are static.
23521 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
23522
23523 # Compiler flag to allow reflexive dlopens.
23524 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
23525
23526 # Compiler flag to generate shared objects directly from archives.
23527 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
23528
23529 # Whether the compiler copes with passing no objects directly.
23530 compiler_needs_object=$lt_compiler_needs_object_CXX
23531
23532 # Create an old-style archive from a shared archive.
23533 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
23534
23535 # Create a temporary old-style archive to link instead of a shared archive.
23536 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
23537
23538 # Commands used to build a shared archive.
23539 archive_cmds=$lt_archive_cmds_CXX
23540 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
23541
23542 # Commands used to build a loadable module if different from building
23543 # a shared archive.
23544 module_cmds=$lt_module_cmds_CXX
23545 module_expsym_cmds=$lt_module_expsym_cmds_CXX
23546
23547 # Whether we are building with GNU ld or not.
23548 with_gnu_ld=$lt_with_gnu_ld_CXX
23549
23550 # Flag that allows shared libraries with undefined symbols to be built.
23551 allow_undefined_flag=$lt_allow_undefined_flag_CXX
23552
23553 # Flag that enforces no undefined symbols.
23554 no_undefined_flag=$lt_no_undefined_flag_CXX
23555
23556 # Flag to hardcode \$libdir into a binary during linking.
23557 # This must work even if \$libdir does not exist
23558 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
23559
23560 # If ld is used when linking, flag to hardcode \$libdir into a binary
23561 # during linking.  This must work even if \$libdir does not exist.
23562 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
23563
23564 # Whether we need a single "-rpath" flag with a separated argument.
23565 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
23566
23567 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23568 # DIR into the resulting binary.
23569 hardcode_direct=$hardcode_direct_CXX
23570
23571 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23572 # DIR into the resulting binary and the resulting library dependency is
23573 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23574 # library is relocated.
23575 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
23576
23577 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23578 # into the resulting binary.
23579 hardcode_minus_L=$hardcode_minus_L_CXX
23580
23581 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23582 # into the resulting binary.
23583 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
23584
23585 # Set to "yes" if building a shared library automatically hardcodes DIR
23586 # into the library and all subsequent libraries and executables linked
23587 # against it.
23588 hardcode_automatic=$hardcode_automatic_CXX
23589
23590 # Set to yes if linker adds runtime paths of dependent libraries
23591 # to runtime path list.
23592 inherit_rpath=$inherit_rpath_CXX
23593
23594 # Whether libtool must link a program against all its dependency libraries.
23595 link_all_deplibs=$link_all_deplibs_CXX
23596
23597 # Set to "yes" if exported symbols are required.
23598 always_export_symbols=$always_export_symbols_CXX
23599
23600 # The commands to list exported symbols.
23601 export_symbols_cmds=$lt_export_symbols_cmds_CXX
23602
23603 # Symbols that should not be listed in the preloaded symbols.
23604 exclude_expsyms=$lt_exclude_expsyms_CXX
23605
23606 # Symbols that must always be exported.
23607 include_expsyms=$lt_include_expsyms_CXX
23608
23609 # Commands necessary for linking programs (against libraries) with templates.
23610 prelink_cmds=$lt_prelink_cmds_CXX
23611
23612 # Commands necessary for finishing linking programs.
23613 postlink_cmds=$lt_postlink_cmds_CXX
23614
23615 # Specify filename containing input files.
23616 file_list_spec=$lt_file_list_spec_CXX
23617
23618 # How to hardcode a shared library path into an executable.
23619 hardcode_action=$hardcode_action_CXX
23620
23621 # The directories searched by this compiler when creating a shared library.
23622 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
23623
23624 # Dependencies to place before and after the objects being linked to
23625 # create a shared library.
23626 predep_objects=$lt_predep_objects_CXX
23627 postdep_objects=$lt_postdep_objects_CXX
23628 predeps=$lt_predeps_CXX
23629 postdeps=$lt_postdeps_CXX
23630
23631 # The library search path used internally by the compiler when linking
23632 # a shared library.
23633 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
23634
23635 # ### END LIBTOOL TAG CONFIG: CXX
23636 _LT_EOF
23637
23638  ;;
23639
23640   esac
23641 done # for ac_tag
23642
23643
23644 as_fn_exit 0
23645 _ACEOF
23646 ac_clean_files=$ac_clean_files_save
23647
23648 test $ac_write_fail = 0 ||
23649   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23650
23651
23652 # configure is writing to config.log, and then calls config.status.
23653 # config.status does its own redirection, appending to config.log.
23654 # Unfortunately, on DOS this fails, as config.log is still kept open
23655 # by configure, so config.status won't be able to write to it; its
23656 # output is simply discarded.  So we exec the FD to /dev/null,
23657 # effectively closing config.log, so it can be properly (re)opened and
23658 # appended to by config.status.  When coming back to configure, we
23659 # need to make the FD available again.
23660 if test "$no_create" != yes; then
23661   ac_cs_success=:
23662   ac_config_status_args=
23663   test "$silent" = yes &&
23664     ac_config_status_args="$ac_config_status_args --quiet"
23665   exec 5>/dev/null
23666   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23667   exec 5>>config.log
23668   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23669   # would make configure fail if this is the last instruction.
23670   $ac_cs_success || as_fn_exit 1
23671 fi
23672 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23673   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23674 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23675 fi
23676
23677