]> git.decadent.org.uk Git - nfs-utils.git/blob - configure
Use rpcbind's rpcinfo everywhere (Closes: #707589).
[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.6.
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.6'
574 PACKAGE_STRING='linux nfs-utils 1.2.6'
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 LIBDL
636 LIBBLKID
637 LIBBSD
638 LIBCRYPT
639 LIBSOCKET
640 CONFIG_NFSIDMAP_FALSE
641 CONFIG_NFSIDMAP_TRUE
642 RPCSECGSS_LIBS
643 RPCSECGSS_CFLAGS
644 GSSGLUE_LIBS
645 GSSGLUE_CFLAGS
646 PKG_CONFIG_LIBDIR
647 PKG_CONFIG_PATH
648 PKG_CONFIG
649 CONFIG_NFSDCLD_FALSE
650 CONFIG_NFSDCLD_TRUE
651 CONFIG_SQLITE3_FALSE
652 CONFIG_SQLITE3_TRUE
653 LIBSQLITE
654 LIBKEYUTILS
655 LIBNFSIDMAP
656 LIBEVENT
657 LIBNSL
658 CC_FOR_BUILD
659 CXXCPP
660 OTOOL64
661 OTOOL
662 LIPO
663 NMEDIT
664 DSYMUTIL
665 MANIFEST_TOOL
666 RANLIB
667 ac_ct_AR
668 AR
669 DLLTOOL
670 OBJDUMP
671 NM
672 ac_ct_DUMPBIN
673 DUMPBIN
674 LD
675 FGREP
676 SED
677 LIBTOOL
678 LN_S
679 am__fastdepCXX_FALSE
680 am__fastdepCXX_TRUE
681 CXXDEPMODE
682 ac_ct_CXX
683 CXXFLAGS
684 CXX
685 HAVE_TCP_WRAPPER
686 HAVE_LIBWRAP
687 LIBWRAP
688 LIBCAP
689 LIBTIRPC
690 EGREP
691 GREP
692 CPP
693 AM_CPPFLAGS
694 am__fastdepCC_FALSE
695 am__fastdepCC_TRUE
696 CCDEPMODE
697 AMDEPBACKSLASH
698 AMDEP_FALSE
699 AMDEP_TRUE
700 am__quote
701 am__include
702 DEPDIR
703 OBJEXT
704 EXEEXT
705 ac_ct_CC
706 CPPFLAGS
707 LDFLAGS
708 CFLAGS
709 CC
710 MOUNT_CONFIG_FALSE
711 MOUNT_CONFIG_TRUE
712 enable_mountconfig
713 mountfile
714 CONFIG_IPV6_FALSE
715 CONFIG_IPV6_TRUE
716 enable_ipv6
717 CONFIG_MOUNT_FALSE
718 CONFIG_MOUNT_TRUE
719 CONFIG_RPCGEN_FALSE
720 CONFIG_RPCGEN_TRUE
721 RPCGEN_PATH
722 kprefix
723 CONFIG_GSS_FALSE
724 CONFIG_GSS_TRUE
725 enable_gss
726 SVCGSSD
727 GSSD
728 CONFIG_NFSV41_FALSE
729 CONFIG_NFSV41_TRUE
730 enable_nfsv41
731 CONFIG_NFSV4_FALSE
732 CONFIG_NFSV4_TRUE
733 enable_nfsv4
734 IDMAPD
735 startstatd
736 statduser
737 statdpath
738 statedir
739 RELEASE
740 MAINT
741 MAINTAINER_MODE_FALSE
742 MAINTAINER_MODE_TRUE
743 am__untar
744 am__tar
745 AMTAR
746 am__leading_dot
747 SET_MAKE
748 AWK
749 mkdir_p
750 MKDIR_P
751 INSTALL_STRIP_PROGRAM
752 STRIP
753 install_sh
754 MAKEINFO
755 AUTOHEADER
756 AUTOMAKE
757 AUTOCONF
758 ACLOCAL
759 VERSION
760 PACKAGE
761 CYGPATH_W
762 am__isrc
763 INSTALL_DATA
764 INSTALL_SCRIPT
765 INSTALL_PROGRAM
766 host_os
767 host_vendor
768 host_cpu
769 host
770 build_os
771 build_vendor
772 build_cpu
773 build
774 target_alias
775 host_alias
776 build_alias
777 LIBS
778 ECHO_T
779 ECHO_N
780 ECHO_C
781 DEFS
782 mandir
783 localedir
784 libdir
785 psdir
786 pdfdir
787 dvidir
788 htmldir
789 infodir
790 docdir
791 oldincludedir
792 includedir
793 localstatedir
794 sharedstatedir
795 sysconfdir
796 datadir
797 datarootdir
798 libexecdir
799 sbindir
800 bindir
801 program_transform_name
802 prefix
803 exec_prefix
804 PACKAGE_URL
805 PACKAGE_BUGREPORT
806 PACKAGE_STRING
807 PACKAGE_VERSION
808 PACKAGE_TARNAME
809 PACKAGE_NAME
810 PATH_SEPARATOR
811 SHELL'
812 ac_subst_files=''
813 ac_user_opts='
814 enable_option_checking
815 enable_maintainer_mode
816 with_release
817 with_statedir
818 with_statdpath
819 with_statduser
820 with_start_statd
821 enable_nfsv4
822 enable_nfsv41
823 enable_gss
824 enable_kprefix
825 with_rpcgen
826 enable_uuid
827 enable_mount
828 enable_libmount_mount
829 enable_tirpc
830 enable_ipv6
831 enable_mountconfig
832 with_mountfile
833 enable_nfsdcld
834 with_tirpcinclude
835 enable_dependency_tracking
836 enable_caps
837 with_tcp_wrappers
838 enable_largefile
839 enable_shared
840 enable_static
841 with_pic
842 enable_fast_install
843 with_gnu_ld
844 with_sysroot
845 enable_libtool_lock
846 with_krb5
847 '
848       ac_precious_vars='build_alias
849 host_alias
850 target_alias
851 CC
852 CFLAGS
853 LDFLAGS
854 LIBS
855 CPPFLAGS
856 CPP
857 CXX
858 CXXFLAGS
859 CCC
860 CXXCPP
861 PKG_CONFIG
862 PKG_CONFIG_PATH
863 PKG_CONFIG_LIBDIR
864 GSSGLUE_CFLAGS
865 GSSGLUE_LIBS
866 RPCSECGSS_CFLAGS
867 RPCSECGSS_LIBS'
868
869
870 # Initialize some variables set by options.
871 ac_init_help=
872 ac_init_version=false
873 ac_unrecognized_opts=
874 ac_unrecognized_sep=
875 # The variables have the same names as the options, with
876 # dashes changed to underlines.
877 cache_file=/dev/null
878 exec_prefix=NONE
879 no_create=
880 no_recursion=
881 prefix=NONE
882 program_prefix=NONE
883 program_suffix=NONE
884 program_transform_name=s,x,x,
885 silent=
886 site=
887 srcdir=
888 verbose=
889 x_includes=NONE
890 x_libraries=NONE
891
892 # Installation directory options.
893 # These are left unexpanded so users can "make install exec_prefix=/foo"
894 # and all the variables that are supposed to be based on exec_prefix
895 # by default will actually change.
896 # Use braces instead of parens because sh, perl, etc. also accept them.
897 # (The list follows the same order as the GNU Coding Standards.)
898 bindir='${exec_prefix}/bin'
899 sbindir='${exec_prefix}/sbin'
900 libexecdir='${exec_prefix}/libexec'
901 datarootdir='${prefix}/share'
902 datadir='${datarootdir}'
903 sysconfdir='${prefix}/etc'
904 sharedstatedir='${prefix}/com'
905 localstatedir='${prefix}/var'
906 includedir='${prefix}/include'
907 oldincludedir='/usr/include'
908 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
909 infodir='${datarootdir}/info'
910 htmldir='${docdir}'
911 dvidir='${docdir}'
912 pdfdir='${docdir}'
913 psdir='${docdir}'
914 libdir='${exec_prefix}/lib'
915 localedir='${datarootdir}/locale'
916 mandir='${datarootdir}/man'
917
918 ac_prev=
919 ac_dashdash=
920 for ac_option
921 do
922   # If the previous option needs an argument, assign it.
923   if test -n "$ac_prev"; then
924     eval $ac_prev=\$ac_option
925     ac_prev=
926     continue
927   fi
928
929   case $ac_option in
930   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
931   *=)   ac_optarg= ;;
932   *)    ac_optarg=yes ;;
933   esac
934
935   # Accept the important Cygnus configure options, so we can diagnose typos.
936
937   case $ac_dashdash$ac_option in
938   --)
939     ac_dashdash=yes ;;
940
941   -bindir | --bindir | --bindi | --bind | --bin | --bi)
942     ac_prev=bindir ;;
943   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
944     bindir=$ac_optarg ;;
945
946   -build | --build | --buil | --bui | --bu)
947     ac_prev=build_alias ;;
948   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
949     build_alias=$ac_optarg ;;
950
951   -cache-file | --cache-file | --cache-fil | --cache-fi \
952   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
953     ac_prev=cache_file ;;
954   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
955   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
956     cache_file=$ac_optarg ;;
957
958   --config-cache | -C)
959     cache_file=config.cache ;;
960
961   -datadir | --datadir | --datadi | --datad)
962     ac_prev=datadir ;;
963   -datadir=* | --datadir=* | --datadi=* | --datad=*)
964     datadir=$ac_optarg ;;
965
966   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
967   | --dataroo | --dataro | --datar)
968     ac_prev=datarootdir ;;
969   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
970   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
971     datarootdir=$ac_optarg ;;
972
973   -disable-* | --disable-*)
974     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
975     # Reject names that are not valid shell variable names.
976     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
977       as_fn_error $? "invalid feature name: $ac_useropt"
978     ac_useropt_orig=$ac_useropt
979     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
980     case $ac_user_opts in
981       *"
982 "enable_$ac_useropt"
983 "*) ;;
984       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
985          ac_unrecognized_sep=', ';;
986     esac
987     eval enable_$ac_useropt=no ;;
988
989   -docdir | --docdir | --docdi | --doc | --do)
990     ac_prev=docdir ;;
991   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
992     docdir=$ac_optarg ;;
993
994   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
995     ac_prev=dvidir ;;
996   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
997     dvidir=$ac_optarg ;;
998
999   -enable-* | --enable-*)
1000     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1001     # Reject names that are not valid shell variable names.
1002     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1003       as_fn_error $? "invalid feature name: $ac_useropt"
1004     ac_useropt_orig=$ac_useropt
1005     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1006     case $ac_user_opts in
1007       *"
1008 "enable_$ac_useropt"
1009 "*) ;;
1010       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1011          ac_unrecognized_sep=', ';;
1012     esac
1013     eval enable_$ac_useropt=\$ac_optarg ;;
1014
1015   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1016   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1017   | --exec | --exe | --ex)
1018     ac_prev=exec_prefix ;;
1019   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1020   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1021   | --exec=* | --exe=* | --ex=*)
1022     exec_prefix=$ac_optarg ;;
1023
1024   -gas | --gas | --ga | --g)
1025     # Obsolete; use --with-gas.
1026     with_gas=yes ;;
1027
1028   -help | --help | --hel | --he | -h)
1029     ac_init_help=long ;;
1030   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1031     ac_init_help=recursive ;;
1032   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1033     ac_init_help=short ;;
1034
1035   -host | --host | --hos | --ho)
1036     ac_prev=host_alias ;;
1037   -host=* | --host=* | --hos=* | --ho=*)
1038     host_alias=$ac_optarg ;;
1039
1040   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1041     ac_prev=htmldir ;;
1042   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1043   | --ht=*)
1044     htmldir=$ac_optarg ;;
1045
1046   -includedir | --includedir | --includedi | --included | --include \
1047   | --includ | --inclu | --incl | --inc)
1048     ac_prev=includedir ;;
1049   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1050   | --includ=* | --inclu=* | --incl=* | --inc=*)
1051     includedir=$ac_optarg ;;
1052
1053   -infodir | --infodir | --infodi | --infod | --info | --inf)
1054     ac_prev=infodir ;;
1055   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1056     infodir=$ac_optarg ;;
1057
1058   -libdir | --libdir | --libdi | --libd)
1059     ac_prev=libdir ;;
1060   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1061     libdir=$ac_optarg ;;
1062
1063   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1064   | --libexe | --libex | --libe)
1065     ac_prev=libexecdir ;;
1066   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1067   | --libexe=* | --libex=* | --libe=*)
1068     libexecdir=$ac_optarg ;;
1069
1070   -localedir | --localedir | --localedi | --localed | --locale)
1071     ac_prev=localedir ;;
1072   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1073     localedir=$ac_optarg ;;
1074
1075   -localstatedir | --localstatedir | --localstatedi | --localstated \
1076   | --localstate | --localstat | --localsta | --localst | --locals)
1077     ac_prev=localstatedir ;;
1078   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1079   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1080     localstatedir=$ac_optarg ;;
1081
1082   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1083     ac_prev=mandir ;;
1084   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1085     mandir=$ac_optarg ;;
1086
1087   -nfp | --nfp | --nf)
1088     # Obsolete; use --without-fp.
1089     with_fp=no ;;
1090
1091   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1092   | --no-cr | --no-c | -n)
1093     no_create=yes ;;
1094
1095   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1096   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1097     no_recursion=yes ;;
1098
1099   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1100   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1101   | --oldin | --oldi | --old | --ol | --o)
1102     ac_prev=oldincludedir ;;
1103   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1104   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1105   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1106     oldincludedir=$ac_optarg ;;
1107
1108   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1109     ac_prev=prefix ;;
1110   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1111     prefix=$ac_optarg ;;
1112
1113   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1114   | --program-pre | --program-pr | --program-p)
1115     ac_prev=program_prefix ;;
1116   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1117   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1118     program_prefix=$ac_optarg ;;
1119
1120   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1121   | --program-suf | --program-su | --program-s)
1122     ac_prev=program_suffix ;;
1123   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1124   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1125     program_suffix=$ac_optarg ;;
1126
1127   -program-transform-name | --program-transform-name \
1128   | --program-transform-nam | --program-transform-na \
1129   | --program-transform-n | --program-transform- \
1130   | --program-transform | --program-transfor \
1131   | --program-transfo | --program-transf \
1132   | --program-trans | --program-tran \
1133   | --progr-tra | --program-tr | --program-t)
1134     ac_prev=program_transform_name ;;
1135   -program-transform-name=* | --program-transform-name=* \
1136   | --program-transform-nam=* | --program-transform-na=* \
1137   | --program-transform-n=* | --program-transform-=* \
1138   | --program-transform=* | --program-transfor=* \
1139   | --program-transfo=* | --program-transf=* \
1140   | --program-trans=* | --program-tran=* \
1141   | --progr-tra=* | --program-tr=* | --program-t=*)
1142     program_transform_name=$ac_optarg ;;
1143
1144   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1145     ac_prev=pdfdir ;;
1146   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1147     pdfdir=$ac_optarg ;;
1148
1149   -psdir | --psdir | --psdi | --psd | --ps)
1150     ac_prev=psdir ;;
1151   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1152     psdir=$ac_optarg ;;
1153
1154   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1155   | -silent | --silent | --silen | --sile | --sil)
1156     silent=yes ;;
1157
1158   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1159     ac_prev=sbindir ;;
1160   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1161   | --sbi=* | --sb=*)
1162     sbindir=$ac_optarg ;;
1163
1164   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1165   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1166   | --sharedst | --shareds | --shared | --share | --shar \
1167   | --sha | --sh)
1168     ac_prev=sharedstatedir ;;
1169   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1170   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1171   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1172   | --sha=* | --sh=*)
1173     sharedstatedir=$ac_optarg ;;
1174
1175   -site | --site | --sit)
1176     ac_prev=site ;;
1177   -site=* | --site=* | --sit=*)
1178     site=$ac_optarg ;;
1179
1180   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1181     ac_prev=srcdir ;;
1182   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1183     srcdir=$ac_optarg ;;
1184
1185   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1186   | --syscon | --sysco | --sysc | --sys | --sy)
1187     ac_prev=sysconfdir ;;
1188   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1189   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1190     sysconfdir=$ac_optarg ;;
1191
1192   -target | --target | --targe | --targ | --tar | --ta | --t)
1193     ac_prev=target_alias ;;
1194   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1195     target_alias=$ac_optarg ;;
1196
1197   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1198     verbose=yes ;;
1199
1200   -version | --version | --versio | --versi | --vers | -V)
1201     ac_init_version=: ;;
1202
1203   -with-* | --with-*)
1204     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1205     # Reject names that are not valid shell variable names.
1206     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1207       as_fn_error $? "invalid package name: $ac_useropt"
1208     ac_useropt_orig=$ac_useropt
1209     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1210     case $ac_user_opts in
1211       *"
1212 "with_$ac_useropt"
1213 "*) ;;
1214       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1215          ac_unrecognized_sep=', ';;
1216     esac
1217     eval with_$ac_useropt=\$ac_optarg ;;
1218
1219   -without-* | --without-*)
1220     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1221     # Reject names that are not valid shell variable names.
1222     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1223       as_fn_error $? "invalid package name: $ac_useropt"
1224     ac_useropt_orig=$ac_useropt
1225     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1226     case $ac_user_opts in
1227       *"
1228 "with_$ac_useropt"
1229 "*) ;;
1230       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1231          ac_unrecognized_sep=', ';;
1232     esac
1233     eval with_$ac_useropt=no ;;
1234
1235   --x)
1236     # Obsolete; use --with-x.
1237     with_x=yes ;;
1238
1239   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1240   | --x-incl | --x-inc | --x-in | --x-i)
1241     ac_prev=x_includes ;;
1242   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1243   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1244     x_includes=$ac_optarg ;;
1245
1246   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1247   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1248     ac_prev=x_libraries ;;
1249   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1250   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1251     x_libraries=$ac_optarg ;;
1252
1253   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1254 Try \`$0 --help' for more information"
1255     ;;
1256
1257   *=*)
1258     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1259     # Reject names that are not valid shell variable names.
1260     case $ac_envvar in #(
1261       '' | [0-9]* | *[!_$as_cr_alnum]* )
1262       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1263     esac
1264     eval $ac_envvar=\$ac_optarg
1265     export $ac_envvar ;;
1266
1267   *)
1268     # FIXME: should be removed in autoconf 3.0.
1269     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1270     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1271       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1272     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1273     ;;
1274
1275   esac
1276 done
1277
1278 if test -n "$ac_prev"; then
1279   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1280   as_fn_error $? "missing argument to $ac_option"
1281 fi
1282
1283 if test -n "$ac_unrecognized_opts"; then
1284   case $enable_option_checking in
1285     no) ;;
1286     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1287     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1288   esac
1289 fi
1290
1291 # Check all directory arguments for consistency.
1292 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1293                 datadir sysconfdir sharedstatedir localstatedir includedir \
1294                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1295                 libdir localedir mandir
1296 do
1297   eval ac_val=\$$ac_var
1298   # Remove trailing slashes.
1299   case $ac_val in
1300     */ )
1301       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1302       eval $ac_var=\$ac_val;;
1303   esac
1304   # Be sure to have absolute directory names.
1305   case $ac_val in
1306     [\\/$]* | ?:[\\/]* )  continue;;
1307     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1308   esac
1309   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1310 done
1311
1312 # There might be people who depend on the old broken behavior: `$host'
1313 # used to hold the argument of --host etc.
1314 # FIXME: To remove some day.
1315 build=$build_alias
1316 host=$host_alias
1317 target=$target_alias
1318
1319 # FIXME: To remove some day.
1320 if test "x$host_alias" != x; then
1321   if test "x$build_alias" = x; then
1322     cross_compiling=maybe
1323     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1324     If a cross compiler is detected then cross compile mode will be used" >&2
1325   elif test "x$build_alias" != "x$host_alias"; then
1326     cross_compiling=yes
1327   fi
1328 fi
1329
1330 ac_tool_prefix=
1331 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1332
1333 test "$silent" = yes && exec 6>/dev/null
1334
1335
1336 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1337 ac_ls_di=`ls -di .` &&
1338 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1339   as_fn_error $? "working directory cannot be determined"
1340 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1341   as_fn_error $? "pwd does not report name of working directory"
1342
1343
1344 # Find the source files, if location was not specified.
1345 if test -z "$srcdir"; then
1346   ac_srcdir_defaulted=yes
1347   # Try the directory containing this script, then the parent directory.
1348   ac_confdir=`$as_dirname -- "$as_myself" ||
1349 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1350          X"$as_myself" : 'X\(//\)[^/]' \| \
1351          X"$as_myself" : 'X\(//\)$' \| \
1352          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1353 $as_echo X"$as_myself" |
1354     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1355             s//\1/
1356             q
1357           }
1358           /^X\(\/\/\)[^/].*/{
1359             s//\1/
1360             q
1361           }
1362           /^X\(\/\/\)$/{
1363             s//\1/
1364             q
1365           }
1366           /^X\(\/\).*/{
1367             s//\1/
1368             q
1369           }
1370           s/.*/./; q'`
1371   srcdir=$ac_confdir
1372   if test ! -r "$srcdir/$ac_unique_file"; then
1373     srcdir=..
1374   fi
1375 else
1376   ac_srcdir_defaulted=no
1377 fi
1378 if test ! -r "$srcdir/$ac_unique_file"; then
1379   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1380   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1381 fi
1382 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1383 ac_abs_confdir=`(
1384         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1385         pwd)`
1386 # When building in place, set srcdir=.
1387 if test "$ac_abs_confdir" = "$ac_pwd"; then
1388   srcdir=.
1389 fi
1390 # Remove unnecessary trailing slashes from srcdir.
1391 # Double slashes in file names in object file debugging info
1392 # mess up M-x gdb in Emacs.
1393 case $srcdir in
1394 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1395 esac
1396 for ac_var in $ac_precious_vars; do
1397   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1398   eval ac_env_${ac_var}_value=\$${ac_var}
1399   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1400   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1401 done
1402
1403 #
1404 # Report the --help message.
1405 #
1406 if test "$ac_init_help" = "long"; then
1407   # Omit some internal or obsolete options to make the list less imposing.
1408   # This message is too long to be a string in the A/UX 3.1 sh.
1409   cat <<_ACEOF
1410 \`configure' configures linux nfs-utils 1.2.6 to adapt to many kinds of systems.
1411
1412 Usage: $0 [OPTION]... [VAR=VALUE]...
1413
1414 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1415 VAR=VALUE.  See below for descriptions of some of the useful variables.
1416
1417 Defaults for the options are specified in brackets.
1418
1419 Configuration:
1420   -h, --help              display this help and exit
1421       --help=short        display options specific to this package
1422       --help=recursive    display the short help of all the included packages
1423   -V, --version           display version information and exit
1424   -q, --quiet, --silent   do not print \`checking ...' messages
1425       --cache-file=FILE   cache test results in FILE [disabled]
1426   -C, --config-cache      alias for \`--cache-file=config.cache'
1427   -n, --no-create         do not create output files
1428       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1429
1430 Installation directories:
1431   --prefix=PREFIX         install architecture-independent files in PREFIX
1432                           [$ac_default_prefix]
1433   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1434                           [PREFIX]
1435
1436 By default, \`make install' will install all the files in
1437 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1438 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1439 for instance \`--prefix=\$HOME'.
1440
1441 For better control, use the options below.
1442
1443 Fine tuning of the installation directories:
1444   --bindir=DIR            user executables [EPREFIX/bin]
1445   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1446   --libexecdir=DIR        program executables [EPREFIX/libexec]
1447   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1448   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1449   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1450   --libdir=DIR            object code libraries [EPREFIX/lib]
1451   --includedir=DIR        C header files [PREFIX/include]
1452   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1453   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1454   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1455   --infodir=DIR           info documentation [DATAROOTDIR/info]
1456   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1457   --mandir=DIR            man documentation [DATAROOTDIR/man]
1458   --docdir=DIR            documentation root [DATAROOTDIR/doc/nfs-utils]
1459   --htmldir=DIR           html documentation [DOCDIR]
1460   --dvidir=DIR            dvi documentation [DOCDIR]
1461   --pdfdir=DIR            pdf documentation [DOCDIR]
1462   --psdir=DIR             ps documentation [DOCDIR]
1463 _ACEOF
1464
1465   cat <<\_ACEOF
1466
1467 Program names:
1468   --program-prefix=PREFIX            prepend PREFIX to installed program names
1469   --program-suffix=SUFFIX            append SUFFIX to installed program names
1470   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1471
1472 System types:
1473   --build=BUILD     configure for building on BUILD [guessed]
1474   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1475 _ACEOF
1476 fi
1477
1478 if test -n "$ac_init_help"; then
1479   case $ac_init_help in
1480      short | recursive ) echo "Configuration of linux nfs-utils 1.2.6:";;
1481    esac
1482   cat <<\_ACEOF
1483
1484 Optional Features:
1485   --disable-option-checking  ignore unrecognized --enable/--with options
1486   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1487   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1488   --enable-maintainer-mode  enable make rules and dependencies not useful
1489                           (and sometimes confusing) to the casual installer
1490   --enable-nfsv4          enable support for NFSv4 [default=yes]
1491   --enable-nfsv41         enable support for NFSv41 [default=yes]
1492   --enable-gss            enable support for rpcsec_gss [default=yes]
1493   --enable-kprefix        install progs as rpc.knfsd etc
1494   --disable-uuid          Exclude uuid support to avoid buggy libblkid
1495   --enable-mount          Create mount.nfs and do not use the util-linux
1496                           mount(8) functionality. [default=yes]
1497   --enable-libmount-mount Link mount.nfs with libmount (EXPERIMENTAL)
1498   --enable-tirpc          enable use of TI-RPC [default=yes]
1499   --enable-ipv6           enable support for IPv6 [default=no]
1500   --enable-mountconfig    enable mount to use a configuration file
1501   --enable-nfsdcld        Create nfsdcld NFSv4 clientid tracking daemon.
1502                           [default=no]
1503   --disable-dependency-tracking  speeds up one-time build
1504   --enable-dependency-tracking   do not reject slow dependency extractors
1505   --disable-caps          Disable capabilities support
1506   --disable-largefile     omit support for large files
1507   --enable-shared[=PKGS]  build shared libraries [default=yes]
1508   --enable-static[=PKGS]  build static libraries [default=yes]
1509   --enable-fast-install[=PKGS]
1510                           optimize for fast installation [default=yes]
1511   --disable-libtool-lock  avoid locking (might break parallel builds)
1512
1513 Optional Packages:
1514   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1515   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1516   --with-release=XXX      set release to XXX [1]
1517   --with-statedir=/foo    use state dir /foo [default=/var/lib/nfs]
1518   --with-statdpath=/foo   define the statd state dir as /foo instead of the
1519                           NFS statedir [default=/var/lib/nfs]
1520   --with-statduser=rpcuser
1521                           statd to run under [rpcuser or nobody]
1522   --with-start-statd=scriptname
1523                           When an nfs filesystems is mounted with locking, run
1524                           this script
1525   --with-rpcgen=internal  use internal rpcgen instead of system one
1526   --with-mountfile=filename
1527                           Using filename as the NFS mount options file
1528                           [/etc/nfsmounts.conf]
1529   --with-tirpcinclude=DIR use TI-RPC headers in DIR
1530   --with-tcp-wrappers[=PATH]      Enable tcpwrappers support
1531                  (optionally in PATH)
1532   --with-pic              try to use only PIC/non-PIC objects [default=use
1533                           both]
1534   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1535   --with-sysroot=DIR Search for dependent libraries within DIR
1536                         (or the compiler's sysroot if not specified).
1537   --with-krb5=DIR         use Kerberos v5 installation in DIR
1538
1539 Some influential environment variables:
1540   CC          C compiler command
1541   CFLAGS      C compiler flags
1542   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1543               nonstandard directory <lib dir>
1544   LIBS        libraries to pass to the linker, e.g. -l<library>
1545   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1546               you have headers in a nonstandard directory <include dir>
1547   CPP         C preprocessor
1548   CXX         C++ compiler command
1549   CXXFLAGS    C++ compiler flags
1550   CXXCPP      C++ preprocessor
1551   PKG_CONFIG  path to pkg-config utility
1552   PKG_CONFIG_PATH
1553               directories to add to pkg-config's search path
1554   PKG_CONFIG_LIBDIR
1555               path overriding pkg-config's built-in search path
1556   GSSGLUE_CFLAGS
1557               C compiler flags for GSSGLUE, overriding pkg-config
1558   GSSGLUE_LIBS
1559               linker flags for GSSGLUE, overriding pkg-config
1560   RPCSECGSS_CFLAGS
1561               C compiler flags for RPCSECGSS, overriding pkg-config
1562   RPCSECGSS_LIBS
1563               linker flags for RPCSECGSS, overriding pkg-config
1564
1565 Use these variables to override the choices made by `configure' or to help
1566 it to find libraries and programs with nonstandard names/locations.
1567
1568 Report bugs to <linux-nfs@vger.kernel.org>.
1569 _ACEOF
1570 ac_status=$?
1571 fi
1572
1573 if test "$ac_init_help" = "recursive"; then
1574   # If there are subdirs, report their specific --help.
1575   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1576     test -d "$ac_dir" ||
1577       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1578       continue
1579     ac_builddir=.
1580
1581 case "$ac_dir" in
1582 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1583 *)
1584   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1585   # A ".." for each directory in $ac_dir_suffix.
1586   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1587   case $ac_top_builddir_sub in
1588   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1589   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1590   esac ;;
1591 esac
1592 ac_abs_top_builddir=$ac_pwd
1593 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1594 # for backward compatibility:
1595 ac_top_builddir=$ac_top_build_prefix
1596
1597 case $srcdir in
1598   .)  # We are building in place.
1599     ac_srcdir=.
1600     ac_top_srcdir=$ac_top_builddir_sub
1601     ac_abs_top_srcdir=$ac_pwd ;;
1602   [\\/]* | ?:[\\/]* )  # Absolute name.
1603     ac_srcdir=$srcdir$ac_dir_suffix;
1604     ac_top_srcdir=$srcdir
1605     ac_abs_top_srcdir=$srcdir ;;
1606   *) # Relative name.
1607     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1608     ac_top_srcdir=$ac_top_build_prefix$srcdir
1609     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1610 esac
1611 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1612
1613     cd "$ac_dir" || { ac_status=$?; continue; }
1614     # Check for guested configure.
1615     if test -f "$ac_srcdir/configure.gnu"; then
1616       echo &&
1617       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1618     elif test -f "$ac_srcdir/configure"; then
1619       echo &&
1620       $SHELL "$ac_srcdir/configure" --help=recursive
1621     else
1622       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1623     fi || ac_status=$?
1624     cd "$ac_pwd" || { ac_status=$?; break; }
1625   done
1626 fi
1627
1628 test -n "$ac_init_help" && exit $ac_status
1629 if $ac_init_version; then
1630   cat <<\_ACEOF
1631 linux nfs-utils configure 1.2.6
1632 generated by GNU Autoconf 2.68
1633
1634 Copyright (C) 2010 Free Software Foundation, Inc.
1635 This configure script is free software; the Free Software Foundation
1636 gives unlimited permission to copy, distribute and modify it.
1637 _ACEOF
1638   exit
1639 fi
1640
1641 ## ------------------------ ##
1642 ## Autoconf initialization. ##
1643 ## ------------------------ ##
1644
1645 # ac_fn_c_try_compile LINENO
1646 # --------------------------
1647 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1648 ac_fn_c_try_compile ()
1649 {
1650   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1651   rm -f conftest.$ac_objext
1652   if { { ac_try="$ac_compile"
1653 case "(($ac_try" in
1654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1655   *) ac_try_echo=$ac_try;;
1656 esac
1657 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1658 $as_echo "$ac_try_echo"; } >&5
1659   (eval "$ac_compile") 2>conftest.err
1660   ac_status=$?
1661   if test -s conftest.err; then
1662     grep -v '^ *+' conftest.err >conftest.er1
1663     cat conftest.er1 >&5
1664     mv -f conftest.er1 conftest.err
1665   fi
1666   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1667   test $ac_status = 0; } && {
1668          test -z "$ac_c_werror_flag" ||
1669          test ! -s conftest.err
1670        } && test -s conftest.$ac_objext; then :
1671   ac_retval=0
1672 else
1673   $as_echo "$as_me: failed program was:" >&5
1674 sed 's/^/| /' conftest.$ac_ext >&5
1675
1676         ac_retval=1
1677 fi
1678   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1679   as_fn_set_status $ac_retval
1680
1681 } # ac_fn_c_try_compile
1682
1683 # ac_fn_c_try_link LINENO
1684 # -----------------------
1685 # Try to link conftest.$ac_ext, and return whether this succeeded.
1686 ac_fn_c_try_link ()
1687 {
1688   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689   rm -f conftest.$ac_objext conftest$ac_exeext
1690   if { { ac_try="$ac_link"
1691 case "(($ac_try" in
1692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693   *) ac_try_echo=$ac_try;;
1694 esac
1695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696 $as_echo "$ac_try_echo"; } >&5
1697   (eval "$ac_link") 2>conftest.err
1698   ac_status=$?
1699   if test -s conftest.err; then
1700     grep -v '^ *+' conftest.err >conftest.er1
1701     cat conftest.er1 >&5
1702     mv -f conftest.er1 conftest.err
1703   fi
1704   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705   test $ac_status = 0; } && {
1706          test -z "$ac_c_werror_flag" ||
1707          test ! -s conftest.err
1708        } && test -s conftest$ac_exeext && {
1709          test "$cross_compiling" = yes ||
1710          $as_test_x conftest$ac_exeext
1711        }; then :
1712   ac_retval=0
1713 else
1714   $as_echo "$as_me: failed program was:" >&5
1715 sed 's/^/| /' conftest.$ac_ext >&5
1716
1717         ac_retval=1
1718 fi
1719   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1720   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1721   # interfere with the next link command; also delete a directory that is
1722   # left behind by Apple's compiler.  We do this before executing the actions.
1723   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1724   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1725   as_fn_set_status $ac_retval
1726
1727 } # ac_fn_c_try_link
1728
1729 # ac_fn_c_try_cpp LINENO
1730 # ----------------------
1731 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1732 ac_fn_c_try_cpp ()
1733 {
1734   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735   if { { ac_try="$ac_cpp conftest.$ac_ext"
1736 case "(($ac_try" in
1737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1738   *) ac_try_echo=$ac_try;;
1739 esac
1740 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1741 $as_echo "$ac_try_echo"; } >&5
1742   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1743   ac_status=$?
1744   if test -s conftest.err; then
1745     grep -v '^ *+' conftest.err >conftest.er1
1746     cat conftest.er1 >&5
1747     mv -f conftest.er1 conftest.err
1748   fi
1749   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1750   test $ac_status = 0; } > conftest.i && {
1751          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1752          test ! -s conftest.err
1753        }; then :
1754   ac_retval=0
1755 else
1756   $as_echo "$as_me: failed program was:" >&5
1757 sed 's/^/| /' conftest.$ac_ext >&5
1758
1759     ac_retval=1
1760 fi
1761   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1762   as_fn_set_status $ac_retval
1763
1764 } # ac_fn_c_try_cpp
1765
1766 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1767 # -------------------------------------------------------
1768 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1769 # the include files in INCLUDES and setting the cache variable VAR
1770 # accordingly.
1771 ac_fn_c_check_header_mongrel ()
1772 {
1773   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774   if eval \${$3+:} false; then :
1775   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1776 $as_echo_n "checking for $2... " >&6; }
1777 if eval \${$3+:} false; then :
1778   $as_echo_n "(cached) " >&6
1779 fi
1780 eval ac_res=\$$3
1781                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1782 $as_echo "$ac_res" >&6; }
1783 else
1784   # Is the header compilable?
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1786 $as_echo_n "checking $2 usability... " >&6; }
1787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1788 /* end confdefs.h.  */
1789 $4
1790 #include <$2>
1791 _ACEOF
1792 if ac_fn_c_try_compile "$LINENO"; then :
1793   ac_header_compiler=yes
1794 else
1795   ac_header_compiler=no
1796 fi
1797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1799 $as_echo "$ac_header_compiler" >&6; }
1800
1801 # Is the header present?
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1803 $as_echo_n "checking $2 presence... " >&6; }
1804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1805 /* end confdefs.h.  */
1806 #include <$2>
1807 _ACEOF
1808 if ac_fn_c_try_cpp "$LINENO"; then :
1809   ac_header_preproc=yes
1810 else
1811   ac_header_preproc=no
1812 fi
1813 rm -f conftest.err conftest.i conftest.$ac_ext
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1815 $as_echo "$ac_header_preproc" >&6; }
1816
1817 # So?  What about this header?
1818 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1819   yes:no: )
1820     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1821 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1822     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1823 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1824     ;;
1825   no:yes:* )
1826     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1827 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1828     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1829 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1830     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1831 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1832     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1833 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1834     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1835 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1836 ( $as_echo "## ---------------------------------------- ##
1837 ## Report this to linux-nfs@vger.kernel.org ##
1838 ## ---------------------------------------- ##"
1839      ) | sed "s/^/$as_me: WARNING:     /" >&2
1840     ;;
1841 esac
1842   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1843 $as_echo_n "checking for $2... " >&6; }
1844 if eval \${$3+:} false; then :
1845   $as_echo_n "(cached) " >&6
1846 else
1847   eval "$3=\$ac_header_compiler"
1848 fi
1849 eval ac_res=\$$3
1850                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1851 $as_echo "$ac_res" >&6; }
1852 fi
1853   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1854
1855 } # ac_fn_c_check_header_mongrel
1856
1857 # ac_fn_c_try_run LINENO
1858 # ----------------------
1859 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1860 # that executables *can* be run.
1861 ac_fn_c_try_run ()
1862 {
1863   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864   if { { ac_try="$ac_link"
1865 case "(($ac_try" in
1866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1867   *) ac_try_echo=$ac_try;;
1868 esac
1869 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1870 $as_echo "$ac_try_echo"; } >&5
1871   (eval "$ac_link") 2>&5
1872   ac_status=$?
1873   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1874   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1875   { { case "(($ac_try" in
1876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1877   *) ac_try_echo=$ac_try;;
1878 esac
1879 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1880 $as_echo "$ac_try_echo"; } >&5
1881   (eval "$ac_try") 2>&5
1882   ac_status=$?
1883   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1884   test $ac_status = 0; }; }; then :
1885   ac_retval=0
1886 else
1887   $as_echo "$as_me: program exited with status $ac_status" >&5
1888        $as_echo "$as_me: failed program was:" >&5
1889 sed 's/^/| /' conftest.$ac_ext >&5
1890
1891        ac_retval=$ac_status
1892 fi
1893   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1894   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1895   as_fn_set_status $ac_retval
1896
1897 } # ac_fn_c_try_run
1898
1899 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1900 # -------------------------------------------------------
1901 # Tests whether HEADER exists and can be compiled using the include files in
1902 # INCLUDES, setting the cache variable VAR accordingly.
1903 ac_fn_c_check_header_compile ()
1904 {
1905   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1906   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1907 $as_echo_n "checking for $2... " >&6; }
1908 if eval \${$3+:} false; then :
1909   $as_echo_n "(cached) " >&6
1910 else
1911   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1912 /* end confdefs.h.  */
1913 $4
1914 #include <$2>
1915 _ACEOF
1916 if ac_fn_c_try_compile "$LINENO"; then :
1917   eval "$3=yes"
1918 else
1919   eval "$3=no"
1920 fi
1921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1922 fi
1923 eval ac_res=\$$3
1924                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1925 $as_echo "$ac_res" >&6; }
1926   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927
1928 } # ac_fn_c_check_header_compile
1929
1930 # ac_fn_c_check_func LINENO FUNC VAR
1931 # ----------------------------------
1932 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1933 ac_fn_c_check_func ()
1934 {
1935   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1936   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1937 $as_echo_n "checking for $2... " >&6; }
1938 if eval \${$3+:} false; then :
1939   $as_echo_n "(cached) " >&6
1940 else
1941   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1942 /* end confdefs.h.  */
1943 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1944    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1945 #define $2 innocuous_$2
1946
1947 /* System header to define __stub macros and hopefully few prototypes,
1948     which can conflict with char $2 (); below.
1949     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1950     <limits.h> exists even on freestanding compilers.  */
1951
1952 #ifdef __STDC__
1953 # include <limits.h>
1954 #else
1955 # include <assert.h>
1956 #endif
1957
1958 #undef $2
1959
1960 /* Override any GCC internal prototype to avoid an error.
1961    Use char because int might match the return type of a GCC
1962    builtin and then its argument prototype would still apply.  */
1963 #ifdef __cplusplus
1964 extern "C"
1965 #endif
1966 char $2 ();
1967 /* The GNU C library defines this for functions which it implements
1968     to always fail with ENOSYS.  Some functions are actually named
1969     something starting with __ and the normal name is an alias.  */
1970 #if defined __stub_$2 || defined __stub___$2
1971 choke me
1972 #endif
1973
1974 int
1975 main ()
1976 {
1977 return $2 ();
1978   ;
1979   return 0;
1980 }
1981 _ACEOF
1982 if ac_fn_c_try_link "$LINENO"; then :
1983   eval "$3=yes"
1984 else
1985   eval "$3=no"
1986 fi
1987 rm -f core conftest.err conftest.$ac_objext \
1988     conftest$ac_exeext conftest.$ac_ext
1989 fi
1990 eval ac_res=\$$3
1991                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1992 $as_echo "$ac_res" >&6; }
1993   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1994
1995 } # ac_fn_c_check_func
1996
1997 # ac_fn_cxx_try_compile LINENO
1998 # ----------------------------
1999 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2000 ac_fn_cxx_try_compile ()
2001 {
2002   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2003   rm -f conftest.$ac_objext
2004   if { { ac_try="$ac_compile"
2005 case "(($ac_try" in
2006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2007   *) ac_try_echo=$ac_try;;
2008 esac
2009 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2010 $as_echo "$ac_try_echo"; } >&5
2011   (eval "$ac_compile") 2>conftest.err
2012   ac_status=$?
2013   if test -s conftest.err; then
2014     grep -v '^ *+' conftest.err >conftest.er1
2015     cat conftest.er1 >&5
2016     mv -f conftest.er1 conftest.err
2017   fi
2018   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2019   test $ac_status = 0; } && {
2020          test -z "$ac_cxx_werror_flag" ||
2021          test ! -s conftest.err
2022        } && test -s conftest.$ac_objext; then :
2023   ac_retval=0
2024 else
2025   $as_echo "$as_me: failed program was:" >&5
2026 sed 's/^/| /' conftest.$ac_ext >&5
2027
2028         ac_retval=1
2029 fi
2030   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2031   as_fn_set_status $ac_retval
2032
2033 } # ac_fn_cxx_try_compile
2034
2035 # ac_fn_cxx_try_cpp LINENO
2036 # ------------------------
2037 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2038 ac_fn_cxx_try_cpp ()
2039 {
2040   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2041   if { { ac_try="$ac_cpp conftest.$ac_ext"
2042 case "(($ac_try" in
2043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2044   *) ac_try_echo=$ac_try;;
2045 esac
2046 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2047 $as_echo "$ac_try_echo"; } >&5
2048   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2049   ac_status=$?
2050   if test -s conftest.err; then
2051     grep -v '^ *+' conftest.err >conftest.er1
2052     cat conftest.er1 >&5
2053     mv -f conftest.er1 conftest.err
2054   fi
2055   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2056   test $ac_status = 0; } > conftest.i && {
2057          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2058          test ! -s conftest.err
2059        }; then :
2060   ac_retval=0
2061 else
2062   $as_echo "$as_me: failed program was:" >&5
2063 sed 's/^/| /' conftest.$ac_ext >&5
2064
2065     ac_retval=1
2066 fi
2067   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2068   as_fn_set_status $ac_retval
2069
2070 } # ac_fn_cxx_try_cpp
2071
2072 # ac_fn_cxx_try_link LINENO
2073 # -------------------------
2074 # Try to link conftest.$ac_ext, and return whether this succeeded.
2075 ac_fn_cxx_try_link ()
2076 {
2077   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2078   rm -f conftest.$ac_objext conftest$ac_exeext
2079   if { { ac_try="$ac_link"
2080 case "(($ac_try" in
2081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2082   *) ac_try_echo=$ac_try;;
2083 esac
2084 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2085 $as_echo "$ac_try_echo"; } >&5
2086   (eval "$ac_link") 2>conftest.err
2087   ac_status=$?
2088   if test -s conftest.err; then
2089     grep -v '^ *+' conftest.err >conftest.er1
2090     cat conftest.er1 >&5
2091     mv -f conftest.er1 conftest.err
2092   fi
2093   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2094   test $ac_status = 0; } && {
2095          test -z "$ac_cxx_werror_flag" ||
2096          test ! -s conftest.err
2097        } && test -s conftest$ac_exeext && {
2098          test "$cross_compiling" = yes ||
2099          $as_test_x conftest$ac_exeext
2100        }; then :
2101   ac_retval=0
2102 else
2103   $as_echo "$as_me: failed program was:" >&5
2104 sed 's/^/| /' conftest.$ac_ext >&5
2105
2106         ac_retval=1
2107 fi
2108   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2109   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2110   # interfere with the next link command; also delete a directory that is
2111   # left behind by Apple's compiler.  We do this before executing the actions.
2112   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2113   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2114   as_fn_set_status $ac_retval
2115
2116 } # ac_fn_cxx_try_link
2117
2118 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2119 # -------------------------------------------
2120 # Tests whether TYPE exists after having included INCLUDES, setting cache
2121 # variable VAR accordingly.
2122 ac_fn_c_check_type ()
2123 {
2124   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2125   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2126 $as_echo_n "checking for $2... " >&6; }
2127 if eval \${$3+:} false; then :
2128   $as_echo_n "(cached) " >&6
2129 else
2130   eval "$3=no"
2131   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2132 /* end confdefs.h.  */
2133 $4
2134 int
2135 main ()
2136 {
2137 if (sizeof ($2))
2138          return 0;
2139   ;
2140   return 0;
2141 }
2142 _ACEOF
2143 if ac_fn_c_try_compile "$LINENO"; then :
2144   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2145 /* end confdefs.h.  */
2146 $4
2147 int
2148 main ()
2149 {
2150 if (sizeof (($2)))
2151             return 0;
2152   ;
2153   return 0;
2154 }
2155 _ACEOF
2156 if ac_fn_c_try_compile "$LINENO"; then :
2157
2158 else
2159   eval "$3=yes"
2160 fi
2161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2162 fi
2163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2164 fi
2165 eval ac_res=\$$3
2166                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2167 $as_echo "$ac_res" >&6; }
2168   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2169
2170 } # ac_fn_c_check_type
2171
2172 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2173 # --------------------------------------------
2174 # Tries to find the compile-time value of EXPR in a program that includes
2175 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2176 # computed
2177 ac_fn_c_compute_int ()
2178 {
2179   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2180   if test "$cross_compiling" = yes; then
2181     # Depending upon the size, compute the lo and hi bounds.
2182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2183 /* end confdefs.h.  */
2184 $4
2185 int
2186 main ()
2187 {
2188 static int test_array [1 - 2 * !(($2) >= 0)];
2189 test_array [0] = 0
2190
2191   ;
2192   return 0;
2193 }
2194 _ACEOF
2195 if ac_fn_c_try_compile "$LINENO"; then :
2196   ac_lo=0 ac_mid=0
2197   while :; do
2198     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2199 /* end confdefs.h.  */
2200 $4
2201 int
2202 main ()
2203 {
2204 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2205 test_array [0] = 0
2206
2207   ;
2208   return 0;
2209 }
2210 _ACEOF
2211 if ac_fn_c_try_compile "$LINENO"; then :
2212   ac_hi=$ac_mid; break
2213 else
2214   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2215                         if test $ac_lo -le $ac_mid; then
2216                           ac_lo= ac_hi=
2217                           break
2218                         fi
2219                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2220 fi
2221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2222   done
2223 else
2224   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2225 /* end confdefs.h.  */
2226 $4
2227 int
2228 main ()
2229 {
2230 static int test_array [1 - 2 * !(($2) < 0)];
2231 test_array [0] = 0
2232
2233   ;
2234   return 0;
2235 }
2236 _ACEOF
2237 if ac_fn_c_try_compile "$LINENO"; then :
2238   ac_hi=-1 ac_mid=-1
2239   while :; do
2240     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2241 /* end confdefs.h.  */
2242 $4
2243 int
2244 main ()
2245 {
2246 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2247 test_array [0] = 0
2248
2249   ;
2250   return 0;
2251 }
2252 _ACEOF
2253 if ac_fn_c_try_compile "$LINENO"; then :
2254   ac_lo=$ac_mid; break
2255 else
2256   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2257                         if test $ac_mid -le $ac_hi; then
2258                           ac_lo= ac_hi=
2259                           break
2260                         fi
2261                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2262 fi
2263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2264   done
2265 else
2266   ac_lo= ac_hi=
2267 fi
2268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2269 fi
2270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2271 # Binary search between lo and hi bounds.
2272 while test "x$ac_lo" != "x$ac_hi"; do
2273   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2274   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2275 /* end confdefs.h.  */
2276 $4
2277 int
2278 main ()
2279 {
2280 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2281 test_array [0] = 0
2282
2283   ;
2284   return 0;
2285 }
2286 _ACEOF
2287 if ac_fn_c_try_compile "$LINENO"; then :
2288   ac_hi=$ac_mid
2289 else
2290   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2291 fi
2292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2293 done
2294 case $ac_lo in #((
2295 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2296 '') ac_retval=1 ;;
2297 esac
2298   else
2299     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2300 /* end confdefs.h.  */
2301 $4
2302 static long int longval () { return $2; }
2303 static unsigned long int ulongval () { return $2; }
2304 #include <stdio.h>
2305 #include <stdlib.h>
2306 int
2307 main ()
2308 {
2309
2310   FILE *f = fopen ("conftest.val", "w");
2311   if (! f)
2312     return 1;
2313   if (($2) < 0)
2314     {
2315       long int i = longval ();
2316       if (i != ($2))
2317         return 1;
2318       fprintf (f, "%ld", i);
2319     }
2320   else
2321     {
2322       unsigned long int i = ulongval ();
2323       if (i != ($2))
2324         return 1;
2325       fprintf (f, "%lu", i);
2326     }
2327   /* Do not output a trailing newline, as this causes \r\n confusion
2328      on some platforms.  */
2329   return ferror (f) || fclose (f) != 0;
2330
2331   ;
2332   return 0;
2333 }
2334 _ACEOF
2335 if ac_fn_c_try_run "$LINENO"; then :
2336   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2337 else
2338   ac_retval=1
2339 fi
2340 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2341   conftest.$ac_objext conftest.beam conftest.$ac_ext
2342 rm -f conftest.val
2343
2344   fi
2345   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2346   as_fn_set_status $ac_retval
2347
2348 } # ac_fn_c_compute_int
2349 cat >config.log <<_ACEOF
2350 This file contains any messages produced by compilers while
2351 running configure, to aid debugging if configure makes a mistake.
2352
2353 It was created by linux nfs-utils $as_me 1.2.6, which was
2354 generated by GNU Autoconf 2.68.  Invocation command line was
2355
2356   $ $0 $@
2357
2358 _ACEOF
2359 exec 5>>config.log
2360 {
2361 cat <<_ASUNAME
2362 ## --------- ##
2363 ## Platform. ##
2364 ## --------- ##
2365
2366 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2367 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2368 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2369 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2370 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2371
2372 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2373 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2374
2375 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2376 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2377 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2378 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2379 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2380 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2381 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2382
2383 _ASUNAME
2384
2385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2386 for as_dir in $PATH
2387 do
2388   IFS=$as_save_IFS
2389   test -z "$as_dir" && as_dir=.
2390     $as_echo "PATH: $as_dir"
2391   done
2392 IFS=$as_save_IFS
2393
2394 } >&5
2395
2396 cat >&5 <<_ACEOF
2397
2398
2399 ## ----------- ##
2400 ## Core tests. ##
2401 ## ----------- ##
2402
2403 _ACEOF
2404
2405
2406 # Keep a trace of the command line.
2407 # Strip out --no-create and --no-recursion so they do not pile up.
2408 # Strip out --silent because we don't want to record it for future runs.
2409 # Also quote any args containing shell meta-characters.
2410 # Make two passes to allow for proper duplicate-argument suppression.
2411 ac_configure_args=
2412 ac_configure_args0=
2413 ac_configure_args1=
2414 ac_must_keep_next=false
2415 for ac_pass in 1 2
2416 do
2417   for ac_arg
2418   do
2419     case $ac_arg in
2420     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2421     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2422     | -silent | --silent | --silen | --sile | --sil)
2423       continue ;;
2424     *\'*)
2425       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2426     esac
2427     case $ac_pass in
2428     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2429     2)
2430       as_fn_append ac_configure_args1 " '$ac_arg'"
2431       if test $ac_must_keep_next = true; then
2432         ac_must_keep_next=false # Got value, back to normal.
2433       else
2434         case $ac_arg in
2435           *=* | --config-cache | -C | -disable-* | --disable-* \
2436           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2437           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2438           | -with-* | --with-* | -without-* | --without-* | --x)
2439             case "$ac_configure_args0 " in
2440               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2441             esac
2442             ;;
2443           -* ) ac_must_keep_next=true ;;
2444         esac
2445       fi
2446       as_fn_append ac_configure_args " '$ac_arg'"
2447       ;;
2448     esac
2449   done
2450 done
2451 { ac_configure_args0=; unset ac_configure_args0;}
2452 { ac_configure_args1=; unset ac_configure_args1;}
2453
2454 # When interrupted or exit'd, cleanup temporary files, and complete
2455 # config.log.  We remove comments because anyway the quotes in there
2456 # would cause problems or look ugly.
2457 # WARNING: Use '\'' to represent an apostrophe within the trap.
2458 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2459 trap 'exit_status=$?
2460   # Save into config.log some information that might help in debugging.
2461   {
2462     echo
2463
2464     $as_echo "## ---------------- ##
2465 ## Cache variables. ##
2466 ## ---------------- ##"
2467     echo
2468     # The following way of writing the cache mishandles newlines in values,
2469 (
2470   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2471     eval ac_val=\$$ac_var
2472     case $ac_val in #(
2473     *${as_nl}*)
2474       case $ac_var in #(
2475       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2476 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2477       esac
2478       case $ac_var in #(
2479       _ | IFS | as_nl) ;; #(
2480       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2481       *) { eval $ac_var=; unset $ac_var;} ;;
2482       esac ;;
2483     esac
2484   done
2485   (set) 2>&1 |
2486     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2487     *${as_nl}ac_space=\ *)
2488       sed -n \
2489         "s/'\''/'\''\\\\'\'''\''/g;
2490           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2491       ;; #(
2492     *)
2493       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2494       ;;
2495     esac |
2496     sort
2497 )
2498     echo
2499
2500     $as_echo "## ----------------- ##
2501 ## Output variables. ##
2502 ## ----------------- ##"
2503     echo
2504     for ac_var in $ac_subst_vars
2505     do
2506       eval ac_val=\$$ac_var
2507       case $ac_val in
2508       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2509       esac
2510       $as_echo "$ac_var='\''$ac_val'\''"
2511     done | sort
2512     echo
2513
2514     if test -n "$ac_subst_files"; then
2515       $as_echo "## ------------------- ##
2516 ## File substitutions. ##
2517 ## ------------------- ##"
2518       echo
2519       for ac_var in $ac_subst_files
2520       do
2521         eval ac_val=\$$ac_var
2522         case $ac_val in
2523         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2524         esac
2525         $as_echo "$ac_var='\''$ac_val'\''"
2526       done | sort
2527       echo
2528     fi
2529
2530     if test -s confdefs.h; then
2531       $as_echo "## ----------- ##
2532 ## confdefs.h. ##
2533 ## ----------- ##"
2534       echo
2535       cat confdefs.h
2536       echo
2537     fi
2538     test "$ac_signal" != 0 &&
2539       $as_echo "$as_me: caught signal $ac_signal"
2540     $as_echo "$as_me: exit $exit_status"
2541   } >&5
2542   rm -f core *.core core.conftest.* &&
2543     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2544     exit $exit_status
2545 ' 0
2546 for ac_signal in 1 2 13 15; do
2547   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2548 done
2549 ac_signal=0
2550
2551 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2552 rm -f -r conftest* confdefs.h
2553
2554 $as_echo "/* confdefs.h */" > confdefs.h
2555
2556 # Predefined preprocessor variables.
2557
2558 cat >>confdefs.h <<_ACEOF
2559 #define PACKAGE_NAME "$PACKAGE_NAME"
2560 _ACEOF
2561
2562 cat >>confdefs.h <<_ACEOF
2563 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2564 _ACEOF
2565
2566 cat >>confdefs.h <<_ACEOF
2567 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2568 _ACEOF
2569
2570 cat >>confdefs.h <<_ACEOF
2571 #define PACKAGE_STRING "$PACKAGE_STRING"
2572 _ACEOF
2573
2574 cat >>confdefs.h <<_ACEOF
2575 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2576 _ACEOF
2577
2578 cat >>confdefs.h <<_ACEOF
2579 #define PACKAGE_URL "$PACKAGE_URL"
2580 _ACEOF
2581
2582
2583 # Let the site file select an alternate cache file if it wants to.
2584 # Prefer an explicitly selected file to automatically selected ones.
2585 ac_site_file1=NONE
2586 ac_site_file2=NONE
2587 if test -n "$CONFIG_SITE"; then
2588   # We do not want a PATH search for config.site.
2589   case $CONFIG_SITE in #((
2590     -*)  ac_site_file1=./$CONFIG_SITE;;
2591     */*) ac_site_file1=$CONFIG_SITE;;
2592     *)   ac_site_file1=./$CONFIG_SITE;;
2593   esac
2594 elif test "x$prefix" != xNONE; then
2595   ac_site_file1=$prefix/share/config.site
2596   ac_site_file2=$prefix/etc/config.site
2597 else
2598   ac_site_file1=$ac_default_prefix/share/config.site
2599   ac_site_file2=$ac_default_prefix/etc/config.site
2600 fi
2601 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2602 do
2603   test "x$ac_site_file" = xNONE && continue
2604   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2605     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2606 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2607     sed 's/^/| /' "$ac_site_file" >&5
2608     . "$ac_site_file" \
2609       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2610 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2611 as_fn_error $? "failed to load site script $ac_site_file
2612 See \`config.log' for more details" "$LINENO" 5; }
2613   fi
2614 done
2615
2616 if test -r "$cache_file"; then
2617   # Some versions of bash will fail to source /dev/null (special files
2618   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2619   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2620     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2621 $as_echo "$as_me: loading cache $cache_file" >&6;}
2622     case $cache_file in
2623       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2624       *)                      . "./$cache_file";;
2625     esac
2626   fi
2627 else
2628   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2629 $as_echo "$as_me: creating cache $cache_file" >&6;}
2630   >$cache_file
2631 fi
2632
2633 # Check that the precious variables saved in the cache have kept the same
2634 # value.
2635 ac_cache_corrupted=false
2636 for ac_var in $ac_precious_vars; do
2637   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2638   eval ac_new_set=\$ac_env_${ac_var}_set
2639   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2640   eval ac_new_val=\$ac_env_${ac_var}_value
2641   case $ac_old_set,$ac_new_set in
2642     set,)
2643       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2644 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2645       ac_cache_corrupted=: ;;
2646     ,set)
2647       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2648 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2649       ac_cache_corrupted=: ;;
2650     ,);;
2651     *)
2652       if test "x$ac_old_val" != "x$ac_new_val"; then
2653         # differences in whitespace do not lead to failure.
2654         ac_old_val_w=`echo x $ac_old_val`
2655         ac_new_val_w=`echo x $ac_new_val`
2656         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2657           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2658 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2659           ac_cache_corrupted=:
2660         else
2661           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2662 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2663           eval $ac_var=\$ac_old_val
2664         fi
2665         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2666 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2667         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2668 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2669       fi;;
2670   esac
2671   # Pass precious variables to config.status.
2672   if test "$ac_new_set" = set; then
2673     case $ac_new_val in
2674     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2675     *) ac_arg=$ac_var=$ac_new_val ;;
2676     esac
2677     case " $ac_configure_args " in
2678       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2679       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2680     esac
2681   fi
2682 done
2683 if $ac_cache_corrupted; then
2684   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2685 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2686   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2687 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2688   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2689 fi
2690 ## -------------------- ##
2691 ## Main body of script. ##
2692 ## -------------------- ##
2693
2694 ac_ext=c
2695 ac_cpp='$CPP $CPPFLAGS'
2696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2699
2700
2701 ac_aux_dir=
2702 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2703   if test -f "$ac_dir/install-sh"; then
2704     ac_aux_dir=$ac_dir
2705     ac_install_sh="$ac_aux_dir/install-sh -c"
2706     break
2707   elif test -f "$ac_dir/install.sh"; then
2708     ac_aux_dir=$ac_dir
2709     ac_install_sh="$ac_aux_dir/install.sh -c"
2710     break
2711   elif test -f "$ac_dir/shtool"; then
2712     ac_aux_dir=$ac_dir
2713     ac_install_sh="$ac_aux_dir/shtool install -c"
2714     break
2715   fi
2716 done
2717 if test -z "$ac_aux_dir"; then
2718   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2719 fi
2720
2721 # These three variables are undocumented and unsupported,
2722 # and are intended to be withdrawn in a future Autoconf release.
2723 # They can cause serious problems if a builder's source tree is in a directory
2724 # whose full name contains unusual characters.
2725 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2726 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2727 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2728
2729
2730 # Make sure we can run config.sub.
2731 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2732   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2733
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2735 $as_echo_n "checking build system type... " >&6; }
2736 if ${ac_cv_build+:} false; then :
2737   $as_echo_n "(cached) " >&6
2738 else
2739   ac_build_alias=$build_alias
2740 test "x$ac_build_alias" = x &&
2741   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2742 test "x$ac_build_alias" = x &&
2743   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2744 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2745   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2746
2747 fi
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2749 $as_echo "$ac_cv_build" >&6; }
2750 case $ac_cv_build in
2751 *-*-*) ;;
2752 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2753 esac
2754 build=$ac_cv_build
2755 ac_save_IFS=$IFS; IFS='-'
2756 set x $ac_cv_build
2757 shift
2758 build_cpu=$1
2759 build_vendor=$2
2760 shift; shift
2761 # Remember, the first character of IFS is used to create $*,
2762 # except with old shells:
2763 build_os=$*
2764 IFS=$ac_save_IFS
2765 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2766
2767
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2769 $as_echo_n "checking host system type... " >&6; }
2770 if ${ac_cv_host+:} false; then :
2771   $as_echo_n "(cached) " >&6
2772 else
2773   if test "x$host_alias" = x; then
2774   ac_cv_host=$ac_cv_build
2775 else
2776   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2777     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2778 fi
2779
2780 fi
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2782 $as_echo "$ac_cv_host" >&6; }
2783 case $ac_cv_host in
2784 *-*-*) ;;
2785 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2786 esac
2787 host=$ac_cv_host
2788 ac_save_IFS=$IFS; IFS='-'
2789 set x $ac_cv_host
2790 shift
2791 host_cpu=$1
2792 host_vendor=$2
2793 shift; shift
2794 # Remember, the first character of IFS is used to create $*,
2795 # except with old shells:
2796 host_os=$*
2797 IFS=$ac_save_IFS
2798 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2799
2800
2801
2802 am__api_version='1.11'
2803
2804 # Find a good install program.  We prefer a C program (faster),
2805 # so one script is as good as another.  But avoid the broken or
2806 # incompatible versions:
2807 # SysV /etc/install, /usr/sbin/install
2808 # SunOS /usr/etc/install
2809 # IRIX /sbin/install
2810 # AIX /bin/install
2811 # AmigaOS /C/install, which installs bootblocks on floppy discs
2812 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2813 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2814 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2815 # OS/2's system install, which has a completely different semantic
2816 # ./install, which can be erroneously created by make from ./install.sh.
2817 # Reject install programs that cannot install multiple files.
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2819 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2820 if test -z "$INSTALL"; then
2821 if ${ac_cv_path_install+:} false; then :
2822   $as_echo_n "(cached) " >&6
2823 else
2824   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825 for as_dir in $PATH
2826 do
2827   IFS=$as_save_IFS
2828   test -z "$as_dir" && as_dir=.
2829     # Account for people who put trailing slashes in PATH elements.
2830 case $as_dir/ in #((
2831   ./ | .// | /[cC]/* | \
2832   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2833   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2834   /usr/ucb/* ) ;;
2835   *)
2836     # OSF1 and SCO ODT 3.0 have their own names for install.
2837     # Don't use installbsd from OSF since it installs stuff as root
2838     # by default.
2839     for ac_prog in ginstall scoinst install; do
2840       for ac_exec_ext in '' $ac_executable_extensions; do
2841         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2842           if test $ac_prog = install &&
2843             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2844             # AIX install.  It has an incompatible calling convention.
2845             :
2846           elif test $ac_prog = install &&
2847             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2848             # program-specific install script used by HP pwplus--don't use.
2849             :
2850           else
2851             rm -rf conftest.one conftest.two conftest.dir
2852             echo one > conftest.one
2853             echo two > conftest.two
2854             mkdir conftest.dir
2855             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2856               test -s conftest.one && test -s conftest.two &&
2857               test -s conftest.dir/conftest.one &&
2858               test -s conftest.dir/conftest.two
2859             then
2860               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2861               break 3
2862             fi
2863           fi
2864         fi
2865       done
2866     done
2867     ;;
2868 esac
2869
2870   done
2871 IFS=$as_save_IFS
2872
2873 rm -rf conftest.one conftest.two conftest.dir
2874
2875 fi
2876   if test "${ac_cv_path_install+set}" = set; then
2877     INSTALL=$ac_cv_path_install
2878   else
2879     # As a last resort, use the slow shell script.  Don't cache a
2880     # value for INSTALL within a source directory, because that will
2881     # break other packages using the cache if that directory is
2882     # removed, or if the value is a relative name.
2883     INSTALL=$ac_install_sh
2884   fi
2885 fi
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2887 $as_echo "$INSTALL" >&6; }
2888
2889 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2890 # It thinks the first close brace ends the variable substitution.
2891 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2892
2893 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2894
2895 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2896
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2898 $as_echo_n "checking whether build environment is sane... " >&6; }
2899 # Just in case
2900 sleep 1
2901 echo timestamp > conftest.file
2902 # Reject unsafe characters in $srcdir or the absolute working directory
2903 # name.  Accept space and tab only in the latter.
2904 am_lf='
2905 '
2906 case `pwd` in
2907   *[\\\"\#\$\&\'\`$am_lf]*)
2908     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2909 esac
2910 case $srcdir in
2911   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2912     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2913 esac
2914
2915 # Do `set' in a subshell so we don't clobber the current shell's
2916 # arguments.  Must try -L first in case configure is actually a
2917 # symlink; some systems play weird games with the mod time of symlinks
2918 # (eg FreeBSD returns the mod time of the symlink's containing
2919 # directory).
2920 if (
2921    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2922    if test "$*" = "X"; then
2923       # -L didn't work.
2924       set X `ls -t "$srcdir/configure" conftest.file`
2925    fi
2926    rm -f conftest.file
2927    if test "$*" != "X $srcdir/configure conftest.file" \
2928       && test "$*" != "X conftest.file $srcdir/configure"; then
2929
2930       # If neither matched, then we have a broken ls.  This can happen
2931       # if, for instance, CONFIG_SHELL is bash and it inherits a
2932       # broken ls alias from the environment.  This has actually
2933       # happened.  Such a system could not be considered "sane".
2934       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2935 alias in your environment" "$LINENO" 5
2936    fi
2937
2938    test "$2" = conftest.file
2939    )
2940 then
2941    # Ok.
2942    :
2943 else
2944    as_fn_error $? "newly created file is older than distributed files!
2945 Check your system clock" "$LINENO" 5
2946 fi
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2948 $as_echo "yes" >&6; }
2949 test "$program_prefix" != NONE &&
2950   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2951 # Use a double $ so make ignores it.
2952 test "$program_suffix" != NONE &&
2953   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2954 # Double any \ or $.
2955 # By default was `s,x,x', remove it if useless.
2956 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2957 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2958
2959 # expand $ac_aux_dir to an absolute path
2960 am_aux_dir=`cd $ac_aux_dir && pwd`
2961
2962 if test x"${MISSING+set}" != xset; then
2963   case $am_aux_dir in
2964   *\ * | *\     *)
2965     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2966   *)
2967     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2968   esac
2969 fi
2970 # Use eval to expand $SHELL
2971 if eval "$MISSING --run true"; then
2972   am_missing_run="$MISSING --run "
2973 else
2974   am_missing_run=
2975   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2976 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2977 fi
2978
2979 if test x"${install_sh}" != xset; then
2980   case $am_aux_dir in
2981   *\ * | *\     *)
2982     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2983   *)
2984     install_sh="\${SHELL} $am_aux_dir/install-sh"
2985   esac
2986 fi
2987
2988 # Installed binaries are usually stripped using `strip' when the user
2989 # run `make install-strip'.  However `strip' might not be the right
2990 # tool to use in cross-compilation environments, therefore Automake
2991 # will honor the `STRIP' environment variable to overrule this program.
2992 if test "$cross_compiling" != no; then
2993   if test -n "$ac_tool_prefix"; then
2994   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2995 set dummy ${ac_tool_prefix}strip; ac_word=$2
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2997 $as_echo_n "checking for $ac_word... " >&6; }
2998 if ${ac_cv_prog_STRIP+:} false; then :
2999   $as_echo_n "(cached) " >&6
3000 else
3001   if test -n "$STRIP"; then
3002   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3003 else
3004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3005 for as_dir in $PATH
3006 do
3007   IFS=$as_save_IFS
3008   test -z "$as_dir" && as_dir=.
3009     for ac_exec_ext in '' $ac_executable_extensions; do
3010   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3011     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3012     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3013     break 2
3014   fi
3015 done
3016   done
3017 IFS=$as_save_IFS
3018
3019 fi
3020 fi
3021 STRIP=$ac_cv_prog_STRIP
3022 if test -n "$STRIP"; then
3023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3024 $as_echo "$STRIP" >&6; }
3025 else
3026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3027 $as_echo "no" >&6; }
3028 fi
3029
3030
3031 fi
3032 if test -z "$ac_cv_prog_STRIP"; then
3033   ac_ct_STRIP=$STRIP
3034   # Extract the first word of "strip", so it can be a program name with args.
3035 set dummy strip; ac_word=$2
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3037 $as_echo_n "checking for $ac_word... " >&6; }
3038 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3039   $as_echo_n "(cached) " >&6
3040 else
3041   if test -n "$ac_ct_STRIP"; then
3042   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3043 else
3044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3045 for as_dir in $PATH
3046 do
3047   IFS=$as_save_IFS
3048   test -z "$as_dir" && as_dir=.
3049     for ac_exec_ext in '' $ac_executable_extensions; do
3050   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3051     ac_cv_prog_ac_ct_STRIP="strip"
3052     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3053     break 2
3054   fi
3055 done
3056   done
3057 IFS=$as_save_IFS
3058
3059 fi
3060 fi
3061 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3062 if test -n "$ac_ct_STRIP"; then
3063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3064 $as_echo "$ac_ct_STRIP" >&6; }
3065 else
3066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3067 $as_echo "no" >&6; }
3068 fi
3069
3070   if test "x$ac_ct_STRIP" = x; then
3071     STRIP=":"
3072   else
3073     case $cross_compiling:$ac_tool_warned in
3074 yes:)
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3076 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3077 ac_tool_warned=yes ;;
3078 esac
3079     STRIP=$ac_ct_STRIP
3080   fi
3081 else
3082   STRIP="$ac_cv_prog_STRIP"
3083 fi
3084
3085 fi
3086 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3087
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3089 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3090 if test -z "$MKDIR_P"; then
3091   if ${ac_cv_path_mkdir+:} false; then :
3092   $as_echo_n "(cached) " >&6
3093 else
3094   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3095 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3096 do
3097   IFS=$as_save_IFS
3098   test -z "$as_dir" && as_dir=.
3099     for ac_prog in mkdir gmkdir; do
3100          for ac_exec_ext in '' $ac_executable_extensions; do
3101            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3102            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3103              'mkdir (GNU coreutils) '* | \
3104              'mkdir (coreutils) '* | \
3105              'mkdir (fileutils) '4.1*)
3106                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3107                break 3;;
3108            esac
3109          done
3110        done
3111   done
3112 IFS=$as_save_IFS
3113
3114 fi
3115
3116   test -d ./--version && rmdir ./--version
3117   if test "${ac_cv_path_mkdir+set}" = set; then
3118     MKDIR_P="$ac_cv_path_mkdir -p"
3119   else
3120     # As a last resort, use the slow shell script.  Don't cache a
3121     # value for MKDIR_P within a source directory, because that will
3122     # break other packages using the cache if that directory is
3123     # removed, or if the value is a relative name.
3124     MKDIR_P="$ac_install_sh -d"
3125   fi
3126 fi
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3128 $as_echo "$MKDIR_P" >&6; }
3129
3130 mkdir_p="$MKDIR_P"
3131 case $mkdir_p in
3132   [\\/$]* | ?:[\\/]*) ;;
3133   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3134 esac
3135
3136 for ac_prog in gawk mawk nawk awk
3137 do
3138   # Extract the first word of "$ac_prog", so it can be a program name with args.
3139 set dummy $ac_prog; ac_word=$2
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3141 $as_echo_n "checking for $ac_word... " >&6; }
3142 if ${ac_cv_prog_AWK+:} false; then :
3143   $as_echo_n "(cached) " >&6
3144 else
3145   if test -n "$AWK"; then
3146   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3147 else
3148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149 for as_dir in $PATH
3150 do
3151   IFS=$as_save_IFS
3152   test -z "$as_dir" && as_dir=.
3153     for ac_exec_ext in '' $ac_executable_extensions; do
3154   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3155     ac_cv_prog_AWK="$ac_prog"
3156     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3157     break 2
3158   fi
3159 done
3160   done
3161 IFS=$as_save_IFS
3162
3163 fi
3164 fi
3165 AWK=$ac_cv_prog_AWK
3166 if test -n "$AWK"; then
3167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3168 $as_echo "$AWK" >&6; }
3169 else
3170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3171 $as_echo "no" >&6; }
3172 fi
3173
3174
3175   test -n "$AWK" && break
3176 done
3177
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3179 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3180 set x ${MAKE-make}
3181 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3182 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3183   $as_echo_n "(cached) " >&6
3184 else
3185   cat >conftest.make <<\_ACEOF
3186 SHELL = /bin/sh
3187 all:
3188         @echo '@@@%%%=$(MAKE)=@@@%%%'
3189 _ACEOF
3190 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3191 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3192   *@@@%%%=?*=@@@%%%*)
3193     eval ac_cv_prog_make_${ac_make}_set=yes;;
3194   *)
3195     eval ac_cv_prog_make_${ac_make}_set=no;;
3196 esac
3197 rm -f conftest.make
3198 fi
3199 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3201 $as_echo "yes" >&6; }
3202   SET_MAKE=
3203 else
3204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3205 $as_echo "no" >&6; }
3206   SET_MAKE="MAKE=${MAKE-make}"
3207 fi
3208
3209 rm -rf .tst 2>/dev/null
3210 mkdir .tst 2>/dev/null
3211 if test -d .tst; then
3212   am__leading_dot=.
3213 else
3214   am__leading_dot=_
3215 fi
3216 rmdir .tst 2>/dev/null
3217
3218 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3219   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3220   # is not polluted with repeated "-I."
3221   am__isrc=' -I$(srcdir)'
3222   # test to see if srcdir already configured
3223   if test -f $srcdir/config.status; then
3224     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3225   fi
3226 fi
3227
3228 # test whether we have cygpath
3229 if test -z "$CYGPATH_W"; then
3230   if (cygpath --version) >/dev/null 2>/dev/null; then
3231     CYGPATH_W='cygpath -w'
3232   else
3233     CYGPATH_W=echo
3234   fi
3235 fi
3236
3237
3238 # Define the identity of the package.
3239  PACKAGE='nfs-utils'
3240  VERSION='1.2.6'
3241
3242
3243 cat >>confdefs.h <<_ACEOF
3244 #define PACKAGE "$PACKAGE"
3245 _ACEOF
3246
3247
3248 cat >>confdefs.h <<_ACEOF
3249 #define VERSION "$VERSION"
3250 _ACEOF
3251
3252 # Some tools Automake needs.
3253
3254 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3255
3256
3257 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3258
3259
3260 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3261
3262
3263 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3264
3265
3266 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3267
3268 # We need awk for the "check" target.  The system "awk" is bad on
3269 # some platforms.
3270 # Always define AMTAR for backward compatibility.
3271
3272 AMTAR=${AMTAR-"${am_missing_run}tar"}
3273
3274 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3275
3276
3277
3278
3279
3280
3281
3282
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3284 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3285     # Check whether --enable-maintainer-mode was given.
3286 if test "${enable_maintainer_mode+set}" = set; then :
3287   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3288 else
3289   USE_MAINTAINER_MODE=no
3290 fi
3291
3292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3293 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3294    if test $USE_MAINTAINER_MODE = yes; then
3295   MAINTAINER_MODE_TRUE=
3296   MAINTAINER_MODE_FALSE='#'
3297 else
3298   MAINTAINER_MODE_TRUE='#'
3299   MAINTAINER_MODE_FALSE=
3300 fi
3301
3302   MAINT=$MAINTAINER_MODE_TRUE
3303
3304
3305
3306
3307 # Check whether --with-release was given.
3308 if test "${with_release+set}" = set; then :
3309   withval=$with_release; RELEASE=$withval
3310 else
3311   RELEASE=1
3312 fi
3313
3314
3315
3316 # Check whether --with-statedir was given.
3317 if test "${with_statedir+set}" = set; then :
3318   withval=$with_statedir; statedir=$withval
3319 else
3320   statedir=/var/lib/nfs
3321 fi
3322
3323
3324
3325 # Check whether --with-statdpath was given.
3326 if test "${with_statdpath+set}" = set; then :
3327   withval=$with_statdpath; statdpath=$withval
3328 else
3329   statdpath=$statedir
3330
3331 fi
3332
3333
3334
3335 # Check whether --with-statduser was given.
3336 if test "${with_statduser+set}" = set; then :
3337   withval=$with_statduser; statduser=$withval
3338 else
3339   if test "x$cross_compiling" = "xno"; then
3340                 if grep -s '^rpcuser:' /etc/passwd > /dev/null; then
3341                         statduser=rpcuser
3342                 else
3343                         statduser=nobody
3344                 fi
3345         else
3346                 statduser=nobody
3347         fi
3348 fi
3349
3350
3351
3352 # Check whether --with-start-statd was given.
3353 if test "${with_start_statd+set}" = set; then :
3354   withval=$with_start_statd; startstatd=$withval
3355 else
3356   startstatd=/usr/sbin/start-statd
3357
3358 fi
3359
3360
3361
3362 cat >>confdefs.h <<_ACEOF
3363 #define START_STATD "$startstatd"
3364 _ACEOF
3365
3366 # Check whether --enable-nfsv4 was given.
3367 if test "${enable_nfsv4+set}" = set; then :
3368   enableval=$enable_nfsv4; enable_nfsv4=$enableval
3369 else
3370   enable_nfsv4=yes
3371 fi
3372
3373         if test "$enable_nfsv4" = yes; then
3374                 IDMAPD=idmapd
3375         else
3376                 enable_nfsv4=
3377                 IDMAPD=
3378         fi
3379
3380
3381          if test "$enable_nfsv4" = "yes"; then
3382   CONFIG_NFSV4_TRUE=
3383   CONFIG_NFSV4_FALSE='#'
3384 else
3385   CONFIG_NFSV4_TRUE='#'
3386   CONFIG_NFSV4_FALSE=
3387 fi
3388
3389
3390 # Check whether --enable-nfsv41 was given.
3391 if test "${enable_nfsv41+set}" = set; then :
3392   enableval=$enable_nfsv41; enable_nfsv41=$enableval
3393 else
3394   enable_nfsv41=yes
3395 fi
3396
3397         if test "$enable_nfsv41" = yes; then
3398                 if test "$enable_nfsv4" != yes; then
3399                         as_fn_error $? "NFS v4.1 is enabled but NFS v4 is not. Use --disable-nfsv41" "$LINENO" 5
3400                 fi
3401                 BLKMAPD=blkmapd
3402         else
3403                 enable_nfsv41=
3404                 BLKMAPD=
3405         fi
3406
3407          if test "$enable_nfsv41" = "yes"; then
3408   CONFIG_NFSV41_TRUE=
3409   CONFIG_NFSV41_FALSE='#'
3410 else
3411   CONFIG_NFSV41_TRUE='#'
3412   CONFIG_NFSV41_FALSE=
3413 fi
3414
3415
3416 # Check whether --enable-gss was given.
3417 if test "${enable_gss+set}" = set; then :
3418   enableval=$enable_gss; enable_gss=$enableval
3419 else
3420   enable_gss=yes
3421 fi
3422
3423         if test "$enable_gss" = yes; then
3424                 GSSD=gssd
3425                 SVCGSSD=svcgssd
3426         else
3427                 enable_gss=
3428                 GSSD=
3429                 SVCGSSD=
3430         fi
3431
3432
3433
3434          if test "$enable_gss" = "yes"; then
3435   CONFIG_GSS_TRUE=
3436   CONFIG_GSS_FALSE='#'
3437 else
3438   CONFIG_GSS_TRUE='#'
3439   CONFIG_GSS_FALSE=
3440 fi
3441
3442 # Check whether --enable-kprefix was given.
3443 if test "${enable_kprefix+set}" = set; then :
3444   enableval=$enable_kprefix; test "$enableval" = "yes" && kprefix=k
3445 else
3446   kprefix=
3447 fi
3448
3449
3450
3451 # Check whether --with-rpcgen was given.
3452 if test "${with_rpcgen+set}" = set; then :
3453   withval=$with_rpcgen; rpcgen_path=$withval
3454 else
3455   rpcgen_path=yes
3456 fi
3457
3458         RPCGEN_PATH=
3459         if test "$rpcgen_path" = "yes"; then
3460             for p in /usr/local/bin/rpcgen /usr/bin/rpcgen /bin/rpcgen
3461             do if test -f $p ; then RPCGEN_PATH=$p ; break; fi ; done
3462         elif test "$rpcgen_path" != "internal"; then
3463             RPCGEN_PATH=$rpcgen_path
3464         fi
3465
3466          if test "$RPCGEN_PATH" = ""; then
3467   CONFIG_RPCGEN_TRUE=
3468   CONFIG_RPCGEN_FALSE='#'
3469 else
3470   CONFIG_RPCGEN_TRUE='#'
3471   CONFIG_RPCGEN_FALSE=
3472 fi
3473
3474 # Check whether --enable-uuid was given.
3475 if test "${enable_uuid+set}" = set; then :
3476   enableval=$enable_uuid; if test "$enableval" = "yes" ; then choose_blkid=yes; else choose_blkid=no; fi
3477 else
3478   choose_blkid=default
3479 fi
3480
3481 # Check whether --enable-mount was given.
3482 if test "${enable_mount+set}" = set; then :
3483   enableval=$enable_mount; enable_mount=$enableval
3484 else
3485   enable_mount=yes
3486 fi
3487
3488          if test "$enable_mount" = "yes"; then
3489   CONFIG_MOUNT_TRUE=
3490   CONFIG_MOUNT_FALSE='#'
3491 else
3492   CONFIG_MOUNT_TRUE='#'
3493   CONFIG_MOUNT_FALSE=
3494 fi
3495
3496
3497 if test "$enable_mount" = yes; then
3498         # Check whether --enable-libmount-mount was given.
3499 if test "${enable_libmount_mount+set}" = set; then :
3500   enableval=$enable_libmount_mount; enable_libmount=$enableval
3501 else
3502   enable_libmount=no
3503 fi
3504
3505 fi
3506
3507 # Check whether --enable-tirpc was given.
3508 if test "${enable_tirpc+set}" = set; then :
3509   enableval=$enable_tirpc; enable_tirpc=$enableval
3510 else
3511   enable_tirpc=''
3512 fi
3513
3514 # Check whether --enable-ipv6 was given.
3515 if test "${enable_ipv6+set}" = set; then :
3516   enableval=$enable_ipv6; enable_ipv6=$enableval
3517 else
3518   enable_ipv6=no
3519 fi
3520
3521         if test "$enable_ipv6" = yes; then
3522
3523 $as_echo "#define IPV6_SUPPORTED 1" >>confdefs.h
3524
3525         else
3526                 enable_ipv6=
3527         fi
3528
3529          if test "$enable_ipv6" = "yes"; then
3530   CONFIG_IPV6_TRUE=
3531   CONFIG_IPV6_FALSE='#'
3532 else
3533   CONFIG_IPV6_TRUE='#'
3534   CONFIG_IPV6_FALSE=
3535 fi
3536
3537
3538 if test "$enable_mount" = yes; then
3539         # Check whether --enable-mountconfig was given.
3540 if test "${enable_mountconfig+set}" = set; then :
3541   enableval=$enable_mountconfig; mountconfig=$enableval
3542 else
3543   mountconfig=no
3544 fi
3545
3546         if test "$enable_mountconfig" = yes; then
3547
3548 $as_echo "#define MOUNT_CONFIG 1" >>confdefs.h
3549
3550
3551 # Check whether --with-mountfile was given.
3552 if test "${with_mountfile+set}" = set; then :
3553   withval=$with_mountfile; mountfile=$withval
3554 else
3555   mountfile=/etc/nfsmount.conf
3556 fi
3557
3558
3559
3560 cat >>confdefs.h <<_ACEOF
3561 #define MOUNTOPTS_CONFFILE "$mountfile"
3562 _ACEOF
3563
3564         else
3565                 enable_mountconfig=
3566         fi
3567
3568          if test "$enable_mountconfig" = "yes"; then
3569   MOUNT_CONFIG_TRUE=
3570   MOUNT_CONFIG_FALSE='#'
3571 else
3572   MOUNT_CONFIG_TRUE='#'
3573   MOUNT_CONFIG_FALSE=
3574 fi
3575
3576 else
3577          if test "$enable_mount" = "yes"; then
3578   MOUNT_CONFIG_TRUE=
3579   MOUNT_CONFIG_FALSE='#'
3580 else
3581   MOUNT_CONFIG_TRUE='#'
3582   MOUNT_CONFIG_FALSE=
3583 fi
3584
3585 fi
3586
3587 # Check whether --enable-nfsdcld was given.
3588 if test "${enable_nfsdcld+set}" = set; then :
3589   enableval=$enable_nfsdcld; enable_nfsdcld=$enableval
3590 else
3591   enable_nfsdcld="no"
3592 fi
3593
3594
3595 DEPDIR="${am__leading_dot}deps"
3596
3597 ac_config_commands="$ac_config_commands depfiles"
3598
3599
3600 am_make=${MAKE-make}
3601 cat > confinc << 'END'
3602 am__doit:
3603         @echo this is the am__doit target
3604 .PHONY: am__doit
3605 END
3606 # If we don't find an include directive, just comment out the code.
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3608 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3609 am__include="#"
3610 am__quote=
3611 _am_result=none
3612 # First try GNU make style include.
3613 echo "include confinc" > confmf
3614 # Ignore all kinds of additional output from `make'.
3615 case `$am_make -s -f confmf 2> /dev/null` in #(
3616 *the\ am__doit\ target*)
3617   am__include=include
3618   am__quote=
3619   _am_result=GNU
3620   ;;
3621 esac
3622 # Now try BSD make style include.
3623 if test "$am__include" = "#"; then
3624    echo '.include "confinc"' > confmf
3625    case `$am_make -s -f confmf 2> /dev/null` in #(
3626    *the\ am__doit\ target*)
3627      am__include=.include
3628      am__quote="\""
3629      _am_result=BSD
3630      ;;
3631    esac
3632 fi
3633
3634
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3636 $as_echo "$_am_result" >&6; }
3637 rm -f confinc confmf
3638
3639 # Check whether --enable-dependency-tracking was given.
3640 if test "${enable_dependency_tracking+set}" = set; then :
3641   enableval=$enable_dependency_tracking;
3642 fi
3643
3644 if test "x$enable_dependency_tracking" != xno; then
3645   am_depcomp="$ac_aux_dir/depcomp"
3646   AMDEPBACKSLASH='\'
3647 fi
3648  if test "x$enable_dependency_tracking" != xno; then
3649   AMDEP_TRUE=
3650   AMDEP_FALSE='#'
3651 else
3652   AMDEP_TRUE='#'
3653   AMDEP_FALSE=
3654 fi
3655
3656
3657 ac_ext=c
3658 ac_cpp='$CPP $CPPFLAGS'
3659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3662 if test -n "$ac_tool_prefix"; then
3663   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3664 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3666 $as_echo_n "checking for $ac_word... " >&6; }
3667 if ${ac_cv_prog_CC+:} false; then :
3668   $as_echo_n "(cached) " >&6
3669 else
3670   if test -n "$CC"; then
3671   ac_cv_prog_CC="$CC" # Let the user override the test.
3672 else
3673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3674 for as_dir in $PATH
3675 do
3676   IFS=$as_save_IFS
3677   test -z "$as_dir" && as_dir=.
3678     for ac_exec_ext in '' $ac_executable_extensions; do
3679   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3680     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3681     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3682     break 2
3683   fi
3684 done
3685   done
3686 IFS=$as_save_IFS
3687
3688 fi
3689 fi
3690 CC=$ac_cv_prog_CC
3691 if test -n "$CC"; then
3692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3693 $as_echo "$CC" >&6; }
3694 else
3695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3696 $as_echo "no" >&6; }
3697 fi
3698
3699
3700 fi
3701 if test -z "$ac_cv_prog_CC"; then
3702   ac_ct_CC=$CC
3703   # Extract the first word of "gcc", so it can be a program name with args.
3704 set dummy gcc; ac_word=$2
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3706 $as_echo_n "checking for $ac_word... " >&6; }
3707 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3708   $as_echo_n "(cached) " >&6
3709 else
3710   if test -n "$ac_ct_CC"; then
3711   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3712 else
3713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3714 for as_dir in $PATH
3715 do
3716   IFS=$as_save_IFS
3717   test -z "$as_dir" && as_dir=.
3718     for ac_exec_ext in '' $ac_executable_extensions; do
3719   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3720     ac_cv_prog_ac_ct_CC="gcc"
3721     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3722     break 2
3723   fi
3724 done
3725   done
3726 IFS=$as_save_IFS
3727
3728 fi
3729 fi
3730 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3731 if test -n "$ac_ct_CC"; then
3732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3733 $as_echo "$ac_ct_CC" >&6; }
3734 else
3735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3736 $as_echo "no" >&6; }
3737 fi
3738
3739   if test "x$ac_ct_CC" = x; then
3740     CC=""
3741   else
3742     case $cross_compiling:$ac_tool_warned in
3743 yes:)
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3745 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3746 ac_tool_warned=yes ;;
3747 esac
3748     CC=$ac_ct_CC
3749   fi
3750 else
3751   CC="$ac_cv_prog_CC"
3752 fi
3753
3754 if test -z "$CC"; then
3755           if test -n "$ac_tool_prefix"; then
3756     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3757 set dummy ${ac_tool_prefix}cc; ac_word=$2
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3759 $as_echo_n "checking for $ac_word... " >&6; }
3760 if ${ac_cv_prog_CC+:} false; then :
3761   $as_echo_n "(cached) " >&6
3762 else
3763   if test -n "$CC"; then
3764   ac_cv_prog_CC="$CC" # Let the user override the test.
3765 else
3766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3767 for as_dir in $PATH
3768 do
3769   IFS=$as_save_IFS
3770   test -z "$as_dir" && as_dir=.
3771     for ac_exec_ext in '' $ac_executable_extensions; do
3772   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3773     ac_cv_prog_CC="${ac_tool_prefix}cc"
3774     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3775     break 2
3776   fi
3777 done
3778   done
3779 IFS=$as_save_IFS
3780
3781 fi
3782 fi
3783 CC=$ac_cv_prog_CC
3784 if test -n "$CC"; then
3785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3786 $as_echo "$CC" >&6; }
3787 else
3788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3789 $as_echo "no" >&6; }
3790 fi
3791
3792
3793   fi
3794 fi
3795 if test -z "$CC"; then
3796   # Extract the first word of "cc", so it can be a program name with args.
3797 set dummy cc; ac_word=$2
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3799 $as_echo_n "checking for $ac_word... " >&6; }
3800 if ${ac_cv_prog_CC+:} false; then :
3801   $as_echo_n "(cached) " >&6
3802 else
3803   if test -n "$CC"; then
3804   ac_cv_prog_CC="$CC" # Let the user override the test.
3805 else
3806   ac_prog_rejected=no
3807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3808 for as_dir in $PATH
3809 do
3810   IFS=$as_save_IFS
3811   test -z "$as_dir" && as_dir=.
3812     for ac_exec_ext in '' $ac_executable_extensions; do
3813   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3814     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3815        ac_prog_rejected=yes
3816        continue
3817      fi
3818     ac_cv_prog_CC="cc"
3819     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3820     break 2
3821   fi
3822 done
3823   done
3824 IFS=$as_save_IFS
3825
3826 if test $ac_prog_rejected = yes; then
3827   # We found a bogon in the path, so make sure we never use it.
3828   set dummy $ac_cv_prog_CC
3829   shift
3830   if test $# != 0; then
3831     # We chose a different compiler from the bogus one.
3832     # However, it has the same basename, so the bogon will be chosen
3833     # first if we set CC to just the basename; use the full file name.
3834     shift
3835     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3836   fi
3837 fi
3838 fi
3839 fi
3840 CC=$ac_cv_prog_CC
3841 if test -n "$CC"; then
3842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3843 $as_echo "$CC" >&6; }
3844 else
3845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3846 $as_echo "no" >&6; }
3847 fi
3848
3849
3850 fi
3851 if test -z "$CC"; then
3852   if test -n "$ac_tool_prefix"; then
3853   for ac_prog in cl.exe
3854   do
3855     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3856 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3858 $as_echo_n "checking for $ac_word... " >&6; }
3859 if ${ac_cv_prog_CC+:} false; then :
3860   $as_echo_n "(cached) " >&6
3861 else
3862   if test -n "$CC"; then
3863   ac_cv_prog_CC="$CC" # Let the user override the test.
3864 else
3865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3866 for as_dir in $PATH
3867 do
3868   IFS=$as_save_IFS
3869   test -z "$as_dir" && as_dir=.
3870     for ac_exec_ext in '' $ac_executable_extensions; do
3871   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3872     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3873     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3874     break 2
3875   fi
3876 done
3877   done
3878 IFS=$as_save_IFS
3879
3880 fi
3881 fi
3882 CC=$ac_cv_prog_CC
3883 if test -n "$CC"; then
3884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3885 $as_echo "$CC" >&6; }
3886 else
3887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3888 $as_echo "no" >&6; }
3889 fi
3890
3891
3892     test -n "$CC" && break
3893   done
3894 fi
3895 if test -z "$CC"; then
3896   ac_ct_CC=$CC
3897   for ac_prog in cl.exe
3898 do
3899   # Extract the first word of "$ac_prog", so it can be a program name with args.
3900 set dummy $ac_prog; ac_word=$2
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3902 $as_echo_n "checking for $ac_word... " >&6; }
3903 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3904   $as_echo_n "(cached) " >&6
3905 else
3906   if test -n "$ac_ct_CC"; then
3907   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3908 else
3909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3910 for as_dir in $PATH
3911 do
3912   IFS=$as_save_IFS
3913   test -z "$as_dir" && as_dir=.
3914     for ac_exec_ext in '' $ac_executable_extensions; do
3915   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3916     ac_cv_prog_ac_ct_CC="$ac_prog"
3917     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3918     break 2
3919   fi
3920 done
3921   done
3922 IFS=$as_save_IFS
3923
3924 fi
3925 fi
3926 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3927 if test -n "$ac_ct_CC"; then
3928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3929 $as_echo "$ac_ct_CC" >&6; }
3930 else
3931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3932 $as_echo "no" >&6; }
3933 fi
3934
3935
3936   test -n "$ac_ct_CC" && break
3937 done
3938
3939   if test "x$ac_ct_CC" = x; then
3940     CC=""
3941   else
3942     case $cross_compiling:$ac_tool_warned in
3943 yes:)
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3946 ac_tool_warned=yes ;;
3947 esac
3948     CC=$ac_ct_CC
3949   fi
3950 fi
3951
3952 fi
3953
3954
3955 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3956 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3957 as_fn_error $? "no acceptable C compiler found in \$PATH
3958 See \`config.log' for more details" "$LINENO" 5; }
3959
3960 # Provide some information about the compiler.
3961 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3962 set X $ac_compile
3963 ac_compiler=$2
3964 for ac_option in --version -v -V -qversion; do
3965   { { ac_try="$ac_compiler $ac_option >&5"
3966 case "(($ac_try" in
3967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3968   *) ac_try_echo=$ac_try;;
3969 esac
3970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3971 $as_echo "$ac_try_echo"; } >&5
3972   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3973   ac_status=$?
3974   if test -s conftest.err; then
3975     sed '10a\
3976 ... rest of stderr output deleted ...
3977          10q' conftest.err >conftest.er1
3978     cat conftest.er1 >&5
3979   fi
3980   rm -f conftest.er1 conftest.err
3981   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3982   test $ac_status = 0; }
3983 done
3984
3985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3986 /* end confdefs.h.  */
3987
3988 int
3989 main ()
3990 {
3991
3992   ;
3993   return 0;
3994 }
3995 _ACEOF
3996 ac_clean_files_save=$ac_clean_files
3997 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3998 # Try to create an executable without -o first, disregard a.out.
3999 # It will help us diagnose broken compilers, and finding out an intuition
4000 # of exeext.
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4002 $as_echo_n "checking whether the C compiler works... " >&6; }
4003 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4004
4005 # The possible output files:
4006 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4007
4008 ac_rmfiles=
4009 for ac_file in $ac_files
4010 do
4011   case $ac_file in
4012     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4013     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4014   esac
4015 done
4016 rm -f $ac_rmfiles
4017
4018 if { { ac_try="$ac_link_default"
4019 case "(($ac_try" in
4020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4021   *) ac_try_echo=$ac_try;;
4022 esac
4023 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4024 $as_echo "$ac_try_echo"; } >&5
4025   (eval "$ac_link_default") 2>&5
4026   ac_status=$?
4027   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4028   test $ac_status = 0; }; then :
4029   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4030 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4031 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4032 # so that the user can short-circuit this test for compilers unknown to
4033 # Autoconf.
4034 for ac_file in $ac_files ''
4035 do
4036   test -f "$ac_file" || continue
4037   case $ac_file in
4038     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4039         ;;
4040     [ab].out )
4041         # We found the default executable, but exeext='' is most
4042         # certainly right.
4043         break;;
4044     *.* )
4045         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4046         then :; else
4047            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4048         fi
4049         # We set ac_cv_exeext here because the later test for it is not
4050         # safe: cross compilers may not add the suffix if given an `-o'
4051         # argument, so we may need to know it at that point already.
4052         # Even if this section looks crufty: it has the advantage of
4053         # actually working.
4054         break;;
4055     * )
4056         break;;
4057   esac
4058 done
4059 test "$ac_cv_exeext" = no && ac_cv_exeext=
4060
4061 else
4062   ac_file=''
4063 fi
4064 if test -z "$ac_file"; then :
4065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4066 $as_echo "no" >&6; }
4067 $as_echo "$as_me: failed program was:" >&5
4068 sed 's/^/| /' conftest.$ac_ext >&5
4069
4070 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4071 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4072 as_fn_error 77 "C compiler cannot create executables
4073 See \`config.log' for more details" "$LINENO" 5; }
4074 else
4075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4076 $as_echo "yes" >&6; }
4077 fi
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4079 $as_echo_n "checking for C compiler default output file name... " >&6; }
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4081 $as_echo "$ac_file" >&6; }
4082 ac_exeext=$ac_cv_exeext
4083
4084 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4085 ac_clean_files=$ac_clean_files_save
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4087 $as_echo_n "checking for suffix of executables... " >&6; }
4088 if { { ac_try="$ac_link"
4089 case "(($ac_try" in
4090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4091   *) ac_try_echo=$ac_try;;
4092 esac
4093 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4094 $as_echo "$ac_try_echo"; } >&5
4095   (eval "$ac_link") 2>&5
4096   ac_status=$?
4097   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4098   test $ac_status = 0; }; then :
4099   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4100 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4101 # work properly (i.e., refer to `conftest.exe'), while it won't with
4102 # `rm'.
4103 for ac_file in conftest.exe conftest conftest.*; do
4104   test -f "$ac_file" || continue
4105   case $ac_file in
4106     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4107     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4108           break;;
4109     * ) break;;
4110   esac
4111 done
4112 else
4113   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4114 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4115 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4116 See \`config.log' for more details" "$LINENO" 5; }
4117 fi
4118 rm -f conftest conftest$ac_cv_exeext
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4120 $as_echo "$ac_cv_exeext" >&6; }
4121
4122 rm -f conftest.$ac_ext
4123 EXEEXT=$ac_cv_exeext
4124 ac_exeext=$EXEEXT
4125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4126 /* end confdefs.h.  */
4127 #include <stdio.h>
4128 int
4129 main ()
4130 {
4131 FILE *f = fopen ("conftest.out", "w");
4132  return ferror (f) || fclose (f) != 0;
4133
4134   ;
4135   return 0;
4136 }
4137 _ACEOF
4138 ac_clean_files="$ac_clean_files conftest.out"
4139 # Check that the compiler produces executables we can run.  If not, either
4140 # the compiler is broken, or we cross compile.
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4142 $as_echo_n "checking whether we are cross compiling... " >&6; }
4143 if test "$cross_compiling" != yes; then
4144   { { ac_try="$ac_link"
4145 case "(($ac_try" in
4146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4147   *) ac_try_echo=$ac_try;;
4148 esac
4149 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4150 $as_echo "$ac_try_echo"; } >&5
4151   (eval "$ac_link") 2>&5
4152   ac_status=$?
4153   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4154   test $ac_status = 0; }
4155   if { ac_try='./conftest$ac_cv_exeext'
4156   { { case "(($ac_try" in
4157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4158   *) ac_try_echo=$ac_try;;
4159 esac
4160 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4161 $as_echo "$ac_try_echo"; } >&5
4162   (eval "$ac_try") 2>&5
4163   ac_status=$?
4164   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4165   test $ac_status = 0; }; }; then
4166     cross_compiling=no
4167   else
4168     if test "$cross_compiling" = maybe; then
4169         cross_compiling=yes
4170     else
4171         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4172 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4173 as_fn_error $? "cannot run C compiled programs.
4174 If you meant to cross compile, use \`--host'.
4175 See \`config.log' for more details" "$LINENO" 5; }
4176     fi
4177   fi
4178 fi
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4180 $as_echo "$cross_compiling" >&6; }
4181
4182 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4183 ac_clean_files=$ac_clean_files_save
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4185 $as_echo_n "checking for suffix of object files... " >&6; }
4186 if ${ac_cv_objext+:} false; then :
4187   $as_echo_n "(cached) " >&6
4188 else
4189   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4190 /* end confdefs.h.  */
4191
4192 int
4193 main ()
4194 {
4195
4196   ;
4197   return 0;
4198 }
4199 _ACEOF
4200 rm -f conftest.o conftest.obj
4201 if { { ac_try="$ac_compile"
4202 case "(($ac_try" in
4203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4204   *) ac_try_echo=$ac_try;;
4205 esac
4206 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4207 $as_echo "$ac_try_echo"; } >&5
4208   (eval "$ac_compile") 2>&5
4209   ac_status=$?
4210   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4211   test $ac_status = 0; }; then :
4212   for ac_file in conftest.o conftest.obj conftest.*; do
4213   test -f "$ac_file" || continue;
4214   case $ac_file in
4215     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4216     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4217        break;;
4218   esac
4219 done
4220 else
4221   $as_echo "$as_me: failed program was:" >&5
4222 sed 's/^/| /' conftest.$ac_ext >&5
4223
4224 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4225 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4226 as_fn_error $? "cannot compute suffix of object files: cannot compile
4227 See \`config.log' for more details" "$LINENO" 5; }
4228 fi
4229 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4230 fi
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4232 $as_echo "$ac_cv_objext" >&6; }
4233 OBJEXT=$ac_cv_objext
4234 ac_objext=$OBJEXT
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4236 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4237 if ${ac_cv_c_compiler_gnu+:} false; then :
4238   $as_echo_n "(cached) " >&6
4239 else
4240   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4241 /* end confdefs.h.  */
4242
4243 int
4244 main ()
4245 {
4246 #ifndef __GNUC__
4247        choke me
4248 #endif
4249
4250   ;
4251   return 0;
4252 }
4253 _ACEOF
4254 if ac_fn_c_try_compile "$LINENO"; then :
4255   ac_compiler_gnu=yes
4256 else
4257   ac_compiler_gnu=no
4258 fi
4259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4260 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4261
4262 fi
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4264 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4265 if test $ac_compiler_gnu = yes; then
4266   GCC=yes
4267 else
4268   GCC=
4269 fi
4270 ac_test_CFLAGS=${CFLAGS+set}
4271 ac_save_CFLAGS=$CFLAGS
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4273 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4274 if ${ac_cv_prog_cc_g+:} false; then :
4275   $as_echo_n "(cached) " >&6
4276 else
4277   ac_save_c_werror_flag=$ac_c_werror_flag
4278    ac_c_werror_flag=yes
4279    ac_cv_prog_cc_g=no
4280    CFLAGS="-g"
4281    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4282 /* end confdefs.h.  */
4283
4284 int
4285 main ()
4286 {
4287
4288   ;
4289   return 0;
4290 }
4291 _ACEOF
4292 if ac_fn_c_try_compile "$LINENO"; then :
4293   ac_cv_prog_cc_g=yes
4294 else
4295   CFLAGS=""
4296       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4297 /* end confdefs.h.  */
4298
4299 int
4300 main ()
4301 {
4302
4303   ;
4304   return 0;
4305 }
4306 _ACEOF
4307 if ac_fn_c_try_compile "$LINENO"; then :
4308
4309 else
4310   ac_c_werror_flag=$ac_save_c_werror_flag
4311          CFLAGS="-g"
4312          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4313 /* end confdefs.h.  */
4314
4315 int
4316 main ()
4317 {
4318
4319   ;
4320   return 0;
4321 }
4322 _ACEOF
4323 if ac_fn_c_try_compile "$LINENO"; then :
4324   ac_cv_prog_cc_g=yes
4325 fi
4326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4327 fi
4328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4329 fi
4330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4331    ac_c_werror_flag=$ac_save_c_werror_flag
4332 fi
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4334 $as_echo "$ac_cv_prog_cc_g" >&6; }
4335 if test "$ac_test_CFLAGS" = set; then
4336   CFLAGS=$ac_save_CFLAGS
4337 elif test $ac_cv_prog_cc_g = yes; then
4338   if test "$GCC" = yes; then
4339     CFLAGS="-g -O2"
4340   else
4341     CFLAGS="-g"
4342   fi
4343 else
4344   if test "$GCC" = yes; then
4345     CFLAGS="-O2"
4346   else
4347     CFLAGS=
4348   fi
4349 fi
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4351 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4352 if ${ac_cv_prog_cc_c89+:} false; then :
4353   $as_echo_n "(cached) " >&6
4354 else
4355   ac_cv_prog_cc_c89=no
4356 ac_save_CC=$CC
4357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4358 /* end confdefs.h.  */
4359 #include <stdarg.h>
4360 #include <stdio.h>
4361 #include <sys/types.h>
4362 #include <sys/stat.h>
4363 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4364 struct buf { int x; };
4365 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4366 static char *e (p, i)
4367      char **p;
4368      int i;
4369 {
4370   return p[i];
4371 }
4372 static char *f (char * (*g) (char **, int), char **p, ...)
4373 {
4374   char *s;
4375   va_list v;
4376   va_start (v,p);
4377   s = g (p, va_arg (v,int));
4378   va_end (v);
4379   return s;
4380 }
4381
4382 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4383    function prototypes and stuff, but not '\xHH' hex character constants.
4384    These don't provoke an error unfortunately, instead are silently treated
4385    as 'x'.  The following induces an error, until -std is added to get
4386    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4387    array size at least.  It's necessary to write '\x00'==0 to get something
4388    that's true only with -std.  */
4389 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4390
4391 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4392    inside strings and character constants.  */
4393 #define FOO(x) 'x'
4394 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4395
4396 int test (int i, double x);
4397 struct s1 {int (*f) (int a);};
4398 struct s2 {int (*f) (double a);};
4399 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4400 int argc;
4401 char **argv;
4402 int
4403 main ()
4404 {
4405 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4406   ;
4407   return 0;
4408 }
4409 _ACEOF
4410 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4411         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4412 do
4413   CC="$ac_save_CC $ac_arg"
4414   if ac_fn_c_try_compile "$LINENO"; then :
4415   ac_cv_prog_cc_c89=$ac_arg
4416 fi
4417 rm -f core conftest.err conftest.$ac_objext
4418   test "x$ac_cv_prog_cc_c89" != "xno" && break
4419 done
4420 rm -f conftest.$ac_ext
4421 CC=$ac_save_CC
4422
4423 fi
4424 # AC_CACHE_VAL
4425 case "x$ac_cv_prog_cc_c89" in
4426   x)
4427     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4428 $as_echo "none needed" >&6; } ;;
4429   xno)
4430     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4431 $as_echo "unsupported" >&6; } ;;
4432   *)
4433     CC="$CC $ac_cv_prog_cc_c89"
4434     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4435 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4436 esac
4437 if test "x$ac_cv_prog_cc_c89" != xno; then :
4438
4439 fi
4440
4441 ac_ext=c
4442 ac_cpp='$CPP $CPPFLAGS'
4443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4446
4447 depcc="$CC"   am_compiler_list=
4448
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4450 $as_echo_n "checking dependency style of $depcc... " >&6; }
4451 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4452   $as_echo_n "(cached) " >&6
4453 else
4454   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4455   # We make a subdir and do the tests there.  Otherwise we can end up
4456   # making bogus files that we don't know about and never remove.  For
4457   # instance it was reported that on HP-UX the gcc test will end up
4458   # making a dummy file named `D' -- because `-MD' means `put the output
4459   # in D'.
4460   mkdir conftest.dir
4461   # Copy depcomp to subdir because otherwise we won't find it if we're
4462   # using a relative directory.
4463   cp "$am_depcomp" conftest.dir
4464   cd conftest.dir
4465   # We will build objects and dependencies in a subdirectory because
4466   # it helps to detect inapplicable dependency modes.  For instance
4467   # both Tru64's cc and ICC support -MD to output dependencies as a
4468   # side effect of compilation, but ICC will put the dependencies in
4469   # the current directory while Tru64 will put them in the object
4470   # directory.
4471   mkdir sub
4472
4473   am_cv_CC_dependencies_compiler_type=none
4474   if test "$am_compiler_list" = ""; then
4475      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4476   fi
4477   am__universal=false
4478   case " $depcc " in #(
4479      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4480      esac
4481
4482   for depmode in $am_compiler_list; do
4483     # Setup a source with many dependencies, because some compilers
4484     # like to wrap large dependency lists on column 80 (with \), and
4485     # we should not choose a depcomp mode which is confused by this.
4486     #
4487     # We need to recreate these files for each test, as the compiler may
4488     # overwrite some of them when testing with obscure command lines.
4489     # This happens at least with the AIX C compiler.
4490     : > sub/conftest.c
4491     for i in 1 2 3 4 5 6; do
4492       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4493       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4494       # Solaris 8's {/usr,}/bin/sh.
4495       touch sub/conftst$i.h
4496     done
4497     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4498
4499     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4500     # mode.  It turns out that the SunPro C++ compiler does not properly
4501     # handle `-M -o', and we need to detect this.  Also, some Intel
4502     # versions had trouble with output in subdirs
4503     am__obj=sub/conftest.${OBJEXT-o}
4504     am__minus_obj="-o $am__obj"
4505     case $depmode in
4506     gcc)
4507       # This depmode causes a compiler race in universal mode.
4508       test "$am__universal" = false || continue
4509       ;;
4510     nosideeffect)
4511       # after this tag, mechanisms are not by side-effect, so they'll
4512       # only be used when explicitly requested
4513       if test "x$enable_dependency_tracking" = xyes; then
4514         continue
4515       else
4516         break
4517       fi
4518       ;;
4519     msvisualcpp | msvcmsys)
4520       # This compiler won't grok `-c -o', but also, the minuso test has
4521       # not run yet.  These depmodes are late enough in the game, and
4522       # so weak that their functioning should not be impacted.
4523       am__obj=conftest.${OBJEXT-o}
4524       am__minus_obj=
4525       ;;
4526     none) break ;;
4527     esac
4528     if depmode=$depmode \
4529        source=sub/conftest.c object=$am__obj \
4530        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4531        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4532          >/dev/null 2>conftest.err &&
4533        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4534        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4535        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4536        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4537       # icc doesn't choke on unknown options, it will just issue warnings
4538       # or remarks (even with -Werror).  So we grep stderr for any message
4539       # that says an option was ignored or not supported.
4540       # When given -MP, icc 7.0 and 7.1 complain thusly:
4541       #   icc: Command line warning: ignoring option '-M'; no argument required
4542       # The diagnosis changed in icc 8.0:
4543       #   icc: Command line remark: option '-MP' not supported
4544       if (grep 'ignoring option' conftest.err ||
4545           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4546         am_cv_CC_dependencies_compiler_type=$depmode
4547         break
4548       fi
4549     fi
4550   done
4551
4552   cd ..
4553   rm -rf conftest.dir
4554 else
4555   am_cv_CC_dependencies_compiler_type=none
4556 fi
4557
4558 fi
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4560 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4561 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4562
4563  if
4564   test "x$enable_dependency_tracking" != xno \
4565   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4566   am__fastdepCC_TRUE=
4567   am__fastdepCC_FALSE='#'
4568 else
4569   am__fastdepCC_TRUE='#'
4570   am__fastdepCC_FALSE=
4571 fi
4572
4573
4574
4575 ac_ext=c
4576 ac_cpp='$CPP $CPPFLAGS'
4577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4581 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4582 # On Suns, sometimes $CPP names a directory.
4583 if test -n "$CPP" && test -d "$CPP"; then
4584   CPP=
4585 fi
4586 if test -z "$CPP"; then
4587   if ${ac_cv_prog_CPP+:} false; then :
4588   $as_echo_n "(cached) " >&6
4589 else
4590       # Double quotes because CPP needs to be expanded
4591     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4592     do
4593       ac_preproc_ok=false
4594 for ac_c_preproc_warn_flag in '' yes
4595 do
4596   # Use a header file that comes with gcc, so configuring glibc
4597   # with a fresh cross-compiler works.
4598   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4599   # <limits.h> exists even on freestanding compilers.
4600   # On the NeXT, cc -E runs the code through the compiler's parser,
4601   # not just through cpp. "Syntax error" is here to catch this case.
4602   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4603 /* end confdefs.h.  */
4604 #ifdef __STDC__
4605 # include <limits.h>
4606 #else
4607 # include <assert.h>
4608 #endif
4609                      Syntax error
4610 _ACEOF
4611 if ac_fn_c_try_cpp "$LINENO"; then :
4612
4613 else
4614   # Broken: fails on valid input.
4615 continue
4616 fi
4617 rm -f conftest.err conftest.i conftest.$ac_ext
4618
4619   # OK, works on sane cases.  Now check whether nonexistent headers
4620   # can be detected and how.
4621   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4622 /* end confdefs.h.  */
4623 #include <ac_nonexistent.h>
4624 _ACEOF
4625 if ac_fn_c_try_cpp "$LINENO"; then :
4626   # Broken: success on invalid input.
4627 continue
4628 else
4629   # Passes both tests.
4630 ac_preproc_ok=:
4631 break
4632 fi
4633 rm -f conftest.err conftest.i conftest.$ac_ext
4634
4635 done
4636 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4637 rm -f conftest.i conftest.err conftest.$ac_ext
4638 if $ac_preproc_ok; then :
4639   break
4640 fi
4641
4642     done
4643     ac_cv_prog_CPP=$CPP
4644
4645 fi
4646   CPP=$ac_cv_prog_CPP
4647 else
4648   ac_cv_prog_CPP=$CPP
4649 fi
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4651 $as_echo "$CPP" >&6; }
4652 ac_preproc_ok=false
4653 for ac_c_preproc_warn_flag in '' yes
4654 do
4655   # Use a header file that comes with gcc, so configuring glibc
4656   # with a fresh cross-compiler works.
4657   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4658   # <limits.h> exists even on freestanding compilers.
4659   # On the NeXT, cc -E runs the code through the compiler's parser,
4660   # not just through cpp. "Syntax error" is here to catch this case.
4661   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4662 /* end confdefs.h.  */
4663 #ifdef __STDC__
4664 # include <limits.h>
4665 #else
4666 # include <assert.h>
4667 #endif
4668                      Syntax error
4669 _ACEOF
4670 if ac_fn_c_try_cpp "$LINENO"; then :
4671
4672 else
4673   # Broken: fails on valid input.
4674 continue
4675 fi
4676 rm -f conftest.err conftest.i conftest.$ac_ext
4677
4678   # OK, works on sane cases.  Now check whether nonexistent headers
4679   # can be detected and how.
4680   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4681 /* end confdefs.h.  */
4682 #include <ac_nonexistent.h>
4683 _ACEOF
4684 if ac_fn_c_try_cpp "$LINENO"; then :
4685   # Broken: success on invalid input.
4686 continue
4687 else
4688   # Passes both tests.
4689 ac_preproc_ok=:
4690 break
4691 fi
4692 rm -f conftest.err conftest.i conftest.$ac_ext
4693
4694 done
4695 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4696 rm -f conftest.i conftest.err conftest.$ac_ext
4697 if $ac_preproc_ok; then :
4698
4699 else
4700   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4701 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4702 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4703 See \`config.log' for more details" "$LINENO" 5; }
4704 fi
4705
4706 ac_ext=c
4707 ac_cpp='$CPP $CPPFLAGS'
4708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4711
4712
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4714 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4715 if ${ac_cv_path_GREP+:} false; then :
4716   $as_echo_n "(cached) " >&6
4717 else
4718   if test -z "$GREP"; then
4719   ac_path_GREP_found=false
4720   # Loop through the user's path and test for each of PROGNAME-LIST
4721   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4722 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4723 do
4724   IFS=$as_save_IFS
4725   test -z "$as_dir" && as_dir=.
4726     for ac_prog in grep ggrep; do
4727     for ac_exec_ext in '' $ac_executable_extensions; do
4728       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4729       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4730 # Check for GNU ac_path_GREP and select it if it is found.
4731   # Check for GNU $ac_path_GREP
4732 case `"$ac_path_GREP" --version 2>&1` in
4733 *GNU*)
4734   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4735 *)
4736   ac_count=0
4737   $as_echo_n 0123456789 >"conftest.in"
4738   while :
4739   do
4740     cat "conftest.in" "conftest.in" >"conftest.tmp"
4741     mv "conftest.tmp" "conftest.in"
4742     cp "conftest.in" "conftest.nl"
4743     $as_echo 'GREP' >> "conftest.nl"
4744     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4745     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4746     as_fn_arith $ac_count + 1 && ac_count=$as_val
4747     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4748       # Best one so far, save it but keep looking for a better one
4749       ac_cv_path_GREP="$ac_path_GREP"
4750       ac_path_GREP_max=$ac_count
4751     fi
4752     # 10*(2^10) chars as input seems more than enough
4753     test $ac_count -gt 10 && break
4754   done
4755   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4756 esac
4757
4758       $ac_path_GREP_found && break 3
4759     done
4760   done
4761   done
4762 IFS=$as_save_IFS
4763   if test -z "$ac_cv_path_GREP"; then
4764     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4765   fi
4766 else
4767   ac_cv_path_GREP=$GREP
4768 fi
4769
4770 fi
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4772 $as_echo "$ac_cv_path_GREP" >&6; }
4773  GREP="$ac_cv_path_GREP"
4774
4775
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4777 $as_echo_n "checking for egrep... " >&6; }
4778 if ${ac_cv_path_EGREP+:} false; then :
4779   $as_echo_n "(cached) " >&6
4780 else
4781   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4782    then ac_cv_path_EGREP="$GREP -E"
4783    else
4784      if test -z "$EGREP"; then
4785   ac_path_EGREP_found=false
4786   # Loop through the user's path and test for each of PROGNAME-LIST
4787   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4789 do
4790   IFS=$as_save_IFS
4791   test -z "$as_dir" && as_dir=.
4792     for ac_prog in egrep; do
4793     for ac_exec_ext in '' $ac_executable_extensions; do
4794       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4795       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4796 # Check for GNU ac_path_EGREP and select it if it is found.
4797   # Check for GNU $ac_path_EGREP
4798 case `"$ac_path_EGREP" --version 2>&1` in
4799 *GNU*)
4800   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4801 *)
4802   ac_count=0
4803   $as_echo_n 0123456789 >"conftest.in"
4804   while :
4805   do
4806     cat "conftest.in" "conftest.in" >"conftest.tmp"
4807     mv "conftest.tmp" "conftest.in"
4808     cp "conftest.in" "conftest.nl"
4809     $as_echo 'EGREP' >> "conftest.nl"
4810     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4811     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4812     as_fn_arith $ac_count + 1 && ac_count=$as_val
4813     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4814       # Best one so far, save it but keep looking for a better one
4815       ac_cv_path_EGREP="$ac_path_EGREP"
4816       ac_path_EGREP_max=$ac_count
4817     fi
4818     # 10*(2^10) chars as input seems more than enough
4819     test $ac_count -gt 10 && break
4820   done
4821   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4822 esac
4823
4824       $ac_path_EGREP_found && break 3
4825     done
4826   done
4827   done
4828 IFS=$as_save_IFS
4829   if test -z "$ac_cv_path_EGREP"; then
4830     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4831   fi
4832 else
4833   ac_cv_path_EGREP=$EGREP
4834 fi
4835
4836    fi
4837 fi
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4839 $as_echo "$ac_cv_path_EGREP" >&6; }
4840  EGREP="$ac_cv_path_EGREP"
4841
4842
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4844 $as_echo_n "checking for ANSI C header files... " >&6; }
4845 if ${ac_cv_header_stdc+:} false; then :
4846   $as_echo_n "(cached) " >&6
4847 else
4848   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4849 /* end confdefs.h.  */
4850 #include <stdlib.h>
4851 #include <stdarg.h>
4852 #include <string.h>
4853 #include <float.h>
4854
4855 int
4856 main ()
4857 {
4858
4859   ;
4860   return 0;
4861 }
4862 _ACEOF
4863 if ac_fn_c_try_compile "$LINENO"; then :
4864   ac_cv_header_stdc=yes
4865 else
4866   ac_cv_header_stdc=no
4867 fi
4868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4869
4870 if test $ac_cv_header_stdc = yes; then
4871   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4872   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4873 /* end confdefs.h.  */
4874 #include <string.h>
4875
4876 _ACEOF
4877 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4878   $EGREP "memchr" >/dev/null 2>&1; then :
4879
4880 else
4881   ac_cv_header_stdc=no
4882 fi
4883 rm -f conftest*
4884
4885 fi
4886
4887 if test $ac_cv_header_stdc = yes; then
4888   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4889   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4890 /* end confdefs.h.  */
4891 #include <stdlib.h>
4892
4893 _ACEOF
4894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4895   $EGREP "free" >/dev/null 2>&1; then :
4896
4897 else
4898   ac_cv_header_stdc=no
4899 fi
4900 rm -f conftest*
4901
4902 fi
4903
4904 if test $ac_cv_header_stdc = yes; then
4905   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4906   if test "$cross_compiling" = yes; then :
4907   :
4908 else
4909   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4910 /* end confdefs.h.  */
4911 #include <ctype.h>
4912 #include <stdlib.h>
4913 #if ((' ' & 0x0FF) == 0x020)
4914 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4915 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4916 #else
4917 # define ISLOWER(c) \
4918                    (('a' <= (c) && (c) <= 'i') \
4919                      || ('j' <= (c) && (c) <= 'r') \
4920                      || ('s' <= (c) && (c) <= 'z'))
4921 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4922 #endif
4923
4924 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4925 int
4926 main ()
4927 {
4928   int i;
4929   for (i = 0; i < 256; i++)
4930     if (XOR (islower (i), ISLOWER (i))
4931         || toupper (i) != TOUPPER (i))
4932       return 2;
4933   return 0;
4934 }
4935 _ACEOF
4936 if ac_fn_c_try_run "$LINENO"; then :
4937
4938 else
4939   ac_cv_header_stdc=no
4940 fi
4941 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4942   conftest.$ac_objext conftest.beam conftest.$ac_ext
4943 fi
4944
4945 fi
4946 fi
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4948 $as_echo "$ac_cv_header_stdc" >&6; }
4949 if test $ac_cv_header_stdc = yes; then
4950
4951 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4952
4953 fi
4954
4955 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4956 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4957                   inttypes.h stdint.h unistd.h
4958 do :
4959   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4960 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4961 "
4962 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4963   cat >>confdefs.h <<_ACEOF
4964 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4965 _ACEOF
4966
4967 fi
4968
4969 done
4970
4971
4972
4973
4974
4975 # Check whether --with-tirpcinclude was given.
4976 if test "${with_tirpcinclude+set}" = set; then :
4977   withval=$with_tirpcinclude; tirpc_header_dir=$withval
4978 else
4979   tirpc_header_dir=/usr/include/tirpc
4980 fi
4981
4982
4983
4984   if test "$enable_tirpc" != "no"; then
4985
4986         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clnt_tli_create in -ltirpc" >&5
4987 $as_echo_n "checking for clnt_tli_create in -ltirpc... " >&6; }
4988 if ${ac_cv_lib_tirpc_clnt_tli_create+:} false; then :
4989   $as_echo_n "(cached) " >&6
4990 else
4991   ac_check_lib_save_LIBS=$LIBS
4992 LIBS="-ltirpc  $LIBS"
4993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4994 /* end confdefs.h.  */
4995
4996 /* Override any GCC internal prototype to avoid an error.
4997    Use char because int might match the return type of a GCC
4998    builtin and then its argument prototype would still apply.  */
4999 #ifdef __cplusplus
5000 extern "C"
5001 #endif
5002 char clnt_tli_create ();
5003 int
5004 main ()
5005 {
5006 return clnt_tli_create ();
5007   ;
5008   return 0;
5009 }
5010 _ACEOF
5011 if ac_fn_c_try_link "$LINENO"; then :
5012   ac_cv_lib_tirpc_clnt_tli_create=yes
5013 else
5014   ac_cv_lib_tirpc_clnt_tli_create=no
5015 fi
5016 rm -f core conftest.err conftest.$ac_objext \
5017     conftest$ac_exeext conftest.$ac_ext
5018 LIBS=$ac_check_lib_save_LIBS
5019 fi
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tirpc_clnt_tli_create" >&5
5021 $as_echo "$ac_cv_lib_tirpc_clnt_tli_create" >&6; }
5022 if test "x$ac_cv_lib_tirpc_clnt_tli_create" = xyes; then :
5023   :
5024 else
5025   if test "$enable_tirpc" = "yes"; then
5026                         as_fn_error $? "libtirpc not found." "$LINENO" 5
5027                   else
5028                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libtirpc not found. TIRPC disabled!" >&5
5029 $as_echo "$as_me: WARNING: libtirpc not found. TIRPC disabled!" >&2;}
5030                         enable_tirpc="no"
5031                   fi
5032 fi
5033
5034   fi
5035
5036   if test "$enable_tirpc" != "no"; then
5037             for ac_header in ${tirpc_header_dir}/netconfig.h
5038 do :
5039   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5040 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5041 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5042   cat >>confdefs.h <<_ACEOF
5043 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5044 _ACEOF
5045  AM_CPPFLAGS="-I${tirpc_header_dir}"
5046
5047 else
5048   if test "$enable_tirpc" = "yes"; then
5049                          as_fn_error $? "libtirpc headers not found." "$LINENO" 5
5050                        else
5051                          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libtirpc headers not found. TIRPC disabled!" >&5
5052 $as_echo "$as_me: WARNING: libtirpc headers not found. TIRPC disabled!" >&2;}
5053                          enable_tirpc="no"
5054                        fi
5055 fi
5056
5057 done
5058
5059
5060   fi
5061
5062     if test "$enable_tirpc" != "no"; then
5063
5064 $as_echo "#define HAVE_LIBTIRPC 1" >>confdefs.h
5065
5066     LIBTIRPC="-ltirpc"
5067   else
5068     LIBTIRPC=""
5069   fi
5070
5071
5072
5073
5074
5075
5076
5077     ac_fn_c_check_func "$LINENO" "prctl" "ac_cv_func_prctl"
5078 if test "x$ac_cv_func_prctl" = xyes; then :
5079
5080 fi
5081
5082
5083   # Check whether --enable-caps was given.
5084 if test "${enable_caps+set}" = set; then :
5085   enableval=$enable_caps;
5086 fi
5087
5088
5089   LIBCAP=
5090
5091   if test "x$enable_caps" != "xno" ; then
5092         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_get_proc in -lcap" >&5
5093 $as_echo_n "checking for cap_get_proc in -lcap... " >&6; }
5094 if ${ac_cv_lib_cap_cap_get_proc+:} false; then :
5095   $as_echo_n "(cached) " >&6
5096 else
5097   ac_check_lib_save_LIBS=$LIBS
5098 LIBS="-lcap  $LIBS"
5099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5100 /* end confdefs.h.  */
5101
5102 /* Override any GCC internal prototype to avoid an error.
5103    Use char because int might match the return type of a GCC
5104    builtin and then its argument prototype would still apply.  */
5105 #ifdef __cplusplus
5106 extern "C"
5107 #endif
5108 char cap_get_proc ();
5109 int
5110 main ()
5111 {
5112 return cap_get_proc ();
5113   ;
5114   return 0;
5115 }
5116 _ACEOF
5117 if ac_fn_c_try_link "$LINENO"; then :
5118   ac_cv_lib_cap_cap_get_proc=yes
5119 else
5120   ac_cv_lib_cap_cap_get_proc=no
5121 fi
5122 rm -f core conftest.err conftest.$ac_objext \
5123     conftest$ac_exeext conftest.$ac_ext
5124 LIBS=$ac_check_lib_save_LIBS
5125 fi
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_get_proc" >&5
5127 $as_echo "$ac_cv_lib_cap_cap_get_proc" >&6; }
5128 if test "x$ac_cv_lib_cap_cap_get_proc" = xyes; then :
5129   LIBCAP=-lcap
5130 fi
5131
5132
5133     for ac_header in sys/capability.h
5134 do :
5135   ac_fn_c_check_header_mongrel "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default"
5136 if test "x$ac_cv_header_sys_capability_h" = xyes; then :
5137   cat >>confdefs.h <<_ACEOF
5138 #define HAVE_SYS_CAPABILITY_H 1
5139 _ACEOF
5140
5141 else
5142   test "x$enable_caps" = "xyes" && as_fn_error $? "libcap headers not found." "$LINENO" 5
5143 fi
5144
5145 done
5146
5147   fi
5148
5149
5150
5151
5152
5153 # Check whether user wants TCP wrappers support
5154
5155   TCPW_MSG="no"
5156
5157 # Check whether --with-tcp-wrappers was given.
5158 if test "${with_tcp_wrappers+set}" = set; then :
5159   withval=$with_tcp_wrappers; with_tcpw=$withval
5160 else
5161   with_tcpw=yes
5162 fi
5163
5164         if test "x$with_tcpw" != "xno" ; then
5165             saved_LIBS="$LIBS"
5166             saved_LDFLAGS="$LDFLAGS"
5167             saved_CPPFLAGS="$CPPFLAGS"
5168             if test -n "${with_tcpw}" -a "${with_tcpw}" != "yes"; then
5169                 if test -d "${with_tcpw}/lib"; then
5170                     if test -n "${need_dash_r}"; then
5171                         LDFLAGS="-L${with_tcpw}/lib -R${with_tcpw}/lib ${LDFLAGS}"
5172                     else
5173                         LDFLAGS="-L${with_tcpw}/lib ${LDFLAGS}"
5174                     fi
5175                 else
5176                     if test -n "${need_dash_r}"; then
5177                         LDFLAGS="-L${with_tcpw} -R${with_tcpw} ${LDFLAGS}"
5178                     else
5179                         LDFLAGS="-L${with_tcpw} ${LDFLAGS}"
5180                     fi
5181                 fi
5182                 if test -d "${with_tcpw}/include"; then
5183                     CPPFLAGS="-I${with_tcpw}/include ${CPPFLAGS}"
5184                 else
5185                     CPPFLAGS="-I${with_tcpw} ${CPPFLAGS}"
5186                 fi
5187             fi
5188             LIBWRAP="-lwrap"
5189             LIBS="$LIBWRAP $LIBS"
5190             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
5191 $as_echo_n "checking for libwrap... " >&6; }
5192             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5193 /* end confdefs.h.  */
5194
5195                 #include <tcpd.h>
5196                 int deny_severity = 0, allow_severity = 0;
5197
5198 int
5199 main ()
5200 {
5201 hosts_access(0);
5202   ;
5203   return 0;
5204 }
5205 _ACEOF
5206 if ac_fn_c_try_link "$LINENO"; then :
5207
5208                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5209 $as_echo "yes" >&6; }
5210
5211
5212 $as_echo "#define LIBWRAP 1" >>confdefs.h
5213
5214
5215 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
5216
5217
5218 $as_echo "#define HAVE_TCP_WRAPPER 1" >>confdefs.h
5219
5220                 TCPW_MSG="yes"
5221
5222 else
5223
5224                 as_fn_error $? "*** libwrap missing" "$LINENO" 5
5225
5226
5227 fi
5228 rm -f core conftest.err conftest.$ac_objext \
5229     conftest$ac_exeext conftest.$ac_ext
5230             LIBS="$saved_LIBS"
5231         fi
5232
5233
5234
5235
5236
5237 # Arrange for large-file support
5238 # Check whether --enable-largefile was given.
5239 if test "${enable_largefile+set}" = set; then :
5240   enableval=$enable_largefile;
5241 fi
5242
5243 if test "$enable_largefile" != no; then
5244
5245   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5246 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5247 if ${ac_cv_sys_largefile_CC+:} false; then :
5248   $as_echo_n "(cached) " >&6
5249 else
5250   ac_cv_sys_largefile_CC=no
5251      if test "$GCC" != yes; then
5252        ac_save_CC=$CC
5253        while :; do
5254          # IRIX 6.2 and later do not support large files by default,
5255          # so use the C compiler's -n32 option if that helps.
5256          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5257 /* end confdefs.h.  */
5258 #include <sys/types.h>
5259  /* Check that off_t can represent 2**63 - 1 correctly.
5260     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5261     since some C++ compilers masquerading as C compilers
5262     incorrectly reject 9223372036854775807.  */
5263 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5264   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5265                        && LARGE_OFF_T % 2147483647 == 1)
5266                       ? 1 : -1];
5267 int
5268 main ()
5269 {
5270
5271   ;
5272   return 0;
5273 }
5274 _ACEOF
5275          if ac_fn_c_try_compile "$LINENO"; then :
5276   break
5277 fi
5278 rm -f core conftest.err conftest.$ac_objext
5279          CC="$CC -n32"
5280          if ac_fn_c_try_compile "$LINENO"; then :
5281   ac_cv_sys_largefile_CC=' -n32'; break
5282 fi
5283 rm -f core conftest.err conftest.$ac_objext
5284          break
5285        done
5286        CC=$ac_save_CC
5287        rm -f conftest.$ac_ext
5288     fi
5289 fi
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5291 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5292   if test "$ac_cv_sys_largefile_CC" != no; then
5293     CC=$CC$ac_cv_sys_largefile_CC
5294   fi
5295
5296   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5297 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5298 if ${ac_cv_sys_file_offset_bits+:} false; then :
5299   $as_echo_n "(cached) " >&6
5300 else
5301   while :; do
5302   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5303 /* end confdefs.h.  */
5304 #include <sys/types.h>
5305  /* Check that off_t can represent 2**63 - 1 correctly.
5306     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5307     since some C++ compilers masquerading as C compilers
5308     incorrectly reject 9223372036854775807.  */
5309 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5310   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5311                        && LARGE_OFF_T % 2147483647 == 1)
5312                       ? 1 : -1];
5313 int
5314 main ()
5315 {
5316
5317   ;
5318   return 0;
5319 }
5320 _ACEOF
5321 if ac_fn_c_try_compile "$LINENO"; then :
5322   ac_cv_sys_file_offset_bits=no; break
5323 fi
5324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5325   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5326 /* end confdefs.h.  */
5327 #define _FILE_OFFSET_BITS 64
5328 #include <sys/types.h>
5329  /* Check that off_t can represent 2**63 - 1 correctly.
5330     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5331     since some C++ compilers masquerading as C compilers
5332     incorrectly reject 9223372036854775807.  */
5333 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5334   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5335                        && LARGE_OFF_T % 2147483647 == 1)
5336                       ? 1 : -1];
5337 int
5338 main ()
5339 {
5340
5341   ;
5342   return 0;
5343 }
5344 _ACEOF
5345 if ac_fn_c_try_compile "$LINENO"; then :
5346   ac_cv_sys_file_offset_bits=64; break
5347 fi
5348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5349   ac_cv_sys_file_offset_bits=unknown
5350   break
5351 done
5352 fi
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5354 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5355 case $ac_cv_sys_file_offset_bits in #(
5356   no | unknown) ;;
5357   *)
5358 cat >>confdefs.h <<_ACEOF
5359 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5360 _ACEOF
5361 ;;
5362 esac
5363 rm -rf conftest*
5364   if test $ac_cv_sys_file_offset_bits = unknown; then
5365     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5366 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5367 if ${ac_cv_sys_large_files+:} false; then :
5368   $as_echo_n "(cached) " >&6
5369 else
5370   while :; do
5371   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5372 /* end confdefs.h.  */
5373 #include <sys/types.h>
5374  /* Check that off_t can represent 2**63 - 1 correctly.
5375     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5376     since some C++ compilers masquerading as C compilers
5377     incorrectly reject 9223372036854775807.  */
5378 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5379   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5380                        && LARGE_OFF_T % 2147483647 == 1)
5381                       ? 1 : -1];
5382 int
5383 main ()
5384 {
5385
5386   ;
5387   return 0;
5388 }
5389 _ACEOF
5390 if ac_fn_c_try_compile "$LINENO"; then :
5391   ac_cv_sys_large_files=no; break
5392 fi
5393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5394   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5395 /* end confdefs.h.  */
5396 #define _LARGE_FILES 1
5397 #include <sys/types.h>
5398  /* Check that off_t can represent 2**63 - 1 correctly.
5399     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5400     since some C++ compilers masquerading as C compilers
5401     incorrectly reject 9223372036854775807.  */
5402 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5403   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5404                        && LARGE_OFF_T % 2147483647 == 1)
5405                       ? 1 : -1];
5406 int
5407 main ()
5408 {
5409
5410   ;
5411   return 0;
5412 }
5413 _ACEOF
5414 if ac_fn_c_try_compile "$LINENO"; then :
5415   ac_cv_sys_large_files=1; break
5416 fi
5417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5418   ac_cv_sys_large_files=unknown
5419   break
5420 done
5421 fi
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5423 $as_echo "$ac_cv_sys_large_files" >&6; }
5424 case $ac_cv_sys_large_files in #(
5425   no | unknown) ;;
5426   *)
5427 cat >>confdefs.h <<_ACEOF
5428 #define _LARGE_FILES $ac_cv_sys_large_files
5429 _ACEOF
5430 ;;
5431 esac
5432 rm -rf conftest*
5433   fi
5434 fi
5435
5436
5437
5438 ac_config_headers="$ac_config_headers support/include/config.h"
5439
5440
5441 # Checks for programs.
5442 ac_ext=cpp
5443 ac_cpp='$CXXCPP $CPPFLAGS'
5444 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5445 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5446 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5447 if test -z "$CXX"; then
5448   if test -n "$CCC"; then
5449     CXX=$CCC
5450   else
5451     if test -n "$ac_tool_prefix"; then
5452   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5453   do
5454     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5455 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5457 $as_echo_n "checking for $ac_word... " >&6; }
5458 if ${ac_cv_prog_CXX+:} false; then :
5459   $as_echo_n "(cached) " >&6
5460 else
5461   if test -n "$CXX"; then
5462   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5463 else
5464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5465 for as_dir in $PATH
5466 do
5467   IFS=$as_save_IFS
5468   test -z "$as_dir" && as_dir=.
5469     for ac_exec_ext in '' $ac_executable_extensions; do
5470   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5471     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5472     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5473     break 2
5474   fi
5475 done
5476   done
5477 IFS=$as_save_IFS
5478
5479 fi
5480 fi
5481 CXX=$ac_cv_prog_CXX
5482 if test -n "$CXX"; then
5483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5484 $as_echo "$CXX" >&6; }
5485 else
5486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5487 $as_echo "no" >&6; }
5488 fi
5489
5490
5491     test -n "$CXX" && break
5492   done
5493 fi
5494 if test -z "$CXX"; then
5495   ac_ct_CXX=$CXX
5496   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5497 do
5498   # Extract the first word of "$ac_prog", so it can be a program name with args.
5499 set dummy $ac_prog; ac_word=$2
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5501 $as_echo_n "checking for $ac_word... " >&6; }
5502 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5503   $as_echo_n "(cached) " >&6
5504 else
5505   if test -n "$ac_ct_CXX"; then
5506   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5507 else
5508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5509 for as_dir in $PATH
5510 do
5511   IFS=$as_save_IFS
5512   test -z "$as_dir" && as_dir=.
5513     for ac_exec_ext in '' $ac_executable_extensions; do
5514   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5515     ac_cv_prog_ac_ct_CXX="$ac_prog"
5516     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5517     break 2
5518   fi
5519 done
5520   done
5521 IFS=$as_save_IFS
5522
5523 fi
5524 fi
5525 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5526 if test -n "$ac_ct_CXX"; then
5527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5528 $as_echo "$ac_ct_CXX" >&6; }
5529 else
5530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5531 $as_echo "no" >&6; }
5532 fi
5533
5534
5535   test -n "$ac_ct_CXX" && break
5536 done
5537
5538   if test "x$ac_ct_CXX" = x; then
5539     CXX="g++"
5540   else
5541     case $cross_compiling:$ac_tool_warned in
5542 yes:)
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5544 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5545 ac_tool_warned=yes ;;
5546 esac
5547     CXX=$ac_ct_CXX
5548   fi
5549 fi
5550
5551   fi
5552 fi
5553 # Provide some information about the compiler.
5554 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5555 set X $ac_compile
5556 ac_compiler=$2
5557 for ac_option in --version -v -V -qversion; do
5558   { { ac_try="$ac_compiler $ac_option >&5"
5559 case "(($ac_try" in
5560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5561   *) ac_try_echo=$ac_try;;
5562 esac
5563 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5564 $as_echo "$ac_try_echo"; } >&5
5565   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5566   ac_status=$?
5567   if test -s conftest.err; then
5568     sed '10a\
5569 ... rest of stderr output deleted ...
5570          10q' conftest.err >conftest.er1
5571     cat conftest.er1 >&5
5572   fi
5573   rm -f conftest.er1 conftest.err
5574   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5575   test $ac_status = 0; }
5576 done
5577
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5579 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5580 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5581   $as_echo_n "(cached) " >&6
5582 else
5583   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5584 /* end confdefs.h.  */
5585
5586 int
5587 main ()
5588 {
5589 #ifndef __GNUC__
5590        choke me
5591 #endif
5592
5593   ;
5594   return 0;
5595 }
5596 _ACEOF
5597 if ac_fn_cxx_try_compile "$LINENO"; then :
5598   ac_compiler_gnu=yes
5599 else
5600   ac_compiler_gnu=no
5601 fi
5602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5603 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5604
5605 fi
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5607 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5608 if test $ac_compiler_gnu = yes; then
5609   GXX=yes
5610 else
5611   GXX=
5612 fi
5613 ac_test_CXXFLAGS=${CXXFLAGS+set}
5614 ac_save_CXXFLAGS=$CXXFLAGS
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5616 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5617 if ${ac_cv_prog_cxx_g+:} false; then :
5618   $as_echo_n "(cached) " >&6
5619 else
5620   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5621    ac_cxx_werror_flag=yes
5622    ac_cv_prog_cxx_g=no
5623    CXXFLAGS="-g"
5624    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5625 /* end confdefs.h.  */
5626
5627 int
5628 main ()
5629 {
5630
5631   ;
5632   return 0;
5633 }
5634 _ACEOF
5635 if ac_fn_cxx_try_compile "$LINENO"; then :
5636   ac_cv_prog_cxx_g=yes
5637 else
5638   CXXFLAGS=""
5639       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5640 /* end confdefs.h.  */
5641
5642 int
5643 main ()
5644 {
5645
5646   ;
5647   return 0;
5648 }
5649 _ACEOF
5650 if ac_fn_cxx_try_compile "$LINENO"; then :
5651
5652 else
5653   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5654          CXXFLAGS="-g"
5655          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5656 /* end confdefs.h.  */
5657
5658 int
5659 main ()
5660 {
5661
5662   ;
5663   return 0;
5664 }
5665 _ACEOF
5666 if ac_fn_cxx_try_compile "$LINENO"; then :
5667   ac_cv_prog_cxx_g=yes
5668 fi
5669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5670 fi
5671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5672 fi
5673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5674    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5675 fi
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5677 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5678 if test "$ac_test_CXXFLAGS" = set; then
5679   CXXFLAGS=$ac_save_CXXFLAGS
5680 elif test $ac_cv_prog_cxx_g = yes; then
5681   if test "$GXX" = yes; then
5682     CXXFLAGS="-g -O2"
5683   else
5684     CXXFLAGS="-g"
5685   fi
5686 else
5687   if test "$GXX" = yes; then
5688     CXXFLAGS="-O2"
5689   else
5690     CXXFLAGS=
5691   fi
5692 fi
5693 ac_ext=c
5694 ac_cpp='$CPP $CPPFLAGS'
5695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5698
5699 depcc="$CXX"  am_compiler_list=
5700
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5702 $as_echo_n "checking dependency style of $depcc... " >&6; }
5703 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5704   $as_echo_n "(cached) " >&6
5705 else
5706   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5707   # We make a subdir and do the tests there.  Otherwise we can end up
5708   # making bogus files that we don't know about and never remove.  For
5709   # instance it was reported that on HP-UX the gcc test will end up
5710   # making a dummy file named `D' -- because `-MD' means `put the output
5711   # in D'.
5712   mkdir conftest.dir
5713   # Copy depcomp to subdir because otherwise we won't find it if we're
5714   # using a relative directory.
5715   cp "$am_depcomp" conftest.dir
5716   cd conftest.dir
5717   # We will build objects and dependencies in a subdirectory because
5718   # it helps to detect inapplicable dependency modes.  For instance
5719   # both Tru64's cc and ICC support -MD to output dependencies as a
5720   # side effect of compilation, but ICC will put the dependencies in
5721   # the current directory while Tru64 will put them in the object
5722   # directory.
5723   mkdir sub
5724
5725   am_cv_CXX_dependencies_compiler_type=none
5726   if test "$am_compiler_list" = ""; then
5727      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5728   fi
5729   am__universal=false
5730   case " $depcc " in #(
5731      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5732      esac
5733
5734   for depmode in $am_compiler_list; do
5735     # Setup a source with many dependencies, because some compilers
5736     # like to wrap large dependency lists on column 80 (with \), and
5737     # we should not choose a depcomp mode which is confused by this.
5738     #
5739     # We need to recreate these files for each test, as the compiler may
5740     # overwrite some of them when testing with obscure command lines.
5741     # This happens at least with the AIX C compiler.
5742     : > sub/conftest.c
5743     for i in 1 2 3 4 5 6; do
5744       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5745       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5746       # Solaris 8's {/usr,}/bin/sh.
5747       touch sub/conftst$i.h
5748     done
5749     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5750
5751     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5752     # mode.  It turns out that the SunPro C++ compiler does not properly
5753     # handle `-M -o', and we need to detect this.  Also, some Intel
5754     # versions had trouble with output in subdirs
5755     am__obj=sub/conftest.${OBJEXT-o}
5756     am__minus_obj="-o $am__obj"
5757     case $depmode in
5758     gcc)
5759       # This depmode causes a compiler race in universal mode.
5760       test "$am__universal" = false || continue
5761       ;;
5762     nosideeffect)
5763       # after this tag, mechanisms are not by side-effect, so they'll
5764       # only be used when explicitly requested
5765       if test "x$enable_dependency_tracking" = xyes; then
5766         continue
5767       else
5768         break
5769       fi
5770       ;;
5771     msvisualcpp | msvcmsys)
5772       # This compiler won't grok `-c -o', but also, the minuso test has
5773       # not run yet.  These depmodes are late enough in the game, and
5774       # so weak that their functioning should not be impacted.
5775       am__obj=conftest.${OBJEXT-o}
5776       am__minus_obj=
5777       ;;
5778     none) break ;;
5779     esac
5780     if depmode=$depmode \
5781        source=sub/conftest.c object=$am__obj \
5782        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5783        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5784          >/dev/null 2>conftest.err &&
5785        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5786        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5787        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5788        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5789       # icc doesn't choke on unknown options, it will just issue warnings
5790       # or remarks (even with -Werror).  So we grep stderr for any message
5791       # that says an option was ignored or not supported.
5792       # When given -MP, icc 7.0 and 7.1 complain thusly:
5793       #   icc: Command line warning: ignoring option '-M'; no argument required
5794       # The diagnosis changed in icc 8.0:
5795       #   icc: Command line remark: option '-MP' not supported
5796       if (grep 'ignoring option' conftest.err ||
5797           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5798         am_cv_CXX_dependencies_compiler_type=$depmode
5799         break
5800       fi
5801     fi
5802   done
5803
5804   cd ..
5805   rm -rf conftest.dir
5806 else
5807   am_cv_CXX_dependencies_compiler_type=none
5808 fi
5809
5810 fi
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5812 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5813 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5814
5815  if
5816   test "x$enable_dependency_tracking" != xno \
5817   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5818   am__fastdepCXX_TRUE=
5819   am__fastdepCXX_FALSE='#'
5820 else
5821   am__fastdepCXX_TRUE='#'
5822   am__fastdepCXX_FALSE=
5823 fi
5824
5825
5826 ac_ext=c
5827 ac_cpp='$CPP $CPPFLAGS'
5828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5831 if test -n "$ac_tool_prefix"; then
5832   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5833 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5835 $as_echo_n "checking for $ac_word... " >&6; }
5836 if ${ac_cv_prog_CC+:} false; then :
5837   $as_echo_n "(cached) " >&6
5838 else
5839   if test -n "$CC"; then
5840   ac_cv_prog_CC="$CC" # Let the user override the test.
5841 else
5842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5843 for as_dir in $PATH
5844 do
5845   IFS=$as_save_IFS
5846   test -z "$as_dir" && as_dir=.
5847     for ac_exec_ext in '' $ac_executable_extensions; do
5848   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5849     ac_cv_prog_CC="${ac_tool_prefix}gcc"
5850     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5851     break 2
5852   fi
5853 done
5854   done
5855 IFS=$as_save_IFS
5856
5857 fi
5858 fi
5859 CC=$ac_cv_prog_CC
5860 if test -n "$CC"; then
5861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5862 $as_echo "$CC" >&6; }
5863 else
5864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5865 $as_echo "no" >&6; }
5866 fi
5867
5868
5869 fi
5870 if test -z "$ac_cv_prog_CC"; then
5871   ac_ct_CC=$CC
5872   # Extract the first word of "gcc", so it can be a program name with args.
5873 set dummy gcc; ac_word=$2
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5875 $as_echo_n "checking for $ac_word... " >&6; }
5876 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5877   $as_echo_n "(cached) " >&6
5878 else
5879   if test -n "$ac_ct_CC"; then
5880   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5881 else
5882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5883 for as_dir in $PATH
5884 do
5885   IFS=$as_save_IFS
5886   test -z "$as_dir" && as_dir=.
5887     for ac_exec_ext in '' $ac_executable_extensions; do
5888   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5889     ac_cv_prog_ac_ct_CC="gcc"
5890     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5891     break 2
5892   fi
5893 done
5894   done
5895 IFS=$as_save_IFS
5896
5897 fi
5898 fi
5899 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5900 if test -n "$ac_ct_CC"; then
5901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5902 $as_echo "$ac_ct_CC" >&6; }
5903 else
5904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5905 $as_echo "no" >&6; }
5906 fi
5907
5908   if test "x$ac_ct_CC" = x; then
5909     CC=""
5910   else
5911     case $cross_compiling:$ac_tool_warned in
5912 yes:)
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5914 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5915 ac_tool_warned=yes ;;
5916 esac
5917     CC=$ac_ct_CC
5918   fi
5919 else
5920   CC="$ac_cv_prog_CC"
5921 fi
5922
5923 if test -z "$CC"; then
5924           if test -n "$ac_tool_prefix"; then
5925     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5926 set dummy ${ac_tool_prefix}cc; ac_word=$2
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5928 $as_echo_n "checking for $ac_word... " >&6; }
5929 if ${ac_cv_prog_CC+:} false; then :
5930   $as_echo_n "(cached) " >&6
5931 else
5932   if test -n "$CC"; then
5933   ac_cv_prog_CC="$CC" # Let the user override the test.
5934 else
5935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5936 for as_dir in $PATH
5937 do
5938   IFS=$as_save_IFS
5939   test -z "$as_dir" && as_dir=.
5940     for ac_exec_ext in '' $ac_executable_extensions; do
5941   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5942     ac_cv_prog_CC="${ac_tool_prefix}cc"
5943     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5944     break 2
5945   fi
5946 done
5947   done
5948 IFS=$as_save_IFS
5949
5950 fi
5951 fi
5952 CC=$ac_cv_prog_CC
5953 if test -n "$CC"; then
5954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5955 $as_echo "$CC" >&6; }
5956 else
5957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5958 $as_echo "no" >&6; }
5959 fi
5960
5961
5962   fi
5963 fi
5964 if test -z "$CC"; then
5965   # Extract the first word of "cc", so it can be a program name with args.
5966 set dummy cc; ac_word=$2
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5968 $as_echo_n "checking for $ac_word... " >&6; }
5969 if ${ac_cv_prog_CC+:} false; then :
5970   $as_echo_n "(cached) " >&6
5971 else
5972   if test -n "$CC"; then
5973   ac_cv_prog_CC="$CC" # Let the user override the test.
5974 else
5975   ac_prog_rejected=no
5976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5977 for as_dir in $PATH
5978 do
5979   IFS=$as_save_IFS
5980   test -z "$as_dir" && as_dir=.
5981     for ac_exec_ext in '' $ac_executable_extensions; do
5982   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5983     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5984        ac_prog_rejected=yes
5985        continue
5986      fi
5987     ac_cv_prog_CC="cc"
5988     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5989     break 2
5990   fi
5991 done
5992   done
5993 IFS=$as_save_IFS
5994
5995 if test $ac_prog_rejected = yes; then
5996   # We found a bogon in the path, so make sure we never use it.
5997   set dummy $ac_cv_prog_CC
5998   shift
5999   if test $# != 0; then
6000     # We chose a different compiler from the bogus one.
6001     # However, it has the same basename, so the bogon will be chosen
6002     # first if we set CC to just the basename; use the full file name.
6003     shift
6004     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6005   fi
6006 fi
6007 fi
6008 fi
6009 CC=$ac_cv_prog_CC
6010 if test -n "$CC"; then
6011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6012 $as_echo "$CC" >&6; }
6013 else
6014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6015 $as_echo "no" >&6; }
6016 fi
6017
6018
6019 fi
6020 if test -z "$CC"; then
6021   if test -n "$ac_tool_prefix"; then
6022   for ac_prog in cl.exe
6023   do
6024     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6025 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6027 $as_echo_n "checking for $ac_word... " >&6; }
6028 if ${ac_cv_prog_CC+:} false; then :
6029   $as_echo_n "(cached) " >&6
6030 else
6031   if test -n "$CC"; then
6032   ac_cv_prog_CC="$CC" # Let the user override the test.
6033 else
6034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6035 for as_dir in $PATH
6036 do
6037   IFS=$as_save_IFS
6038   test -z "$as_dir" && as_dir=.
6039     for ac_exec_ext in '' $ac_executable_extensions; do
6040   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6041     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6042     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6043     break 2
6044   fi
6045 done
6046   done
6047 IFS=$as_save_IFS
6048
6049 fi
6050 fi
6051 CC=$ac_cv_prog_CC
6052 if test -n "$CC"; then
6053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6054 $as_echo "$CC" >&6; }
6055 else
6056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6057 $as_echo "no" >&6; }
6058 fi
6059
6060
6061     test -n "$CC" && break
6062   done
6063 fi
6064 if test -z "$CC"; then
6065   ac_ct_CC=$CC
6066   for ac_prog in cl.exe
6067 do
6068   # Extract the first word of "$ac_prog", so it can be a program name with args.
6069 set dummy $ac_prog; ac_word=$2
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6071 $as_echo_n "checking for $ac_word... " >&6; }
6072 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6073   $as_echo_n "(cached) " >&6
6074 else
6075   if test -n "$ac_ct_CC"; then
6076   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6077 else
6078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6079 for as_dir in $PATH
6080 do
6081   IFS=$as_save_IFS
6082   test -z "$as_dir" && as_dir=.
6083     for ac_exec_ext in '' $ac_executable_extensions; do
6084   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6085     ac_cv_prog_ac_ct_CC="$ac_prog"
6086     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6087     break 2
6088   fi
6089 done
6090   done
6091 IFS=$as_save_IFS
6092
6093 fi
6094 fi
6095 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6096 if test -n "$ac_ct_CC"; then
6097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6098 $as_echo "$ac_ct_CC" >&6; }
6099 else
6100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6101 $as_echo "no" >&6; }
6102 fi
6103
6104
6105   test -n "$ac_ct_CC" && break
6106 done
6107
6108   if test "x$ac_ct_CC" = x; then
6109     CC=""
6110   else
6111     case $cross_compiling:$ac_tool_warned in
6112 yes:)
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6114 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6115 ac_tool_warned=yes ;;
6116 esac
6117     CC=$ac_ct_CC
6118   fi
6119 fi
6120
6121 fi
6122
6123
6124 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6125 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6126 as_fn_error $? "no acceptable C compiler found in \$PATH
6127 See \`config.log' for more details" "$LINENO" 5; }
6128
6129 # Provide some information about the compiler.
6130 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6131 set X $ac_compile
6132 ac_compiler=$2
6133 for ac_option in --version -v -V -qversion; do
6134   { { ac_try="$ac_compiler $ac_option >&5"
6135 case "(($ac_try" in
6136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6137   *) ac_try_echo=$ac_try;;
6138 esac
6139 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6140 $as_echo "$ac_try_echo"; } >&5
6141   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6142   ac_status=$?
6143   if test -s conftest.err; then
6144     sed '10a\
6145 ... rest of stderr output deleted ...
6146          10q' conftest.err >conftest.er1
6147     cat conftest.er1 >&5
6148   fi
6149   rm -f conftest.er1 conftest.err
6150   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6151   test $ac_status = 0; }
6152 done
6153
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6155 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6156 if ${ac_cv_c_compiler_gnu+:} false; then :
6157   $as_echo_n "(cached) " >&6
6158 else
6159   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6160 /* end confdefs.h.  */
6161
6162 int
6163 main ()
6164 {
6165 #ifndef __GNUC__
6166        choke me
6167 #endif
6168
6169   ;
6170   return 0;
6171 }
6172 _ACEOF
6173 if ac_fn_c_try_compile "$LINENO"; then :
6174   ac_compiler_gnu=yes
6175 else
6176   ac_compiler_gnu=no
6177 fi
6178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6179 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6180
6181 fi
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6183 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6184 if test $ac_compiler_gnu = yes; then
6185   GCC=yes
6186 else
6187   GCC=
6188 fi
6189 ac_test_CFLAGS=${CFLAGS+set}
6190 ac_save_CFLAGS=$CFLAGS
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6192 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6193 if ${ac_cv_prog_cc_g+:} false; then :
6194   $as_echo_n "(cached) " >&6
6195 else
6196   ac_save_c_werror_flag=$ac_c_werror_flag
6197    ac_c_werror_flag=yes
6198    ac_cv_prog_cc_g=no
6199    CFLAGS="-g"
6200    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6201 /* end confdefs.h.  */
6202
6203 int
6204 main ()
6205 {
6206
6207   ;
6208   return 0;
6209 }
6210 _ACEOF
6211 if ac_fn_c_try_compile "$LINENO"; then :
6212   ac_cv_prog_cc_g=yes
6213 else
6214   CFLAGS=""
6215       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6216 /* end confdefs.h.  */
6217
6218 int
6219 main ()
6220 {
6221
6222   ;
6223   return 0;
6224 }
6225 _ACEOF
6226 if ac_fn_c_try_compile "$LINENO"; then :
6227
6228 else
6229   ac_c_werror_flag=$ac_save_c_werror_flag
6230          CFLAGS="-g"
6231          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6232 /* end confdefs.h.  */
6233
6234 int
6235 main ()
6236 {
6237
6238   ;
6239   return 0;
6240 }
6241 _ACEOF
6242 if ac_fn_c_try_compile "$LINENO"; then :
6243   ac_cv_prog_cc_g=yes
6244 fi
6245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6246 fi
6247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6248 fi
6249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6250    ac_c_werror_flag=$ac_save_c_werror_flag
6251 fi
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6253 $as_echo "$ac_cv_prog_cc_g" >&6; }
6254 if test "$ac_test_CFLAGS" = set; then
6255   CFLAGS=$ac_save_CFLAGS
6256 elif test $ac_cv_prog_cc_g = yes; then
6257   if test "$GCC" = yes; then
6258     CFLAGS="-g -O2"
6259   else
6260     CFLAGS="-g"
6261   fi
6262 else
6263   if test "$GCC" = yes; then
6264     CFLAGS="-O2"
6265   else
6266     CFLAGS=
6267   fi
6268 fi
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6270 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6271 if ${ac_cv_prog_cc_c89+:} false; then :
6272   $as_echo_n "(cached) " >&6
6273 else
6274   ac_cv_prog_cc_c89=no
6275 ac_save_CC=$CC
6276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6277 /* end confdefs.h.  */
6278 #include <stdarg.h>
6279 #include <stdio.h>
6280 #include <sys/types.h>
6281 #include <sys/stat.h>
6282 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6283 struct buf { int x; };
6284 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6285 static char *e (p, i)
6286      char **p;
6287      int i;
6288 {
6289   return p[i];
6290 }
6291 static char *f (char * (*g) (char **, int), char **p, ...)
6292 {
6293   char *s;
6294   va_list v;
6295   va_start (v,p);
6296   s = g (p, va_arg (v,int));
6297   va_end (v);
6298   return s;
6299 }
6300
6301 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6302    function prototypes and stuff, but not '\xHH' hex character constants.
6303    These don't provoke an error unfortunately, instead are silently treated
6304    as 'x'.  The following induces an error, until -std is added to get
6305    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6306    array size at least.  It's necessary to write '\x00'==0 to get something
6307    that's true only with -std.  */
6308 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6309
6310 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6311    inside strings and character constants.  */
6312 #define FOO(x) 'x'
6313 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6314
6315 int test (int i, double x);
6316 struct s1 {int (*f) (int a);};
6317 struct s2 {int (*f) (double a);};
6318 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6319 int argc;
6320 char **argv;
6321 int
6322 main ()
6323 {
6324 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6325   ;
6326   return 0;
6327 }
6328 _ACEOF
6329 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6330         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6331 do
6332   CC="$ac_save_CC $ac_arg"
6333   if ac_fn_c_try_compile "$LINENO"; then :
6334   ac_cv_prog_cc_c89=$ac_arg
6335 fi
6336 rm -f core conftest.err conftest.$ac_objext
6337   test "x$ac_cv_prog_cc_c89" != "xno" && break
6338 done
6339 rm -f conftest.$ac_ext
6340 CC=$ac_save_CC
6341
6342 fi
6343 # AC_CACHE_VAL
6344 case "x$ac_cv_prog_cc_c89" in
6345   x)
6346     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6347 $as_echo "none needed" >&6; } ;;
6348   xno)
6349     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6350 $as_echo "unsupported" >&6; } ;;
6351   *)
6352     CC="$CC $ac_cv_prog_cc_c89"
6353     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6354 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6355 esac
6356 if test "x$ac_cv_prog_cc_c89" != xno; then :
6357
6358 fi
6359
6360 ac_ext=c
6361 ac_cpp='$CPP $CPPFLAGS'
6362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6365
6366 depcc="$CC"   am_compiler_list=
6367
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6369 $as_echo_n "checking dependency style of $depcc... " >&6; }
6370 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6371   $as_echo_n "(cached) " >&6
6372 else
6373   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6374   # We make a subdir and do the tests there.  Otherwise we can end up
6375   # making bogus files that we don't know about and never remove.  For
6376   # instance it was reported that on HP-UX the gcc test will end up
6377   # making a dummy file named `D' -- because `-MD' means `put the output
6378   # in D'.
6379   mkdir conftest.dir
6380   # Copy depcomp to subdir because otherwise we won't find it if we're
6381   # using a relative directory.
6382   cp "$am_depcomp" conftest.dir
6383   cd conftest.dir
6384   # We will build objects and dependencies in a subdirectory because
6385   # it helps to detect inapplicable dependency modes.  For instance
6386   # both Tru64's cc and ICC support -MD to output dependencies as a
6387   # side effect of compilation, but ICC will put the dependencies in
6388   # the current directory while Tru64 will put them in the object
6389   # directory.
6390   mkdir sub
6391
6392   am_cv_CC_dependencies_compiler_type=none
6393   if test "$am_compiler_list" = ""; then
6394      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6395   fi
6396   am__universal=false
6397   case " $depcc " in #(
6398      *\ -arch\ *\ -arch\ *) am__universal=true ;;
6399      esac
6400
6401   for depmode in $am_compiler_list; do
6402     # Setup a source with many dependencies, because some compilers
6403     # like to wrap large dependency lists on column 80 (with \), and
6404     # we should not choose a depcomp mode which is confused by this.
6405     #
6406     # We need to recreate these files for each test, as the compiler may
6407     # overwrite some of them when testing with obscure command lines.
6408     # This happens at least with the AIX C compiler.
6409     : > sub/conftest.c
6410     for i in 1 2 3 4 5 6; do
6411       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6412       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6413       # Solaris 8's {/usr,}/bin/sh.
6414       touch sub/conftst$i.h
6415     done
6416     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6417
6418     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6419     # mode.  It turns out that the SunPro C++ compiler does not properly
6420     # handle `-M -o', and we need to detect this.  Also, some Intel
6421     # versions had trouble with output in subdirs
6422     am__obj=sub/conftest.${OBJEXT-o}
6423     am__minus_obj="-o $am__obj"
6424     case $depmode in
6425     gcc)
6426       # This depmode causes a compiler race in universal mode.
6427       test "$am__universal" = false || continue
6428       ;;
6429     nosideeffect)
6430       # after this tag, mechanisms are not by side-effect, so they'll
6431       # only be used when explicitly requested
6432       if test "x$enable_dependency_tracking" = xyes; then
6433         continue
6434       else
6435         break
6436       fi
6437       ;;
6438     msvisualcpp | msvcmsys)
6439       # This compiler won't grok `-c -o', but also, the minuso test has
6440       # not run yet.  These depmodes are late enough in the game, and
6441       # so weak that their functioning should not be impacted.
6442       am__obj=conftest.${OBJEXT-o}
6443       am__minus_obj=
6444       ;;
6445     none) break ;;
6446     esac
6447     if depmode=$depmode \
6448        source=sub/conftest.c object=$am__obj \
6449        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6450        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6451          >/dev/null 2>conftest.err &&
6452        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6453        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6454        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6455        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6456       # icc doesn't choke on unknown options, it will just issue warnings
6457       # or remarks (even with -Werror).  So we grep stderr for any message
6458       # that says an option was ignored or not supported.
6459       # When given -MP, icc 7.0 and 7.1 complain thusly:
6460       #   icc: Command line warning: ignoring option '-M'; no argument required
6461       # The diagnosis changed in icc 8.0:
6462       #   icc: Command line remark: option '-MP' not supported
6463       if (grep 'ignoring option' conftest.err ||
6464           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6465         am_cv_CC_dependencies_compiler_type=$depmode
6466         break
6467       fi
6468     fi
6469   done
6470
6471   cd ..
6472   rm -rf conftest.dir
6473 else
6474   am_cv_CC_dependencies_compiler_type=none
6475 fi
6476
6477 fi
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6479 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6480 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6481
6482  if
6483   test "x$enable_dependency_tracking" != xno \
6484   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6485   am__fastdepCC_TRUE=
6486   am__fastdepCC_FALSE='#'
6487 else
6488   am__fastdepCC_TRUE='#'
6489   am__fastdepCC_FALSE=
6490 fi
6491
6492
6493 ac_ext=c
6494 ac_cpp='$CPP $CPPFLAGS'
6495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6499 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6500 # On Suns, sometimes $CPP names a directory.
6501 if test -n "$CPP" && test -d "$CPP"; then
6502   CPP=
6503 fi
6504 if test -z "$CPP"; then
6505   if ${ac_cv_prog_CPP+:} false; then :
6506   $as_echo_n "(cached) " >&6
6507 else
6508       # Double quotes because CPP needs to be expanded
6509     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6510     do
6511       ac_preproc_ok=false
6512 for ac_c_preproc_warn_flag in '' yes
6513 do
6514   # Use a header file that comes with gcc, so configuring glibc
6515   # with a fresh cross-compiler works.
6516   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6517   # <limits.h> exists even on freestanding compilers.
6518   # On the NeXT, cc -E runs the code through the compiler's parser,
6519   # not just through cpp. "Syntax error" is here to catch this case.
6520   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6521 /* end confdefs.h.  */
6522 #ifdef __STDC__
6523 # include <limits.h>
6524 #else
6525 # include <assert.h>
6526 #endif
6527                      Syntax error
6528 _ACEOF
6529 if ac_fn_c_try_cpp "$LINENO"; then :
6530
6531 else
6532   # Broken: fails on valid input.
6533 continue
6534 fi
6535 rm -f conftest.err conftest.i conftest.$ac_ext
6536
6537   # OK, works on sane cases.  Now check whether nonexistent headers
6538   # can be detected and how.
6539   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6540 /* end confdefs.h.  */
6541 #include <ac_nonexistent.h>
6542 _ACEOF
6543 if ac_fn_c_try_cpp "$LINENO"; then :
6544   # Broken: success on invalid input.
6545 continue
6546 else
6547   # Passes both tests.
6548 ac_preproc_ok=:
6549 break
6550 fi
6551 rm -f conftest.err conftest.i conftest.$ac_ext
6552
6553 done
6554 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6555 rm -f conftest.i conftest.err conftest.$ac_ext
6556 if $ac_preproc_ok; then :
6557   break
6558 fi
6559
6560     done
6561     ac_cv_prog_CPP=$CPP
6562
6563 fi
6564   CPP=$ac_cv_prog_CPP
6565 else
6566   ac_cv_prog_CPP=$CPP
6567 fi
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6569 $as_echo "$CPP" >&6; }
6570 ac_preproc_ok=false
6571 for ac_c_preproc_warn_flag in '' yes
6572 do
6573   # Use a header file that comes with gcc, so configuring glibc
6574   # with a fresh cross-compiler works.
6575   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6576   # <limits.h> exists even on freestanding compilers.
6577   # On the NeXT, cc -E runs the code through the compiler's parser,
6578   # not just through cpp. "Syntax error" is here to catch this case.
6579   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6580 /* end confdefs.h.  */
6581 #ifdef __STDC__
6582 # include <limits.h>
6583 #else
6584 # include <assert.h>
6585 #endif
6586                      Syntax error
6587 _ACEOF
6588 if ac_fn_c_try_cpp "$LINENO"; then :
6589
6590 else
6591   # Broken: fails on valid input.
6592 continue
6593 fi
6594 rm -f conftest.err conftest.i conftest.$ac_ext
6595
6596   # OK, works on sane cases.  Now check whether nonexistent headers
6597   # can be detected and how.
6598   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6599 /* end confdefs.h.  */
6600 #include <ac_nonexistent.h>
6601 _ACEOF
6602 if ac_fn_c_try_cpp "$LINENO"; then :
6603   # Broken: success on invalid input.
6604 continue
6605 else
6606   # Passes both tests.
6607 ac_preproc_ok=:
6608 break
6609 fi
6610 rm -f conftest.err conftest.i conftest.$ac_ext
6611
6612 done
6613 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6614 rm -f conftest.i conftest.err conftest.$ac_ext
6615 if $ac_preproc_ok; then :
6616
6617 else
6618   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6619 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6620 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6621 See \`config.log' for more details" "$LINENO" 5; }
6622 fi
6623
6624 ac_ext=c
6625 ac_cpp='$CPP $CPPFLAGS'
6626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6629
6630
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6632 $as_echo_n "checking whether ln -s works... " >&6; }
6633 LN_S=$as_ln_s
6634 if test "$LN_S" = "ln -s"; then
6635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6636 $as_echo "yes" >&6; }
6637 else
6638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6639 $as_echo "no, using $LN_S" >&6; }
6640 fi
6641
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6643 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6644 set x ${MAKE-make}
6645 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6646 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6647   $as_echo_n "(cached) " >&6
6648 else
6649   cat >conftest.make <<\_ACEOF
6650 SHELL = /bin/sh
6651 all:
6652         @echo '@@@%%%=$(MAKE)=@@@%%%'
6653 _ACEOF
6654 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6655 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6656   *@@@%%%=?*=@@@%%%*)
6657     eval ac_cv_prog_make_${ac_make}_set=yes;;
6658   *)
6659     eval ac_cv_prog_make_${ac_make}_set=no;;
6660 esac
6661 rm -f conftest.make
6662 fi
6663 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6665 $as_echo "yes" >&6; }
6666   SET_MAKE=
6667 else
6668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6669 $as_echo "no" >&6; }
6670   SET_MAKE="MAKE=${MAKE-make}"
6671 fi
6672
6673 case `pwd` in
6674   *\ * | *\     *)
6675     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6676 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6677 esac
6678
6679
6680
6681 macro_version='2.4'
6682 macro_revision='1.3293'
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696 ltmain="$ac_aux_dir/ltmain.sh"
6697
6698 # Backslashify metacharacters that are still active within
6699 # double-quoted strings.
6700 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6701
6702 # Same as above, but do not quote variable references.
6703 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6704
6705 # Sed substitution to delay expansion of an escaped shell variable in a
6706 # double_quote_subst'ed string.
6707 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6708
6709 # Sed substitution to delay expansion of an escaped single quote.
6710 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6711
6712 # Sed substitution to avoid accidental globbing in evaled expressions
6713 no_glob_subst='s/\*/\\\*/g'
6714
6715 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6716 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6717 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6718
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6720 $as_echo_n "checking how to print strings... " >&6; }
6721 # Test print first, because it will be a builtin if present.
6722 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6723    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6724   ECHO='print -r --'
6725 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6726   ECHO='printf %s\n'
6727 else
6728   # Use this function as a fallback that always works.
6729   func_fallback_echo ()
6730   {
6731     eval 'cat <<_LTECHO_EOF
6732 $1
6733 _LTECHO_EOF'
6734   }
6735   ECHO='func_fallback_echo'
6736 fi
6737
6738 # func_echo_all arg...
6739 # Invoke $ECHO with all args, space-separated.
6740 func_echo_all ()
6741 {
6742     $ECHO ""
6743 }
6744
6745 case "$ECHO" in
6746   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6747 $as_echo "printf" >&6; } ;;
6748   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6749 $as_echo "print -r" >&6; } ;;
6750   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6751 $as_echo "cat" >&6; } ;;
6752 esac
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6768 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6769 if ${ac_cv_path_SED+:} false; then :
6770   $as_echo_n "(cached) " >&6
6771 else
6772             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6773      for ac_i in 1 2 3 4 5 6 7; do
6774        ac_script="$ac_script$as_nl$ac_script"
6775      done
6776      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6777      { ac_script=; unset ac_script;}
6778      if test -z "$SED"; then
6779   ac_path_SED_found=false
6780   # Loop through the user's path and test for each of PROGNAME-LIST
6781   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6782 for as_dir in $PATH
6783 do
6784   IFS=$as_save_IFS
6785   test -z "$as_dir" && as_dir=.
6786     for ac_prog in sed gsed; do
6787     for ac_exec_ext in '' $ac_executable_extensions; do
6788       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6789       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6790 # Check for GNU ac_path_SED and select it if it is found.
6791   # Check for GNU $ac_path_SED
6792 case `"$ac_path_SED" --version 2>&1` in
6793 *GNU*)
6794   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6795 *)
6796   ac_count=0
6797   $as_echo_n 0123456789 >"conftest.in"
6798   while :
6799   do
6800     cat "conftest.in" "conftest.in" >"conftest.tmp"
6801     mv "conftest.tmp" "conftest.in"
6802     cp "conftest.in" "conftest.nl"
6803     $as_echo '' >> "conftest.nl"
6804     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6805     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6806     as_fn_arith $ac_count + 1 && ac_count=$as_val
6807     if test $ac_count -gt ${ac_path_SED_max-0}; then
6808       # Best one so far, save it but keep looking for a better one
6809       ac_cv_path_SED="$ac_path_SED"
6810       ac_path_SED_max=$ac_count
6811     fi
6812     # 10*(2^10) chars as input seems more than enough
6813     test $ac_count -gt 10 && break
6814   done
6815   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6816 esac
6817
6818       $ac_path_SED_found && break 3
6819     done
6820   done
6821   done
6822 IFS=$as_save_IFS
6823   if test -z "$ac_cv_path_SED"; then
6824     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6825   fi
6826 else
6827   ac_cv_path_SED=$SED
6828 fi
6829
6830 fi
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6832 $as_echo "$ac_cv_path_SED" >&6; }
6833  SED="$ac_cv_path_SED"
6834   rm -f conftest.sed
6835
6836 test -z "$SED" && SED=sed
6837 Xsed="$SED -e 1s/^X//"
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6850 $as_echo_n "checking for fgrep... " >&6; }
6851 if ${ac_cv_path_FGREP+:} false; then :
6852   $as_echo_n "(cached) " >&6
6853 else
6854   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6855    then ac_cv_path_FGREP="$GREP -F"
6856    else
6857      if test -z "$FGREP"; then
6858   ac_path_FGREP_found=false
6859   # Loop through the user's path and test for each of PROGNAME-LIST
6860   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6861 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6862 do
6863   IFS=$as_save_IFS
6864   test -z "$as_dir" && as_dir=.
6865     for ac_prog in fgrep; do
6866     for ac_exec_ext in '' $ac_executable_extensions; do
6867       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6868       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6869 # Check for GNU ac_path_FGREP and select it if it is found.
6870   # Check for GNU $ac_path_FGREP
6871 case `"$ac_path_FGREP" --version 2>&1` in
6872 *GNU*)
6873   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6874 *)
6875   ac_count=0
6876   $as_echo_n 0123456789 >"conftest.in"
6877   while :
6878   do
6879     cat "conftest.in" "conftest.in" >"conftest.tmp"
6880     mv "conftest.tmp" "conftest.in"
6881     cp "conftest.in" "conftest.nl"
6882     $as_echo 'FGREP' >> "conftest.nl"
6883     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6884     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6885     as_fn_arith $ac_count + 1 && ac_count=$as_val
6886     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6887       # Best one so far, save it but keep looking for a better one
6888       ac_cv_path_FGREP="$ac_path_FGREP"
6889       ac_path_FGREP_max=$ac_count
6890     fi
6891     # 10*(2^10) chars as input seems more than enough
6892     test $ac_count -gt 10 && break
6893   done
6894   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6895 esac
6896
6897       $ac_path_FGREP_found && break 3
6898     done
6899   done
6900   done
6901 IFS=$as_save_IFS
6902   if test -z "$ac_cv_path_FGREP"; then
6903     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6904   fi
6905 else
6906   ac_cv_path_FGREP=$FGREP
6907 fi
6908
6909    fi
6910 fi
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6912 $as_echo "$ac_cv_path_FGREP" >&6; }
6913  FGREP="$ac_cv_path_FGREP"
6914
6915
6916 test -z "$GREP" && GREP=grep
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936 # Check whether --with-gnu-ld was given.
6937 if test "${with_gnu_ld+set}" = set; then :
6938   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6939 else
6940   with_gnu_ld=no
6941 fi
6942
6943 ac_prog=ld
6944 if test "$GCC" = yes; then
6945   # Check if gcc -print-prog-name=ld gives a path.
6946   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6947 $as_echo_n "checking for ld used by $CC... " >&6; }
6948   case $host in
6949   *-*-mingw*)
6950     # gcc leaves a trailing carriage return which upsets mingw
6951     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6952   *)
6953     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6954   esac
6955   case $ac_prog in
6956     # Accept absolute paths.
6957     [\\/]* | ?:[\\/]*)
6958       re_direlt='/[^/][^/]*/\.\./'
6959       # Canonicalize the pathname of ld
6960       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6961       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6962         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6963       done
6964       test -z "$LD" && LD="$ac_prog"
6965       ;;
6966   "")
6967     # If it fails, then pretend we aren't using GCC.
6968     ac_prog=ld
6969     ;;
6970   *)
6971     # If it is relative, then search for the first ld in PATH.
6972     with_gnu_ld=unknown
6973     ;;
6974   esac
6975 elif test "$with_gnu_ld" = yes; then
6976   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6977 $as_echo_n "checking for GNU ld... " >&6; }
6978 else
6979   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6980 $as_echo_n "checking for non-GNU ld... " >&6; }
6981 fi
6982 if ${lt_cv_path_LD+:} false; then :
6983   $as_echo_n "(cached) " >&6
6984 else
6985   if test -z "$LD"; then
6986   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6987   for ac_dir in $PATH; do
6988     IFS="$lt_save_ifs"
6989     test -z "$ac_dir" && ac_dir=.
6990     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6991       lt_cv_path_LD="$ac_dir/$ac_prog"
6992       # Check to see if the program is GNU ld.  I'd rather use --version,
6993       # but apparently some variants of GNU ld only accept -v.
6994       # Break only if it was the GNU/non-GNU ld that we prefer.
6995       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6996       *GNU* | *'with BFD'*)
6997         test "$with_gnu_ld" != no && break
6998         ;;
6999       *)
7000         test "$with_gnu_ld" != yes && break
7001         ;;
7002       esac
7003     fi
7004   done
7005   IFS="$lt_save_ifs"
7006 else
7007   lt_cv_path_LD="$LD" # Let the user override the test with a path.
7008 fi
7009 fi
7010
7011 LD="$lt_cv_path_LD"
7012 if test -n "$LD"; then
7013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7014 $as_echo "$LD" >&6; }
7015 else
7016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7017 $as_echo "no" >&6; }
7018 fi
7019 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7021 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7022 if ${lt_cv_prog_gnu_ld+:} false; then :
7023   $as_echo_n "(cached) " >&6
7024 else
7025   # I'd rather use --version here, but apparently some GNU lds only accept -v.
7026 case `$LD -v 2>&1 </dev/null` in
7027 *GNU* | *'with BFD'*)
7028   lt_cv_prog_gnu_ld=yes
7029   ;;
7030 *)
7031   lt_cv_prog_gnu_ld=no
7032   ;;
7033 esac
7034 fi
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7036 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7037 with_gnu_ld=$lt_cv_prog_gnu_ld
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7048 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7049 if ${lt_cv_path_NM+:} false; then :
7050   $as_echo_n "(cached) " >&6
7051 else
7052   if test -n "$NM"; then
7053   # Let the user override the test.
7054   lt_cv_path_NM="$NM"
7055 else
7056   lt_nm_to_check="${ac_tool_prefix}nm"
7057   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7058     lt_nm_to_check="$lt_nm_to_check nm"
7059   fi
7060   for lt_tmp_nm in $lt_nm_to_check; do
7061     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7062     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7063       IFS="$lt_save_ifs"
7064       test -z "$ac_dir" && ac_dir=.
7065       tmp_nm="$ac_dir/$lt_tmp_nm"
7066       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7067         # Check to see if the nm accepts a BSD-compat flag.
7068         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7069         #   nm: unknown option "B" ignored
7070         # Tru64's nm complains that /dev/null is an invalid object file
7071         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7072         */dev/null* | *'Invalid file or object type'*)
7073           lt_cv_path_NM="$tmp_nm -B"
7074           break
7075           ;;
7076         *)
7077           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7078           */dev/null*)
7079             lt_cv_path_NM="$tmp_nm -p"
7080             break
7081             ;;
7082           *)
7083             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7084             continue # so that we can try to find one that supports BSD flags
7085             ;;
7086           esac
7087           ;;
7088         esac
7089       fi
7090     done
7091     IFS="$lt_save_ifs"
7092   done
7093   : ${lt_cv_path_NM=no}
7094 fi
7095 fi
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7097 $as_echo "$lt_cv_path_NM" >&6; }
7098 if test "$lt_cv_path_NM" != "no"; then
7099   NM="$lt_cv_path_NM"
7100 else
7101   # Didn't find any BSD compatible name lister, look for dumpbin.
7102   if test -n "$DUMPBIN"; then :
7103     # Let the user override the test.
7104   else
7105     if test -n "$ac_tool_prefix"; then
7106   for ac_prog in dumpbin "link -dump"
7107   do
7108     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7109 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7111 $as_echo_n "checking for $ac_word... " >&6; }
7112 if ${ac_cv_prog_DUMPBIN+:} false; then :
7113   $as_echo_n "(cached) " >&6
7114 else
7115   if test -n "$DUMPBIN"; then
7116   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7117 else
7118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7119 for as_dir in $PATH
7120 do
7121   IFS=$as_save_IFS
7122   test -z "$as_dir" && as_dir=.
7123     for ac_exec_ext in '' $ac_executable_extensions; do
7124   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7125     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7126     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7127     break 2
7128   fi
7129 done
7130   done
7131 IFS=$as_save_IFS
7132
7133 fi
7134 fi
7135 DUMPBIN=$ac_cv_prog_DUMPBIN
7136 if test -n "$DUMPBIN"; then
7137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7138 $as_echo "$DUMPBIN" >&6; }
7139 else
7140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7141 $as_echo "no" >&6; }
7142 fi
7143
7144
7145     test -n "$DUMPBIN" && break
7146   done
7147 fi
7148 if test -z "$DUMPBIN"; then
7149   ac_ct_DUMPBIN=$DUMPBIN
7150   for ac_prog in dumpbin "link -dump"
7151 do
7152   # Extract the first word of "$ac_prog", so it can be a program name with args.
7153 set dummy $ac_prog; ac_word=$2
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7155 $as_echo_n "checking for $ac_word... " >&6; }
7156 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7157   $as_echo_n "(cached) " >&6
7158 else
7159   if test -n "$ac_ct_DUMPBIN"; then
7160   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7161 else
7162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7163 for as_dir in $PATH
7164 do
7165   IFS=$as_save_IFS
7166   test -z "$as_dir" && as_dir=.
7167     for ac_exec_ext in '' $ac_executable_extensions; do
7168   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7169     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7170     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7171     break 2
7172   fi
7173 done
7174   done
7175 IFS=$as_save_IFS
7176
7177 fi
7178 fi
7179 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7180 if test -n "$ac_ct_DUMPBIN"; then
7181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7182 $as_echo "$ac_ct_DUMPBIN" >&6; }
7183 else
7184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7185 $as_echo "no" >&6; }
7186 fi
7187
7188
7189   test -n "$ac_ct_DUMPBIN" && break
7190 done
7191
7192   if test "x$ac_ct_DUMPBIN" = x; then
7193     DUMPBIN=":"
7194   else
7195     case $cross_compiling:$ac_tool_warned in
7196 yes:)
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7198 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7199 ac_tool_warned=yes ;;
7200 esac
7201     DUMPBIN=$ac_ct_DUMPBIN
7202   fi
7203 fi
7204
7205     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7206     *COFF*)
7207       DUMPBIN="$DUMPBIN -symbols"
7208       ;;
7209     *)
7210       DUMPBIN=:
7211       ;;
7212     esac
7213   fi
7214
7215   if test "$DUMPBIN" != ":"; then
7216     NM="$DUMPBIN"
7217   fi
7218 fi
7219 test -z "$NM" && NM=nm
7220
7221
7222
7223
7224
7225
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7227 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7228 if ${lt_cv_nm_interface+:} false; then :
7229   $as_echo_n "(cached) " >&6
7230 else
7231   lt_cv_nm_interface="BSD nm"
7232   echo "int some_variable = 0;" > conftest.$ac_ext
7233   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7234   (eval "$ac_compile" 2>conftest.err)
7235   cat conftest.err >&5
7236   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7237   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7238   cat conftest.err >&5
7239   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7240   cat conftest.out >&5
7241   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7242     lt_cv_nm_interface="MS dumpbin"
7243   fi
7244   rm -f conftest*
7245 fi
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7247 $as_echo "$lt_cv_nm_interface" >&6; }
7248
7249 # find the maximum length of command line arguments
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7251 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7252 if ${lt_cv_sys_max_cmd_len+:} false; then :
7253   $as_echo_n "(cached) " >&6
7254 else
7255     i=0
7256   teststring="ABCD"
7257
7258   case $build_os in
7259   msdosdjgpp*)
7260     # On DJGPP, this test can blow up pretty badly due to problems in libc
7261     # (any single argument exceeding 2000 bytes causes a buffer overrun
7262     # during glob expansion).  Even if it were fixed, the result of this
7263     # check would be larger than it should be.
7264     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7265     ;;
7266
7267   gnu*)
7268     # Under GNU Hurd, this test is not required because there is
7269     # no limit to the length of command line arguments.
7270     # Libtool will interpret -1 as no limit whatsoever
7271     lt_cv_sys_max_cmd_len=-1;
7272     ;;
7273
7274   cygwin* | mingw* | cegcc*)
7275     # On Win9x/ME, this test blows up -- it succeeds, but takes
7276     # about 5 minutes as the teststring grows exponentially.
7277     # Worse, since 9x/ME are not pre-emptively multitasking,
7278     # you end up with a "frozen" computer, even though with patience
7279     # the test eventually succeeds (with a max line length of 256k).
7280     # Instead, let's just punt: use the minimum linelength reported by
7281     # all of the supported platforms: 8192 (on NT/2K/XP).
7282     lt_cv_sys_max_cmd_len=8192;
7283     ;;
7284
7285   mint*)
7286     # On MiNT this can take a long time and run out of memory.
7287     lt_cv_sys_max_cmd_len=8192;
7288     ;;
7289
7290   amigaos*)
7291     # On AmigaOS with pdksh, this test takes hours, literally.
7292     # So we just punt and use a minimum line length of 8192.
7293     lt_cv_sys_max_cmd_len=8192;
7294     ;;
7295
7296   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7297     # This has been around since 386BSD, at least.  Likely further.
7298     if test -x /sbin/sysctl; then
7299       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7300     elif test -x /usr/sbin/sysctl; then
7301       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7302     else
7303       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7304     fi
7305     # And add a safety zone
7306     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7307     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7308     ;;
7309
7310   interix*)
7311     # We know the value 262144 and hardcode it with a safety zone (like BSD)
7312     lt_cv_sys_max_cmd_len=196608
7313     ;;
7314
7315   osf*)
7316     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7317     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7318     # nice to cause kernel panics so lets avoid the loop below.
7319     # First set a reasonable default.
7320     lt_cv_sys_max_cmd_len=16384
7321     #
7322     if test -x /sbin/sysconfig; then
7323       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7324         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7325       esac
7326     fi
7327     ;;
7328   sco3.2v5*)
7329     lt_cv_sys_max_cmd_len=102400
7330     ;;
7331   sysv5* | sco5v6* | sysv4.2uw2*)
7332     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7333     if test -n "$kargmax"; then
7334       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
7335     else
7336       lt_cv_sys_max_cmd_len=32768
7337     fi
7338     ;;
7339   *)
7340     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7341     if test -n "$lt_cv_sys_max_cmd_len"; then
7342       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7343       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7344     else
7345       # Make teststring a little bigger before we do anything with it.
7346       # a 1K string should be a reasonable start.
7347       for i in 1 2 3 4 5 6 7 8 ; do
7348         teststring=$teststring$teststring
7349       done
7350       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7351       # If test is not a shell built-in, we'll probably end up computing a
7352       # maximum length that is only half of the actual maximum length, but
7353       # we can't tell.
7354       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
7355                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7356               test $i != 17 # 1/2 MB should be enough
7357       do
7358         i=`expr $i + 1`
7359         teststring=$teststring$teststring
7360       done
7361       # Only check the string length outside the loop.
7362       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7363       teststring=
7364       # Add a significant safety factor because C++ compilers can tack on
7365       # massive amounts of additional arguments before passing them to the
7366       # linker.  It appears as though 1/2 is a usable value.
7367       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7368     fi
7369     ;;
7370   esac
7371
7372 fi
7373
7374 if test -n $lt_cv_sys_max_cmd_len ; then
7375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7376 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7377 else
7378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7379 $as_echo "none" >&6; }
7380 fi
7381 max_cmd_len=$lt_cv_sys_max_cmd_len
7382
7383
7384
7385
7386
7387
7388 : ${CP="cp -f"}
7389 : ${MV="mv -f"}
7390 : ${RM="rm -f"}
7391
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7393 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7394 # Try some XSI features
7395 xsi_shell=no
7396 ( _lt_dummy="a/b/c"
7397   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7398       = c,a/b,b/c, \
7399     && eval 'test $(( 1 + 1 )) -eq 2 \
7400     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7401   && xsi_shell=yes
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7403 $as_echo "$xsi_shell" >&6; }
7404
7405
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7407 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7408 lt_shell_append=no
7409 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7410     >/dev/null 2>&1 \
7411   && lt_shell_append=yes
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7413 $as_echo "$lt_shell_append" >&6; }
7414
7415
7416 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7417   lt_unset=unset
7418 else
7419   lt_unset=false
7420 fi
7421
7422
7423
7424
7425
7426 # test EBCDIC or ASCII
7427 case `echo X|tr X '\101'` in
7428  A) # ASCII based system
7429     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7430   lt_SP2NL='tr \040 \012'
7431   lt_NL2SP='tr \015\012 \040\040'
7432   ;;
7433  *) # EBCDIC based system
7434   lt_SP2NL='tr \100 \n'
7435   lt_NL2SP='tr \r\n \100\100'
7436   ;;
7437 esac
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7448 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7449 if ${lt_cv_to_host_file_cmd+:} false; then :
7450   $as_echo_n "(cached) " >&6
7451 else
7452   case $host in
7453   *-*-mingw* )
7454     case $build in
7455       *-*-mingw* ) # actually msys
7456         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7457         ;;
7458       *-*-cygwin* )
7459         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7460         ;;
7461       * ) # otherwise, assume *nix
7462         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7463         ;;
7464     esac
7465     ;;
7466   *-*-cygwin* )
7467     case $build in
7468       *-*-mingw* ) # actually msys
7469         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7470         ;;
7471       *-*-cygwin* )
7472         lt_cv_to_host_file_cmd=func_convert_file_noop
7473         ;;
7474       * ) # otherwise, assume *nix
7475         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7476         ;;
7477     esac
7478     ;;
7479   * ) # unhandled hosts (and "normal" native builds)
7480     lt_cv_to_host_file_cmd=func_convert_file_noop
7481     ;;
7482 esac
7483
7484 fi
7485
7486 to_host_file_cmd=$lt_cv_to_host_file_cmd
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7488 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7489
7490
7491
7492
7493
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7495 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7496 if ${lt_cv_to_tool_file_cmd+:} false; then :
7497   $as_echo_n "(cached) " >&6
7498 else
7499   #assume ordinary cross tools, or native build.
7500 lt_cv_to_tool_file_cmd=func_convert_file_noop
7501 case $host in
7502   *-*-mingw* )
7503     case $build in
7504       *-*-mingw* ) # actually msys
7505         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7506         ;;
7507     esac
7508     ;;
7509 esac
7510
7511 fi
7512
7513 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7515 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7516
7517
7518
7519
7520
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7522 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7523 if ${lt_cv_ld_reload_flag+:} false; then :
7524   $as_echo_n "(cached) " >&6
7525 else
7526   lt_cv_ld_reload_flag='-r'
7527 fi
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7529 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7530 reload_flag=$lt_cv_ld_reload_flag
7531 case $reload_flag in
7532 "" | " "*) ;;
7533 *) reload_flag=" $reload_flag" ;;
7534 esac
7535 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7536 case $host_os in
7537   cygwin* | mingw* | pw32* | cegcc*)
7538     if test "$GCC" != yes; then
7539       reload_cmds=false
7540     fi
7541     ;;
7542   darwin*)
7543     if test "$GCC" = yes; then
7544       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7545     else
7546       reload_cmds='$LD$reload_flag -o $output$reload_objs'
7547     fi
7548     ;;
7549 esac
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559 if test -n "$ac_tool_prefix"; then
7560   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7561 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7563 $as_echo_n "checking for $ac_word... " >&6; }
7564 if ${ac_cv_prog_OBJDUMP+:} false; then :
7565   $as_echo_n "(cached) " >&6
7566 else
7567   if test -n "$OBJDUMP"; then
7568   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7569 else
7570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7571 for as_dir in $PATH
7572 do
7573   IFS=$as_save_IFS
7574   test -z "$as_dir" && as_dir=.
7575     for ac_exec_ext in '' $ac_executable_extensions; do
7576   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7577     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7578     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7579     break 2
7580   fi
7581 done
7582   done
7583 IFS=$as_save_IFS
7584
7585 fi
7586 fi
7587 OBJDUMP=$ac_cv_prog_OBJDUMP
7588 if test -n "$OBJDUMP"; then
7589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7590 $as_echo "$OBJDUMP" >&6; }
7591 else
7592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7593 $as_echo "no" >&6; }
7594 fi
7595
7596
7597 fi
7598 if test -z "$ac_cv_prog_OBJDUMP"; then
7599   ac_ct_OBJDUMP=$OBJDUMP
7600   # Extract the first word of "objdump", so it can be a program name with args.
7601 set dummy objdump; ac_word=$2
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7603 $as_echo_n "checking for $ac_word... " >&6; }
7604 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7605   $as_echo_n "(cached) " >&6
7606 else
7607   if test -n "$ac_ct_OBJDUMP"; then
7608   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7609 else
7610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7611 for as_dir in $PATH
7612 do
7613   IFS=$as_save_IFS
7614   test -z "$as_dir" && as_dir=.
7615     for ac_exec_ext in '' $ac_executable_extensions; do
7616   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7617     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7618     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7619     break 2
7620   fi
7621 done
7622   done
7623 IFS=$as_save_IFS
7624
7625 fi
7626 fi
7627 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7628 if test -n "$ac_ct_OBJDUMP"; then
7629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7630 $as_echo "$ac_ct_OBJDUMP" >&6; }
7631 else
7632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7633 $as_echo "no" >&6; }
7634 fi
7635
7636   if test "x$ac_ct_OBJDUMP" = x; then
7637     OBJDUMP="false"
7638   else
7639     case $cross_compiling:$ac_tool_warned in
7640 yes:)
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7642 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7643 ac_tool_warned=yes ;;
7644 esac
7645     OBJDUMP=$ac_ct_OBJDUMP
7646   fi
7647 else
7648   OBJDUMP="$ac_cv_prog_OBJDUMP"
7649 fi
7650
7651 test -z "$OBJDUMP" && OBJDUMP=objdump
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7662 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7663 if ${lt_cv_deplibs_check_method+:} false; then :
7664   $as_echo_n "(cached) " >&6
7665 else
7666   lt_cv_file_magic_cmd='$MAGIC_CMD'
7667 lt_cv_file_magic_test_file=
7668 lt_cv_deplibs_check_method='unknown'
7669 # Need to set the preceding variable on all platforms that support
7670 # interlibrary dependencies.
7671 # 'none' -- dependencies not supported.
7672 # `unknown' -- same as none, but documents that we really don't know.
7673 # 'pass_all' -- all dependencies passed with no checks.
7674 # 'test_compile' -- check by making test program.
7675 # 'file_magic [[regex]]' -- check by looking for files in library path
7676 # which responds to the $file_magic_cmd with a given extended regex.
7677 # If you have `file' or equivalent on your system and you're not sure
7678 # whether `pass_all' will *always* work, you probably want this one.
7679
7680 case $host_os in
7681 aix[4-9]*)
7682   lt_cv_deplibs_check_method=pass_all
7683   ;;
7684
7685 beos*)
7686   lt_cv_deplibs_check_method=pass_all
7687   ;;
7688
7689 bsdi[45]*)
7690   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7691   lt_cv_file_magic_cmd='/usr/bin/file -L'
7692   lt_cv_file_magic_test_file=/shlib/libc.so
7693   ;;
7694
7695 cygwin*)
7696   # func_win32_libid is a shell function defined in ltmain.sh
7697   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7698   lt_cv_file_magic_cmd='func_win32_libid'
7699   ;;
7700
7701 mingw* | pw32*)
7702   # Base MSYS/MinGW do not provide the 'file' command needed by
7703   # func_win32_libid shell function, so use a weaker test based on 'objdump',
7704   # unless we find 'file', for example because we are cross-compiling.
7705   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7706   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7707     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7708     lt_cv_file_magic_cmd='func_win32_libid'
7709   else
7710     # Keep this pattern in sync with the one in func_win32_libid.
7711     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7712     lt_cv_file_magic_cmd='$OBJDUMP -f'
7713   fi
7714   ;;
7715
7716 cegcc*)
7717   # use the weaker test based on 'objdump'. See mingw*.
7718   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7719   lt_cv_file_magic_cmd='$OBJDUMP -f'
7720   ;;
7721
7722 darwin* | rhapsody*)
7723   lt_cv_deplibs_check_method=pass_all
7724   ;;
7725
7726 freebsd* | dragonfly*)
7727   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7728     case $host_cpu in
7729     i*86 )
7730       # Not sure whether the presence of OpenBSD here was a mistake.
7731       # Let's accept both of them until this is cleared up.
7732       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7733       lt_cv_file_magic_cmd=/usr/bin/file
7734       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7735       ;;
7736     esac
7737   else
7738     lt_cv_deplibs_check_method=pass_all
7739   fi
7740   ;;
7741
7742 gnu*)
7743   lt_cv_deplibs_check_method=pass_all
7744   ;;
7745
7746 haiku*)
7747   lt_cv_deplibs_check_method=pass_all
7748   ;;
7749
7750 hpux10.20* | hpux11*)
7751   lt_cv_file_magic_cmd=/usr/bin/file
7752   case $host_cpu in
7753   ia64*)
7754     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7755     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7756     ;;
7757   hppa*64*)
7758     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]'
7759     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7760     ;;
7761   *)
7762     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7763     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7764     ;;
7765   esac
7766   ;;
7767
7768 interix[3-9]*)
7769   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7770   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7771   ;;
7772
7773 irix5* | irix6* | nonstopux*)
7774   case $LD in
7775   *-32|*"-32 ") libmagic=32-bit;;
7776   *-n32|*"-n32 ") libmagic=N32;;
7777   *-64|*"-64 ") libmagic=64-bit;;
7778   *) libmagic=never-match;;
7779   esac
7780   lt_cv_deplibs_check_method=pass_all
7781   ;;
7782
7783 # This must be Linux ELF.
7784 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7785   lt_cv_deplibs_check_method=pass_all
7786   ;;
7787
7788 netbsd*)
7789   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7790     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7791   else
7792     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7793   fi
7794   ;;
7795
7796 newos6*)
7797   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7798   lt_cv_file_magic_cmd=/usr/bin/file
7799   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7800   ;;
7801
7802 *nto* | *qnx*)
7803   lt_cv_deplibs_check_method=pass_all
7804   ;;
7805
7806 openbsd*)
7807   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7808     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7809   else
7810     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7811   fi
7812   ;;
7813
7814 osf3* | osf4* | osf5*)
7815   lt_cv_deplibs_check_method=pass_all
7816   ;;
7817
7818 rdos*)
7819   lt_cv_deplibs_check_method=pass_all
7820   ;;
7821
7822 solaris*)
7823   lt_cv_deplibs_check_method=pass_all
7824   ;;
7825
7826 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7827   lt_cv_deplibs_check_method=pass_all
7828   ;;
7829
7830 sysv4 | sysv4.3*)
7831   case $host_vendor in
7832   motorola)
7833     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]'
7834     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7835     ;;
7836   ncr)
7837     lt_cv_deplibs_check_method=pass_all
7838     ;;
7839   sequent)
7840     lt_cv_file_magic_cmd='/bin/file'
7841     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7842     ;;
7843   sni)
7844     lt_cv_file_magic_cmd='/bin/file'
7845     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7846     lt_cv_file_magic_test_file=/lib/libc.so
7847     ;;
7848   siemens)
7849     lt_cv_deplibs_check_method=pass_all
7850     ;;
7851   pc)
7852     lt_cv_deplibs_check_method=pass_all
7853     ;;
7854   esac
7855   ;;
7856
7857 tpf*)
7858   lt_cv_deplibs_check_method=pass_all
7859   ;;
7860 esac
7861
7862 fi
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7864 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7865
7866 file_magic_glob=
7867 want_nocaseglob=no
7868 if test "$build" = "$host"; then
7869   case $host_os in
7870   mingw* | pw32*)
7871     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7872       want_nocaseglob=yes
7873     else
7874       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7875     fi
7876     ;;
7877   esac
7878 fi
7879
7880 file_magic_cmd=$lt_cv_file_magic_cmd
7881 deplibs_check_method=$lt_cv_deplibs_check_method
7882 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905 if test -n "$ac_tool_prefix"; then
7906   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7907 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7909 $as_echo_n "checking for $ac_word... " >&6; }
7910 if ${ac_cv_prog_DLLTOOL+:} false; then :
7911   $as_echo_n "(cached) " >&6
7912 else
7913   if test -n "$DLLTOOL"; then
7914   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7915 else
7916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7917 for as_dir in $PATH
7918 do
7919   IFS=$as_save_IFS
7920   test -z "$as_dir" && as_dir=.
7921     for ac_exec_ext in '' $ac_executable_extensions; do
7922   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7923     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7924     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7925     break 2
7926   fi
7927 done
7928   done
7929 IFS=$as_save_IFS
7930
7931 fi
7932 fi
7933 DLLTOOL=$ac_cv_prog_DLLTOOL
7934 if test -n "$DLLTOOL"; then
7935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7936 $as_echo "$DLLTOOL" >&6; }
7937 else
7938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7939 $as_echo "no" >&6; }
7940 fi
7941
7942
7943 fi
7944 if test -z "$ac_cv_prog_DLLTOOL"; then
7945   ac_ct_DLLTOOL=$DLLTOOL
7946   # Extract the first word of "dlltool", so it can be a program name with args.
7947 set dummy dlltool; ac_word=$2
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7949 $as_echo_n "checking for $ac_word... " >&6; }
7950 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7951   $as_echo_n "(cached) " >&6
7952 else
7953   if test -n "$ac_ct_DLLTOOL"; then
7954   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7955 else
7956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7957 for as_dir in $PATH
7958 do
7959   IFS=$as_save_IFS
7960   test -z "$as_dir" && as_dir=.
7961     for ac_exec_ext in '' $ac_executable_extensions; do
7962   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7963     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7964     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7965     break 2
7966   fi
7967 done
7968   done
7969 IFS=$as_save_IFS
7970
7971 fi
7972 fi
7973 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7974 if test -n "$ac_ct_DLLTOOL"; then
7975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7976 $as_echo "$ac_ct_DLLTOOL" >&6; }
7977 else
7978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7979 $as_echo "no" >&6; }
7980 fi
7981
7982   if test "x$ac_ct_DLLTOOL" = x; then
7983     DLLTOOL="false"
7984   else
7985     case $cross_compiling:$ac_tool_warned in
7986 yes:)
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7988 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7989 ac_tool_warned=yes ;;
7990 esac
7991     DLLTOOL=$ac_ct_DLLTOOL
7992   fi
7993 else
7994   DLLTOOL="$ac_cv_prog_DLLTOOL"
7995 fi
7996
7997 test -z "$DLLTOOL" && DLLTOOL=dlltool
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8009 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8010 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8011   $as_echo_n "(cached) " >&6
8012 else
8013   lt_cv_sharedlib_from_linklib_cmd='unknown'
8014
8015 case $host_os in
8016 cygwin* | mingw* | pw32* | cegcc*)
8017   # two different shell functions defined in ltmain.sh
8018   # decide which to use based on capabilities of $DLLTOOL
8019   case `$DLLTOOL --help 2>&1` in
8020   *--identify-strict*)
8021     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8022     ;;
8023   *)
8024     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8025     ;;
8026   esac
8027   ;;
8028 *)
8029   # fallback: assume linklib IS sharedlib
8030   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
8031   ;;
8032 esac
8033
8034 fi
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8036 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8037 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8038 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8039
8040
8041
8042
8043
8044
8045
8046 if test -n "$ac_tool_prefix"; then
8047   for ac_prog in ar
8048   do
8049     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8050 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8052 $as_echo_n "checking for $ac_word... " >&6; }
8053 if ${ac_cv_prog_AR+:} false; then :
8054   $as_echo_n "(cached) " >&6
8055 else
8056   if test -n "$AR"; then
8057   ac_cv_prog_AR="$AR" # Let the user override the test.
8058 else
8059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8060 for as_dir in $PATH
8061 do
8062   IFS=$as_save_IFS
8063   test -z "$as_dir" && as_dir=.
8064     for ac_exec_ext in '' $ac_executable_extensions; do
8065   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8066     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8067     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8068     break 2
8069   fi
8070 done
8071   done
8072 IFS=$as_save_IFS
8073
8074 fi
8075 fi
8076 AR=$ac_cv_prog_AR
8077 if test -n "$AR"; then
8078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8079 $as_echo "$AR" >&6; }
8080 else
8081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8082 $as_echo "no" >&6; }
8083 fi
8084
8085
8086     test -n "$AR" && break
8087   done
8088 fi
8089 if test -z "$AR"; then
8090   ac_ct_AR=$AR
8091   for ac_prog in ar
8092 do
8093   # Extract the first word of "$ac_prog", so it can be a program name with args.
8094 set dummy $ac_prog; ac_word=$2
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8096 $as_echo_n "checking for $ac_word... " >&6; }
8097 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8098   $as_echo_n "(cached) " >&6
8099 else
8100   if test -n "$ac_ct_AR"; then
8101   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8102 else
8103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8104 for as_dir in $PATH
8105 do
8106   IFS=$as_save_IFS
8107   test -z "$as_dir" && as_dir=.
8108     for ac_exec_ext in '' $ac_executable_extensions; do
8109   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8110     ac_cv_prog_ac_ct_AR="$ac_prog"
8111     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8112     break 2
8113   fi
8114 done
8115   done
8116 IFS=$as_save_IFS
8117
8118 fi
8119 fi
8120 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8121 if test -n "$ac_ct_AR"; then
8122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8123 $as_echo "$ac_ct_AR" >&6; }
8124 else
8125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8126 $as_echo "no" >&6; }
8127 fi
8128
8129
8130   test -n "$ac_ct_AR" && break
8131 done
8132
8133   if test "x$ac_ct_AR" = x; then
8134     AR="false"
8135   else
8136     case $cross_compiling:$ac_tool_warned in
8137 yes:)
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8139 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8140 ac_tool_warned=yes ;;
8141 esac
8142     AR=$ac_ct_AR
8143   fi
8144 fi
8145
8146 : ${AR=ar}
8147 : ${AR_FLAGS=cru}
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8160 $as_echo_n "checking for archiver @FILE support... " >&6; }
8161 if ${lt_cv_ar_at_file+:} false; then :
8162   $as_echo_n "(cached) " >&6
8163 else
8164   lt_cv_ar_at_file=no
8165    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8166 /* end confdefs.h.  */
8167
8168 int
8169 main ()
8170 {
8171
8172   ;
8173   return 0;
8174 }
8175 _ACEOF
8176 if ac_fn_c_try_compile "$LINENO"; then :
8177   echo conftest.$ac_objext > conftest.lst
8178       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8179       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8180   (eval $lt_ar_try) 2>&5
8181   ac_status=$?
8182   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8183   test $ac_status = 0; }
8184       if test "$ac_status" -eq 0; then
8185         # Ensure the archiver fails upon bogus file names.
8186         rm -f conftest.$ac_objext libconftest.a
8187         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8188   (eval $lt_ar_try) 2>&5
8189   ac_status=$?
8190   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8191   test $ac_status = 0; }
8192         if test "$ac_status" -ne 0; then
8193           lt_cv_ar_at_file=@
8194         fi
8195       fi
8196       rm -f conftest.* libconftest.a
8197
8198 fi
8199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8200
8201 fi
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8203 $as_echo "$lt_cv_ar_at_file" >&6; }
8204
8205 if test "x$lt_cv_ar_at_file" = xno; then
8206   archiver_list_spec=
8207 else
8208   archiver_list_spec=$lt_cv_ar_at_file
8209 fi
8210
8211
8212
8213
8214
8215
8216
8217 if test -n "$ac_tool_prefix"; then
8218   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8219 set dummy ${ac_tool_prefix}strip; ac_word=$2
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8221 $as_echo_n "checking for $ac_word... " >&6; }
8222 if ${ac_cv_prog_STRIP+:} false; then :
8223   $as_echo_n "(cached) " >&6
8224 else
8225   if test -n "$STRIP"; then
8226   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8227 else
8228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8229 for as_dir in $PATH
8230 do
8231   IFS=$as_save_IFS
8232   test -z "$as_dir" && as_dir=.
8233     for ac_exec_ext in '' $ac_executable_extensions; do
8234   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8235     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8236     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8237     break 2
8238   fi
8239 done
8240   done
8241 IFS=$as_save_IFS
8242
8243 fi
8244 fi
8245 STRIP=$ac_cv_prog_STRIP
8246 if test -n "$STRIP"; then
8247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8248 $as_echo "$STRIP" >&6; }
8249 else
8250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8251 $as_echo "no" >&6; }
8252 fi
8253
8254
8255 fi
8256 if test -z "$ac_cv_prog_STRIP"; then
8257   ac_ct_STRIP=$STRIP
8258   # Extract the first word of "strip", so it can be a program name with args.
8259 set dummy strip; ac_word=$2
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8261 $as_echo_n "checking for $ac_word... " >&6; }
8262 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8263   $as_echo_n "(cached) " >&6
8264 else
8265   if test -n "$ac_ct_STRIP"; then
8266   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8267 else
8268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8269 for as_dir in $PATH
8270 do
8271   IFS=$as_save_IFS
8272   test -z "$as_dir" && as_dir=.
8273     for ac_exec_ext in '' $ac_executable_extensions; do
8274   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8275     ac_cv_prog_ac_ct_STRIP="strip"
8276     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8277     break 2
8278   fi
8279 done
8280   done
8281 IFS=$as_save_IFS
8282
8283 fi
8284 fi
8285 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8286 if test -n "$ac_ct_STRIP"; then
8287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8288 $as_echo "$ac_ct_STRIP" >&6; }
8289 else
8290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8291 $as_echo "no" >&6; }
8292 fi
8293
8294   if test "x$ac_ct_STRIP" = x; then
8295     STRIP=":"
8296   else
8297     case $cross_compiling:$ac_tool_warned in
8298 yes:)
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8300 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8301 ac_tool_warned=yes ;;
8302 esac
8303     STRIP=$ac_ct_STRIP
8304   fi
8305 else
8306   STRIP="$ac_cv_prog_STRIP"
8307 fi
8308
8309 test -z "$STRIP" && STRIP=:
8310
8311
8312
8313
8314
8315
8316 if test -n "$ac_tool_prefix"; then
8317   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8318 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8320 $as_echo_n "checking for $ac_word... " >&6; }
8321 if ${ac_cv_prog_RANLIB+:} false; then :
8322   $as_echo_n "(cached) " >&6
8323 else
8324   if test -n "$RANLIB"; then
8325   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8326 else
8327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8328 for as_dir in $PATH
8329 do
8330   IFS=$as_save_IFS
8331   test -z "$as_dir" && as_dir=.
8332     for ac_exec_ext in '' $ac_executable_extensions; do
8333   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8334     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8335     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8336     break 2
8337   fi
8338 done
8339   done
8340 IFS=$as_save_IFS
8341
8342 fi
8343 fi
8344 RANLIB=$ac_cv_prog_RANLIB
8345 if test -n "$RANLIB"; then
8346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8347 $as_echo "$RANLIB" >&6; }
8348 else
8349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8350 $as_echo "no" >&6; }
8351 fi
8352
8353
8354 fi
8355 if test -z "$ac_cv_prog_RANLIB"; then
8356   ac_ct_RANLIB=$RANLIB
8357   # Extract the first word of "ranlib", so it can be a program name with args.
8358 set dummy ranlib; ac_word=$2
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8360 $as_echo_n "checking for $ac_word... " >&6; }
8361 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8362   $as_echo_n "(cached) " >&6
8363 else
8364   if test -n "$ac_ct_RANLIB"; then
8365   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8366 else
8367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8368 for as_dir in $PATH
8369 do
8370   IFS=$as_save_IFS
8371   test -z "$as_dir" && as_dir=.
8372     for ac_exec_ext in '' $ac_executable_extensions; do
8373   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8374     ac_cv_prog_ac_ct_RANLIB="ranlib"
8375     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8376     break 2
8377   fi
8378 done
8379   done
8380 IFS=$as_save_IFS
8381
8382 fi
8383 fi
8384 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8385 if test -n "$ac_ct_RANLIB"; then
8386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8387 $as_echo "$ac_ct_RANLIB" >&6; }
8388 else
8389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8390 $as_echo "no" >&6; }
8391 fi
8392
8393   if test "x$ac_ct_RANLIB" = x; then
8394     RANLIB=":"
8395   else
8396     case $cross_compiling:$ac_tool_warned in
8397 yes:)
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8399 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8400 ac_tool_warned=yes ;;
8401 esac
8402     RANLIB=$ac_ct_RANLIB
8403   fi
8404 else
8405   RANLIB="$ac_cv_prog_RANLIB"
8406 fi
8407
8408 test -z "$RANLIB" && RANLIB=:
8409
8410
8411
8412
8413
8414
8415 # Determine commands to create old-style static archives.
8416 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8417 old_postinstall_cmds='chmod 644 $oldlib'
8418 old_postuninstall_cmds=
8419
8420 if test -n "$RANLIB"; then
8421   case $host_os in
8422   openbsd*)
8423     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8424     ;;
8425   *)
8426     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8427     ;;
8428   esac
8429   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8430 fi
8431
8432 case $host_os in
8433   darwin*)
8434     lock_old_archive_extraction=yes ;;
8435   *)
8436     lock_old_archive_extraction=no ;;
8437 esac
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477 # If no C compiler was specified, use CC.
8478 LTCC=${LTCC-"$CC"}
8479
8480 # If no C compiler flags were specified, use CFLAGS.
8481 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8482
8483 # Allow CC to be a program name with arguments.
8484 compiler=$CC
8485
8486
8487 # Check for command to grab the raw symbol name followed by C symbol from nm.
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8489 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8490 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8491   $as_echo_n "(cached) " >&6
8492 else
8493
8494 # These are sane defaults that work on at least a few old systems.
8495 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8496
8497 # Character class describing NM global symbol codes.
8498 symcode='[BCDEGRST]'
8499
8500 # Regexp to match symbols that can be accessed directly from C.
8501 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8502
8503 # Define system-specific variables.
8504 case $host_os in
8505 aix*)
8506   symcode='[BCDT]'
8507   ;;
8508 cygwin* | mingw* | pw32* | cegcc*)
8509   symcode='[ABCDGISTW]'
8510   ;;
8511 hpux*)
8512   if test "$host_cpu" = ia64; then
8513     symcode='[ABCDEGRST]'
8514   fi
8515   ;;
8516 irix* | nonstopux*)
8517   symcode='[BCDEGRST]'
8518   ;;
8519 osf*)
8520   symcode='[BCDEGQRST]'
8521   ;;
8522 solaris*)
8523   symcode='[BDRT]'
8524   ;;
8525 sco3.2v5*)
8526   symcode='[DT]'
8527   ;;
8528 sysv4.2uw2*)
8529   symcode='[DT]'
8530   ;;
8531 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8532   symcode='[ABDT]'
8533   ;;
8534 sysv4)
8535   symcode='[DFNSTU]'
8536   ;;
8537 esac
8538
8539 # If we're using GNU nm, then use its standard symbol codes.
8540 case `$NM -V 2>&1` in
8541 *GNU* | *'with BFD'*)
8542   symcode='[ABCDGIRSTW]' ;;
8543 esac
8544
8545 # Transform an extracted symbol line into a proper C declaration.
8546 # Some systems (esp. on ia64) link data and code symbols differently,
8547 # so use this general approach.
8548 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8549
8550 # Transform an extracted symbol line into symbol name and symbol address
8551 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
8552 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'"
8553
8554 # Handle CRLF in mingw tool chain
8555 opt_cr=
8556 case $build_os in
8557 mingw*)
8558   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8559   ;;
8560 esac
8561
8562 # Try without a prefix underscore, then with it.
8563 for ac_symprfx in "" "_"; do
8564
8565   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8566   symxfrm="\\1 $ac_symprfx\\2 \\2"
8567
8568   # Write the raw and C identifiers.
8569   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8570     # Fake it for dumpbin and say T for any non-static function
8571     # and D for any global variable.
8572     # Also find C++ and __fastcall symbols from MSVC++,
8573     # which start with @ or ?.
8574     lt_cv_sys_global_symbol_pipe="$AWK '"\
8575 "     {last_section=section; section=\$ 3};"\
8576 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8577 "     \$ 0!~/External *\|/{next};"\
8578 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8579 "     {if(hide[section]) next};"\
8580 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8581 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8582 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
8583 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8584 "     ' prfx=^$ac_symprfx"
8585   else
8586     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8587   fi
8588   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8589
8590   # Check to see that the pipe works correctly.
8591   pipe_works=no
8592
8593   rm -f conftest*
8594   cat > conftest.$ac_ext <<_LT_EOF
8595 #ifdef __cplusplus
8596 extern "C" {
8597 #endif
8598 char nm_test_var;
8599 void nm_test_func(void);
8600 void nm_test_func(void){}
8601 #ifdef __cplusplus
8602 }
8603 #endif
8604 int main(){nm_test_var='a';nm_test_func();return(0);}
8605 _LT_EOF
8606
8607   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8608   (eval $ac_compile) 2>&5
8609   ac_status=$?
8610   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8611   test $ac_status = 0; }; then
8612     # Now try to grab the symbols.
8613     nlist=conftest.nm
8614     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8615   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8616   ac_status=$?
8617   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8618   test $ac_status = 0; } && test -s "$nlist"; then
8619       # Try sorting and uniquifying the output.
8620       if sort "$nlist" | uniq > "$nlist"T; then
8621         mv -f "$nlist"T "$nlist"
8622       else
8623         rm -f "$nlist"T
8624       fi
8625
8626       # Make sure that we snagged all the symbols we need.
8627       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8628         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8629           cat <<_LT_EOF > conftest.$ac_ext
8630 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
8631 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8632 /* DATA imports from DLLs on WIN32 con't be const, because runtime
8633    relocations are performed -- see ld's documentation on pseudo-relocs.  */
8634 # define LT_DLSYM_CONST
8635 #elif defined(__osf__)
8636 /* This system does not cope well with relocations in const data.  */
8637 # define LT_DLSYM_CONST
8638 #else
8639 # define LT_DLSYM_CONST const
8640 #endif
8641
8642 #ifdef __cplusplus
8643 extern "C" {
8644 #endif
8645
8646 _LT_EOF
8647           # Now generate the symbol file.
8648           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8649
8650           cat <<_LT_EOF >> conftest.$ac_ext
8651
8652 /* The mapping between symbol names and symbols.  */
8653 LT_DLSYM_CONST struct {
8654   const char *name;
8655   void       *address;
8656 }
8657 lt__PROGRAM__LTX_preloaded_symbols[] =
8658 {
8659   { "@PROGRAM@", (void *) 0 },
8660 _LT_EOF
8661           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8662           cat <<\_LT_EOF >> conftest.$ac_ext
8663   {0, (void *) 0}
8664 };
8665
8666 /* This works around a problem in FreeBSD linker */
8667 #ifdef FREEBSD_WORKAROUND
8668 static const void *lt_preloaded_setup() {
8669   return lt__PROGRAM__LTX_preloaded_symbols;
8670 }
8671 #endif
8672
8673 #ifdef __cplusplus
8674 }
8675 #endif
8676 _LT_EOF
8677           # Now try linking the two files.
8678           mv conftest.$ac_objext conftstm.$ac_objext
8679           lt_globsym_save_LIBS=$LIBS
8680           lt_globsym_save_CFLAGS=$CFLAGS
8681           LIBS="conftstm.$ac_objext"
8682           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8683           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8684   (eval $ac_link) 2>&5
8685   ac_status=$?
8686   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8687   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8688             pipe_works=yes
8689           fi
8690           LIBS=$lt_globsym_save_LIBS
8691           CFLAGS=$lt_globsym_save_CFLAGS
8692         else
8693           echo "cannot find nm_test_func in $nlist" >&5
8694         fi
8695       else
8696         echo "cannot find nm_test_var in $nlist" >&5
8697       fi
8698     else
8699       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8700     fi
8701   else
8702     echo "$progname: failed program was:" >&5
8703     cat conftest.$ac_ext >&5
8704   fi
8705   rm -rf conftest* conftst*
8706
8707   # Do not use the global_symbol_pipe unless it works.
8708   if test "$pipe_works" = yes; then
8709     break
8710   else
8711     lt_cv_sys_global_symbol_pipe=
8712   fi
8713 done
8714
8715 fi
8716
8717 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8718   lt_cv_sys_global_symbol_to_cdecl=
8719 fi
8720 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8722 $as_echo "failed" >&6; }
8723 else
8724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8725 $as_echo "ok" >&6; }
8726 fi
8727
8728 # Response file support.
8729 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8730   nm_file_list_spec='@'
8731 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8732   nm_file_list_spec='@'
8733 fi
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8762 $as_echo_n "checking for sysroot... " >&6; }
8763
8764 # Check whether --with-sysroot was given.
8765 if test "${with_sysroot+set}" = set; then :
8766   withval=$with_sysroot;
8767 else
8768   with_sysroot=no
8769 fi
8770
8771
8772 lt_sysroot=
8773 case ${with_sysroot} in #(
8774  yes)
8775    if test "$GCC" = yes; then
8776      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8777    fi
8778    ;; #(
8779  /*)
8780    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8781    ;; #(
8782  no|'')
8783    ;; #(
8784  *)
8785    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8786 $as_echo "${with_sysroot}" >&6; }
8787    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8788    ;;
8789 esac
8790
8791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8792 $as_echo "${lt_sysroot:-no}" >&6; }
8793
8794
8795
8796
8797
8798 # Check whether --enable-libtool-lock was given.
8799 if test "${enable_libtool_lock+set}" = set; then :
8800   enableval=$enable_libtool_lock;
8801 fi
8802
8803 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8804
8805 # Some flags need to be propagated to the compiler or linker for good
8806 # libtool support.
8807 case $host in
8808 ia64-*-hpux*)
8809   # Find out which ABI we are using.
8810   echo 'int i;' > conftest.$ac_ext
8811   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8812   (eval $ac_compile) 2>&5
8813   ac_status=$?
8814   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8815   test $ac_status = 0; }; then
8816     case `/usr/bin/file conftest.$ac_objext` in
8817       *ELF-32*)
8818         HPUX_IA64_MODE="32"
8819         ;;
8820       *ELF-64*)
8821         HPUX_IA64_MODE="64"
8822         ;;
8823     esac
8824   fi
8825   rm -rf conftest*
8826   ;;
8827 *-*-irix6*)
8828   # Find out which ABI we are using.
8829   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8830   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8831   (eval $ac_compile) 2>&5
8832   ac_status=$?
8833   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8834   test $ac_status = 0; }; then
8835     if test "$lt_cv_prog_gnu_ld" = yes; then
8836       case `/usr/bin/file conftest.$ac_objext` in
8837         *32-bit*)
8838           LD="${LD-ld} -melf32bsmip"
8839           ;;
8840         *N32*)
8841           LD="${LD-ld} -melf32bmipn32"
8842           ;;
8843         *64-bit*)
8844           LD="${LD-ld} -melf64bmip"
8845         ;;
8846       esac
8847     else
8848       case `/usr/bin/file conftest.$ac_objext` in
8849         *32-bit*)
8850           LD="${LD-ld} -32"
8851           ;;
8852         *N32*)
8853           LD="${LD-ld} -n32"
8854           ;;
8855         *64-bit*)
8856           LD="${LD-ld} -64"
8857           ;;
8858       esac
8859     fi
8860   fi
8861   rm -rf conftest*
8862   ;;
8863
8864 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8865 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8866   # Find out which ABI we are using.
8867   echo 'int i;' > conftest.$ac_ext
8868   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8869   (eval $ac_compile) 2>&5
8870   ac_status=$?
8871   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8872   test $ac_status = 0; }; then
8873     case `/usr/bin/file conftest.o` in
8874       *32-bit*)
8875         case $host in
8876           x86_64-*kfreebsd*-gnu)
8877             LD="${LD-ld} -m elf_i386_fbsd"
8878             ;;
8879           x86_64-*linux*)
8880             LD="${LD-ld} -m elf_i386"
8881             ;;
8882           ppc64-*linux*|powerpc64-*linux*)
8883             LD="${LD-ld} -m elf32ppclinux"
8884             ;;
8885           s390x-*linux*)
8886             LD="${LD-ld} -m elf_s390"
8887             ;;
8888           sparc64-*linux*)
8889             LD="${LD-ld} -m elf32_sparc"
8890             ;;
8891         esac
8892         ;;
8893       *64-bit*)
8894         case $host in
8895           x86_64-*kfreebsd*-gnu)
8896             LD="${LD-ld} -m elf_x86_64_fbsd"
8897             ;;
8898           x86_64-*linux*)
8899             LD="${LD-ld} -m elf_x86_64"
8900             ;;
8901           ppc*-*linux*|powerpc*-*linux*)
8902             LD="${LD-ld} -m elf64ppc"
8903             ;;
8904           s390*-*linux*|s390*-*tpf*)
8905             LD="${LD-ld} -m elf64_s390"
8906             ;;
8907           sparc*-*linux*)
8908             LD="${LD-ld} -m elf64_sparc"
8909             ;;
8910         esac
8911         ;;
8912     esac
8913   fi
8914   rm -rf conftest*
8915   ;;
8916
8917 *-*-sco3.2v5*)
8918   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8919   SAVE_CFLAGS="$CFLAGS"
8920   CFLAGS="$CFLAGS -belf"
8921   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8922 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8923 if ${lt_cv_cc_needs_belf+:} false; then :
8924   $as_echo_n "(cached) " >&6
8925 else
8926   ac_ext=c
8927 ac_cpp='$CPP $CPPFLAGS'
8928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8931
8932      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8933 /* end confdefs.h.  */
8934
8935 int
8936 main ()
8937 {
8938
8939   ;
8940   return 0;
8941 }
8942 _ACEOF
8943 if ac_fn_c_try_link "$LINENO"; then :
8944   lt_cv_cc_needs_belf=yes
8945 else
8946   lt_cv_cc_needs_belf=no
8947 fi
8948 rm -f core conftest.err conftest.$ac_objext \
8949     conftest$ac_exeext conftest.$ac_ext
8950      ac_ext=c
8951 ac_cpp='$CPP $CPPFLAGS'
8952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8955
8956 fi
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8958 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8959   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8960     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8961     CFLAGS="$SAVE_CFLAGS"
8962   fi
8963   ;;
8964 sparc*-*solaris*)
8965   # Find out which ABI we are using.
8966   echo 'int i;' > conftest.$ac_ext
8967   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8968   (eval $ac_compile) 2>&5
8969   ac_status=$?
8970   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8971   test $ac_status = 0; }; then
8972     case `/usr/bin/file conftest.o` in
8973     *64-bit*)
8974       case $lt_cv_prog_gnu_ld in
8975       yes*) LD="${LD-ld} -m elf64_sparc" ;;
8976       *)
8977         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8978           LD="${LD-ld} -64"
8979         fi
8980         ;;
8981       esac
8982       ;;
8983     esac
8984   fi
8985   rm -rf conftest*
8986   ;;
8987 esac
8988
8989 need_locks="$enable_libtool_lock"
8990
8991 if test -n "$ac_tool_prefix"; then
8992   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8993 set dummy ${ac_tool_prefix}mt; ac_word=$2
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8995 $as_echo_n "checking for $ac_word... " >&6; }
8996 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8997   $as_echo_n "(cached) " >&6
8998 else
8999   if test -n "$MANIFEST_TOOL"; then
9000   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9001 else
9002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9003 for as_dir in $PATH
9004 do
9005   IFS=$as_save_IFS
9006   test -z "$as_dir" && as_dir=.
9007     for ac_exec_ext in '' $ac_executable_extensions; do
9008   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9009     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9010     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9011     break 2
9012   fi
9013 done
9014   done
9015 IFS=$as_save_IFS
9016
9017 fi
9018 fi
9019 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9020 if test -n "$MANIFEST_TOOL"; then
9021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9022 $as_echo "$MANIFEST_TOOL" >&6; }
9023 else
9024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9025 $as_echo "no" >&6; }
9026 fi
9027
9028
9029 fi
9030 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9031   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9032   # Extract the first word of "mt", so it can be a program name with args.
9033 set dummy mt; ac_word=$2
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9035 $as_echo_n "checking for $ac_word... " >&6; }
9036 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9037   $as_echo_n "(cached) " >&6
9038 else
9039   if test -n "$ac_ct_MANIFEST_TOOL"; then
9040   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9041 else
9042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9043 for as_dir in $PATH
9044 do
9045   IFS=$as_save_IFS
9046   test -z "$as_dir" && as_dir=.
9047     for ac_exec_ext in '' $ac_executable_extensions; do
9048   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9049     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9050     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9051     break 2
9052   fi
9053 done
9054   done
9055 IFS=$as_save_IFS
9056
9057 fi
9058 fi
9059 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9060 if test -n "$ac_ct_MANIFEST_TOOL"; then
9061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9062 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9063 else
9064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9065 $as_echo "no" >&6; }
9066 fi
9067
9068   if test "x$ac_ct_MANIFEST_TOOL" = x; then
9069     MANIFEST_TOOL=":"
9070   else
9071     case $cross_compiling:$ac_tool_warned in
9072 yes:)
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9074 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9075 ac_tool_warned=yes ;;
9076 esac
9077     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9078   fi
9079 else
9080   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9081 fi
9082
9083 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9085 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9086 if ${lt_cv_path_mainfest_tool+:} false; then :
9087   $as_echo_n "(cached) " >&6
9088 else
9089   lt_cv_path_mainfest_tool=no
9090   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9091   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9092   cat conftest.err >&5
9093   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9094     lt_cv_path_mainfest_tool=yes
9095   fi
9096   rm -f conftest*
9097 fi
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9099 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9100 if test "x$lt_cv_path_mainfest_tool" != xyes; then
9101   MANIFEST_TOOL=:
9102 fi
9103
9104
9105
9106
9107
9108
9109   case $host_os in
9110     rhapsody* | darwin*)
9111     if test -n "$ac_tool_prefix"; then
9112   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9113 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9115 $as_echo_n "checking for $ac_word... " >&6; }
9116 if ${ac_cv_prog_DSYMUTIL+:} false; then :
9117   $as_echo_n "(cached) " >&6
9118 else
9119   if test -n "$DSYMUTIL"; then
9120   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9121 else
9122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9123 for as_dir in $PATH
9124 do
9125   IFS=$as_save_IFS
9126   test -z "$as_dir" && as_dir=.
9127     for ac_exec_ext in '' $ac_executable_extensions; do
9128   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9129     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9130     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9131     break 2
9132   fi
9133 done
9134   done
9135 IFS=$as_save_IFS
9136
9137 fi
9138 fi
9139 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9140 if test -n "$DSYMUTIL"; then
9141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9142 $as_echo "$DSYMUTIL" >&6; }
9143 else
9144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9145 $as_echo "no" >&6; }
9146 fi
9147
9148
9149 fi
9150 if test -z "$ac_cv_prog_DSYMUTIL"; then
9151   ac_ct_DSYMUTIL=$DSYMUTIL
9152   # Extract the first word of "dsymutil", so it can be a program name with args.
9153 set dummy dsymutil; ac_word=$2
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9155 $as_echo_n "checking for $ac_word... " >&6; }
9156 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9157   $as_echo_n "(cached) " >&6
9158 else
9159   if test -n "$ac_ct_DSYMUTIL"; then
9160   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9161 else
9162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9163 for as_dir in $PATH
9164 do
9165   IFS=$as_save_IFS
9166   test -z "$as_dir" && as_dir=.
9167     for ac_exec_ext in '' $ac_executable_extensions; do
9168   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9169     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9170     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9171     break 2
9172   fi
9173 done
9174   done
9175 IFS=$as_save_IFS
9176
9177 fi
9178 fi
9179 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9180 if test -n "$ac_ct_DSYMUTIL"; then
9181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9182 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9183 else
9184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9185 $as_echo "no" >&6; }
9186 fi
9187
9188   if test "x$ac_ct_DSYMUTIL" = x; then
9189     DSYMUTIL=":"
9190   else
9191     case $cross_compiling:$ac_tool_warned in
9192 yes:)
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9194 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9195 ac_tool_warned=yes ;;
9196 esac
9197     DSYMUTIL=$ac_ct_DSYMUTIL
9198   fi
9199 else
9200   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9201 fi
9202
9203     if test -n "$ac_tool_prefix"; then
9204   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9205 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9207 $as_echo_n "checking for $ac_word... " >&6; }
9208 if ${ac_cv_prog_NMEDIT+:} false; then :
9209   $as_echo_n "(cached) " >&6
9210 else
9211   if test -n "$NMEDIT"; then
9212   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9213 else
9214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9215 for as_dir in $PATH
9216 do
9217   IFS=$as_save_IFS
9218   test -z "$as_dir" && as_dir=.
9219     for ac_exec_ext in '' $ac_executable_extensions; do
9220   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9221     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9222     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9223     break 2
9224   fi
9225 done
9226   done
9227 IFS=$as_save_IFS
9228
9229 fi
9230 fi
9231 NMEDIT=$ac_cv_prog_NMEDIT
9232 if test -n "$NMEDIT"; then
9233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9234 $as_echo "$NMEDIT" >&6; }
9235 else
9236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9237 $as_echo "no" >&6; }
9238 fi
9239
9240
9241 fi
9242 if test -z "$ac_cv_prog_NMEDIT"; then
9243   ac_ct_NMEDIT=$NMEDIT
9244   # Extract the first word of "nmedit", so it can be a program name with args.
9245 set dummy nmedit; ac_word=$2
9246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9247 $as_echo_n "checking for $ac_word... " >&6; }
9248 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9249   $as_echo_n "(cached) " >&6
9250 else
9251   if test -n "$ac_ct_NMEDIT"; then
9252   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9253 else
9254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9255 for as_dir in $PATH
9256 do
9257   IFS=$as_save_IFS
9258   test -z "$as_dir" && as_dir=.
9259     for ac_exec_ext in '' $ac_executable_extensions; do
9260   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9261     ac_cv_prog_ac_ct_NMEDIT="nmedit"
9262     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9263     break 2
9264   fi
9265 done
9266   done
9267 IFS=$as_save_IFS
9268
9269 fi
9270 fi
9271 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9272 if test -n "$ac_ct_NMEDIT"; then
9273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9274 $as_echo "$ac_ct_NMEDIT" >&6; }
9275 else
9276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9277 $as_echo "no" >&6; }
9278 fi
9279
9280   if test "x$ac_ct_NMEDIT" = x; then
9281     NMEDIT=":"
9282   else
9283     case $cross_compiling:$ac_tool_warned in
9284 yes:)
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9286 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9287 ac_tool_warned=yes ;;
9288 esac
9289     NMEDIT=$ac_ct_NMEDIT
9290   fi
9291 else
9292   NMEDIT="$ac_cv_prog_NMEDIT"
9293 fi
9294
9295     if test -n "$ac_tool_prefix"; then
9296   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9297 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9299 $as_echo_n "checking for $ac_word... " >&6; }
9300 if ${ac_cv_prog_LIPO+:} false; then :
9301   $as_echo_n "(cached) " >&6
9302 else
9303   if test -n "$LIPO"; then
9304   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9305 else
9306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9307 for as_dir in $PATH
9308 do
9309   IFS=$as_save_IFS
9310   test -z "$as_dir" && as_dir=.
9311     for ac_exec_ext in '' $ac_executable_extensions; do
9312   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9313     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9314     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9315     break 2
9316   fi
9317 done
9318   done
9319 IFS=$as_save_IFS
9320
9321 fi
9322 fi
9323 LIPO=$ac_cv_prog_LIPO
9324 if test -n "$LIPO"; then
9325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9326 $as_echo "$LIPO" >&6; }
9327 else
9328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9329 $as_echo "no" >&6; }
9330 fi
9331
9332
9333 fi
9334 if test -z "$ac_cv_prog_LIPO"; then
9335   ac_ct_LIPO=$LIPO
9336   # Extract the first word of "lipo", so it can be a program name with args.
9337 set dummy lipo; ac_word=$2
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9339 $as_echo_n "checking for $ac_word... " >&6; }
9340 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9341   $as_echo_n "(cached) " >&6
9342 else
9343   if test -n "$ac_ct_LIPO"; then
9344   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9345 else
9346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9347 for as_dir in $PATH
9348 do
9349   IFS=$as_save_IFS
9350   test -z "$as_dir" && as_dir=.
9351     for ac_exec_ext in '' $ac_executable_extensions; do
9352   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9353     ac_cv_prog_ac_ct_LIPO="lipo"
9354     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9355     break 2
9356   fi
9357 done
9358   done
9359 IFS=$as_save_IFS
9360
9361 fi
9362 fi
9363 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9364 if test -n "$ac_ct_LIPO"; then
9365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9366 $as_echo "$ac_ct_LIPO" >&6; }
9367 else
9368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9369 $as_echo "no" >&6; }
9370 fi
9371
9372   if test "x$ac_ct_LIPO" = x; then
9373     LIPO=":"
9374   else
9375     case $cross_compiling:$ac_tool_warned in
9376 yes:)
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9378 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9379 ac_tool_warned=yes ;;
9380 esac
9381     LIPO=$ac_ct_LIPO
9382   fi
9383 else
9384   LIPO="$ac_cv_prog_LIPO"
9385 fi
9386
9387     if test -n "$ac_tool_prefix"; then
9388   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9389 set dummy ${ac_tool_prefix}otool; ac_word=$2
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9391 $as_echo_n "checking for $ac_word... " >&6; }
9392 if ${ac_cv_prog_OTOOL+:} false; then :
9393   $as_echo_n "(cached) " >&6
9394 else
9395   if test -n "$OTOOL"; then
9396   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9397 else
9398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9399 for as_dir in $PATH
9400 do
9401   IFS=$as_save_IFS
9402   test -z "$as_dir" && as_dir=.
9403     for ac_exec_ext in '' $ac_executable_extensions; do
9404   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9405     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9406     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9407     break 2
9408   fi
9409 done
9410   done
9411 IFS=$as_save_IFS
9412
9413 fi
9414 fi
9415 OTOOL=$ac_cv_prog_OTOOL
9416 if test -n "$OTOOL"; then
9417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9418 $as_echo "$OTOOL" >&6; }
9419 else
9420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9421 $as_echo "no" >&6; }
9422 fi
9423
9424
9425 fi
9426 if test -z "$ac_cv_prog_OTOOL"; then
9427   ac_ct_OTOOL=$OTOOL
9428   # Extract the first word of "otool", so it can be a program name with args.
9429 set dummy otool; ac_word=$2
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9431 $as_echo_n "checking for $ac_word... " >&6; }
9432 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9433   $as_echo_n "(cached) " >&6
9434 else
9435   if test -n "$ac_ct_OTOOL"; then
9436   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9437 else
9438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9439 for as_dir in $PATH
9440 do
9441   IFS=$as_save_IFS
9442   test -z "$as_dir" && as_dir=.
9443     for ac_exec_ext in '' $ac_executable_extensions; do
9444   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9445     ac_cv_prog_ac_ct_OTOOL="otool"
9446     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9447     break 2
9448   fi
9449 done
9450   done
9451 IFS=$as_save_IFS
9452
9453 fi
9454 fi
9455 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9456 if test -n "$ac_ct_OTOOL"; then
9457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9458 $as_echo "$ac_ct_OTOOL" >&6; }
9459 else
9460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9461 $as_echo "no" >&6; }
9462 fi
9463
9464   if test "x$ac_ct_OTOOL" = x; then
9465     OTOOL=":"
9466   else
9467     case $cross_compiling:$ac_tool_warned in
9468 yes:)
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9470 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9471 ac_tool_warned=yes ;;
9472 esac
9473     OTOOL=$ac_ct_OTOOL
9474   fi
9475 else
9476   OTOOL="$ac_cv_prog_OTOOL"
9477 fi
9478
9479     if test -n "$ac_tool_prefix"; then
9480   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9481 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9483 $as_echo_n "checking for $ac_word... " >&6; }
9484 if ${ac_cv_prog_OTOOL64+:} false; then :
9485   $as_echo_n "(cached) " >&6
9486 else
9487   if test -n "$OTOOL64"; then
9488   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9489 else
9490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9491 for as_dir in $PATH
9492 do
9493   IFS=$as_save_IFS
9494   test -z "$as_dir" && as_dir=.
9495     for ac_exec_ext in '' $ac_executable_extensions; do
9496   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9497     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9498     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9499     break 2
9500   fi
9501 done
9502   done
9503 IFS=$as_save_IFS
9504
9505 fi
9506 fi
9507 OTOOL64=$ac_cv_prog_OTOOL64
9508 if test -n "$OTOOL64"; then
9509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9510 $as_echo "$OTOOL64" >&6; }
9511 else
9512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9513 $as_echo "no" >&6; }
9514 fi
9515
9516
9517 fi
9518 if test -z "$ac_cv_prog_OTOOL64"; then
9519   ac_ct_OTOOL64=$OTOOL64
9520   # Extract the first word of "otool64", so it can be a program name with args.
9521 set dummy otool64; ac_word=$2
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9523 $as_echo_n "checking for $ac_word... " >&6; }
9524 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9525   $as_echo_n "(cached) " >&6
9526 else
9527   if test -n "$ac_ct_OTOOL64"; then
9528   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9529 else
9530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9531 for as_dir in $PATH
9532 do
9533   IFS=$as_save_IFS
9534   test -z "$as_dir" && as_dir=.
9535     for ac_exec_ext in '' $ac_executable_extensions; do
9536   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9537     ac_cv_prog_ac_ct_OTOOL64="otool64"
9538     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9539     break 2
9540   fi
9541 done
9542   done
9543 IFS=$as_save_IFS
9544
9545 fi
9546 fi
9547 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9548 if test -n "$ac_ct_OTOOL64"; then
9549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9550 $as_echo "$ac_ct_OTOOL64" >&6; }
9551 else
9552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9553 $as_echo "no" >&6; }
9554 fi
9555
9556   if test "x$ac_ct_OTOOL64" = x; then
9557     OTOOL64=":"
9558   else
9559     case $cross_compiling:$ac_tool_warned in
9560 yes:)
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9562 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9563 ac_tool_warned=yes ;;
9564 esac
9565     OTOOL64=$ac_ct_OTOOL64
9566   fi
9567 else
9568   OTOOL64="$ac_cv_prog_OTOOL64"
9569 fi
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9598 $as_echo_n "checking for -single_module linker flag... " >&6; }
9599 if ${lt_cv_apple_cc_single_mod+:} false; then :
9600   $as_echo_n "(cached) " >&6
9601 else
9602   lt_cv_apple_cc_single_mod=no
9603       if test -z "${LT_MULTI_MODULE}"; then
9604         # By default we will add the -single_module flag. You can override
9605         # by either setting the environment variable LT_MULTI_MODULE
9606         # non-empty at configure time, or by adding -multi_module to the
9607         # link flags.
9608         rm -rf libconftest.dylib*
9609         echo "int foo(void){return 1;}" > conftest.c
9610         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9611 -dynamiclib -Wl,-single_module conftest.c" >&5
9612         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9613           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9614         _lt_result=$?
9615         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9616           lt_cv_apple_cc_single_mod=yes
9617         else
9618           cat conftest.err >&5
9619         fi
9620         rm -rf libconftest.dylib*
9621         rm -f conftest.*
9622       fi
9623 fi
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9625 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9626     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9627 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9628 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9629   $as_echo_n "(cached) " >&6
9630 else
9631   lt_cv_ld_exported_symbols_list=no
9632       save_LDFLAGS=$LDFLAGS
9633       echo "_main" > conftest.sym
9634       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9635       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9636 /* end confdefs.h.  */
9637
9638 int
9639 main ()
9640 {
9641
9642   ;
9643   return 0;
9644 }
9645 _ACEOF
9646 if ac_fn_c_try_link "$LINENO"; then :
9647   lt_cv_ld_exported_symbols_list=yes
9648 else
9649   lt_cv_ld_exported_symbols_list=no
9650 fi
9651 rm -f core conftest.err conftest.$ac_objext \
9652     conftest$ac_exeext conftest.$ac_ext
9653         LDFLAGS="$save_LDFLAGS"
9654
9655 fi
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9657 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9658     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9659 $as_echo_n "checking for -force_load linker flag... " >&6; }
9660 if ${lt_cv_ld_force_load+:} false; then :
9661   $as_echo_n "(cached) " >&6
9662 else
9663   lt_cv_ld_force_load=no
9664       cat > conftest.c << _LT_EOF
9665 int forced_loaded() { return 2;}
9666 _LT_EOF
9667       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9668       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9669       echo "$AR cru libconftest.a conftest.o" >&5
9670       $AR cru libconftest.a conftest.o 2>&5
9671       echo "$RANLIB libconftest.a" >&5
9672       $RANLIB libconftest.a 2>&5
9673       cat > conftest.c << _LT_EOF
9674 int main() { return 0;}
9675 _LT_EOF
9676       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9677       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9678       _lt_result=$?
9679       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
9680         lt_cv_ld_force_load=yes
9681       else
9682         cat conftest.err >&5
9683       fi
9684         rm -f conftest.err libconftest.a conftest conftest.c
9685         rm -rf conftest.dSYM
9686
9687 fi
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9689 $as_echo "$lt_cv_ld_force_load" >&6; }
9690     case $host_os in
9691     rhapsody* | darwin1.[012])
9692       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9693     darwin1.*)
9694       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9695     darwin*) # darwin 5.x on
9696       # if running on 10.5 or later, the deployment target defaults
9697       # to the OS version, if on x86, and 10.4, the deployment
9698       # target defaults to 10.4. Don't you love it?
9699       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9700         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9701           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9702         10.[012]*)
9703           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9704         10.*)
9705           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9706       esac
9707     ;;
9708   esac
9709     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9710       _lt_dar_single_mod='$single_module'
9711     fi
9712     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9713       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9714     else
9715       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9716     fi
9717     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9718       _lt_dsymutil='~$DSYMUTIL $lib || :'
9719     else
9720       _lt_dsymutil=
9721     fi
9722     ;;
9723   esac
9724
9725 for ac_header in dlfcn.h
9726 do :
9727   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9728 "
9729 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9730   cat >>confdefs.h <<_ACEOF
9731 #define HAVE_DLFCN_H 1
9732 _ACEOF
9733
9734 fi
9735
9736 done
9737
9738
9739
9740
9741 func_stripname_cnf ()
9742 {
9743   case ${2} in
9744   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9745   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9746   esac
9747 } # func_stripname_cnf
9748
9749
9750
9751
9752
9753 # Set options
9754
9755
9756
9757         enable_dlopen=no
9758
9759
9760   enable_win32_dll=no
9761
9762
9763             # Check whether --enable-shared was given.
9764 if test "${enable_shared+set}" = set; then :
9765   enableval=$enable_shared; p=${PACKAGE-default}
9766     case $enableval in
9767     yes) enable_shared=yes ;;
9768     no) enable_shared=no ;;
9769     *)
9770       enable_shared=no
9771       # Look at the argument we got.  We use all the common list separators.
9772       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9773       for pkg in $enableval; do
9774         IFS="$lt_save_ifs"
9775         if test "X$pkg" = "X$p"; then
9776           enable_shared=yes
9777         fi
9778       done
9779       IFS="$lt_save_ifs"
9780       ;;
9781     esac
9782 else
9783   enable_shared=yes
9784 fi
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794   # Check whether --enable-static was given.
9795 if test "${enable_static+set}" = set; then :
9796   enableval=$enable_static; p=${PACKAGE-default}
9797     case $enableval in
9798     yes) enable_static=yes ;;
9799     no) enable_static=no ;;
9800     *)
9801      enable_static=no
9802       # Look at the argument we got.  We use all the common list separators.
9803       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9804       for pkg in $enableval; do
9805         IFS="$lt_save_ifs"
9806         if test "X$pkg" = "X$p"; then
9807           enable_static=yes
9808         fi
9809       done
9810       IFS="$lt_save_ifs"
9811       ;;
9812     esac
9813 else
9814   enable_static=yes
9815 fi
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826 # Check whether --with-pic was given.
9827 if test "${with_pic+set}" = set; then :
9828   withval=$with_pic; pic_mode="$withval"
9829 else
9830   pic_mode=default
9831 fi
9832
9833
9834 test -z "$pic_mode" && pic_mode=default
9835
9836
9837
9838
9839
9840
9841
9842   # Check whether --enable-fast-install was given.
9843 if test "${enable_fast_install+set}" = set; then :
9844   enableval=$enable_fast_install; p=${PACKAGE-default}
9845     case $enableval in
9846     yes) enable_fast_install=yes ;;
9847     no) enable_fast_install=no ;;
9848     *)
9849       enable_fast_install=no
9850       # Look at the argument we got.  We use all the common list separators.
9851       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9852       for pkg in $enableval; do
9853         IFS="$lt_save_ifs"
9854         if test "X$pkg" = "X$p"; then
9855           enable_fast_install=yes
9856         fi
9857       done
9858       IFS="$lt_save_ifs"
9859       ;;
9860     esac
9861 else
9862   enable_fast_install=yes
9863 fi
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875 # This can be used to rebuild libtool when needed
9876 LIBTOOL_DEPS="$ltmain"
9877
9878 # Always use our own libtool.
9879 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906 test -z "$LN_S" && LN_S="ln -s"
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921 if test -n "${ZSH_VERSION+set}" ; then
9922    setopt NO_GLOB_SUBST
9923 fi
9924
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9926 $as_echo_n "checking for objdir... " >&6; }
9927 if ${lt_cv_objdir+:} false; then :
9928   $as_echo_n "(cached) " >&6
9929 else
9930   rm -f .libs 2>/dev/null
9931 mkdir .libs 2>/dev/null
9932 if test -d .libs; then
9933   lt_cv_objdir=.libs
9934 else
9935   # MS-DOS does not allow filenames that begin with a dot.
9936   lt_cv_objdir=_libs
9937 fi
9938 rmdir .libs 2>/dev/null
9939 fi
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9941 $as_echo "$lt_cv_objdir" >&6; }
9942 objdir=$lt_cv_objdir
9943
9944
9945
9946
9947
9948 cat >>confdefs.h <<_ACEOF
9949 #define LT_OBJDIR "$lt_cv_objdir/"
9950 _ACEOF
9951
9952
9953
9954
9955 case $host_os in
9956 aix3*)
9957   # AIX sometimes has problems with the GCC collect2 program.  For some
9958   # reason, if we set the COLLECT_NAMES environment variable, the problems
9959   # vanish in a puff of smoke.
9960   if test "X${COLLECT_NAMES+set}" != Xset; then
9961     COLLECT_NAMES=
9962     export COLLECT_NAMES
9963   fi
9964   ;;
9965 esac
9966
9967 # Global variables:
9968 ofile=libtool
9969 can_build_shared=yes
9970
9971 # All known linkers require a `.a' archive for static linking (except MSVC,
9972 # which needs '.lib').
9973 libext=a
9974
9975 with_gnu_ld="$lt_cv_prog_gnu_ld"
9976
9977 old_CC="$CC"
9978 old_CFLAGS="$CFLAGS"
9979
9980 # Set sane defaults for various variables
9981 test -z "$CC" && CC=cc
9982 test -z "$LTCC" && LTCC=$CC
9983 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9984 test -z "$LD" && LD=ld
9985 test -z "$ac_objext" && ac_objext=o
9986
9987 for cc_temp in $compiler""; do
9988   case $cc_temp in
9989     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9990     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9991     \-*) ;;
9992     *) break;;
9993   esac
9994 done
9995 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9996
9997
9998 # Only perform the check for file, if the check method requires it
9999 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10000 case $deplibs_check_method in
10001 file_magic*)
10002   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10003     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10004 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10005 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10006   $as_echo_n "(cached) " >&6
10007 else
10008   case $MAGIC_CMD in
10009 [\\/*] |  ?:[\\/]*)
10010   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10011   ;;
10012 *)
10013   lt_save_MAGIC_CMD="$MAGIC_CMD"
10014   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10015   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10016   for ac_dir in $ac_dummy; do
10017     IFS="$lt_save_ifs"
10018     test -z "$ac_dir" && ac_dir=.
10019     if test -f $ac_dir/${ac_tool_prefix}file; then
10020       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10021       if test -n "$file_magic_test_file"; then
10022         case $deplibs_check_method in
10023         "file_magic "*)
10024           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10025           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10026           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10027             $EGREP "$file_magic_regex" > /dev/null; then
10028             :
10029           else
10030             cat <<_LT_EOF 1>&2
10031
10032 *** Warning: the command libtool uses to detect shared libraries,
10033 *** $file_magic_cmd, produces output that libtool cannot recognize.
10034 *** The result is that libtool may fail to recognize shared libraries
10035 *** as such.  This will affect the creation of libtool libraries that
10036 *** depend on shared libraries, but programs linked with such libtool
10037 *** libraries will work regardless of this problem.  Nevertheless, you
10038 *** may want to report the problem to your system manager and/or to
10039 *** bug-libtool@gnu.org
10040
10041 _LT_EOF
10042           fi ;;
10043         esac
10044       fi
10045       break
10046     fi
10047   done
10048   IFS="$lt_save_ifs"
10049   MAGIC_CMD="$lt_save_MAGIC_CMD"
10050   ;;
10051 esac
10052 fi
10053
10054 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10055 if test -n "$MAGIC_CMD"; then
10056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10057 $as_echo "$MAGIC_CMD" >&6; }
10058 else
10059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10060 $as_echo "no" >&6; }
10061 fi
10062
10063
10064
10065
10066
10067 if test -z "$lt_cv_path_MAGIC_CMD"; then
10068   if test -n "$ac_tool_prefix"; then
10069     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10070 $as_echo_n "checking for file... " >&6; }
10071 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10072   $as_echo_n "(cached) " >&6
10073 else
10074   case $MAGIC_CMD in
10075 [\\/*] |  ?:[\\/]*)
10076   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10077   ;;
10078 *)
10079   lt_save_MAGIC_CMD="$MAGIC_CMD"
10080   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10081   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10082   for ac_dir in $ac_dummy; do
10083     IFS="$lt_save_ifs"
10084     test -z "$ac_dir" && ac_dir=.
10085     if test -f $ac_dir/file; then
10086       lt_cv_path_MAGIC_CMD="$ac_dir/file"
10087       if test -n "$file_magic_test_file"; then
10088         case $deplibs_check_method in
10089         "file_magic "*)
10090           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10091           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10092           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10093             $EGREP "$file_magic_regex" > /dev/null; then
10094             :
10095           else
10096             cat <<_LT_EOF 1>&2
10097
10098 *** Warning: the command libtool uses to detect shared libraries,
10099 *** $file_magic_cmd, produces output that libtool cannot recognize.
10100 *** The result is that libtool may fail to recognize shared libraries
10101 *** as such.  This will affect the creation of libtool libraries that
10102 *** depend on shared libraries, but programs linked with such libtool
10103 *** libraries will work regardless of this problem.  Nevertheless, you
10104 *** may want to report the problem to your system manager and/or to
10105 *** bug-libtool@gnu.org
10106
10107 _LT_EOF
10108           fi ;;
10109         esac
10110       fi
10111       break
10112     fi
10113   done
10114   IFS="$lt_save_ifs"
10115   MAGIC_CMD="$lt_save_MAGIC_CMD"
10116   ;;
10117 esac
10118 fi
10119
10120 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10121 if test -n "$MAGIC_CMD"; then
10122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10123 $as_echo "$MAGIC_CMD" >&6; }
10124 else
10125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10126 $as_echo "no" >&6; }
10127 fi
10128
10129
10130   else
10131     MAGIC_CMD=:
10132   fi
10133 fi
10134
10135   fi
10136   ;;
10137 esac
10138
10139 # Use C for the default configuration in the libtool script
10140
10141 lt_save_CC="$CC"
10142 ac_ext=c
10143 ac_cpp='$CPP $CPPFLAGS'
10144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10147
10148
10149 # Source file extension for C test sources.
10150 ac_ext=c
10151
10152 # Object file extension for compiled C test sources.
10153 objext=o
10154 objext=$objext
10155
10156 # Code to be used in simple compile tests
10157 lt_simple_compile_test_code="int some_variable = 0;"
10158
10159 # Code to be used in simple link tests
10160 lt_simple_link_test_code='int main(){return(0);}'
10161
10162
10163
10164
10165
10166
10167
10168 # If no C compiler was specified, use CC.
10169 LTCC=${LTCC-"$CC"}
10170
10171 # If no C compiler flags were specified, use CFLAGS.
10172 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10173
10174 # Allow CC to be a program name with arguments.
10175 compiler=$CC
10176
10177 # Save the default compiler, since it gets overwritten when the other
10178 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10179 compiler_DEFAULT=$CC
10180
10181 # save warnings/boilerplate of simple test code
10182 ac_outfile=conftest.$ac_objext
10183 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10184 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10185 _lt_compiler_boilerplate=`cat conftest.err`
10186 $RM conftest*
10187
10188 ac_outfile=conftest.$ac_objext
10189 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10190 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10191 _lt_linker_boilerplate=`cat conftest.err`
10192 $RM -r conftest*
10193
10194
10195 if test -n "$compiler"; then
10196
10197 lt_prog_compiler_no_builtin_flag=
10198
10199 if test "$GCC" = yes; then
10200   case $cc_basename in
10201   nvcc*)
10202     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10203   *)
10204     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10205   esac
10206
10207   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10208 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10209 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10210   $as_echo_n "(cached) " >&6
10211 else
10212   lt_cv_prog_compiler_rtti_exceptions=no
10213    ac_outfile=conftest.$ac_objext
10214    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10215    lt_compiler_flag="-fno-rtti -fno-exceptions"
10216    # Insert the option either (1) after the last *FLAGS variable, or
10217    # (2) before a word containing "conftest.", or (3) at the end.
10218    # Note that $ac_compile itself does not contain backslashes and begins
10219    # with a dollar sign (not a hyphen), so the echo should work correctly.
10220    # The option is referenced via a variable to avoid confusing sed.
10221    lt_compile=`echo "$ac_compile" | $SED \
10222    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10223    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10224    -e 's:$: $lt_compiler_flag:'`
10225    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10226    (eval "$lt_compile" 2>conftest.err)
10227    ac_status=$?
10228    cat conftest.err >&5
10229    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230    if (exit $ac_status) && test -s "$ac_outfile"; then
10231      # The compiler can only warn and ignore the option if not recognized
10232      # So say no if there are warnings other than the usual output.
10233      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10234      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10235      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10236        lt_cv_prog_compiler_rtti_exceptions=yes
10237      fi
10238    fi
10239    $RM conftest*
10240
10241 fi
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10243 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10244
10245 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10246     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10247 else
10248     :
10249 fi
10250
10251 fi
10252
10253
10254
10255
10256
10257
10258   lt_prog_compiler_wl=
10259 lt_prog_compiler_pic=
10260 lt_prog_compiler_static=
10261
10262
10263   if test "$GCC" = yes; then
10264     lt_prog_compiler_wl='-Wl,'
10265     lt_prog_compiler_static='-static'
10266
10267     case $host_os in
10268       aix*)
10269       # All AIX code is PIC.
10270       if test "$host_cpu" = ia64; then
10271         # AIX 5 now supports IA64 processor
10272         lt_prog_compiler_static='-Bstatic'
10273       fi
10274       ;;
10275
10276     amigaos*)
10277       case $host_cpu in
10278       powerpc)
10279             # see comment about AmigaOS4 .so support
10280             lt_prog_compiler_pic='-fPIC'
10281         ;;
10282       m68k)
10283             # FIXME: we need at least 68020 code to build shared libraries, but
10284             # adding the `-m68020' flag to GCC prevents building anything better,
10285             # like `-m68040'.
10286             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10287         ;;
10288       esac
10289       ;;
10290
10291     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10292       # PIC is the default for these OSes.
10293       ;;
10294
10295     mingw* | cygwin* | pw32* | os2* | cegcc*)
10296       # This hack is so that the source file can tell whether it is being
10297       # built for inclusion in a dll (and should export symbols for example).
10298       # Although the cygwin gcc ignores -fPIC, still need this for old-style
10299       # (--disable-auto-import) libraries
10300       lt_prog_compiler_pic='-DDLL_EXPORT'
10301       ;;
10302
10303     darwin* | rhapsody*)
10304       # PIC is the default on this platform
10305       # Common symbols not allowed in MH_DYLIB files
10306       lt_prog_compiler_pic='-fno-common'
10307       ;;
10308
10309     haiku*)
10310       # PIC is the default for Haiku.
10311       # The "-static" flag exists, but is broken.
10312       lt_prog_compiler_static=
10313       ;;
10314
10315     hpux*)
10316       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10317       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10318       # sets the default TLS model and affects inlining.
10319       case $host_cpu in
10320       hppa*64*)
10321         # +Z the default
10322         ;;
10323       *)
10324         lt_prog_compiler_pic='-fPIC'
10325         ;;
10326       esac
10327       ;;
10328
10329     interix[3-9]*)
10330       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10331       # Instead, we relocate shared libraries at runtime.
10332       ;;
10333
10334     msdosdjgpp*)
10335       # Just because we use GCC doesn't mean we suddenly get shared libraries
10336       # on systems that don't support them.
10337       lt_prog_compiler_can_build_shared=no
10338       enable_shared=no
10339       ;;
10340
10341     *nto* | *qnx*)
10342       # QNX uses GNU C++, but need to define -shared option too, otherwise
10343       # it will coredump.
10344       lt_prog_compiler_pic='-fPIC -shared'
10345       ;;
10346
10347     sysv4*MP*)
10348       if test -d /usr/nec; then
10349         lt_prog_compiler_pic=-Kconform_pic
10350       fi
10351       ;;
10352
10353     *)
10354       lt_prog_compiler_pic='-fPIC'
10355       ;;
10356     esac
10357
10358     case $cc_basename in
10359     nvcc*) # Cuda Compiler Driver 2.2
10360       lt_prog_compiler_wl='-Xlinker '
10361       lt_prog_compiler_pic='-Xcompiler -fPIC'
10362       ;;
10363     esac
10364   else
10365     # PORTME Check for flag to pass linker flags through the system compiler.
10366     case $host_os in
10367     aix*)
10368       lt_prog_compiler_wl='-Wl,'
10369       if test "$host_cpu" = ia64; then
10370         # AIX 5 now supports IA64 processor
10371         lt_prog_compiler_static='-Bstatic'
10372       else
10373         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10374       fi
10375       ;;
10376
10377     mingw* | cygwin* | pw32* | os2* | cegcc*)
10378       # This hack is so that the source file can tell whether it is being
10379       # built for inclusion in a dll (and should export symbols for example).
10380       lt_prog_compiler_pic='-DDLL_EXPORT'
10381       ;;
10382
10383     hpux9* | hpux10* | hpux11*)
10384       lt_prog_compiler_wl='-Wl,'
10385       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10386       # not for PA HP-UX.
10387       case $host_cpu in
10388       hppa*64*|ia64*)
10389         # +Z the default
10390         ;;
10391       *)
10392         lt_prog_compiler_pic='+Z'
10393         ;;
10394       esac
10395       # Is there a better lt_prog_compiler_static that works with the bundled CC?
10396       lt_prog_compiler_static='${wl}-a ${wl}archive'
10397       ;;
10398
10399     irix5* | irix6* | nonstopux*)
10400       lt_prog_compiler_wl='-Wl,'
10401       # PIC (with -KPIC) is the default.
10402       lt_prog_compiler_static='-non_shared'
10403       ;;
10404
10405     linux* | k*bsd*-gnu | kopensolaris*-gnu)
10406       case $cc_basename in
10407       # old Intel for x86_64 which still supported -KPIC.
10408       ecc*)
10409         lt_prog_compiler_wl='-Wl,'
10410         lt_prog_compiler_pic='-KPIC'
10411         lt_prog_compiler_static='-static'
10412         ;;
10413       # icc used to be incompatible with GCC.
10414       # ICC 10 doesn't accept -KPIC any more.
10415       icc* | ifort*)
10416         lt_prog_compiler_wl='-Wl,'
10417         lt_prog_compiler_pic='-fPIC'
10418         lt_prog_compiler_static='-static'
10419         ;;
10420       # Lahey Fortran 8.1.
10421       lf95*)
10422         lt_prog_compiler_wl='-Wl,'
10423         lt_prog_compiler_pic='--shared'
10424         lt_prog_compiler_static='--static'
10425         ;;
10426       nagfor*)
10427         # NAG Fortran compiler
10428         lt_prog_compiler_wl='-Wl,-Wl,,'
10429         lt_prog_compiler_pic='-PIC'
10430         lt_prog_compiler_static='-Bstatic'
10431         ;;
10432       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10433         # Portland Group compilers (*not* the Pentium gcc compiler,
10434         # which looks to be a dead project)
10435         lt_prog_compiler_wl='-Wl,'
10436         lt_prog_compiler_pic='-fpic'
10437         lt_prog_compiler_static='-Bstatic'
10438         ;;
10439       ccc*)
10440         lt_prog_compiler_wl='-Wl,'
10441         # All Alpha code is PIC.
10442         lt_prog_compiler_static='-non_shared'
10443         ;;
10444       xl* | bgxl* | bgf* | mpixl*)
10445         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10446         lt_prog_compiler_wl='-Wl,'
10447         lt_prog_compiler_pic='-qpic'
10448         lt_prog_compiler_static='-qstaticlink'
10449         ;;
10450       *)
10451         case `$CC -V 2>&1 | sed 5q` in
10452         *Sun\ F* | *Sun*Fortran*)
10453           # Sun Fortran 8.3 passes all unrecognized flags to the linker
10454           lt_prog_compiler_pic='-KPIC'
10455           lt_prog_compiler_static='-Bstatic'
10456           lt_prog_compiler_wl=''
10457           ;;
10458         *Sun\ C*)
10459           # Sun C 5.9
10460           lt_prog_compiler_pic='-KPIC'
10461           lt_prog_compiler_static='-Bstatic'
10462           lt_prog_compiler_wl='-Wl,'
10463           ;;
10464         esac
10465         ;;
10466       esac
10467       ;;
10468
10469     newsos6)
10470       lt_prog_compiler_pic='-KPIC'
10471       lt_prog_compiler_static='-Bstatic'
10472       ;;
10473
10474     *nto* | *qnx*)
10475       # QNX uses GNU C++, but need to define -shared option too, otherwise
10476       # it will coredump.
10477       lt_prog_compiler_pic='-fPIC -shared'
10478       ;;
10479
10480     osf3* | osf4* | osf5*)
10481       lt_prog_compiler_wl='-Wl,'
10482       # All OSF/1 code is PIC.
10483       lt_prog_compiler_static='-non_shared'
10484       ;;
10485
10486     rdos*)
10487       lt_prog_compiler_static='-non_shared'
10488       ;;
10489
10490     solaris*)
10491       lt_prog_compiler_pic='-KPIC'
10492       lt_prog_compiler_static='-Bstatic'
10493       case $cc_basename in
10494       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10495         lt_prog_compiler_wl='-Qoption ld ';;
10496       *)
10497         lt_prog_compiler_wl='-Wl,';;
10498       esac
10499       ;;
10500
10501     sunos4*)
10502       lt_prog_compiler_wl='-Qoption ld '
10503       lt_prog_compiler_pic='-PIC'
10504       lt_prog_compiler_static='-Bstatic'
10505       ;;
10506
10507     sysv4 | sysv4.2uw2* | sysv4.3*)
10508       lt_prog_compiler_wl='-Wl,'
10509       lt_prog_compiler_pic='-KPIC'
10510       lt_prog_compiler_static='-Bstatic'
10511       ;;
10512
10513     sysv4*MP*)
10514       if test -d /usr/nec ;then
10515         lt_prog_compiler_pic='-Kconform_pic'
10516         lt_prog_compiler_static='-Bstatic'
10517       fi
10518       ;;
10519
10520     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10521       lt_prog_compiler_wl='-Wl,'
10522       lt_prog_compiler_pic='-KPIC'
10523       lt_prog_compiler_static='-Bstatic'
10524       ;;
10525
10526     unicos*)
10527       lt_prog_compiler_wl='-Wl,'
10528       lt_prog_compiler_can_build_shared=no
10529       ;;
10530
10531     uts4*)
10532       lt_prog_compiler_pic='-pic'
10533       lt_prog_compiler_static='-Bstatic'
10534       ;;
10535
10536     *)
10537       lt_prog_compiler_can_build_shared=no
10538       ;;
10539     esac
10540   fi
10541
10542 case $host_os in
10543   # For platforms which do not support PIC, -DPIC is meaningless:
10544   *djgpp*)
10545     lt_prog_compiler_pic=
10546     ;;
10547   *)
10548     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10549     ;;
10550 esac
10551
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10553 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10554 if ${lt_cv_prog_compiler_pic+:} false; then :
10555   $as_echo_n "(cached) " >&6
10556 else
10557   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10558 fi
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10560 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10561 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10562
10563 #
10564 # Check to make sure the PIC flag actually works.
10565 #
10566 if test -n "$lt_prog_compiler_pic"; then
10567   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10568 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10569 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10570   $as_echo_n "(cached) " >&6
10571 else
10572   lt_cv_prog_compiler_pic_works=no
10573    ac_outfile=conftest.$ac_objext
10574    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10575    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10576    # Insert the option either (1) after the last *FLAGS variable, or
10577    # (2) before a word containing "conftest.", or (3) at the end.
10578    # Note that $ac_compile itself does not contain backslashes and begins
10579    # with a dollar sign (not a hyphen), so the echo should work correctly.
10580    # The option is referenced via a variable to avoid confusing sed.
10581    lt_compile=`echo "$ac_compile" | $SED \
10582    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10583    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10584    -e 's:$: $lt_compiler_flag:'`
10585    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10586    (eval "$lt_compile" 2>conftest.err)
10587    ac_status=$?
10588    cat conftest.err >&5
10589    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590    if (exit $ac_status) && test -s "$ac_outfile"; then
10591      # The compiler can only warn and ignore the option if not recognized
10592      # So say no if there are warnings other than the usual output.
10593      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10594      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10595      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10596        lt_cv_prog_compiler_pic_works=yes
10597      fi
10598    fi
10599    $RM conftest*
10600
10601 fi
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10603 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10604
10605 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10606     case $lt_prog_compiler_pic in
10607      "" | " "*) ;;
10608      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10609      esac
10610 else
10611     lt_prog_compiler_pic=
10612      lt_prog_compiler_can_build_shared=no
10613 fi
10614
10615 fi
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627 #
10628 # Check to make sure the static flag actually works.
10629 #
10630 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10632 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10633 if ${lt_cv_prog_compiler_static_works+:} false; then :
10634   $as_echo_n "(cached) " >&6
10635 else
10636   lt_cv_prog_compiler_static_works=no
10637    save_LDFLAGS="$LDFLAGS"
10638    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10639    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10640    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10641      # The linker can only warn and ignore the option if not recognized
10642      # So say no if there are warnings
10643      if test -s conftest.err; then
10644        # Append any errors to the config.log.
10645        cat conftest.err 1>&5
10646        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10647        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10648        if diff conftest.exp conftest.er2 >/dev/null; then
10649          lt_cv_prog_compiler_static_works=yes
10650        fi
10651      else
10652        lt_cv_prog_compiler_static_works=yes
10653      fi
10654    fi
10655    $RM -r conftest*
10656    LDFLAGS="$save_LDFLAGS"
10657
10658 fi
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10660 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10661
10662 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10663     :
10664 else
10665     lt_prog_compiler_static=
10666 fi
10667
10668
10669
10670
10671
10672
10673
10674   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10675 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10676 if ${lt_cv_prog_compiler_c_o+:} false; then :
10677   $as_echo_n "(cached) " >&6
10678 else
10679   lt_cv_prog_compiler_c_o=no
10680    $RM -r conftest 2>/dev/null
10681    mkdir conftest
10682    cd conftest
10683    mkdir out
10684    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10685
10686    lt_compiler_flag="-o out/conftest2.$ac_objext"
10687    # Insert the option either (1) after the last *FLAGS variable, or
10688    # (2) before a word containing "conftest.", or (3) at the end.
10689    # Note that $ac_compile itself does not contain backslashes and begins
10690    # with a dollar sign (not a hyphen), so the echo should work correctly.
10691    lt_compile=`echo "$ac_compile" | $SED \
10692    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10693    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10694    -e 's:$: $lt_compiler_flag:'`
10695    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10696    (eval "$lt_compile" 2>out/conftest.err)
10697    ac_status=$?
10698    cat out/conftest.err >&5
10699    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10701    then
10702      # The compiler can only warn and ignore the option if not recognized
10703      # So say no if there are warnings
10704      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10705      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10706      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10707        lt_cv_prog_compiler_c_o=yes
10708      fi
10709    fi
10710    chmod u+w . 2>&5
10711    $RM conftest*
10712    # SGI C++ compiler will create directory out/ii_files/ for
10713    # template instantiation
10714    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10715    $RM out/* && rmdir out
10716    cd ..
10717    $RM -r conftest
10718    $RM conftest*
10719
10720 fi
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10722 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10723
10724
10725
10726
10727
10728
10729   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10730 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10731 if ${lt_cv_prog_compiler_c_o+:} false; then :
10732   $as_echo_n "(cached) " >&6
10733 else
10734   lt_cv_prog_compiler_c_o=no
10735    $RM -r conftest 2>/dev/null
10736    mkdir conftest
10737    cd conftest
10738    mkdir out
10739    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10740
10741    lt_compiler_flag="-o out/conftest2.$ac_objext"
10742    # Insert the option either (1) after the last *FLAGS variable, or
10743    # (2) before a word containing "conftest.", or (3) at the end.
10744    # Note that $ac_compile itself does not contain backslashes and begins
10745    # with a dollar sign (not a hyphen), so the echo should work correctly.
10746    lt_compile=`echo "$ac_compile" | $SED \
10747    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10748    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10749    -e 's:$: $lt_compiler_flag:'`
10750    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10751    (eval "$lt_compile" 2>out/conftest.err)
10752    ac_status=$?
10753    cat out/conftest.err >&5
10754    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10756    then
10757      # The compiler can only warn and ignore the option if not recognized
10758      # So say no if there are warnings
10759      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10760      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10761      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10762        lt_cv_prog_compiler_c_o=yes
10763      fi
10764    fi
10765    chmod u+w . 2>&5
10766    $RM conftest*
10767    # SGI C++ compiler will create directory out/ii_files/ for
10768    # template instantiation
10769    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10770    $RM out/* && rmdir out
10771    cd ..
10772    $RM -r conftest
10773    $RM conftest*
10774
10775 fi
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10777 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10778
10779
10780
10781
10782 hard_links="nottested"
10783 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10784   # do not overwrite the value of need_locks provided by the user
10785   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10786 $as_echo_n "checking if we can lock with hard links... " >&6; }
10787   hard_links=yes
10788   $RM conftest*
10789   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10790   touch conftest.a
10791   ln conftest.a conftest.b 2>&5 || hard_links=no
10792   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10794 $as_echo "$hard_links" >&6; }
10795   if test "$hard_links" = no; then
10796     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10797 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10798     need_locks=warn
10799   fi
10800 else
10801   need_locks=no
10802 fi
10803
10804
10805
10806
10807
10808
10809   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10810 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10811
10812   runpath_var=
10813   allow_undefined_flag=
10814   always_export_symbols=no
10815   archive_cmds=
10816   archive_expsym_cmds=
10817   compiler_needs_object=no
10818   enable_shared_with_static_runtimes=no
10819   export_dynamic_flag_spec=
10820   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10821   hardcode_automatic=no
10822   hardcode_direct=no
10823   hardcode_direct_absolute=no
10824   hardcode_libdir_flag_spec=
10825   hardcode_libdir_flag_spec_ld=
10826   hardcode_libdir_separator=
10827   hardcode_minus_L=no
10828   hardcode_shlibpath_var=unsupported
10829   inherit_rpath=no
10830   link_all_deplibs=unknown
10831   module_cmds=
10832   module_expsym_cmds=
10833   old_archive_from_new_cmds=
10834   old_archive_from_expsyms_cmds=
10835   thread_safe_flag_spec=
10836   whole_archive_flag_spec=
10837   # include_expsyms should be a list of space-separated symbols to be *always*
10838   # included in the symbol list
10839   include_expsyms=
10840   # exclude_expsyms can be an extended regexp of symbols to exclude
10841   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10842   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10843   # as well as any symbol that contains `d'.
10844   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10845   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10846   # platforms (ab)use it in PIC code, but their linkers get confused if
10847   # the symbol is explicitly referenced.  Since portable code cannot
10848   # rely on this symbol name, it's probably fine to never include it in
10849   # preloaded symbol tables.
10850   # Exclude shared library initialization/finalization symbols.
10851   extract_expsyms_cmds=
10852
10853   case $host_os in
10854   cygwin* | mingw* | pw32* | cegcc*)
10855     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10856     # When not using gcc, we currently assume that we are using
10857     # Microsoft Visual C++.
10858     if test "$GCC" != yes; then
10859       with_gnu_ld=no
10860     fi
10861     ;;
10862   interix*)
10863     # we just hope/assume this is gcc and not c89 (= MSVC++)
10864     with_gnu_ld=yes
10865     ;;
10866   openbsd*)
10867     with_gnu_ld=no
10868     ;;
10869   esac
10870
10871   ld_shlibs=yes
10872
10873   # On some targets, GNU ld is compatible enough with the native linker
10874   # that we're better off using the native interface for both.
10875   lt_use_gnu_ld_interface=no
10876   if test "$with_gnu_ld" = yes; then
10877     case $host_os in
10878       aix*)
10879         # The AIX port of GNU ld has always aspired to compatibility
10880         # with the native linker.  However, as the warning in the GNU ld
10881         # block says, versions before 2.19.5* couldn't really create working
10882         # shared libraries, regardless of the interface used.
10883         case `$LD -v 2>&1` in
10884           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10885           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10886           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10887           *)
10888             lt_use_gnu_ld_interface=yes
10889             ;;
10890         esac
10891         ;;
10892       *)
10893         lt_use_gnu_ld_interface=yes
10894         ;;
10895     esac
10896   fi
10897
10898   if test "$lt_use_gnu_ld_interface" = yes; then
10899     # If archive_cmds runs LD, not CC, wlarc should be empty
10900     wlarc='${wl}'
10901
10902     # Set some defaults for GNU ld with shared library support. These
10903     # are reset later if shared libraries are not supported. Putting them
10904     # here allows them to be overridden if necessary.
10905     runpath_var=LD_RUN_PATH
10906     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10907     export_dynamic_flag_spec='${wl}--export-dynamic'
10908     # ancient GNU ld didn't support --whole-archive et. al.
10909     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10910       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10911     else
10912       whole_archive_flag_spec=
10913     fi
10914     supports_anon_versioning=no
10915     case `$LD -v 2>&1` in
10916       *GNU\ gold*) supports_anon_versioning=yes ;;
10917       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10918       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10919       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10920       *\ 2.11.*) ;; # other 2.11 versions
10921       *) supports_anon_versioning=yes ;;
10922     esac
10923
10924     # See if GNU ld supports shared libraries.
10925     case $host_os in
10926     aix[3-9]*)
10927       # On AIX/PPC, the GNU linker is very broken
10928       if test "$host_cpu" != ia64; then
10929         ld_shlibs=no
10930         cat <<_LT_EOF 1>&2
10931
10932 *** Warning: the GNU linker, at least up to release 2.19, is reported
10933 *** to be unable to reliably create shared libraries on AIX.
10934 *** Therefore, libtool is disabling shared libraries support.  If you
10935 *** really care for shared libraries, you may want to install binutils
10936 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10937 *** You will then need to restart the configuration process.
10938
10939 _LT_EOF
10940       fi
10941       ;;
10942
10943     amigaos*)
10944       case $host_cpu in
10945       powerpc)
10946             # see comment about AmigaOS4 .so support
10947             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10948             archive_expsym_cmds=''
10949         ;;
10950       m68k)
10951             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)'
10952             hardcode_libdir_flag_spec='-L$libdir'
10953             hardcode_minus_L=yes
10954         ;;
10955       esac
10956       ;;
10957
10958     beos*)
10959       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10960         allow_undefined_flag=unsupported
10961         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10962         # support --undefined.  This deserves some investigation.  FIXME
10963         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10964       else
10965         ld_shlibs=no
10966       fi
10967       ;;
10968
10969     cygwin* | mingw* | pw32* | cegcc*)
10970       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10971       # as there is no search path for DLLs.
10972       hardcode_libdir_flag_spec='-L$libdir'
10973       export_dynamic_flag_spec='${wl}--export-all-symbols'
10974       allow_undefined_flag=unsupported
10975       always_export_symbols=no
10976       enable_shared_with_static_runtimes=yes
10977       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'
10978       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10979
10980       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10981         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10982         # If the export-symbols file already is a .def file (1st line
10983         # is EXPORTS), use it as is; otherwise, prepend...
10984         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10985           cp $export_symbols $output_objdir/$soname.def;
10986         else
10987           echo EXPORTS > $output_objdir/$soname.def;
10988           cat $export_symbols >> $output_objdir/$soname.def;
10989         fi~
10990         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10991       else
10992         ld_shlibs=no
10993       fi
10994       ;;
10995
10996     haiku*)
10997       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10998       link_all_deplibs=yes
10999       ;;
11000
11001     interix[3-9]*)
11002       hardcode_direct=no
11003       hardcode_shlibpath_var=no
11004       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11005       export_dynamic_flag_spec='${wl}-E'
11006       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11007       # Instead, shared libraries are loaded at an image base (0x10000000 by
11008       # default) and relocated if they conflict, which is a slow very memory
11009       # consuming and fragmenting process.  To avoid this, we pick a random,
11010       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11011       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11012       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11013       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'
11014       ;;
11015
11016     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11017       tmp_diet=no
11018       if test "$host_os" = linux-dietlibc; then
11019         case $cc_basename in
11020           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
11021         esac
11022       fi
11023       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11024          && test "$tmp_diet" = no
11025       then
11026         tmp_addflag=' $pic_flag'
11027         tmp_sharedflag='-shared'
11028         case $cc_basename,$host_cpu in
11029         pgcc*)                          # Portland Group C compiler
11030           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'
11031           tmp_addflag=' $pic_flag'
11032           ;;
11033         pgf77* | pgf90* | pgf95* | pgfortran*)
11034                                         # Portland Group f77 and f90 compilers
11035           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'
11036           tmp_addflag=' $pic_flag -Mnomain' ;;
11037         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
11038           tmp_addflag=' -i_dynamic' ;;
11039         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
11040           tmp_addflag=' -i_dynamic -nofor_main' ;;
11041         ifc* | ifort*)                  # Intel Fortran compiler
11042           tmp_addflag=' -nofor_main' ;;
11043         lf95*)                          # Lahey Fortran 8.1
11044           whole_archive_flag_spec=
11045           tmp_sharedflag='--shared' ;;
11046         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11047           tmp_sharedflag='-qmkshrobj'
11048           tmp_addflag= ;;
11049         nvcc*)  # Cuda Compiler Driver 2.2
11050           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'
11051           compiler_needs_object=yes
11052           ;;
11053         esac
11054         case `$CC -V 2>&1 | sed 5q` in
11055         *Sun\ C*)                       # Sun C 5.9
11056           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'
11057           compiler_needs_object=yes
11058           tmp_sharedflag='-G' ;;
11059         *Sun\ F*)                       # Sun Fortran 8.3
11060           tmp_sharedflag='-G' ;;
11061         esac
11062         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11063
11064         if test "x$supports_anon_versioning" = xyes; then
11065           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11066             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11067             echo "local: *; };" >> $output_objdir/$libname.ver~
11068             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11069         fi
11070
11071         case $cc_basename in
11072         xlf* | bgf* | bgxlf* | mpixlf*)
11073           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11074           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11075           hardcode_libdir_flag_spec=
11076           hardcode_libdir_flag_spec_ld='-rpath $libdir'
11077           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11078           if test "x$supports_anon_versioning" = xyes; then
11079             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11080               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11081               echo "local: *; };" >> $output_objdir/$libname.ver~
11082               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11083           fi
11084           ;;
11085         esac
11086       else
11087         ld_shlibs=no
11088       fi
11089       ;;
11090
11091     netbsd*)
11092       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11093         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11094         wlarc=
11095       else
11096         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11097         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11098       fi
11099       ;;
11100
11101     solaris*)
11102       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11103         ld_shlibs=no
11104         cat <<_LT_EOF 1>&2
11105
11106 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11107 *** create shared libraries on Solaris systems.  Therefore, libtool
11108 *** is disabling shared libraries support.  We urge you to upgrade GNU
11109 *** binutils to release 2.9.1 or newer.  Another option is to modify
11110 *** your PATH or compiler configuration so that the native linker is
11111 *** used, and then restart.
11112
11113 _LT_EOF
11114       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11115         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11116         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11117       else
11118         ld_shlibs=no
11119       fi
11120       ;;
11121
11122     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11123       case `$LD -v 2>&1` in
11124         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11125         ld_shlibs=no
11126         cat <<_LT_EOF 1>&2
11127
11128 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11129 *** reliably create shared libraries on SCO systems.  Therefore, libtool
11130 *** is disabling shared libraries support.  We urge you to upgrade GNU
11131 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11132 *** your PATH or compiler configuration so that the native linker is
11133 *** used, and then restart.
11134
11135 _LT_EOF
11136         ;;
11137         *)
11138           # For security reasons, it is highly recommended that you always
11139           # use absolute paths for naming shared libraries, and exclude the
11140           # DT_RUNPATH tag from executables and libraries.  But doing so
11141           # requires that you compile everything twice, which is a pain.
11142           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11143             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11144             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11145             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11146           else
11147             ld_shlibs=no
11148           fi
11149         ;;
11150       esac
11151       ;;
11152
11153     sunos4*)
11154       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11155       wlarc=
11156       hardcode_direct=yes
11157       hardcode_shlibpath_var=no
11158       ;;
11159
11160     *)
11161       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11162         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11163         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11164       else
11165         ld_shlibs=no
11166       fi
11167       ;;
11168     esac
11169
11170     if test "$ld_shlibs" = no; then
11171       runpath_var=
11172       hardcode_libdir_flag_spec=
11173       export_dynamic_flag_spec=
11174       whole_archive_flag_spec=
11175     fi
11176   else
11177     # PORTME fill in a description of your system's linker (not GNU ld)
11178     case $host_os in
11179     aix3*)
11180       allow_undefined_flag=unsupported
11181       always_export_symbols=yes
11182       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'
11183       # Note: this linker hardcodes the directories in LIBPATH if there
11184       # are no directories specified by -L.
11185       hardcode_minus_L=yes
11186       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11187         # Neither direct hardcoding nor static linking is supported with a
11188         # broken collect2.
11189         hardcode_direct=unsupported
11190       fi
11191       ;;
11192
11193     aix[4-9]*)
11194       if test "$host_cpu" = ia64; then
11195         # On IA64, the linker does run time linking by default, so we don't
11196         # have to do anything special.
11197         aix_use_runtimelinking=no
11198         exp_sym_flag='-Bexport'
11199         no_entry_flag=""
11200       else
11201         # If we're using GNU nm, then we don't want the "-C" option.
11202         # -C means demangle to AIX nm, but means don't demangle with GNU nm
11203         # Also, AIX nm treats weak defined symbols like other global
11204         # defined symbols, whereas GNU nm marks them as "W".
11205         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11206           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'
11207         else
11208           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'
11209         fi
11210         aix_use_runtimelinking=no
11211
11212         # Test if we are trying to use run time linking or normal
11213         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11214         # need to do runtime linking.
11215         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11216           for ld_flag in $LDFLAGS; do
11217           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11218             aix_use_runtimelinking=yes
11219             break
11220           fi
11221           done
11222           ;;
11223         esac
11224
11225         exp_sym_flag='-bexport'
11226         no_entry_flag='-bnoentry'
11227       fi
11228
11229       # When large executables or shared objects are built, AIX ld can
11230       # have problems creating the table of contents.  If linking a library
11231       # or program results in "error TOC overflow" add -mminimal-toc to
11232       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11233       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11234
11235       archive_cmds=''
11236       hardcode_direct=yes
11237       hardcode_direct_absolute=yes
11238       hardcode_libdir_separator=':'
11239       link_all_deplibs=yes
11240       file_list_spec='${wl}-f,'
11241
11242       if test "$GCC" = yes; then
11243         case $host_os in aix4.[012]|aix4.[012].*)
11244         # We only want to do this on AIX 4.2 and lower, the check
11245         # below for broken collect2 doesn't work under 4.3+
11246           collect2name=`${CC} -print-prog-name=collect2`
11247           if test -f "$collect2name" &&
11248            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11249           then
11250           # We have reworked collect2
11251           :
11252           else
11253           # We have old collect2
11254           hardcode_direct=unsupported
11255           # It fails to find uninstalled libraries when the uninstalled
11256           # path is not listed in the libpath.  Setting hardcode_minus_L
11257           # to unsupported forces relinking
11258           hardcode_minus_L=yes
11259           hardcode_libdir_flag_spec='-L$libdir'
11260           hardcode_libdir_separator=
11261           fi
11262           ;;
11263         esac
11264         shared_flag='-shared'
11265         if test "$aix_use_runtimelinking" = yes; then
11266           shared_flag="$shared_flag "'${wl}-G'
11267         fi
11268       else
11269         # not using gcc
11270         if test "$host_cpu" = ia64; then
11271         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11272         # chokes on -Wl,-G. The following line is correct:
11273           shared_flag='-G'
11274         else
11275           if test "$aix_use_runtimelinking" = yes; then
11276             shared_flag='${wl}-G'
11277           else
11278             shared_flag='${wl}-bM:SRE'
11279           fi
11280         fi
11281       fi
11282
11283       export_dynamic_flag_spec='${wl}-bexpall'
11284       # It seems that -bexpall does not export symbols beginning with
11285       # underscore (_), so it is better to generate a list of symbols to export.
11286       always_export_symbols=yes
11287       if test "$aix_use_runtimelinking" = yes; then
11288         # Warning - without using the other runtime loading flags (-brtl),
11289         # -berok will link without error, but may produce a broken library.
11290         allow_undefined_flag='-berok'
11291         # Determine the default libpath from the value encoded in an
11292         # empty executable.
11293         if test "${lt_cv_aix_libpath+set}" = set; then
11294   aix_libpath=$lt_cv_aix_libpath
11295 else
11296   if ${lt_cv_aix_libpath_+:} false; then :
11297   $as_echo_n "(cached) " >&6
11298 else
11299   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11300 /* end confdefs.h.  */
11301
11302 int
11303 main ()
11304 {
11305
11306   ;
11307   return 0;
11308 }
11309 _ACEOF
11310 if ac_fn_c_try_link "$LINENO"; then :
11311
11312   lt_aix_libpath_sed='
11313       /Import File Strings/,/^$/ {
11314           /^0/ {
11315               s/^0  *\([^ ]*\) *$/\1/
11316               p
11317           }
11318       }'
11319   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11320   # Check for a 64-bit object if we didn't find anything.
11321   if test -z "$lt_cv_aix_libpath_"; then
11322     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11323   fi
11324 fi
11325 rm -f core conftest.err conftest.$ac_objext \
11326     conftest$ac_exeext conftest.$ac_ext
11327   if test -z "$lt_cv_aix_libpath_"; then
11328     lt_cv_aix_libpath_="/usr/lib:/lib"
11329   fi
11330
11331 fi
11332
11333   aix_libpath=$lt_cv_aix_libpath_
11334 fi
11335
11336         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11337         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"
11338       else
11339         if test "$host_cpu" = ia64; then
11340           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11341           allow_undefined_flag="-z nodefs"
11342           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"
11343         else
11344          # Determine the default libpath from the value encoded in an
11345          # empty executable.
11346          if test "${lt_cv_aix_libpath+set}" = set; then
11347   aix_libpath=$lt_cv_aix_libpath
11348 else
11349   if ${lt_cv_aix_libpath_+:} false; then :
11350   $as_echo_n "(cached) " >&6
11351 else
11352   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11353 /* end confdefs.h.  */
11354
11355 int
11356 main ()
11357 {
11358
11359   ;
11360   return 0;
11361 }
11362 _ACEOF
11363 if ac_fn_c_try_link "$LINENO"; then :
11364
11365   lt_aix_libpath_sed='
11366       /Import File Strings/,/^$/ {
11367           /^0/ {
11368               s/^0  *\([^ ]*\) *$/\1/
11369               p
11370           }
11371       }'
11372   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11373   # Check for a 64-bit object if we didn't find anything.
11374   if test -z "$lt_cv_aix_libpath_"; then
11375     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11376   fi
11377 fi
11378 rm -f core conftest.err conftest.$ac_objext \
11379     conftest$ac_exeext conftest.$ac_ext
11380   if test -z "$lt_cv_aix_libpath_"; then
11381     lt_cv_aix_libpath_="/usr/lib:/lib"
11382   fi
11383
11384 fi
11385
11386   aix_libpath=$lt_cv_aix_libpath_
11387 fi
11388
11389          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11390           # Warning - without using the other run time loading flags,
11391           # -berok will link without error, but may produce a broken library.
11392           no_undefined_flag=' ${wl}-bernotok'
11393           allow_undefined_flag=' ${wl}-berok'
11394           if test "$with_gnu_ld" = yes; then
11395             # We only use this code for GNU lds that support --whole-archive.
11396             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11397           else
11398             # Exported symbols can be pulled into shared objects from archives
11399             whole_archive_flag_spec='$convenience'
11400           fi
11401           archive_cmds_need_lc=yes
11402           # This is similar to how AIX traditionally builds its shared libraries.
11403           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'
11404         fi
11405       fi
11406       ;;
11407
11408     amigaos*)
11409       case $host_cpu in
11410       powerpc)
11411             # see comment about AmigaOS4 .so support
11412             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11413             archive_expsym_cmds=''
11414         ;;
11415       m68k)
11416             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)'
11417             hardcode_libdir_flag_spec='-L$libdir'
11418             hardcode_minus_L=yes
11419         ;;
11420       esac
11421       ;;
11422
11423     bsdi[45]*)
11424       export_dynamic_flag_spec=-rdynamic
11425       ;;
11426
11427     cygwin* | mingw* | pw32* | cegcc*)
11428       # When not using gcc, we currently assume that we are using
11429       # Microsoft Visual C++.
11430       # hardcode_libdir_flag_spec is actually meaningless, as there is
11431       # no search path for DLLs.
11432       case $cc_basename in
11433       cl*)
11434         # Native MSVC
11435         hardcode_libdir_flag_spec=' '
11436         allow_undefined_flag=unsupported
11437         always_export_symbols=yes
11438         file_list_spec='@'
11439         # Tell ltmain to make .lib files, not .a files.
11440         libext=lib
11441         # Tell ltmain to make .dll files, not .so files.
11442         shrext_cmds=".dll"
11443         # FIXME: Setting linknames here is a bad hack.
11444         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11445         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11446             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11447           else
11448             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11449           fi~
11450           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11451           linknames='
11452         # The linker will not automatically build a static lib if we build a DLL.
11453         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11454         enable_shared_with_static_runtimes=yes
11455         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11456         # Don't use ranlib
11457         old_postinstall_cmds='chmod 644 $oldlib'
11458         postlink_cmds='lt_outputfile="@OUTPUT@"~
11459           lt_tool_outputfile="@TOOL_OUTPUT@"~
11460           case $lt_outputfile in
11461             *.exe|*.EXE) ;;
11462             *)
11463               lt_outputfile="$lt_outputfile.exe"
11464               lt_tool_outputfile="$lt_tool_outputfile.exe"
11465               ;;
11466           esac~
11467           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11468             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11469             $RM "$lt_outputfile.manifest";
11470           fi'
11471         ;;
11472       *)
11473         # Assume MSVC wrapper
11474         hardcode_libdir_flag_spec=' '
11475         allow_undefined_flag=unsupported
11476         # Tell ltmain to make .lib files, not .a files.
11477         libext=lib
11478         # Tell ltmain to make .dll files, not .so files.
11479         shrext_cmds=".dll"
11480         # FIXME: Setting linknames here is a bad hack.
11481         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11482         # The linker will automatically build a .lib file if we build a DLL.
11483         old_archive_from_new_cmds='true'
11484         # FIXME: Should let the user specify the lib program.
11485         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11486         enable_shared_with_static_runtimes=yes
11487         ;;
11488       esac
11489       ;;
11490
11491     darwin* | rhapsody*)
11492
11493
11494   archive_cmds_need_lc=no
11495   hardcode_direct=no
11496   hardcode_automatic=yes
11497   hardcode_shlibpath_var=unsupported
11498   if test "$lt_cv_ld_force_load" = "yes"; then
11499     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\"`'
11500   else
11501     whole_archive_flag_spec=''
11502   fi
11503   link_all_deplibs=yes
11504   allow_undefined_flag="$_lt_dar_allow_undefined"
11505   case $cc_basename in
11506      ifort*) _lt_dar_can_shared=yes ;;
11507      *) _lt_dar_can_shared=$GCC ;;
11508   esac
11509   if test "$_lt_dar_can_shared" = "yes"; then
11510     output_verbose_link_cmd=func_echo_all
11511     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11512     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11513     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}"
11514     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}"
11515
11516   else
11517   ld_shlibs=no
11518   fi
11519
11520       ;;
11521
11522     dgux*)
11523       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11524       hardcode_libdir_flag_spec='-L$libdir'
11525       hardcode_shlibpath_var=no
11526       ;;
11527
11528     freebsd1*)
11529       ld_shlibs=no
11530       ;;
11531
11532     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11533     # support.  Future versions do this automatically, but an explicit c++rt0.o
11534     # does not break anything, and helps significantly (at the cost of a little
11535     # extra space).
11536     freebsd2.2*)
11537       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11538       hardcode_libdir_flag_spec='-R$libdir'
11539       hardcode_direct=yes
11540       hardcode_shlibpath_var=no
11541       ;;
11542
11543     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11544     freebsd2*)
11545       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11546       hardcode_direct=yes
11547       hardcode_minus_L=yes
11548       hardcode_shlibpath_var=no
11549       ;;
11550
11551     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11552     freebsd* | dragonfly*)
11553       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11554       hardcode_libdir_flag_spec='-R$libdir'
11555       hardcode_direct=yes
11556       hardcode_shlibpath_var=no
11557       ;;
11558
11559     hpux9*)
11560       if test "$GCC" = yes; then
11561         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'
11562       else
11563         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'
11564       fi
11565       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11566       hardcode_libdir_separator=:
11567       hardcode_direct=yes
11568
11569       # hardcode_minus_L: Not really in the search PATH,
11570       # but as the default location of the library.
11571       hardcode_minus_L=yes
11572       export_dynamic_flag_spec='${wl}-E'
11573       ;;
11574
11575     hpux10*)
11576       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11577         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11578       else
11579         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11580       fi
11581       if test "$with_gnu_ld" = no; then
11582         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11583         hardcode_libdir_flag_spec_ld='+b $libdir'
11584         hardcode_libdir_separator=:
11585         hardcode_direct=yes
11586         hardcode_direct_absolute=yes
11587         export_dynamic_flag_spec='${wl}-E'
11588         # hardcode_minus_L: Not really in the search PATH,
11589         # but as the default location of the library.
11590         hardcode_minus_L=yes
11591       fi
11592       ;;
11593
11594     hpux11*)
11595       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11596         case $host_cpu in
11597         hppa*64*)
11598           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11599           ;;
11600         ia64*)
11601           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11602           ;;
11603         *)
11604           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11605           ;;
11606         esac
11607       else
11608         case $host_cpu in
11609         hppa*64*)
11610           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11611           ;;
11612         ia64*)
11613           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11614           ;;
11615         *)
11616
11617           # Older versions of the 11.00 compiler do not understand -b yet
11618           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11619           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11620 $as_echo_n "checking if $CC understands -b... " >&6; }
11621 if ${lt_cv_prog_compiler__b+:} false; then :
11622   $as_echo_n "(cached) " >&6
11623 else
11624   lt_cv_prog_compiler__b=no
11625    save_LDFLAGS="$LDFLAGS"
11626    LDFLAGS="$LDFLAGS -b"
11627    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11628    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11629      # The linker can only warn and ignore the option if not recognized
11630      # So say no if there are warnings
11631      if test -s conftest.err; then
11632        # Append any errors to the config.log.
11633        cat conftest.err 1>&5
11634        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11635        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11636        if diff conftest.exp conftest.er2 >/dev/null; then
11637          lt_cv_prog_compiler__b=yes
11638        fi
11639      else
11640        lt_cv_prog_compiler__b=yes
11641      fi
11642    fi
11643    $RM -r conftest*
11644    LDFLAGS="$save_LDFLAGS"
11645
11646 fi
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11648 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11649
11650 if test x"$lt_cv_prog_compiler__b" = xyes; then
11651     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11652 else
11653     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11654 fi
11655
11656           ;;
11657         esac
11658       fi
11659       if test "$with_gnu_ld" = no; then
11660         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11661         hardcode_libdir_separator=:
11662
11663         case $host_cpu in
11664         hppa*64*|ia64*)
11665           hardcode_direct=no
11666           hardcode_shlibpath_var=no
11667           ;;
11668         *)
11669           hardcode_direct=yes
11670           hardcode_direct_absolute=yes
11671           export_dynamic_flag_spec='${wl}-E'
11672
11673           # hardcode_minus_L: Not really in the search PATH,
11674           # but as the default location of the library.
11675           hardcode_minus_L=yes
11676           ;;
11677         esac
11678       fi
11679       ;;
11680
11681     irix5* | irix6* | nonstopux*)
11682       if test "$GCC" = yes; then
11683         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'
11684         # Try to use the -exported_symbol ld option, if it does not
11685         # work, assume that -exports_file does not work either and
11686         # implicitly export all symbols.
11687         # This should be the same for all languages, so no per-tag cache variable.
11688         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11689 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11690 if ${lt_cv_irix_exported_symbol+:} false; then :
11691   $as_echo_n "(cached) " >&6
11692 else
11693   save_LDFLAGS="$LDFLAGS"
11694            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11695            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11696 /* end confdefs.h.  */
11697 int foo (void) { return 0; }
11698 _ACEOF
11699 if ac_fn_c_try_link "$LINENO"; then :
11700   lt_cv_irix_exported_symbol=yes
11701 else
11702   lt_cv_irix_exported_symbol=no
11703 fi
11704 rm -f core conftest.err conftest.$ac_objext \
11705     conftest$ac_exeext conftest.$ac_ext
11706            LDFLAGS="$save_LDFLAGS"
11707 fi
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11709 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11710         if test "$lt_cv_irix_exported_symbol" = yes; then
11711           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'
11712         fi
11713       else
11714         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'
11715         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'
11716       fi
11717       archive_cmds_need_lc='no'
11718       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11719       hardcode_libdir_separator=:
11720       inherit_rpath=yes
11721       link_all_deplibs=yes
11722       ;;
11723
11724     netbsd*)
11725       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11726         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11727       else
11728         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11729       fi
11730       hardcode_libdir_flag_spec='-R$libdir'
11731       hardcode_direct=yes
11732       hardcode_shlibpath_var=no
11733       ;;
11734
11735     newsos6)
11736       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11737       hardcode_direct=yes
11738       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11739       hardcode_libdir_separator=:
11740       hardcode_shlibpath_var=no
11741       ;;
11742
11743     *nto* | *qnx*)
11744       ;;
11745
11746     openbsd*)
11747       if test -f /usr/libexec/ld.so; then
11748         hardcode_direct=yes
11749         hardcode_shlibpath_var=no
11750         hardcode_direct_absolute=yes
11751         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11752           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11753           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11754           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11755           export_dynamic_flag_spec='${wl}-E'
11756         else
11757           case $host_os in
11758            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11759              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11760              hardcode_libdir_flag_spec='-R$libdir'
11761              ;;
11762            *)
11763              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11764              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11765              ;;
11766           esac
11767         fi
11768       else
11769         ld_shlibs=no
11770       fi
11771       ;;
11772
11773     os2*)
11774       hardcode_libdir_flag_spec='-L$libdir'
11775       hardcode_minus_L=yes
11776       allow_undefined_flag=unsupported
11777       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'
11778       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11779       ;;
11780
11781     osf3*)
11782       if test "$GCC" = yes; then
11783         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11784         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'
11785       else
11786         allow_undefined_flag=' -expect_unresolved \*'
11787         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'
11788       fi
11789       archive_cmds_need_lc='no'
11790       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11791       hardcode_libdir_separator=:
11792       ;;
11793
11794     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11795       if test "$GCC" = yes; then
11796         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11797         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'
11798         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11799       else
11800         allow_undefined_flag=' -expect_unresolved \*'
11801         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'
11802         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~
11803         $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'
11804
11805         # Both c and cxx compiler support -rpath directly
11806         hardcode_libdir_flag_spec='-rpath $libdir'
11807       fi
11808       archive_cmds_need_lc='no'
11809       hardcode_libdir_separator=:
11810       ;;
11811
11812     solaris*)
11813       no_undefined_flag=' -z defs'
11814       if test "$GCC" = yes; then
11815         wlarc='${wl}'
11816         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11817         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11818           $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'
11819       else
11820         case `$CC -V 2>&1` in
11821         *"Compilers 5.0"*)
11822           wlarc=''
11823           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11824           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11825           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11826           ;;
11827         *)
11828           wlarc='${wl}'
11829           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11830           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11831           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11832           ;;
11833         esac
11834       fi
11835       hardcode_libdir_flag_spec='-R$libdir'
11836       hardcode_shlibpath_var=no
11837       case $host_os in
11838       solaris2.[0-5] | solaris2.[0-5].*) ;;
11839       *)
11840         # The compiler driver will combine and reorder linker options,
11841         # but understands `-z linker_flag'.  GCC discards it without `$wl',
11842         # but is careful enough not to reorder.
11843         # Supported since Solaris 2.6 (maybe 2.5.1?)
11844         if test "$GCC" = yes; then
11845           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11846         else
11847           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11848         fi
11849         ;;
11850       esac
11851       link_all_deplibs=yes
11852       ;;
11853
11854     sunos4*)
11855       if test "x$host_vendor" = xsequent; then
11856         # Use $CC to link under sequent, because it throws in some extra .o
11857         # files that make .init and .fini sections work.
11858         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11859       else
11860         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11861       fi
11862       hardcode_libdir_flag_spec='-L$libdir'
11863       hardcode_direct=yes
11864       hardcode_minus_L=yes
11865       hardcode_shlibpath_var=no
11866       ;;
11867
11868     sysv4)
11869       case $host_vendor in
11870         sni)
11871           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11872           hardcode_direct=yes # is this really true???
11873         ;;
11874         siemens)
11875           ## LD is ld it makes a PLAMLIB
11876           ## CC just makes a GrossModule.
11877           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11878           reload_cmds='$CC -r -o $output$reload_objs'
11879           hardcode_direct=no
11880         ;;
11881         motorola)
11882           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11883           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11884         ;;
11885       esac
11886       runpath_var='LD_RUN_PATH'
11887       hardcode_shlibpath_var=no
11888       ;;
11889
11890     sysv4.3*)
11891       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11892       hardcode_shlibpath_var=no
11893       export_dynamic_flag_spec='-Bexport'
11894       ;;
11895
11896     sysv4*MP*)
11897       if test -d /usr/nec; then
11898         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11899         hardcode_shlibpath_var=no
11900         runpath_var=LD_RUN_PATH
11901         hardcode_runpath_var=yes
11902         ld_shlibs=yes
11903       fi
11904       ;;
11905
11906     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11907       no_undefined_flag='${wl}-z,text'
11908       archive_cmds_need_lc=no
11909       hardcode_shlibpath_var=no
11910       runpath_var='LD_RUN_PATH'
11911
11912       if test "$GCC" = yes; then
11913         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11914         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11915       else
11916         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11917         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11918       fi
11919       ;;
11920
11921     sysv5* | sco3.2v5* | sco5v6*)
11922       # Note: We can NOT use -z defs as we might desire, because we do not
11923       # link with -lc, and that would cause any symbols used from libc to
11924       # always be unresolved, which means just about no library would
11925       # ever link correctly.  If we're not using GNU ld we use -z text
11926       # though, which does catch some bad symbols but isn't as heavy-handed
11927       # as -z defs.
11928       no_undefined_flag='${wl}-z,text'
11929       allow_undefined_flag='${wl}-z,nodefs'
11930       archive_cmds_need_lc=no
11931       hardcode_shlibpath_var=no
11932       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11933       hardcode_libdir_separator=':'
11934       link_all_deplibs=yes
11935       export_dynamic_flag_spec='${wl}-Bexport'
11936       runpath_var='LD_RUN_PATH'
11937
11938       if test "$GCC" = yes; then
11939         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11940         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11941       else
11942         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11943         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11944       fi
11945       ;;
11946
11947     uts4*)
11948       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11949       hardcode_libdir_flag_spec='-L$libdir'
11950       hardcode_shlibpath_var=no
11951       ;;
11952
11953     *)
11954       ld_shlibs=no
11955       ;;
11956     esac
11957
11958     if test x$host_vendor = xsni; then
11959       case $host in
11960       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11961         export_dynamic_flag_spec='${wl}-Blargedynsym'
11962         ;;
11963       esac
11964     fi
11965   fi
11966
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11968 $as_echo "$ld_shlibs" >&6; }
11969 test "$ld_shlibs" = no && can_build_shared=no
11970
11971 with_gnu_ld=$with_gnu_ld
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987 #
11988 # Do we need to explicitly link libc?
11989 #
11990 case "x$archive_cmds_need_lc" in
11991 x|xyes)
11992   # Assume -lc should be added
11993   archive_cmds_need_lc=yes
11994
11995   if test "$enable_shared" = yes && test "$GCC" = yes; then
11996     case $archive_cmds in
11997     *'~'*)
11998       # FIXME: we may have to deal with multi-command sequences.
11999       ;;
12000     '$CC '*)
12001       # Test whether the compiler implicitly links with -lc since on some
12002       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12003       # to ld, don't add -lc before -lgcc.
12004       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12005 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12006 if ${lt_cv_archive_cmds_need_lc+:} false; then :
12007   $as_echo_n "(cached) " >&6
12008 else
12009   $RM conftest*
12010         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12011
12012         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12013   (eval $ac_compile) 2>&5
12014   ac_status=$?
12015   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12016   test $ac_status = 0; } 2>conftest.err; then
12017           soname=conftest
12018           lib=conftest
12019           libobjs=conftest.$ac_objext
12020           deplibs=
12021           wl=$lt_prog_compiler_wl
12022           pic_flag=$lt_prog_compiler_pic
12023           compiler_flags=-v
12024           linker_flags=-v
12025           verstring=
12026           output_objdir=.
12027           libname=conftest
12028           lt_save_allow_undefined_flag=$allow_undefined_flag
12029           allow_undefined_flag=
12030           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12031   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12032   ac_status=$?
12033   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12034   test $ac_status = 0; }
12035           then
12036             lt_cv_archive_cmds_need_lc=no
12037           else
12038             lt_cv_archive_cmds_need_lc=yes
12039           fi
12040           allow_undefined_flag=$lt_save_allow_undefined_flag
12041         else
12042           cat conftest.err 1>&5
12043         fi
12044         $RM conftest*
12045
12046 fi
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12048 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12049       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12050       ;;
12051     esac
12052   fi
12053   ;;
12054 esac
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12213 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12214
12215 if test "$GCC" = yes; then
12216   case $host_os in
12217     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12218     *) lt_awk_arg="/^libraries:/" ;;
12219   esac
12220   case $host_os in
12221     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12222     *) lt_sed_strip_eq="s,=/,/,g" ;;
12223   esac
12224   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12225   case $lt_search_path_spec in
12226   *\;*)
12227     # if the path contains ";" then we assume it to be the separator
12228     # otherwise default to the standard path separator (i.e. ":") - it is
12229     # assumed that no part of a normal pathname contains ";" but that should
12230     # okay in the real world where ";" in dirpaths is itself problematic.
12231     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12232     ;;
12233   *)
12234     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12235     ;;
12236   esac
12237   # Ok, now we have the path, separated by spaces, we can step through it
12238   # and add multilib dir if necessary.
12239   lt_tmp_lt_search_path_spec=
12240   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12241   for lt_sys_path in $lt_search_path_spec; do
12242     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12243       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12244     else
12245       test -d "$lt_sys_path" && \
12246         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12247     fi
12248   done
12249   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12250 BEGIN {RS=" "; FS="/|\n";} {
12251   lt_foo="";
12252   lt_count=0;
12253   for (lt_i = NF; lt_i > 0; lt_i--) {
12254     if ($lt_i != "" && $lt_i != ".") {
12255       if ($lt_i == "..") {
12256         lt_count++;
12257       } else {
12258         if (lt_count == 0) {
12259           lt_foo="/" $lt_i lt_foo;
12260         } else {
12261           lt_count--;
12262         }
12263       }
12264     }
12265   }
12266   if (lt_foo != "") { lt_freq[lt_foo]++; }
12267   if (lt_freq[lt_foo] == 1) { print lt_foo; }
12268 }'`
12269   # AWK program above erroneously prepends '/' to C:/dos/paths
12270   # for these hosts.
12271   case $host_os in
12272     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12273       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12274   esac
12275   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12276 else
12277   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12278 fi
12279 library_names_spec=
12280 libname_spec='lib$name'
12281 soname_spec=
12282 shrext_cmds=".so"
12283 postinstall_cmds=
12284 postuninstall_cmds=
12285 finish_cmds=
12286 finish_eval=
12287 shlibpath_var=
12288 shlibpath_overrides_runpath=unknown
12289 version_type=none
12290 dynamic_linker="$host_os ld.so"
12291 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12292 need_lib_prefix=unknown
12293 hardcode_into_libs=no
12294
12295 # when you set need_version to no, make sure it does not cause -set_version
12296 # flags to be left without arguments
12297 need_version=unknown
12298
12299 case $host_os in
12300 aix3*)
12301   version_type=linux
12302   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12303   shlibpath_var=LIBPATH
12304
12305   # AIX 3 has no versioning support, so we append a major version to the name.
12306   soname_spec='${libname}${release}${shared_ext}$major'
12307   ;;
12308
12309 aix[4-9]*)
12310   version_type=linux
12311   need_lib_prefix=no
12312   need_version=no
12313   hardcode_into_libs=yes
12314   if test "$host_cpu" = ia64; then
12315     # AIX 5 supports IA64
12316     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12317     shlibpath_var=LD_LIBRARY_PATH
12318   else
12319     # With GCC up to 2.95.x, collect2 would create an import file
12320     # for dependence libraries.  The import file would start with
12321     # the line `#! .'.  This would cause the generated library to
12322     # depend on `.', always an invalid library.  This was fixed in
12323     # development snapshots of GCC prior to 3.0.
12324     case $host_os in
12325       aix4 | aix4.[01] | aix4.[01].*)
12326       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12327            echo ' yes '
12328            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12329         :
12330       else
12331         can_build_shared=no
12332       fi
12333       ;;
12334     esac
12335     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12336     # soname into executable. Probably we can add versioning support to
12337     # collect2, so additional links can be useful in future.
12338     if test "$aix_use_runtimelinking" = yes; then
12339       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12340       # instead of lib<name>.a to let people know that these are not
12341       # typical AIX shared libraries.
12342       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12343     else
12344       # We preserve .a as extension for shared libraries through AIX4.2
12345       # and later when we are not doing run time linking.
12346       library_names_spec='${libname}${release}.a $libname.a'
12347       soname_spec='${libname}${release}${shared_ext}$major'
12348     fi
12349     shlibpath_var=LIBPATH
12350   fi
12351   ;;
12352
12353 amigaos*)
12354   case $host_cpu in
12355   powerpc)
12356     # Since July 2007 AmigaOS4 officially supports .so libraries.
12357     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12358     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12359     ;;
12360   m68k)
12361     library_names_spec='$libname.ixlibrary $libname.a'
12362     # Create ${libname}_ixlibrary.a entries in /sys/libs.
12363     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'
12364     ;;
12365   esac
12366   ;;
12367
12368 beos*)
12369   library_names_spec='${libname}${shared_ext}'
12370   dynamic_linker="$host_os ld.so"
12371   shlibpath_var=LIBRARY_PATH
12372   ;;
12373
12374 bsdi[45]*)
12375   version_type=linux
12376   need_version=no
12377   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12378   soname_spec='${libname}${release}${shared_ext}$major'
12379   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12380   shlibpath_var=LD_LIBRARY_PATH
12381   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12382   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12383   # the default ld.so.conf also contains /usr/contrib/lib and
12384   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12385   # libtool to hard-code these into programs
12386   ;;
12387
12388 cygwin* | mingw* | pw32* | cegcc*)
12389   version_type=windows
12390   shrext_cmds=".dll"
12391   need_version=no
12392   need_lib_prefix=no
12393
12394   case $GCC,$cc_basename in
12395   yes,*)
12396     # gcc
12397     library_names_spec='$libname.dll.a'
12398     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12399     postinstall_cmds='base_file=`basename \${file}`~
12400       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12401       dldir=$destdir/`dirname \$dlpath`~
12402       test -d \$dldir || mkdir -p \$dldir~
12403       $install_prog $dir/$dlname \$dldir/$dlname~
12404       chmod a+x \$dldir/$dlname~
12405       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12406         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12407       fi'
12408     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12409       dlpath=$dir/\$dldll~
12410        $RM \$dlpath'
12411     shlibpath_overrides_runpath=yes
12412
12413     case $host_os in
12414     cygwin*)
12415       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12416       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12417
12418       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12419       ;;
12420     mingw* | cegcc*)
12421       # MinGW DLLs use traditional 'lib' prefix
12422       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12423       ;;
12424     pw32*)
12425       # pw32 DLLs use 'pw' prefix rather than 'lib'
12426       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12427       ;;
12428     esac
12429     dynamic_linker='Win32 ld.exe'
12430     ;;
12431
12432   *,cl*)
12433     # Native MSVC
12434     libname_spec='$name'
12435     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12436     library_names_spec='${libname}.dll.lib'
12437
12438     case $build_os in
12439     mingw*)
12440       sys_lib_search_path_spec=
12441       lt_save_ifs=$IFS
12442       IFS=';'
12443       for lt_path in $LIB
12444       do
12445         IFS=$lt_save_ifs
12446         # Let DOS variable expansion print the short 8.3 style file name.
12447         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12448         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12449       done
12450       IFS=$lt_save_ifs
12451       # Convert to MSYS style.
12452       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12453       ;;
12454     cygwin*)
12455       # Convert to unix form, then to dos form, then back to unix form
12456       # but this time dos style (no spaces!) so that the unix form looks
12457       # like /cygdrive/c/PROGRA~1:/cygdr...
12458       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12459       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12460       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12461       ;;
12462     *)
12463       sys_lib_search_path_spec="$LIB"
12464       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12465         # It is most probably a Windows format PATH.
12466         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12467       else
12468         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12469       fi
12470       # FIXME: find the short name or the path components, as spaces are
12471       # common. (e.g. "Program Files" -> "PROGRA~1")
12472       ;;
12473     esac
12474
12475     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12476     postinstall_cmds='base_file=`basename \${file}`~
12477       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12478       dldir=$destdir/`dirname \$dlpath`~
12479       test -d \$dldir || mkdir -p \$dldir~
12480       $install_prog $dir/$dlname \$dldir/$dlname'
12481     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12482       dlpath=$dir/\$dldll~
12483        $RM \$dlpath'
12484     shlibpath_overrides_runpath=yes
12485     dynamic_linker='Win32 link.exe'
12486     ;;
12487
12488   *)
12489     # Assume MSVC wrapper
12490     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12491     dynamic_linker='Win32 ld.exe'
12492     ;;
12493   esac
12494   # FIXME: first we should search . and the directory the executable is in
12495   shlibpath_var=PATH
12496   ;;
12497
12498 darwin* | rhapsody*)
12499   dynamic_linker="$host_os dyld"
12500   version_type=darwin
12501   need_lib_prefix=no
12502   need_version=no
12503   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12504   soname_spec='${libname}${release}${major}$shared_ext'
12505   shlibpath_overrides_runpath=yes
12506   shlibpath_var=DYLD_LIBRARY_PATH
12507   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12508
12509   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12510   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12511   ;;
12512
12513 dgux*)
12514   version_type=linux
12515   need_lib_prefix=no
12516   need_version=no
12517   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12518   soname_spec='${libname}${release}${shared_ext}$major'
12519   shlibpath_var=LD_LIBRARY_PATH
12520   ;;
12521
12522 freebsd1*)
12523   dynamic_linker=no
12524   ;;
12525
12526 freebsd* | dragonfly*)
12527   # DragonFly does not have aout.  When/if they implement a new
12528   # versioning mechanism, adjust this.
12529   if test -x /usr/bin/objformat; then
12530     objformat=`/usr/bin/objformat`
12531   else
12532     case $host_os in
12533     freebsd[123]*) objformat=aout ;;
12534     *) objformat=elf ;;
12535     esac
12536   fi
12537   version_type=freebsd-$objformat
12538   case $version_type in
12539     freebsd-elf*)
12540       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12541       need_version=no
12542       need_lib_prefix=no
12543       ;;
12544     freebsd-*)
12545       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12546       need_version=yes
12547       ;;
12548   esac
12549   shlibpath_var=LD_LIBRARY_PATH
12550   case $host_os in
12551   freebsd2*)
12552     shlibpath_overrides_runpath=yes
12553     ;;
12554   freebsd3.[01]* | freebsdelf3.[01]*)
12555     shlibpath_overrides_runpath=yes
12556     hardcode_into_libs=yes
12557     ;;
12558   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12559   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12560     shlibpath_overrides_runpath=no
12561     hardcode_into_libs=yes
12562     ;;
12563   *) # from 4.6 on, and DragonFly
12564     shlibpath_overrides_runpath=yes
12565     hardcode_into_libs=yes
12566     ;;
12567   esac
12568   ;;
12569
12570 gnu*)
12571   version_type=linux
12572   need_lib_prefix=no
12573   need_version=no
12574   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12575   soname_spec='${libname}${release}${shared_ext}$major'
12576   shlibpath_var=LD_LIBRARY_PATH
12577   hardcode_into_libs=yes
12578   ;;
12579
12580 haiku*)
12581   version_type=linux
12582   need_lib_prefix=no
12583   need_version=no
12584   dynamic_linker="$host_os runtime_loader"
12585   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12586   soname_spec='${libname}${release}${shared_ext}$major'
12587   shlibpath_var=LIBRARY_PATH
12588   shlibpath_overrides_runpath=yes
12589   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12590   hardcode_into_libs=yes
12591   ;;
12592
12593 hpux9* | hpux10* | hpux11*)
12594   # Give a soname corresponding to the major version so that dld.sl refuses to
12595   # link against other versions.
12596   version_type=sunos
12597   need_lib_prefix=no
12598   need_version=no
12599   case $host_cpu in
12600   ia64*)
12601     shrext_cmds='.so'
12602     hardcode_into_libs=yes
12603     dynamic_linker="$host_os dld.so"
12604     shlibpath_var=LD_LIBRARY_PATH
12605     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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     if test "X$HPUX_IA64_MODE" = X32; then
12609       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12610     else
12611       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12612     fi
12613     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12614     ;;
12615   hppa*64*)
12616     shrext_cmds='.sl'
12617     hardcode_into_libs=yes
12618     dynamic_linker="$host_os dld.sl"
12619     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12620     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12621     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12622     soname_spec='${libname}${release}${shared_ext}$major'
12623     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12624     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12625     ;;
12626   *)
12627     shrext_cmds='.sl'
12628     dynamic_linker="$host_os dld.sl"
12629     shlibpath_var=SHLIB_PATH
12630     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12631     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12632     soname_spec='${libname}${release}${shared_ext}$major'
12633     ;;
12634   esac
12635   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12636   postinstall_cmds='chmod 555 $lib'
12637   # or fails outright, so override atomically:
12638   install_override_mode=555
12639   ;;
12640
12641 interix[3-9]*)
12642   version_type=linux
12643   need_lib_prefix=no
12644   need_version=no
12645   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12646   soname_spec='${libname}${release}${shared_ext}$major'
12647   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12648   shlibpath_var=LD_LIBRARY_PATH
12649   shlibpath_overrides_runpath=no
12650   hardcode_into_libs=yes
12651   ;;
12652
12653 irix5* | irix6* | nonstopux*)
12654   case $host_os in
12655     nonstopux*) version_type=nonstopux ;;
12656     *)
12657         if test "$lt_cv_prog_gnu_ld" = yes; then
12658                 version_type=linux
12659         else
12660                 version_type=irix
12661         fi ;;
12662   esac
12663   need_lib_prefix=no
12664   need_version=no
12665   soname_spec='${libname}${release}${shared_ext}$major'
12666   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12667   case $host_os in
12668   irix5* | nonstopux*)
12669     libsuff= shlibsuff=
12670     ;;
12671   *)
12672     case $LD in # libtool.m4 will add one of these switches to LD
12673     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12674       libsuff= shlibsuff= libmagic=32-bit;;
12675     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12676       libsuff=32 shlibsuff=N32 libmagic=N32;;
12677     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12678       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12679     *) libsuff= shlibsuff= libmagic=never-match;;
12680     esac
12681     ;;
12682   esac
12683   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12684   shlibpath_overrides_runpath=no
12685   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12686   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12687   hardcode_into_libs=yes
12688   ;;
12689
12690 # No shared lib support for Linux oldld, aout, or coff.
12691 linux*oldld* | linux*aout* | linux*coff*)
12692   dynamic_linker=no
12693   ;;
12694
12695 # This must be Linux ELF.
12696 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12697   version_type=linux
12698   need_lib_prefix=no
12699   need_version=no
12700   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12701   soname_spec='${libname}${release}${shared_ext}$major'
12702   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12703   shlibpath_var=LD_LIBRARY_PATH
12704   shlibpath_overrides_runpath=no
12705
12706   # Some binutils ld are patched to set DT_RUNPATH
12707   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12708   $as_echo_n "(cached) " >&6
12709 else
12710   lt_cv_shlibpath_overrides_runpath=no
12711     save_LDFLAGS=$LDFLAGS
12712     save_libdir=$libdir
12713     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12714          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12715     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12716 /* end confdefs.h.  */
12717
12718 int
12719 main ()
12720 {
12721
12722   ;
12723   return 0;
12724 }
12725 _ACEOF
12726 if ac_fn_c_try_link "$LINENO"; then :
12727   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12728   lt_cv_shlibpath_overrides_runpath=yes
12729 fi
12730 fi
12731 rm -f core conftest.err conftest.$ac_objext \
12732     conftest$ac_exeext conftest.$ac_ext
12733     LDFLAGS=$save_LDFLAGS
12734     libdir=$save_libdir
12735
12736 fi
12737
12738   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12739
12740   # This implies no fast_install, which is unacceptable.
12741   # Some rework will be needed to allow for fast_install
12742   # before this can be enabled.
12743   hardcode_into_libs=yes
12744
12745   # Add ABI-specific directories to the system library path.
12746   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
12747
12748   # Append ld.so.conf contents to the search path
12749   if test -f /etc/ld.so.conf; then
12750     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' ' '`
12751     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
12752
12753   fi
12754
12755   # We used to test for /lib/ld.so.1 and disable shared libraries on
12756   # powerpc, because MkLinux only supported shared libraries with the
12757   # GNU dynamic linker.  Since this was broken with cross compilers,
12758   # most powerpc-linux boxes support dynamic linking these days and
12759   # people can always --disable-shared, the test was removed, and we
12760   # assume the GNU/Linux dynamic linker is in use.
12761   dynamic_linker='GNU/Linux ld.so'
12762   ;;
12763
12764 netbsd*)
12765   version_type=sunos
12766   need_lib_prefix=no
12767   need_version=no
12768   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12769     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12770     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12771     dynamic_linker='NetBSD (a.out) ld.so'
12772   else
12773     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12774     soname_spec='${libname}${release}${shared_ext}$major'
12775     dynamic_linker='NetBSD ld.elf_so'
12776   fi
12777   shlibpath_var=LD_LIBRARY_PATH
12778   shlibpath_overrides_runpath=yes
12779   hardcode_into_libs=yes
12780   ;;
12781
12782 newsos6)
12783   version_type=linux
12784   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12785   shlibpath_var=LD_LIBRARY_PATH
12786   shlibpath_overrides_runpath=yes
12787   ;;
12788
12789 *nto* | *qnx*)
12790   version_type=qnx
12791   need_lib_prefix=no
12792   need_version=no
12793   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12794   soname_spec='${libname}${release}${shared_ext}$major'
12795   shlibpath_var=LD_LIBRARY_PATH
12796   shlibpath_overrides_runpath=no
12797   hardcode_into_libs=yes
12798   dynamic_linker='ldqnx.so'
12799   ;;
12800
12801 openbsd*)
12802   version_type=sunos
12803   sys_lib_dlsearch_path_spec="/usr/lib"
12804   need_lib_prefix=no
12805   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12806   case $host_os in
12807     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
12808     *)                          need_version=no  ;;
12809   esac
12810   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12811   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12812   shlibpath_var=LD_LIBRARY_PATH
12813   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12814     case $host_os in
12815       openbsd2.[89] | openbsd2.[89].*)
12816         shlibpath_overrides_runpath=no
12817         ;;
12818       *)
12819         shlibpath_overrides_runpath=yes
12820         ;;
12821       esac
12822   else
12823     shlibpath_overrides_runpath=yes
12824   fi
12825   ;;
12826
12827 os2*)
12828   libname_spec='$name'
12829   shrext_cmds=".dll"
12830   need_lib_prefix=no
12831   library_names_spec='$libname${shared_ext} $libname.a'
12832   dynamic_linker='OS/2 ld.exe'
12833   shlibpath_var=LIBPATH
12834   ;;
12835
12836 osf3* | osf4* | osf5*)
12837   version_type=osf
12838   need_lib_prefix=no
12839   need_version=no
12840   soname_spec='${libname}${release}${shared_ext}$major'
12841   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12842   shlibpath_var=LD_LIBRARY_PATH
12843   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12844   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12845   ;;
12846
12847 rdos*)
12848   dynamic_linker=no
12849   ;;
12850
12851 solaris*)
12852   version_type=linux
12853   need_lib_prefix=no
12854   need_version=no
12855   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12856   soname_spec='${libname}${release}${shared_ext}$major'
12857   shlibpath_var=LD_LIBRARY_PATH
12858   shlibpath_overrides_runpath=yes
12859   hardcode_into_libs=yes
12860   # ldd complains unless libraries are executable
12861   postinstall_cmds='chmod +x $lib'
12862   ;;
12863
12864 sunos4*)
12865   version_type=sunos
12866   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12867   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12868   shlibpath_var=LD_LIBRARY_PATH
12869   shlibpath_overrides_runpath=yes
12870   if test "$with_gnu_ld" = yes; then
12871     need_lib_prefix=no
12872   fi
12873   need_version=yes
12874   ;;
12875
12876 sysv4 | sysv4.3*)
12877   version_type=linux
12878   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12879   soname_spec='${libname}${release}${shared_ext}$major'
12880   shlibpath_var=LD_LIBRARY_PATH
12881   case $host_vendor in
12882     sni)
12883       shlibpath_overrides_runpath=no
12884       need_lib_prefix=no
12885       runpath_var=LD_RUN_PATH
12886       ;;
12887     siemens)
12888       need_lib_prefix=no
12889       ;;
12890     motorola)
12891       need_lib_prefix=no
12892       need_version=no
12893       shlibpath_overrides_runpath=no
12894       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12895       ;;
12896   esac
12897   ;;
12898
12899 sysv4*MP*)
12900   if test -d /usr/nec ;then
12901     version_type=linux
12902     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12903     soname_spec='$libname${shared_ext}.$major'
12904     shlibpath_var=LD_LIBRARY_PATH
12905   fi
12906   ;;
12907
12908 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12909   version_type=freebsd-elf
12910   need_lib_prefix=no
12911   need_version=no
12912   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12913   soname_spec='${libname}${release}${shared_ext}$major'
12914   shlibpath_var=LD_LIBRARY_PATH
12915   shlibpath_overrides_runpath=yes
12916   hardcode_into_libs=yes
12917   if test "$with_gnu_ld" = yes; then
12918     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12919   else
12920     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12921     case $host_os in
12922       sco3.2v5*)
12923         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12924         ;;
12925     esac
12926   fi
12927   sys_lib_dlsearch_path_spec='/usr/lib'
12928   ;;
12929
12930 tpf*)
12931   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12932   version_type=linux
12933   need_lib_prefix=no
12934   need_version=no
12935   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12936   shlibpath_var=LD_LIBRARY_PATH
12937   shlibpath_overrides_runpath=no
12938   hardcode_into_libs=yes
12939   ;;
12940
12941 uts4*)
12942   version_type=linux
12943   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12944   soname_spec='${libname}${release}${shared_ext}$major'
12945   shlibpath_var=LD_LIBRARY_PATH
12946   ;;
12947
12948 *)
12949   dynamic_linker=no
12950   ;;
12951 esac
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12953 $as_echo "$dynamic_linker" >&6; }
12954 test "$dynamic_linker" = no && can_build_shared=no
12955
12956 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12957 if test "$GCC" = yes; then
12958   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12959 fi
12960
12961 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12962   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12963 fi
12964 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12965   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12966 fi
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13060 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13061 hardcode_action=
13062 if test -n "$hardcode_libdir_flag_spec" ||
13063    test -n "$runpath_var" ||
13064    test "X$hardcode_automatic" = "Xyes" ; then
13065
13066   # We can hardcode non-existent directories.
13067   if test "$hardcode_direct" != no &&
13068      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13069      # have to relink, otherwise we might link with an installed library
13070      # when we should be linking with a yet-to-be-installed one
13071      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13072      test "$hardcode_minus_L" != no; then
13073     # Linking always hardcodes the temporary library directory.
13074     hardcode_action=relink
13075   else
13076     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13077     hardcode_action=immediate
13078   fi
13079 else
13080   # We cannot hardcode anything, or else we can only hardcode existing
13081   # directories.
13082   hardcode_action=unsupported
13083 fi
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13085 $as_echo "$hardcode_action" >&6; }
13086
13087 if test "$hardcode_action" = relink ||
13088    test "$inherit_rpath" = yes; then
13089   # Fast installation is not supported
13090   enable_fast_install=no
13091 elif test "$shlibpath_overrides_runpath" = yes ||
13092      test "$enable_shared" = no; then
13093   # Fast installation is not necessary
13094   enable_fast_install=needless
13095 fi
13096
13097
13098
13099
13100
13101
13102   if test "x$enable_dlopen" != xyes; then
13103   enable_dlopen=unknown
13104   enable_dlopen_self=unknown
13105   enable_dlopen_self_static=unknown
13106 else
13107   lt_cv_dlopen=no
13108   lt_cv_dlopen_libs=
13109
13110   case $host_os in
13111   beos*)
13112     lt_cv_dlopen="load_add_on"
13113     lt_cv_dlopen_libs=
13114     lt_cv_dlopen_self=yes
13115     ;;
13116
13117   mingw* | pw32* | cegcc*)
13118     lt_cv_dlopen="LoadLibrary"
13119     lt_cv_dlopen_libs=
13120     ;;
13121
13122   cygwin*)
13123     lt_cv_dlopen="dlopen"
13124     lt_cv_dlopen_libs=
13125     ;;
13126
13127   darwin*)
13128   # if libdl is installed we need to link against it
13129     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13130 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13131 if ${ac_cv_lib_dl_dlopen+:} false; then :
13132   $as_echo_n "(cached) " >&6
13133 else
13134   ac_check_lib_save_LIBS=$LIBS
13135 LIBS="-ldl  $LIBS"
13136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13137 /* end confdefs.h.  */
13138
13139 /* Override any GCC internal prototype to avoid an error.
13140    Use char because int might match the return type of a GCC
13141    builtin and then its argument prototype would still apply.  */
13142 #ifdef __cplusplus
13143 extern "C"
13144 #endif
13145 char dlopen ();
13146 int
13147 main ()
13148 {
13149 return dlopen ();
13150   ;
13151   return 0;
13152 }
13153 _ACEOF
13154 if ac_fn_c_try_link "$LINENO"; then :
13155   ac_cv_lib_dl_dlopen=yes
13156 else
13157   ac_cv_lib_dl_dlopen=no
13158 fi
13159 rm -f core conftest.err conftest.$ac_objext \
13160     conftest$ac_exeext conftest.$ac_ext
13161 LIBS=$ac_check_lib_save_LIBS
13162 fi
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13164 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13165 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13166   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13167 else
13168
13169     lt_cv_dlopen="dyld"
13170     lt_cv_dlopen_libs=
13171     lt_cv_dlopen_self=yes
13172
13173 fi
13174
13175     ;;
13176
13177   *)
13178     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13179 if test "x$ac_cv_func_shl_load" = xyes; then :
13180   lt_cv_dlopen="shl_load"
13181 else
13182   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13183 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13184 if ${ac_cv_lib_dld_shl_load+:} false; then :
13185   $as_echo_n "(cached) " >&6
13186 else
13187   ac_check_lib_save_LIBS=$LIBS
13188 LIBS="-ldld  $LIBS"
13189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13190 /* end confdefs.h.  */
13191
13192 /* Override any GCC internal prototype to avoid an error.
13193    Use char because int might match the return type of a GCC
13194    builtin and then its argument prototype would still apply.  */
13195 #ifdef __cplusplus
13196 extern "C"
13197 #endif
13198 char shl_load ();
13199 int
13200 main ()
13201 {
13202 return shl_load ();
13203   ;
13204   return 0;
13205 }
13206 _ACEOF
13207 if ac_fn_c_try_link "$LINENO"; then :
13208   ac_cv_lib_dld_shl_load=yes
13209 else
13210   ac_cv_lib_dld_shl_load=no
13211 fi
13212 rm -f core conftest.err conftest.$ac_objext \
13213     conftest$ac_exeext conftest.$ac_ext
13214 LIBS=$ac_check_lib_save_LIBS
13215 fi
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13217 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13218 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13219   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13220 else
13221   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13222 if test "x$ac_cv_func_dlopen" = xyes; then :
13223   lt_cv_dlopen="dlopen"
13224 else
13225   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13226 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13227 if ${ac_cv_lib_dl_dlopen+:} false; then :
13228   $as_echo_n "(cached) " >&6
13229 else
13230   ac_check_lib_save_LIBS=$LIBS
13231 LIBS="-ldl  $LIBS"
13232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13233 /* end confdefs.h.  */
13234
13235 /* Override any GCC internal prototype to avoid an error.
13236    Use char because int might match the return type of a GCC
13237    builtin and then its argument prototype would still apply.  */
13238 #ifdef __cplusplus
13239 extern "C"
13240 #endif
13241 char dlopen ();
13242 int
13243 main ()
13244 {
13245 return dlopen ();
13246   ;
13247   return 0;
13248 }
13249 _ACEOF
13250 if ac_fn_c_try_link "$LINENO"; then :
13251   ac_cv_lib_dl_dlopen=yes
13252 else
13253   ac_cv_lib_dl_dlopen=no
13254 fi
13255 rm -f core conftest.err conftest.$ac_objext \
13256     conftest$ac_exeext conftest.$ac_ext
13257 LIBS=$ac_check_lib_save_LIBS
13258 fi
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13260 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13261 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13262   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13263 else
13264   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13265 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13266 if ${ac_cv_lib_svld_dlopen+:} false; then :
13267   $as_echo_n "(cached) " >&6
13268 else
13269   ac_check_lib_save_LIBS=$LIBS
13270 LIBS="-lsvld  $LIBS"
13271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13272 /* end confdefs.h.  */
13273
13274 /* Override any GCC internal prototype to avoid an error.
13275    Use char because int might match the return type of a GCC
13276    builtin and then its argument prototype would still apply.  */
13277 #ifdef __cplusplus
13278 extern "C"
13279 #endif
13280 char dlopen ();
13281 int
13282 main ()
13283 {
13284 return dlopen ();
13285   ;
13286   return 0;
13287 }
13288 _ACEOF
13289 if ac_fn_c_try_link "$LINENO"; then :
13290   ac_cv_lib_svld_dlopen=yes
13291 else
13292   ac_cv_lib_svld_dlopen=no
13293 fi
13294 rm -f core conftest.err conftest.$ac_objext \
13295     conftest$ac_exeext conftest.$ac_ext
13296 LIBS=$ac_check_lib_save_LIBS
13297 fi
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13299 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13300 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13301   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13302 else
13303   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13304 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13305 if ${ac_cv_lib_dld_dld_link+:} false; then :
13306   $as_echo_n "(cached) " >&6
13307 else
13308   ac_check_lib_save_LIBS=$LIBS
13309 LIBS="-ldld  $LIBS"
13310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13311 /* end confdefs.h.  */
13312
13313 /* Override any GCC internal prototype to avoid an error.
13314    Use char because int might match the return type of a GCC
13315    builtin and then its argument prototype would still apply.  */
13316 #ifdef __cplusplus
13317 extern "C"
13318 #endif
13319 char dld_link ();
13320 int
13321 main ()
13322 {
13323 return dld_link ();
13324   ;
13325   return 0;
13326 }
13327 _ACEOF
13328 if ac_fn_c_try_link "$LINENO"; then :
13329   ac_cv_lib_dld_dld_link=yes
13330 else
13331   ac_cv_lib_dld_dld_link=no
13332 fi
13333 rm -f core conftest.err conftest.$ac_objext \
13334     conftest$ac_exeext conftest.$ac_ext
13335 LIBS=$ac_check_lib_save_LIBS
13336 fi
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13338 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13339 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13340   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13341 fi
13342
13343
13344 fi
13345
13346
13347 fi
13348
13349
13350 fi
13351
13352
13353 fi
13354
13355
13356 fi
13357
13358     ;;
13359   esac
13360
13361   if test "x$lt_cv_dlopen" != xno; then
13362     enable_dlopen=yes
13363   else
13364     enable_dlopen=no
13365   fi
13366
13367   case $lt_cv_dlopen in
13368   dlopen)
13369     save_CPPFLAGS="$CPPFLAGS"
13370     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13371
13372     save_LDFLAGS="$LDFLAGS"
13373     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13374
13375     save_LIBS="$LIBS"
13376     LIBS="$lt_cv_dlopen_libs $LIBS"
13377
13378     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13379 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13380 if ${lt_cv_dlopen_self+:} false; then :
13381   $as_echo_n "(cached) " >&6
13382 else
13383           if test "$cross_compiling" = yes; then :
13384   lt_cv_dlopen_self=cross
13385 else
13386   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13387   lt_status=$lt_dlunknown
13388   cat > conftest.$ac_ext <<_LT_EOF
13389 #line $LINENO "configure"
13390 #include "confdefs.h"
13391
13392 #if HAVE_DLFCN_H
13393 #include <dlfcn.h>
13394 #endif
13395
13396 #include <stdio.h>
13397
13398 #ifdef RTLD_GLOBAL
13399 #  define LT_DLGLOBAL           RTLD_GLOBAL
13400 #else
13401 #  ifdef DL_GLOBAL
13402 #    define LT_DLGLOBAL         DL_GLOBAL
13403 #  else
13404 #    define LT_DLGLOBAL         0
13405 #  endif
13406 #endif
13407
13408 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13409    find out it does not work in some platform. */
13410 #ifndef LT_DLLAZY_OR_NOW
13411 #  ifdef RTLD_LAZY
13412 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13413 #  else
13414 #    ifdef DL_LAZY
13415 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13416 #    else
13417 #      ifdef RTLD_NOW
13418 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13419 #      else
13420 #        ifdef DL_NOW
13421 #          define LT_DLLAZY_OR_NOW      DL_NOW
13422 #        else
13423 #          define LT_DLLAZY_OR_NOW      0
13424 #        endif
13425 #      endif
13426 #    endif
13427 #  endif
13428 #endif
13429
13430 /* When -fvisbility=hidden is used, assume the code has been annotated
13431    correspondingly for the symbols needed.  */
13432 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13433 int fnord () __attribute__((visibility("default")));
13434 #endif
13435
13436 int fnord () { return 42; }
13437 int main ()
13438 {
13439   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13440   int status = $lt_dlunknown;
13441
13442   if (self)
13443     {
13444       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13445       else
13446         {
13447           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13448           else puts (dlerror ());
13449         }
13450       /* dlclose (self); */
13451     }
13452   else
13453     puts (dlerror ());
13454
13455   return status;
13456 }
13457 _LT_EOF
13458   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13459   (eval $ac_link) 2>&5
13460   ac_status=$?
13461   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13462   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13463     (./conftest; exit; ) >&5 2>/dev/null
13464     lt_status=$?
13465     case x$lt_status in
13466       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13467       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13468       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13469     esac
13470   else :
13471     # compilation failed
13472     lt_cv_dlopen_self=no
13473   fi
13474 fi
13475 rm -fr conftest*
13476
13477
13478 fi
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13480 $as_echo "$lt_cv_dlopen_self" >&6; }
13481
13482     if test "x$lt_cv_dlopen_self" = xyes; then
13483       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13484       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13485 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13486 if ${lt_cv_dlopen_self_static+:} false; then :
13487   $as_echo_n "(cached) " >&6
13488 else
13489           if test "$cross_compiling" = yes; then :
13490   lt_cv_dlopen_self_static=cross
13491 else
13492   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13493   lt_status=$lt_dlunknown
13494   cat > conftest.$ac_ext <<_LT_EOF
13495 #line $LINENO "configure"
13496 #include "confdefs.h"
13497
13498 #if HAVE_DLFCN_H
13499 #include <dlfcn.h>
13500 #endif
13501
13502 #include <stdio.h>
13503
13504 #ifdef RTLD_GLOBAL
13505 #  define LT_DLGLOBAL           RTLD_GLOBAL
13506 #else
13507 #  ifdef DL_GLOBAL
13508 #    define LT_DLGLOBAL         DL_GLOBAL
13509 #  else
13510 #    define LT_DLGLOBAL         0
13511 #  endif
13512 #endif
13513
13514 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13515    find out it does not work in some platform. */
13516 #ifndef LT_DLLAZY_OR_NOW
13517 #  ifdef RTLD_LAZY
13518 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13519 #  else
13520 #    ifdef DL_LAZY
13521 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13522 #    else
13523 #      ifdef RTLD_NOW
13524 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13525 #      else
13526 #        ifdef DL_NOW
13527 #          define LT_DLLAZY_OR_NOW      DL_NOW
13528 #        else
13529 #          define LT_DLLAZY_OR_NOW      0
13530 #        endif
13531 #      endif
13532 #    endif
13533 #  endif
13534 #endif
13535
13536 /* When -fvisbility=hidden is used, assume the code has been annotated
13537    correspondingly for the symbols needed.  */
13538 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13539 int fnord () __attribute__((visibility("default")));
13540 #endif
13541
13542 int fnord () { return 42; }
13543 int main ()
13544 {
13545   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13546   int status = $lt_dlunknown;
13547
13548   if (self)
13549     {
13550       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13551       else
13552         {
13553           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13554           else puts (dlerror ());
13555         }
13556       /* dlclose (self); */
13557     }
13558   else
13559     puts (dlerror ());
13560
13561   return status;
13562 }
13563 _LT_EOF
13564   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13565   (eval $ac_link) 2>&5
13566   ac_status=$?
13567   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13568   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13569     (./conftest; exit; ) >&5 2>/dev/null
13570     lt_status=$?
13571     case x$lt_status in
13572       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13573       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13574       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13575     esac
13576   else :
13577     # compilation failed
13578     lt_cv_dlopen_self_static=no
13579   fi
13580 fi
13581 rm -fr conftest*
13582
13583
13584 fi
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13586 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13587     fi
13588
13589     CPPFLAGS="$save_CPPFLAGS"
13590     LDFLAGS="$save_LDFLAGS"
13591     LIBS="$save_LIBS"
13592     ;;
13593   esac
13594
13595   case $lt_cv_dlopen_self in
13596   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13597   *) enable_dlopen_self=unknown ;;
13598   esac
13599
13600   case $lt_cv_dlopen_self_static in
13601   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13602   *) enable_dlopen_self_static=unknown ;;
13603   esac
13604 fi
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622 striplib=
13623 old_striplib=
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13625 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13626 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13627   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13628   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13630 $as_echo "yes" >&6; }
13631 else
13632 # FIXME - insert some real tests, host_os isn't really good enough
13633   case $host_os in
13634   darwin*)
13635     if test -n "$STRIP" ; then
13636       striplib="$STRIP -x"
13637       old_striplib="$STRIP -S"
13638       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13639 $as_echo "yes" >&6; }
13640     else
13641       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13642 $as_echo "no" >&6; }
13643     fi
13644     ;;
13645   *)
13646     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13647 $as_echo "no" >&6; }
13648     ;;
13649   esac
13650 fi
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663   # Report which library types will actually be built
13664   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13665 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13667 $as_echo "$can_build_shared" >&6; }
13668
13669   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13670 $as_echo_n "checking whether to build shared libraries... " >&6; }
13671   test "$can_build_shared" = "no" && enable_shared=no
13672
13673   # On AIX, shared libraries and static libraries use the same namespace, and
13674   # are all built from PIC.
13675   case $host_os in
13676   aix3*)
13677     test "$enable_shared" = yes && enable_static=no
13678     if test -n "$RANLIB"; then
13679       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13680       postinstall_cmds='$RANLIB $lib'
13681     fi
13682     ;;
13683
13684   aix[4-9]*)
13685     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13686       test "$enable_shared" = yes && enable_static=no
13687     fi
13688     ;;
13689   esac
13690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13691 $as_echo "$enable_shared" >&6; }
13692
13693   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13694 $as_echo_n "checking whether to build static libraries... " >&6; }
13695   # Make sure either enable_shared or enable_static is yes.
13696   test "$enable_shared" = yes || enable_static=yes
13697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13698 $as_echo "$enable_static" >&6; }
13699
13700
13701
13702
13703 fi
13704 ac_ext=c
13705 ac_cpp='$CPP $CPPFLAGS'
13706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13709
13710 CC="$lt_save_CC"
13711
13712       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13713     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13714     (test "X$CXX" != "Xg++"))) ; then
13715   ac_ext=cpp
13716 ac_cpp='$CXXCPP $CPPFLAGS'
13717 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13718 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13719 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13721 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13722 if test -z "$CXXCPP"; then
13723   if ${ac_cv_prog_CXXCPP+:} false; then :
13724   $as_echo_n "(cached) " >&6
13725 else
13726       # Double quotes because CXXCPP needs to be expanded
13727     for CXXCPP in "$CXX -E" "/lib/cpp"
13728     do
13729       ac_preproc_ok=false
13730 for ac_cxx_preproc_warn_flag in '' yes
13731 do
13732   # Use a header file that comes with gcc, so configuring glibc
13733   # with a fresh cross-compiler works.
13734   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13735   # <limits.h> exists even on freestanding compilers.
13736   # On the NeXT, cc -E runs the code through the compiler's parser,
13737   # not just through cpp. "Syntax error" is here to catch this case.
13738   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13739 /* end confdefs.h.  */
13740 #ifdef __STDC__
13741 # include <limits.h>
13742 #else
13743 # include <assert.h>
13744 #endif
13745                      Syntax error
13746 _ACEOF
13747 if ac_fn_cxx_try_cpp "$LINENO"; then :
13748
13749 else
13750   # Broken: fails on valid input.
13751 continue
13752 fi
13753 rm -f conftest.err conftest.i conftest.$ac_ext
13754
13755   # OK, works on sane cases.  Now check whether nonexistent headers
13756   # can be detected and how.
13757   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13758 /* end confdefs.h.  */
13759 #include <ac_nonexistent.h>
13760 _ACEOF
13761 if ac_fn_cxx_try_cpp "$LINENO"; then :
13762   # Broken: success on invalid input.
13763 continue
13764 else
13765   # Passes both tests.
13766 ac_preproc_ok=:
13767 break
13768 fi
13769 rm -f conftest.err conftest.i conftest.$ac_ext
13770
13771 done
13772 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13773 rm -f conftest.i conftest.err conftest.$ac_ext
13774 if $ac_preproc_ok; then :
13775   break
13776 fi
13777
13778     done
13779     ac_cv_prog_CXXCPP=$CXXCPP
13780
13781 fi
13782   CXXCPP=$ac_cv_prog_CXXCPP
13783 else
13784   ac_cv_prog_CXXCPP=$CXXCPP
13785 fi
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13787 $as_echo "$CXXCPP" >&6; }
13788 ac_preproc_ok=false
13789 for ac_cxx_preproc_warn_flag in '' yes
13790 do
13791   # Use a header file that comes with gcc, so configuring glibc
13792   # with a fresh cross-compiler works.
13793   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13794   # <limits.h> exists even on freestanding compilers.
13795   # On the NeXT, cc -E runs the code through the compiler's parser,
13796   # not just through cpp. "Syntax error" is here to catch this case.
13797   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13798 /* end confdefs.h.  */
13799 #ifdef __STDC__
13800 # include <limits.h>
13801 #else
13802 # include <assert.h>
13803 #endif
13804                      Syntax error
13805 _ACEOF
13806 if ac_fn_cxx_try_cpp "$LINENO"; then :
13807
13808 else
13809   # Broken: fails on valid input.
13810 continue
13811 fi
13812 rm -f conftest.err conftest.i conftest.$ac_ext
13813
13814   # OK, works on sane cases.  Now check whether nonexistent headers
13815   # can be detected and how.
13816   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13817 /* end confdefs.h.  */
13818 #include <ac_nonexistent.h>
13819 _ACEOF
13820 if ac_fn_cxx_try_cpp "$LINENO"; then :
13821   # Broken: success on invalid input.
13822 continue
13823 else
13824   # Passes both tests.
13825 ac_preproc_ok=:
13826 break
13827 fi
13828 rm -f conftest.err conftest.i conftest.$ac_ext
13829
13830 done
13831 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13832 rm -f conftest.i conftest.err conftest.$ac_ext
13833 if $ac_preproc_ok; then :
13834
13835 else
13836   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13837 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13838 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13839 See \`config.log' for more details" "$LINENO" 5; }
13840 fi
13841
13842 ac_ext=c
13843 ac_cpp='$CPP $CPPFLAGS'
13844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13847
13848 else
13849   _lt_caught_CXX_error=yes
13850 fi
13851
13852 ac_ext=cpp
13853 ac_cpp='$CXXCPP $CPPFLAGS'
13854 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13855 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13856 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13857
13858 archive_cmds_need_lc_CXX=no
13859 allow_undefined_flag_CXX=
13860 always_export_symbols_CXX=no
13861 archive_expsym_cmds_CXX=
13862 compiler_needs_object_CXX=no
13863 export_dynamic_flag_spec_CXX=
13864 hardcode_direct_CXX=no
13865 hardcode_direct_absolute_CXX=no
13866 hardcode_libdir_flag_spec_CXX=
13867 hardcode_libdir_flag_spec_ld_CXX=
13868 hardcode_libdir_separator_CXX=
13869 hardcode_minus_L_CXX=no
13870 hardcode_shlibpath_var_CXX=unsupported
13871 hardcode_automatic_CXX=no
13872 inherit_rpath_CXX=no
13873 module_cmds_CXX=
13874 module_expsym_cmds_CXX=
13875 link_all_deplibs_CXX=unknown
13876 old_archive_cmds_CXX=$old_archive_cmds
13877 reload_flag_CXX=$reload_flag
13878 reload_cmds_CXX=$reload_cmds
13879 no_undefined_flag_CXX=
13880 whole_archive_flag_spec_CXX=
13881 enable_shared_with_static_runtimes_CXX=no
13882
13883 # Source file extension for C++ test sources.
13884 ac_ext=cpp
13885
13886 # Object file extension for compiled C++ test sources.
13887 objext=o
13888 objext_CXX=$objext
13889
13890 # No sense in running all these tests if we already determined that
13891 # the CXX compiler isn't working.  Some variables (like enable_shared)
13892 # are currently assumed to apply to all compilers on this platform,
13893 # and will be corrupted by setting them based on a non-working compiler.
13894 if test "$_lt_caught_CXX_error" != yes; then
13895   # Code to be used in simple compile tests
13896   lt_simple_compile_test_code="int some_variable = 0;"
13897
13898   # Code to be used in simple link tests
13899   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13900
13901   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13902
13903
13904
13905
13906
13907
13908 # If no C compiler was specified, use CC.
13909 LTCC=${LTCC-"$CC"}
13910
13911 # If no C compiler flags were specified, use CFLAGS.
13912 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13913
13914 # Allow CC to be a program name with arguments.
13915 compiler=$CC
13916
13917
13918   # save warnings/boilerplate of simple test code
13919   ac_outfile=conftest.$ac_objext
13920 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13921 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13922 _lt_compiler_boilerplate=`cat conftest.err`
13923 $RM conftest*
13924
13925   ac_outfile=conftest.$ac_objext
13926 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13927 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13928 _lt_linker_boilerplate=`cat conftest.err`
13929 $RM -r conftest*
13930
13931
13932   # Allow CC to be a program name with arguments.
13933   lt_save_CC=$CC
13934   lt_save_CFLAGS=$CFLAGS
13935   lt_save_LD=$LD
13936   lt_save_GCC=$GCC
13937   GCC=$GXX
13938   lt_save_with_gnu_ld=$with_gnu_ld
13939   lt_save_path_LD=$lt_cv_path_LD
13940   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13941     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13942   else
13943     $as_unset lt_cv_prog_gnu_ld
13944   fi
13945   if test -n "${lt_cv_path_LDCXX+set}"; then
13946     lt_cv_path_LD=$lt_cv_path_LDCXX
13947   else
13948     $as_unset lt_cv_path_LD
13949   fi
13950   test -z "${LDCXX+set}" || LD=$LDCXX
13951   CC=${CXX-"c++"}
13952   CFLAGS=$CXXFLAGS
13953   compiler=$CC
13954   compiler_CXX=$CC
13955   for cc_temp in $compiler""; do
13956   case $cc_temp in
13957     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13958     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13959     \-*) ;;
13960     *) break;;
13961   esac
13962 done
13963 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13964
13965
13966   if test -n "$compiler"; then
13967     # We don't want -fno-exception when compiling C++ code, so set the
13968     # no_builtin_flag separately
13969     if test "$GXX" = yes; then
13970       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13971     else
13972       lt_prog_compiler_no_builtin_flag_CXX=
13973     fi
13974
13975     if test "$GXX" = yes; then
13976       # Set up default GNU C++ configuration
13977
13978
13979
13980 # Check whether --with-gnu-ld was given.
13981 if test "${with_gnu_ld+set}" = set; then :
13982   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13983 else
13984   with_gnu_ld=no
13985 fi
13986
13987 ac_prog=ld
13988 if test "$GCC" = yes; then
13989   # Check if gcc -print-prog-name=ld gives a path.
13990   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13991 $as_echo_n "checking for ld used by $CC... " >&6; }
13992   case $host in
13993   *-*-mingw*)
13994     # gcc leaves a trailing carriage return which upsets mingw
13995     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13996   *)
13997     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13998   esac
13999   case $ac_prog in
14000     # Accept absolute paths.
14001     [\\/]* | ?:[\\/]*)
14002       re_direlt='/[^/][^/]*/\.\./'
14003       # Canonicalize the pathname of ld
14004       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14005       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14006         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14007       done
14008       test -z "$LD" && LD="$ac_prog"
14009       ;;
14010   "")
14011     # If it fails, then pretend we aren't using GCC.
14012     ac_prog=ld
14013     ;;
14014   *)
14015     # If it is relative, then search for the first ld in PATH.
14016     with_gnu_ld=unknown
14017     ;;
14018   esac
14019 elif test "$with_gnu_ld" = yes; then
14020   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14021 $as_echo_n "checking for GNU ld... " >&6; }
14022 else
14023   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14024 $as_echo_n "checking for non-GNU ld... " >&6; }
14025 fi
14026 if ${lt_cv_path_LD+:} false; then :
14027   $as_echo_n "(cached) " >&6
14028 else
14029   if test -z "$LD"; then
14030   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14031   for ac_dir in $PATH; do
14032     IFS="$lt_save_ifs"
14033     test -z "$ac_dir" && ac_dir=.
14034     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14035       lt_cv_path_LD="$ac_dir/$ac_prog"
14036       # Check to see if the program is GNU ld.  I'd rather use --version,
14037       # but apparently some variants of GNU ld only accept -v.
14038       # Break only if it was the GNU/non-GNU ld that we prefer.
14039       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14040       *GNU* | *'with BFD'*)
14041         test "$with_gnu_ld" != no && break
14042         ;;
14043       *)
14044         test "$with_gnu_ld" != yes && break
14045         ;;
14046       esac
14047     fi
14048   done
14049   IFS="$lt_save_ifs"
14050 else
14051   lt_cv_path_LD="$LD" # Let the user override the test with a path.
14052 fi
14053 fi
14054
14055 LD="$lt_cv_path_LD"
14056 if test -n "$LD"; then
14057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14058 $as_echo "$LD" >&6; }
14059 else
14060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14061 $as_echo "no" >&6; }
14062 fi
14063 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14065 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14066 if ${lt_cv_prog_gnu_ld+:} false; then :
14067   $as_echo_n "(cached) " >&6
14068 else
14069   # I'd rather use --version here, but apparently some GNU lds only accept -v.
14070 case `$LD -v 2>&1 </dev/null` in
14071 *GNU* | *'with BFD'*)
14072   lt_cv_prog_gnu_ld=yes
14073   ;;
14074 *)
14075   lt_cv_prog_gnu_ld=no
14076   ;;
14077 esac
14078 fi
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14080 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14081 with_gnu_ld=$lt_cv_prog_gnu_ld
14082
14083
14084
14085
14086
14087
14088
14089       # Check if GNU C++ uses GNU ld as the underlying linker, since the
14090       # archiving commands below assume that GNU ld is being used.
14091       if test "$with_gnu_ld" = yes; then
14092         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14093         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'
14094
14095         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14096         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14097
14098         # If archive_cmds runs LD, not CC, wlarc should be empty
14099         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14100         #     investigate it a little bit more. (MM)
14101         wlarc='${wl}'
14102
14103         # ancient GNU ld didn't support --whole-archive et. al.
14104         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14105           $GREP 'no-whole-archive' > /dev/null; then
14106           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14107         else
14108           whole_archive_flag_spec_CXX=
14109         fi
14110       else
14111         with_gnu_ld=no
14112         wlarc=
14113
14114         # A generic and very simple default shared library creation
14115         # command for GNU C++ for the case where it uses the native
14116         # linker, instead of GNU ld.  If possible, this setting should
14117         # overridden to take advantage of the native linker features on
14118         # the platform it is being used on.
14119         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14120       fi
14121
14122       # Commands to make compiler produce verbose output that lists
14123       # what "hidden" libraries, object files and flags are used when
14124       # linking a shared library.
14125       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14126
14127     else
14128       GXX=no
14129       with_gnu_ld=no
14130       wlarc=
14131     fi
14132
14133     # PORTME: fill in a description of your system's C++ link characteristics
14134     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14135 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14136     ld_shlibs_CXX=yes
14137     case $host_os in
14138       aix3*)
14139         # FIXME: insert proper C++ library support
14140         ld_shlibs_CXX=no
14141         ;;
14142       aix[4-9]*)
14143         if test "$host_cpu" = ia64; then
14144           # On IA64, the linker does run time linking by default, so we don't
14145           # have to do anything special.
14146           aix_use_runtimelinking=no
14147           exp_sym_flag='-Bexport'
14148           no_entry_flag=""
14149         else
14150           aix_use_runtimelinking=no
14151
14152           # Test if we are trying to use run time linking or normal
14153           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14154           # need to do runtime linking.
14155           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14156             for ld_flag in $LDFLAGS; do
14157               case $ld_flag in
14158               *-brtl*)
14159                 aix_use_runtimelinking=yes
14160                 break
14161                 ;;
14162               esac
14163             done
14164             ;;
14165           esac
14166
14167           exp_sym_flag='-bexport'
14168           no_entry_flag='-bnoentry'
14169         fi
14170
14171         # When large executables or shared objects are built, AIX ld can
14172         # have problems creating the table of contents.  If linking a library
14173         # or program results in "error TOC overflow" add -mminimal-toc to
14174         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14175         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14176
14177         archive_cmds_CXX=''
14178         hardcode_direct_CXX=yes
14179         hardcode_direct_absolute_CXX=yes
14180         hardcode_libdir_separator_CXX=':'
14181         link_all_deplibs_CXX=yes
14182         file_list_spec_CXX='${wl}-f,'
14183
14184         if test "$GXX" = yes; then
14185           case $host_os in aix4.[012]|aix4.[012].*)
14186           # We only want to do this on AIX 4.2 and lower, the check
14187           # below for broken collect2 doesn't work under 4.3+
14188           collect2name=`${CC} -print-prog-name=collect2`
14189           if test -f "$collect2name" &&
14190              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14191           then
14192             # We have reworked collect2
14193             :
14194           else
14195             # We have old collect2
14196             hardcode_direct_CXX=unsupported
14197             # It fails to find uninstalled libraries when the uninstalled
14198             # path is not listed in the libpath.  Setting hardcode_minus_L
14199             # to unsupported forces relinking
14200             hardcode_minus_L_CXX=yes
14201             hardcode_libdir_flag_spec_CXX='-L$libdir'
14202             hardcode_libdir_separator_CXX=
14203           fi
14204           esac
14205           shared_flag='-shared'
14206           if test "$aix_use_runtimelinking" = yes; then
14207             shared_flag="$shared_flag "'${wl}-G'
14208           fi
14209         else
14210           # not using gcc
14211           if test "$host_cpu" = ia64; then
14212           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14213           # chokes on -Wl,-G. The following line is correct:
14214           shared_flag='-G'
14215           else
14216             if test "$aix_use_runtimelinking" = yes; then
14217               shared_flag='${wl}-G'
14218             else
14219               shared_flag='${wl}-bM:SRE'
14220             fi
14221           fi
14222         fi
14223
14224         export_dynamic_flag_spec_CXX='${wl}-bexpall'
14225         # It seems that -bexpall does not export symbols beginning with
14226         # underscore (_), so it is better to generate a list of symbols to
14227         # export.
14228         always_export_symbols_CXX=yes
14229         if test "$aix_use_runtimelinking" = yes; then
14230           # Warning - without using the other runtime loading flags (-brtl),
14231           # -berok will link without error, but may produce a broken library.
14232           allow_undefined_flag_CXX='-berok'
14233           # Determine the default libpath from the value encoded in an empty
14234           # executable.
14235           if test "${lt_cv_aix_libpath+set}" = set; then
14236   aix_libpath=$lt_cv_aix_libpath
14237 else
14238   if ${lt_cv_aix_libpath__CXX+:} false; then :
14239   $as_echo_n "(cached) " >&6
14240 else
14241   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14242 /* end confdefs.h.  */
14243
14244 int
14245 main ()
14246 {
14247
14248   ;
14249   return 0;
14250 }
14251 _ACEOF
14252 if ac_fn_cxx_try_link "$LINENO"; then :
14253
14254   lt_aix_libpath_sed='
14255       /Import File Strings/,/^$/ {
14256           /^0/ {
14257               s/^0  *\([^ ]*\) *$/\1/
14258               p
14259           }
14260       }'
14261   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14262   # Check for a 64-bit object if we didn't find anything.
14263   if test -z "$lt_cv_aix_libpath__CXX"; then
14264     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14265   fi
14266 fi
14267 rm -f core conftest.err conftest.$ac_objext \
14268     conftest$ac_exeext conftest.$ac_ext
14269   if test -z "$lt_cv_aix_libpath__CXX"; then
14270     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14271   fi
14272
14273 fi
14274
14275   aix_libpath=$lt_cv_aix_libpath__CXX
14276 fi
14277
14278           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14279
14280           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"
14281         else
14282           if test "$host_cpu" = ia64; then
14283             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14284             allow_undefined_flag_CXX="-z nodefs"
14285             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"
14286           else
14287             # Determine the default libpath from the value encoded in an
14288             # empty executable.
14289             if test "${lt_cv_aix_libpath+set}" = set; then
14290   aix_libpath=$lt_cv_aix_libpath
14291 else
14292   if ${lt_cv_aix_libpath__CXX+:} false; then :
14293   $as_echo_n "(cached) " >&6
14294 else
14295   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14296 /* end confdefs.h.  */
14297
14298 int
14299 main ()
14300 {
14301
14302   ;
14303   return 0;
14304 }
14305 _ACEOF
14306 if ac_fn_cxx_try_link "$LINENO"; then :
14307
14308   lt_aix_libpath_sed='
14309       /Import File Strings/,/^$/ {
14310           /^0/ {
14311               s/^0  *\([^ ]*\) *$/\1/
14312               p
14313           }
14314       }'
14315   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14316   # Check for a 64-bit object if we didn't find anything.
14317   if test -z "$lt_cv_aix_libpath__CXX"; then
14318     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14319   fi
14320 fi
14321 rm -f core conftest.err conftest.$ac_objext \
14322     conftest$ac_exeext conftest.$ac_ext
14323   if test -z "$lt_cv_aix_libpath__CXX"; then
14324     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14325   fi
14326
14327 fi
14328
14329   aix_libpath=$lt_cv_aix_libpath__CXX
14330 fi
14331
14332             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14333             # Warning - without using the other run time loading flags,
14334             # -berok will link without error, but may produce a broken library.
14335             no_undefined_flag_CXX=' ${wl}-bernotok'
14336             allow_undefined_flag_CXX=' ${wl}-berok'
14337             if test "$with_gnu_ld" = yes; then
14338               # We only use this code for GNU lds that support --whole-archive.
14339               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14340             else
14341               # Exported symbols can be pulled into shared objects from archives
14342               whole_archive_flag_spec_CXX='$convenience'
14343             fi
14344             archive_cmds_need_lc_CXX=yes
14345             # This is similar to how AIX traditionally builds its shared
14346             # libraries.
14347             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'
14348           fi
14349         fi
14350         ;;
14351
14352       beos*)
14353         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14354           allow_undefined_flag_CXX=unsupported
14355           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14356           # support --undefined.  This deserves some investigation.  FIXME
14357           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14358         else
14359           ld_shlibs_CXX=no
14360         fi
14361         ;;
14362
14363       chorus*)
14364         case $cc_basename in
14365           *)
14366           # FIXME: insert proper C++ library support
14367           ld_shlibs_CXX=no
14368           ;;
14369         esac
14370         ;;
14371
14372       cygwin* | mingw* | pw32* | cegcc*)
14373         case $GXX,$cc_basename in
14374         ,cl* | no,cl*)
14375           # Native MSVC
14376           # hardcode_libdir_flag_spec is actually meaningless, as there is
14377           # no search path for DLLs.
14378           hardcode_libdir_flag_spec_CXX=' '
14379           allow_undefined_flag_CXX=unsupported
14380           always_export_symbols_CXX=yes
14381           file_list_spec_CXX='@'
14382           # Tell ltmain to make .lib files, not .a files.
14383           libext=lib
14384           # Tell ltmain to make .dll files, not .so files.
14385           shrext_cmds=".dll"
14386           # FIXME: Setting linknames here is a bad hack.
14387           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14388           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14389               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14390             else
14391               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14392             fi~
14393             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14394             linknames='
14395           # The linker will not automatically build a static lib if we build a DLL.
14396           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14397           enable_shared_with_static_runtimes_CXX=yes
14398           # Don't use ranlib
14399           old_postinstall_cmds_CXX='chmod 644 $oldlib'
14400           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14401             lt_tool_outputfile="@TOOL_OUTPUT@"~
14402             case $lt_outputfile in
14403               *.exe|*.EXE) ;;
14404               *)
14405                 lt_outputfile="$lt_outputfile.exe"
14406                 lt_tool_outputfile="$lt_tool_outputfile.exe"
14407                 ;;
14408             esac~
14409             func_to_tool_file "$lt_outputfile"~
14410             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14411               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14412               $RM "$lt_outputfile.manifest";
14413             fi'
14414           ;;
14415         *)
14416           # g++
14417           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14418           # as there is no search path for DLLs.
14419           hardcode_libdir_flag_spec_CXX='-L$libdir'
14420           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
14421           allow_undefined_flag_CXX=unsupported
14422           always_export_symbols_CXX=no
14423           enable_shared_with_static_runtimes_CXX=yes
14424
14425           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14426             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'
14427             # If the export-symbols file already is a .def file (1st line
14428             # is EXPORTS), use it as is; otherwise, prepend...
14429             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14430               cp $export_symbols $output_objdir/$soname.def;
14431             else
14432               echo EXPORTS > $output_objdir/$soname.def;
14433               cat $export_symbols >> $output_objdir/$soname.def;
14434             fi~
14435             $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'
14436           else
14437             ld_shlibs_CXX=no
14438           fi
14439           ;;
14440         esac
14441         ;;
14442       darwin* | rhapsody*)
14443
14444
14445   archive_cmds_need_lc_CXX=no
14446   hardcode_direct_CXX=no
14447   hardcode_automatic_CXX=yes
14448   hardcode_shlibpath_var_CXX=unsupported
14449   if test "$lt_cv_ld_force_load" = "yes"; then
14450     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\"`'
14451   else
14452     whole_archive_flag_spec_CXX=''
14453   fi
14454   link_all_deplibs_CXX=yes
14455   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14456   case $cc_basename in
14457      ifort*) _lt_dar_can_shared=yes ;;
14458      *) _lt_dar_can_shared=$GCC ;;
14459   esac
14460   if test "$_lt_dar_can_shared" = "yes"; then
14461     output_verbose_link_cmd=func_echo_all
14462     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}"
14463     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14464     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}"
14465     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}"
14466        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14467       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}"
14468       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}"
14469     fi
14470
14471   else
14472   ld_shlibs_CXX=no
14473   fi
14474
14475         ;;
14476
14477       dgux*)
14478         case $cc_basename in
14479           ec++*)
14480             # FIXME: insert proper C++ library support
14481             ld_shlibs_CXX=no
14482             ;;
14483           ghcx*)
14484             # Green Hills C++ Compiler
14485             # FIXME: insert proper C++ library support
14486             ld_shlibs_CXX=no
14487             ;;
14488           *)
14489             # FIXME: insert proper C++ library support
14490             ld_shlibs_CXX=no
14491             ;;
14492         esac
14493         ;;
14494
14495       freebsd[12]*)
14496         # C++ shared libraries reported to be fairly broken before
14497         # switch to ELF
14498         ld_shlibs_CXX=no
14499         ;;
14500
14501       freebsd-elf*)
14502         archive_cmds_need_lc_CXX=no
14503         ;;
14504
14505       freebsd* | dragonfly*)
14506         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14507         # conventions
14508         ld_shlibs_CXX=yes
14509         ;;
14510
14511       gnu*)
14512         ;;
14513
14514       haiku*)
14515         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14516         link_all_deplibs_CXX=yes
14517         ;;
14518
14519       hpux9*)
14520         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14521         hardcode_libdir_separator_CXX=:
14522         export_dynamic_flag_spec_CXX='${wl}-E'
14523         hardcode_direct_CXX=yes
14524         hardcode_minus_L_CXX=yes # Not in the search PATH,
14525                                              # but as the default
14526                                              # location of the library.
14527
14528         case $cc_basename in
14529           CC*)
14530             # FIXME: insert proper C++ library support
14531             ld_shlibs_CXX=no
14532             ;;
14533           aCC*)
14534             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'
14535             # Commands to make compiler produce verbose output that lists
14536             # what "hidden" libraries, object files and flags are used when
14537             # linking a shared library.
14538             #
14539             # There doesn't appear to be a way to prevent this compiler from
14540             # explicitly linking system object files so we need to strip them
14541             # from the output so that they don't get included in the library
14542             # dependencies.
14543             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"'
14544             ;;
14545           *)
14546             if test "$GXX" = yes; then
14547               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'
14548             else
14549               # FIXME: insert proper C++ library support
14550               ld_shlibs_CXX=no
14551             fi
14552             ;;
14553         esac
14554         ;;
14555
14556       hpux10*|hpux11*)
14557         if test $with_gnu_ld = no; then
14558           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14559           hardcode_libdir_separator_CXX=:
14560
14561           case $host_cpu in
14562             hppa*64*|ia64*)
14563               ;;
14564             *)
14565               export_dynamic_flag_spec_CXX='${wl}-E'
14566               ;;
14567           esac
14568         fi
14569         case $host_cpu in
14570           hppa*64*|ia64*)
14571             hardcode_direct_CXX=no
14572             hardcode_shlibpath_var_CXX=no
14573             ;;
14574           *)
14575             hardcode_direct_CXX=yes
14576             hardcode_direct_absolute_CXX=yes
14577             hardcode_minus_L_CXX=yes # Not in the search PATH,
14578                                                  # but as the default
14579                                                  # location of the library.
14580             ;;
14581         esac
14582
14583         case $cc_basename in
14584           CC*)
14585             # FIXME: insert proper C++ library support
14586             ld_shlibs_CXX=no
14587             ;;
14588           aCC*)
14589             case $host_cpu in
14590               hppa*64*)
14591                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14592                 ;;
14593               ia64*)
14594                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14595                 ;;
14596               *)
14597                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14598                 ;;
14599             esac
14600             # Commands to make compiler produce verbose output that lists
14601             # what "hidden" libraries, object files and flags are used when
14602             # linking a shared library.
14603             #
14604             # There doesn't appear to be a way to prevent this compiler from
14605             # explicitly linking system object files so we need to strip them
14606             # from the output so that they don't get included in the library
14607             # dependencies.
14608             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"'
14609             ;;
14610           *)
14611             if test "$GXX" = yes; then
14612               if test $with_gnu_ld = no; then
14613                 case $host_cpu in
14614                   hppa*64*)
14615                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14616                     ;;
14617                   ia64*)
14618                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14619                     ;;
14620                   *)
14621                     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'
14622                     ;;
14623                 esac
14624               fi
14625             else
14626               # FIXME: insert proper C++ library support
14627               ld_shlibs_CXX=no
14628             fi
14629             ;;
14630         esac
14631         ;;
14632
14633       interix[3-9]*)
14634         hardcode_direct_CXX=no
14635         hardcode_shlibpath_var_CXX=no
14636         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14637         export_dynamic_flag_spec_CXX='${wl}-E'
14638         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14639         # Instead, shared libraries are loaded at an image base (0x10000000 by
14640         # default) and relocated if they conflict, which is a slow very memory
14641         # consuming and fragmenting process.  To avoid this, we pick a random,
14642         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14643         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14644         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'
14645         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'
14646         ;;
14647       irix5* | irix6*)
14648         case $cc_basename in
14649           CC*)
14650             # SGI C++
14651             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'
14652
14653             # Archives containing C++ object files must be created using
14654             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14655             # necessary to make sure instantiated templates are included
14656             # in the archive.
14657             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14658             ;;
14659           *)
14660             if test "$GXX" = yes; then
14661               if test "$with_gnu_ld" = no; then
14662                 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'
14663               else
14664                 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'
14665               fi
14666             fi
14667             link_all_deplibs_CXX=yes
14668             ;;
14669         esac
14670         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14671         hardcode_libdir_separator_CXX=:
14672         inherit_rpath_CXX=yes
14673         ;;
14674
14675       linux* | k*bsd*-gnu | kopensolaris*-gnu)
14676         case $cc_basename in
14677           KCC*)
14678             # Kuck and Associates, Inc. (KAI) C++ Compiler
14679
14680             # KCC will only create a shared library if the output file
14681             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14682             # to its proper name (with version) after linking.
14683             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'
14684             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'
14685             # Commands to make compiler produce verbose output that lists
14686             # what "hidden" libraries, object files and flags are used when
14687             # linking a shared library.
14688             #
14689             # There doesn't appear to be a way to prevent this compiler from
14690             # explicitly linking system object files so we need to strip them
14691             # from the output so that they don't get included in the library
14692             # dependencies.
14693             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"'
14694
14695             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14696             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14697
14698             # Archives containing C++ object files must be created using
14699             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14700             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14701             ;;
14702           icpc* | ecpc* )
14703             # Intel C++
14704             with_gnu_ld=yes
14705             # version 8.0 and above of icpc choke on multiply defined symbols
14706             # if we add $predep_objects and $postdep_objects, however 7.1 and
14707             # earlier do not add the objects themselves.
14708             case `$CC -V 2>&1` in
14709               *"Version 7."*)
14710                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14711                 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'
14712                 ;;
14713               *)  # Version 8.0 or newer
14714                 tmp_idyn=
14715                 case $host_cpu in
14716                   ia64*) tmp_idyn=' -i_dynamic';;
14717                 esac
14718                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14719                 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'
14720                 ;;
14721             esac
14722             archive_cmds_need_lc_CXX=no
14723             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14724             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14725             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14726             ;;
14727           pgCC* | pgcpp*)
14728             # Portland Group C++ compiler
14729             case `$CC -V` in
14730             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14731               prelink_cmds_CXX='tpldir=Template.dir~
14732                 rm -rf $tpldir~
14733                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14734                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14735               old_archive_cmds_CXX='tpldir=Template.dir~
14736                 rm -rf $tpldir~
14737                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14738                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14739                 $RANLIB $oldlib'
14740               archive_cmds_CXX='tpldir=Template.dir~
14741                 rm -rf $tpldir~
14742                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14743                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14744               archive_expsym_cmds_CXX='tpldir=Template.dir~
14745                 rm -rf $tpldir~
14746                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14747                 $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'
14748               ;;
14749             *) # Version 6 and above use weak symbols
14750               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14751               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'
14752               ;;
14753             esac
14754
14755             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14756             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14757             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'
14758             ;;
14759           cxx*)
14760             # Compaq C++
14761             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14762             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'
14763
14764             runpath_var=LD_RUN_PATH
14765             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14766             hardcode_libdir_separator_CXX=:
14767
14768             # Commands to make compiler produce verbose output that lists
14769             # what "hidden" libraries, object files and flags are used when
14770             # linking a shared library.
14771             #
14772             # There doesn't appear to be a way to prevent this compiler from
14773             # explicitly linking system object files so we need to strip them
14774             # from the output so that they don't get included in the library
14775             # dependencies.
14776             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'
14777             ;;
14778           xl* | mpixl* | bgxl*)
14779             # IBM XL 8.0 on PPC, with GNU ld
14780             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14781             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14782             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14783             if test "x$supports_anon_versioning" = xyes; then
14784               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14785                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14786                 echo "local: *; };" >> $output_objdir/$libname.ver~
14787                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14788             fi
14789             ;;
14790           *)
14791             case `$CC -V 2>&1 | sed 5q` in
14792             *Sun\ C*)
14793               # Sun C++ 5.9
14794               no_undefined_flag_CXX=' -zdefs'
14795               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14796               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'
14797               hardcode_libdir_flag_spec_CXX='-R$libdir'
14798               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'
14799               compiler_needs_object_CXX=yes
14800
14801               # Not sure whether something based on
14802               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14803               # would be better.
14804               output_verbose_link_cmd='func_echo_all'
14805
14806               # Archives containing C++ object files must be created using
14807               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14808               # necessary to make sure instantiated templates are included
14809               # in the archive.
14810               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14811               ;;
14812             esac
14813             ;;
14814         esac
14815         ;;
14816
14817       lynxos*)
14818         # FIXME: insert proper C++ library support
14819         ld_shlibs_CXX=no
14820         ;;
14821
14822       m88k*)
14823         # FIXME: insert proper C++ library support
14824         ld_shlibs_CXX=no
14825         ;;
14826
14827       mvs*)
14828         case $cc_basename in
14829           cxx*)
14830             # FIXME: insert proper C++ library support
14831             ld_shlibs_CXX=no
14832             ;;
14833           *)
14834             # FIXME: insert proper C++ library support
14835             ld_shlibs_CXX=no
14836             ;;
14837         esac
14838         ;;
14839
14840       netbsd*)
14841         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14842           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14843           wlarc=
14844           hardcode_libdir_flag_spec_CXX='-R$libdir'
14845           hardcode_direct_CXX=yes
14846           hardcode_shlibpath_var_CXX=no
14847         fi
14848         # Workaround some broken pre-1.5 toolchains
14849         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14850         ;;
14851
14852       *nto* | *qnx*)
14853         ld_shlibs_CXX=yes
14854         ;;
14855
14856       openbsd2*)
14857         # C++ shared libraries are fairly broken
14858         ld_shlibs_CXX=no
14859         ;;
14860
14861       openbsd*)
14862         if test -f /usr/libexec/ld.so; then
14863           hardcode_direct_CXX=yes
14864           hardcode_shlibpath_var_CXX=no
14865           hardcode_direct_absolute_CXX=yes
14866           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14867           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14868           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14869             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14870             export_dynamic_flag_spec_CXX='${wl}-E'
14871             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14872           fi
14873           output_verbose_link_cmd=func_echo_all
14874         else
14875           ld_shlibs_CXX=no
14876         fi
14877         ;;
14878
14879       osf3* | osf4* | osf5*)
14880         case $cc_basename in
14881           KCC*)
14882             # Kuck and Associates, Inc. (KAI) C++ Compiler
14883
14884             # KCC will only create a shared library if the output file
14885             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14886             # to its proper name (with version) after linking.
14887             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'
14888
14889             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14890             hardcode_libdir_separator_CXX=:
14891
14892             # Archives containing C++ object files must be created using
14893             # the KAI C++ compiler.
14894             case $host in
14895               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14896               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14897             esac
14898             ;;
14899           RCC*)
14900             # Rational C++ 2.4.1
14901             # FIXME: insert proper C++ library support
14902             ld_shlibs_CXX=no
14903             ;;
14904           cxx*)
14905             case $host in
14906               osf3*)
14907                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14908                 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'
14909                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14910                 ;;
14911               *)
14912                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14913                 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'
14914                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14915                   echo "-hidden">> $lib.exp~
14916                   $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~
14917                   $RM $lib.exp'
14918                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14919                 ;;
14920             esac
14921
14922             hardcode_libdir_separator_CXX=:
14923
14924             # Commands to make compiler produce verbose output that lists
14925             # what "hidden" libraries, object files and flags are used when
14926             # linking a shared library.
14927             #
14928             # There doesn't appear to be a way to prevent this compiler from
14929             # explicitly linking system object files so we need to strip them
14930             # from the output so that they don't get included in the library
14931             # dependencies.
14932             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"'
14933             ;;
14934           *)
14935             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14936               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14937               case $host in
14938                 osf3*)
14939                   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'
14940                   ;;
14941                 *)
14942                   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'
14943                   ;;
14944               esac
14945
14946               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14947               hardcode_libdir_separator_CXX=:
14948
14949               # Commands to make compiler produce verbose output that lists
14950               # what "hidden" libraries, object files and flags are used when
14951               # linking a shared library.
14952               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14953
14954             else
14955               # FIXME: insert proper C++ library support
14956               ld_shlibs_CXX=no
14957             fi
14958             ;;
14959         esac
14960         ;;
14961
14962       psos*)
14963         # FIXME: insert proper C++ library support
14964         ld_shlibs_CXX=no
14965         ;;
14966
14967       sunos4*)
14968         case $cc_basename in
14969           CC*)
14970             # Sun C++ 4.x
14971             # FIXME: insert proper C++ library support
14972             ld_shlibs_CXX=no
14973             ;;
14974           lcc*)
14975             # Lucid
14976             # FIXME: insert proper C++ library support
14977             ld_shlibs_CXX=no
14978             ;;
14979           *)
14980             # FIXME: insert proper C++ library support
14981             ld_shlibs_CXX=no
14982             ;;
14983         esac
14984         ;;
14985
14986       solaris*)
14987         case $cc_basename in
14988           CC* | sunCC*)
14989             # Sun C++ 4.2, 5.x and Centerline C++
14990             archive_cmds_need_lc_CXX=yes
14991             no_undefined_flag_CXX=' -zdefs'
14992             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14993             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14994               $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'
14995
14996             hardcode_libdir_flag_spec_CXX='-R$libdir'
14997             hardcode_shlibpath_var_CXX=no
14998             case $host_os in
14999               solaris2.[0-5] | solaris2.[0-5].*) ;;
15000               *)
15001                 # The compiler driver will combine and reorder linker options,
15002                 # but understands `-z linker_flag'.
15003                 # Supported since Solaris 2.6 (maybe 2.5.1?)
15004                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15005                 ;;
15006             esac
15007             link_all_deplibs_CXX=yes
15008
15009             output_verbose_link_cmd='func_echo_all'
15010
15011             # Archives containing C++ object files must be created using
15012             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15013             # necessary to make sure instantiated templates are included
15014             # in the archive.
15015             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15016             ;;
15017           gcx*)
15018             # Green Hills C++ Compiler
15019             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15020
15021             # The C++ compiler must be used to create the archive.
15022             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15023             ;;
15024           *)
15025             # GNU C++ compiler with Solaris linker
15026             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15027               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15028               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15029                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15030                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15031                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15032
15033                 # Commands to make compiler produce verbose output that lists
15034                 # what "hidden" libraries, object files and flags are used when
15035                 # linking a shared library.
15036                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15037               else
15038                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
15039                 # platform.
15040                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15041                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15042                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15043
15044                 # Commands to make compiler produce verbose output that lists
15045                 # what "hidden" libraries, object files and flags are used when
15046                 # linking a shared library.
15047                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15048               fi
15049
15050               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15051               case $host_os in
15052                 solaris2.[0-5] | solaris2.[0-5].*) ;;
15053                 *)
15054                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15055                   ;;
15056               esac
15057             fi
15058             ;;
15059         esac
15060         ;;
15061
15062     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15063       no_undefined_flag_CXX='${wl}-z,text'
15064       archive_cmds_need_lc_CXX=no
15065       hardcode_shlibpath_var_CXX=no
15066       runpath_var='LD_RUN_PATH'
15067
15068       case $cc_basename in
15069         CC*)
15070           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15071           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15072           ;;
15073         *)
15074           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15075           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15076           ;;
15077       esac
15078       ;;
15079
15080       sysv5* | sco3.2v5* | sco5v6*)
15081         # Note: We can NOT use -z defs as we might desire, because we do not
15082         # link with -lc, and that would cause any symbols used from libc to
15083         # always be unresolved, which means just about no library would
15084         # ever link correctly.  If we're not using GNU ld we use -z text
15085         # though, which does catch some bad symbols but isn't as heavy-handed
15086         # as -z defs.
15087         no_undefined_flag_CXX='${wl}-z,text'
15088         allow_undefined_flag_CXX='${wl}-z,nodefs'
15089         archive_cmds_need_lc_CXX=no
15090         hardcode_shlibpath_var_CXX=no
15091         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
15092         hardcode_libdir_separator_CXX=':'
15093         link_all_deplibs_CXX=yes
15094         export_dynamic_flag_spec_CXX='${wl}-Bexport'
15095         runpath_var='LD_RUN_PATH'
15096
15097         case $cc_basename in
15098           CC*)
15099             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15100             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15101             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15102               '"$old_archive_cmds_CXX"
15103             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15104               '"$reload_cmds_CXX"
15105             ;;
15106           *)
15107             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15108             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15109             ;;
15110         esac
15111       ;;
15112
15113       tandem*)
15114         case $cc_basename in
15115           NCC*)
15116             # NonStop-UX NCC 3.20
15117             # FIXME: insert proper C++ library support
15118             ld_shlibs_CXX=no
15119             ;;
15120           *)
15121             # FIXME: insert proper C++ library support
15122             ld_shlibs_CXX=no
15123             ;;
15124         esac
15125         ;;
15126
15127       vxworks*)
15128         # FIXME: insert proper C++ library support
15129         ld_shlibs_CXX=no
15130         ;;
15131
15132       *)
15133         # FIXME: insert proper C++ library support
15134         ld_shlibs_CXX=no
15135         ;;
15136     esac
15137
15138     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15139 $as_echo "$ld_shlibs_CXX" >&6; }
15140     test "$ld_shlibs_CXX" = no && can_build_shared=no
15141
15142     GCC_CXX="$GXX"
15143     LD_CXX="$LD"
15144
15145     ## CAVEAT EMPTOR:
15146     ## There is no encapsulation within the following macros, do not change
15147     ## the running order or otherwise move them around unless you know exactly
15148     ## what you are doing...
15149     # Dependencies to place before and after the object being linked:
15150 predep_objects_CXX=
15151 postdep_objects_CXX=
15152 predeps_CXX=
15153 postdeps_CXX=
15154 compiler_lib_search_path_CXX=
15155
15156 cat > conftest.$ac_ext <<_LT_EOF
15157 class Foo
15158 {
15159 public:
15160   Foo (void) { a = 0; }
15161 private:
15162   int a;
15163 };
15164 _LT_EOF
15165
15166
15167 _lt_libdeps_save_CFLAGS=$CFLAGS
15168 case "$CC $CFLAGS " in #(
15169 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15170 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15171 esac
15172
15173 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15174   (eval $ac_compile) 2>&5
15175   ac_status=$?
15176   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15177   test $ac_status = 0; }; then
15178   # Parse the compiler output and extract the necessary
15179   # objects, libraries and library flags.
15180
15181   # Sentinel used to keep track of whether or not we are before
15182   # the conftest object file.
15183   pre_test_object_deps_done=no
15184
15185   for p in `eval "$output_verbose_link_cmd"`; do
15186     case ${prev}${p} in
15187
15188     -L* | -R* | -l*)
15189        # Some compilers place space between "-{L,R}" and the path.
15190        # Remove the space.
15191        if test $p = "-L" ||
15192           test $p = "-R"; then
15193          prev=$p
15194          continue
15195        fi
15196
15197        # Expand the sysroot to ease extracting the directories later.
15198        if test -z "$prev"; then
15199          case $p in
15200          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15201          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15202          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15203          esac
15204        fi
15205        case $p in
15206        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15207        esac
15208        if test "$pre_test_object_deps_done" = no; then
15209          case ${prev} in
15210          -L | -R)
15211            # Internal compiler library paths should come after those
15212            # provided the user.  The postdeps already come after the
15213            # user supplied libs so there is no need to process them.
15214            if test -z "$compiler_lib_search_path_CXX"; then
15215              compiler_lib_search_path_CXX="${prev}${p}"
15216            else
15217              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15218            fi
15219            ;;
15220          # The "-l" case would never come before the object being
15221          # linked, so don't bother handling this case.
15222          esac
15223        else
15224          if test -z "$postdeps_CXX"; then
15225            postdeps_CXX="${prev}${p}"
15226          else
15227            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15228          fi
15229        fi
15230        prev=
15231        ;;
15232
15233     *.lto.$objext) ;; # Ignore GCC LTO objects
15234     *.$objext)
15235        # This assumes that the test object file only shows up
15236        # once in the compiler output.
15237        if test "$p" = "conftest.$objext"; then
15238          pre_test_object_deps_done=yes
15239          continue
15240        fi
15241
15242        if test "$pre_test_object_deps_done" = no; then
15243          if test -z "$predep_objects_CXX"; then
15244            predep_objects_CXX="$p"
15245          else
15246            predep_objects_CXX="$predep_objects_CXX $p"
15247          fi
15248        else
15249          if test -z "$postdep_objects_CXX"; then
15250            postdep_objects_CXX="$p"
15251          else
15252            postdep_objects_CXX="$postdep_objects_CXX $p"
15253          fi
15254        fi
15255        ;;
15256
15257     *) ;; # Ignore the rest.
15258
15259     esac
15260   done
15261
15262   # Clean up.
15263   rm -f a.out a.exe
15264 else
15265   echo "libtool.m4: error: problem compiling CXX test program"
15266 fi
15267
15268 $RM -f confest.$objext
15269 CFLAGS=$_lt_libdeps_save_CFLAGS
15270
15271 # PORTME: override above test on systems where it is broken
15272 case $host_os in
15273 interix[3-9]*)
15274   # Interix 3.5 installs completely hosed .la files for C++, so rather than
15275   # hack all around it, let's just trust "g++" to DTRT.
15276   predep_objects_CXX=
15277   postdep_objects_CXX=
15278   postdeps_CXX=
15279   ;;
15280
15281 linux*)
15282   case `$CC -V 2>&1 | sed 5q` in
15283   *Sun\ C*)
15284     # Sun C++ 5.9
15285
15286     # The more standards-conforming stlport4 library is
15287     # incompatible with the Cstd library. Avoid specifying
15288     # it if it's in CXXFLAGS. Ignore libCrun as
15289     # -library=stlport4 depends on it.
15290     case " $CXX $CXXFLAGS " in
15291     *" -library=stlport4 "*)
15292       solaris_use_stlport4=yes
15293       ;;
15294     esac
15295
15296     if test "$solaris_use_stlport4" != yes; then
15297       postdeps_CXX='-library=Cstd -library=Crun'
15298     fi
15299     ;;
15300   esac
15301   ;;
15302
15303 solaris*)
15304   case $cc_basename in
15305   CC* | sunCC*)
15306     # The more standards-conforming stlport4 library is
15307     # incompatible with the Cstd library. Avoid specifying
15308     # it if it's in CXXFLAGS. Ignore libCrun as
15309     # -library=stlport4 depends on it.
15310     case " $CXX $CXXFLAGS " in
15311     *" -library=stlport4 "*)
15312       solaris_use_stlport4=yes
15313       ;;
15314     esac
15315
15316     # Adding this requires a known-good setup of shared libraries for
15317     # Sun compiler versions before 5.6, else PIC objects from an old
15318     # archive will be linked into the output, leading to subtle bugs.
15319     if test "$solaris_use_stlport4" != yes; then
15320       postdeps_CXX='-library=Cstd -library=Crun'
15321     fi
15322     ;;
15323   esac
15324   ;;
15325 esac
15326
15327
15328 case " $postdeps_CXX " in
15329 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15330 esac
15331  compiler_lib_search_dirs_CXX=
15332 if test -n "${compiler_lib_search_path_CXX}"; then
15333  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15334 fi
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366     lt_prog_compiler_wl_CXX=
15367 lt_prog_compiler_pic_CXX=
15368 lt_prog_compiler_static_CXX=
15369
15370
15371   # C++ specific cases for pic, static, wl, etc.
15372   if test "$GXX" = yes; then
15373     lt_prog_compiler_wl_CXX='-Wl,'
15374     lt_prog_compiler_static_CXX='-static'
15375
15376     case $host_os in
15377     aix*)
15378       # All AIX code is PIC.
15379       if test "$host_cpu" = ia64; then
15380         # AIX 5 now supports IA64 processor
15381         lt_prog_compiler_static_CXX='-Bstatic'
15382       fi
15383       ;;
15384
15385     amigaos*)
15386       case $host_cpu in
15387       powerpc)
15388             # see comment about AmigaOS4 .so support
15389             lt_prog_compiler_pic_CXX='-fPIC'
15390         ;;
15391       m68k)
15392             # FIXME: we need at least 68020 code to build shared libraries, but
15393             # adding the `-m68020' flag to GCC prevents building anything better,
15394             # like `-m68040'.
15395             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15396         ;;
15397       esac
15398       ;;
15399
15400     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15401       # PIC is the default for these OSes.
15402       ;;
15403     mingw* | cygwin* | os2* | pw32* | cegcc*)
15404       # This hack is so that the source file can tell whether it is being
15405       # built for inclusion in a dll (and should export symbols for example).
15406       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15407       # (--disable-auto-import) libraries
15408       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15409       ;;
15410     darwin* | rhapsody*)
15411       # PIC is the default on this platform
15412       # Common symbols not allowed in MH_DYLIB files
15413       lt_prog_compiler_pic_CXX='-fno-common'
15414       ;;
15415     *djgpp*)
15416       # DJGPP does not support shared libraries at all
15417       lt_prog_compiler_pic_CXX=
15418       ;;
15419     haiku*)
15420       # PIC is the default for Haiku.
15421       # The "-static" flag exists, but is broken.
15422       lt_prog_compiler_static_CXX=
15423       ;;
15424     interix[3-9]*)
15425       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15426       # Instead, we relocate shared libraries at runtime.
15427       ;;
15428     sysv4*MP*)
15429       if test -d /usr/nec; then
15430         lt_prog_compiler_pic_CXX=-Kconform_pic
15431       fi
15432       ;;
15433     hpux*)
15434       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15435       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15436       # sets the default TLS model and affects inlining.
15437       case $host_cpu in
15438       hppa*64*)
15439         ;;
15440       *)
15441         lt_prog_compiler_pic_CXX='-fPIC'
15442         ;;
15443       esac
15444       ;;
15445     *qnx* | *nto*)
15446       # QNX uses GNU C++, but need to define -shared option too, otherwise
15447       # it will coredump.
15448       lt_prog_compiler_pic_CXX='-fPIC -shared'
15449       ;;
15450     *)
15451       lt_prog_compiler_pic_CXX='-fPIC'
15452       ;;
15453     esac
15454   else
15455     case $host_os in
15456       aix[4-9]*)
15457         # All AIX code is PIC.
15458         if test "$host_cpu" = ia64; then
15459           # AIX 5 now supports IA64 processor
15460           lt_prog_compiler_static_CXX='-Bstatic'
15461         else
15462           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15463         fi
15464         ;;
15465       chorus*)
15466         case $cc_basename in
15467         cxch68*)
15468           # Green Hills C++ Compiler
15469           # _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"
15470           ;;
15471         esac
15472         ;;
15473       mingw* | cygwin* | os2* | pw32* | cegcc*)
15474         # This hack is so that the source file can tell whether it is being
15475         # built for inclusion in a dll (and should export symbols for example).
15476         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15477         ;;
15478       dgux*)
15479         case $cc_basename in
15480           ec++*)
15481             lt_prog_compiler_pic_CXX='-KPIC'
15482             ;;
15483           ghcx*)
15484             # Green Hills C++ Compiler
15485             lt_prog_compiler_pic_CXX='-pic'
15486             ;;
15487           *)
15488             ;;
15489         esac
15490         ;;
15491       freebsd* | dragonfly*)
15492         # FreeBSD uses GNU C++
15493         ;;
15494       hpux9* | hpux10* | hpux11*)
15495         case $cc_basename in
15496           CC*)
15497             lt_prog_compiler_wl_CXX='-Wl,'
15498             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15499             if test "$host_cpu" != ia64; then
15500               lt_prog_compiler_pic_CXX='+Z'
15501             fi
15502             ;;
15503           aCC*)
15504             lt_prog_compiler_wl_CXX='-Wl,'
15505             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15506             case $host_cpu in
15507             hppa*64*|ia64*)
15508               # +Z the default
15509               ;;
15510             *)
15511               lt_prog_compiler_pic_CXX='+Z'
15512               ;;
15513             esac
15514             ;;
15515           *)
15516             ;;
15517         esac
15518         ;;
15519       interix*)
15520         # This is c89, which is MS Visual C++ (no shared libs)
15521         # Anyone wants to do a port?
15522         ;;
15523       irix5* | irix6* | nonstopux*)
15524         case $cc_basename in
15525           CC*)
15526             lt_prog_compiler_wl_CXX='-Wl,'
15527             lt_prog_compiler_static_CXX='-non_shared'
15528             # CC pic flag -KPIC is the default.
15529             ;;
15530           *)
15531             ;;
15532         esac
15533         ;;
15534       linux* | k*bsd*-gnu | kopensolaris*-gnu)
15535         case $cc_basename in
15536           KCC*)
15537             # KAI C++ Compiler
15538             lt_prog_compiler_wl_CXX='--backend -Wl,'
15539             lt_prog_compiler_pic_CXX='-fPIC'
15540             ;;
15541           ecpc* )
15542             # old Intel C++ for x86_64 which still supported -KPIC.
15543             lt_prog_compiler_wl_CXX='-Wl,'
15544             lt_prog_compiler_pic_CXX='-KPIC'
15545             lt_prog_compiler_static_CXX='-static'
15546             ;;
15547           icpc* )
15548             # Intel C++, used to be incompatible with GCC.
15549             # ICC 10 doesn't accept -KPIC any more.
15550             lt_prog_compiler_wl_CXX='-Wl,'
15551             lt_prog_compiler_pic_CXX='-fPIC'
15552             lt_prog_compiler_static_CXX='-static'
15553             ;;
15554           pgCC* | pgcpp*)
15555             # Portland Group C++ compiler
15556             lt_prog_compiler_wl_CXX='-Wl,'
15557             lt_prog_compiler_pic_CXX='-fpic'
15558             lt_prog_compiler_static_CXX='-Bstatic'
15559             ;;
15560           cxx*)
15561             # Compaq C++
15562             # Make sure the PIC flag is empty.  It appears that all Alpha
15563             # Linux and Compaq Tru64 Unix objects are PIC.
15564             lt_prog_compiler_pic_CXX=
15565             lt_prog_compiler_static_CXX='-non_shared'
15566             ;;
15567           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15568             # IBM XL 8.0, 9.0 on PPC and BlueGene
15569             lt_prog_compiler_wl_CXX='-Wl,'
15570             lt_prog_compiler_pic_CXX='-qpic'
15571             lt_prog_compiler_static_CXX='-qstaticlink'
15572             ;;
15573           *)
15574             case `$CC -V 2>&1 | sed 5q` in
15575             *Sun\ C*)
15576               # Sun C++ 5.9
15577               lt_prog_compiler_pic_CXX='-KPIC'
15578               lt_prog_compiler_static_CXX='-Bstatic'
15579               lt_prog_compiler_wl_CXX='-Qoption ld '
15580               ;;
15581             esac
15582             ;;
15583         esac
15584         ;;
15585       lynxos*)
15586         ;;
15587       m88k*)
15588         ;;
15589       mvs*)
15590         case $cc_basename in
15591           cxx*)
15592             lt_prog_compiler_pic_CXX='-W c,exportall'
15593             ;;
15594           *)
15595             ;;
15596         esac
15597         ;;
15598       netbsd*)
15599         ;;
15600       *qnx* | *nto*)
15601         # QNX uses GNU C++, but need to define -shared option too, otherwise
15602         # it will coredump.
15603         lt_prog_compiler_pic_CXX='-fPIC -shared'
15604         ;;
15605       osf3* | osf4* | osf5*)
15606         case $cc_basename in
15607           KCC*)
15608             lt_prog_compiler_wl_CXX='--backend -Wl,'
15609             ;;
15610           RCC*)
15611             # Rational C++ 2.4.1
15612             lt_prog_compiler_pic_CXX='-pic'
15613             ;;
15614           cxx*)
15615             # Digital/Compaq C++
15616             lt_prog_compiler_wl_CXX='-Wl,'
15617             # Make sure the PIC flag is empty.  It appears that all Alpha
15618             # Linux and Compaq Tru64 Unix objects are PIC.
15619             lt_prog_compiler_pic_CXX=
15620             lt_prog_compiler_static_CXX='-non_shared'
15621             ;;
15622           *)
15623             ;;
15624         esac
15625         ;;
15626       psos*)
15627         ;;
15628       solaris*)
15629         case $cc_basename in
15630           CC* | sunCC*)
15631             # Sun C++ 4.2, 5.x and Centerline C++
15632             lt_prog_compiler_pic_CXX='-KPIC'
15633             lt_prog_compiler_static_CXX='-Bstatic'
15634             lt_prog_compiler_wl_CXX='-Qoption ld '
15635             ;;
15636           gcx*)
15637             # Green Hills C++ Compiler
15638             lt_prog_compiler_pic_CXX='-PIC'
15639             ;;
15640           *)
15641             ;;
15642         esac
15643         ;;
15644       sunos4*)
15645         case $cc_basename in
15646           CC*)
15647             # Sun C++ 4.x
15648             lt_prog_compiler_pic_CXX='-pic'
15649             lt_prog_compiler_static_CXX='-Bstatic'
15650             ;;
15651           lcc*)
15652             # Lucid
15653             lt_prog_compiler_pic_CXX='-pic'
15654             ;;
15655           *)
15656             ;;
15657         esac
15658         ;;
15659       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15660         case $cc_basename in
15661           CC*)
15662             lt_prog_compiler_wl_CXX='-Wl,'
15663             lt_prog_compiler_pic_CXX='-KPIC'
15664             lt_prog_compiler_static_CXX='-Bstatic'
15665             ;;
15666         esac
15667         ;;
15668       tandem*)
15669         case $cc_basename in
15670           NCC*)
15671             # NonStop-UX NCC 3.20
15672             lt_prog_compiler_pic_CXX='-KPIC'
15673             ;;
15674           *)
15675             ;;
15676         esac
15677         ;;
15678       vxworks*)
15679         ;;
15680       *)
15681         lt_prog_compiler_can_build_shared_CXX=no
15682         ;;
15683     esac
15684   fi
15685
15686 case $host_os in
15687   # For platforms which do not support PIC, -DPIC is meaningless:
15688   *djgpp*)
15689     lt_prog_compiler_pic_CXX=
15690     ;;
15691   *)
15692     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15693     ;;
15694 esac
15695
15696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15697 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15698 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15699   $as_echo_n "(cached) " >&6
15700 else
15701   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15702 fi
15703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15704 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15705 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15706
15707 #
15708 # Check to make sure the PIC flag actually works.
15709 #
15710 if test -n "$lt_prog_compiler_pic_CXX"; then
15711   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15712 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15713 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15714   $as_echo_n "(cached) " >&6
15715 else
15716   lt_cv_prog_compiler_pic_works_CXX=no
15717    ac_outfile=conftest.$ac_objext
15718    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15719    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15720    # Insert the option either (1) after the last *FLAGS variable, or
15721    # (2) before a word containing "conftest.", or (3) at the end.
15722    # Note that $ac_compile itself does not contain backslashes and begins
15723    # with a dollar sign (not a hyphen), so the echo should work correctly.
15724    # The option is referenced via a variable to avoid confusing sed.
15725    lt_compile=`echo "$ac_compile" | $SED \
15726    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15727    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15728    -e 's:$: $lt_compiler_flag:'`
15729    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15730    (eval "$lt_compile" 2>conftest.err)
15731    ac_status=$?
15732    cat conftest.err >&5
15733    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15734    if (exit $ac_status) && test -s "$ac_outfile"; then
15735      # The compiler can only warn and ignore the option if not recognized
15736      # So say no if there are warnings other than the usual output.
15737      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15738      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15739      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15740        lt_cv_prog_compiler_pic_works_CXX=yes
15741      fi
15742    fi
15743    $RM conftest*
15744
15745 fi
15746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15747 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15748
15749 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15750     case $lt_prog_compiler_pic_CXX in
15751      "" | " "*) ;;
15752      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15753      esac
15754 else
15755     lt_prog_compiler_pic_CXX=
15756      lt_prog_compiler_can_build_shared_CXX=no
15757 fi
15758
15759 fi
15760
15761
15762
15763
15764
15765 #
15766 # Check to make sure the static flag actually works.
15767 #
15768 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15770 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15771 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15772   $as_echo_n "(cached) " >&6
15773 else
15774   lt_cv_prog_compiler_static_works_CXX=no
15775    save_LDFLAGS="$LDFLAGS"
15776    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15777    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15778    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15779      # The linker can only warn and ignore the option if not recognized
15780      # So say no if there are warnings
15781      if test -s conftest.err; then
15782        # Append any errors to the config.log.
15783        cat conftest.err 1>&5
15784        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15785        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15786        if diff conftest.exp conftest.er2 >/dev/null; then
15787          lt_cv_prog_compiler_static_works_CXX=yes
15788        fi
15789      else
15790        lt_cv_prog_compiler_static_works_CXX=yes
15791      fi
15792    fi
15793    $RM -r conftest*
15794    LDFLAGS="$save_LDFLAGS"
15795
15796 fi
15797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15798 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15799
15800 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15801     :
15802 else
15803     lt_prog_compiler_static_CXX=
15804 fi
15805
15806
15807
15808
15809     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15810 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15811 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15812   $as_echo_n "(cached) " >&6
15813 else
15814   lt_cv_prog_compiler_c_o_CXX=no
15815    $RM -r conftest 2>/dev/null
15816    mkdir conftest
15817    cd conftest
15818    mkdir out
15819    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15820
15821    lt_compiler_flag="-o out/conftest2.$ac_objext"
15822    # Insert the option either (1) after the last *FLAGS variable, or
15823    # (2) before a word containing "conftest.", or (3) at the end.
15824    # Note that $ac_compile itself does not contain backslashes and begins
15825    # with a dollar sign (not a hyphen), so the echo should work correctly.
15826    lt_compile=`echo "$ac_compile" | $SED \
15827    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15828    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15829    -e 's:$: $lt_compiler_flag:'`
15830    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15831    (eval "$lt_compile" 2>out/conftest.err)
15832    ac_status=$?
15833    cat out/conftest.err >&5
15834    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15836    then
15837      # The compiler can only warn and ignore the option if not recognized
15838      # So say no if there are warnings
15839      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15840      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15841      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15842        lt_cv_prog_compiler_c_o_CXX=yes
15843      fi
15844    fi
15845    chmod u+w . 2>&5
15846    $RM conftest*
15847    # SGI C++ compiler will create directory out/ii_files/ for
15848    # template instantiation
15849    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15850    $RM out/* && rmdir out
15851    cd ..
15852    $RM -r conftest
15853    $RM conftest*
15854
15855 fi
15856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15857 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15858
15859
15860
15861     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15862 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15863 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15864   $as_echo_n "(cached) " >&6
15865 else
15866   lt_cv_prog_compiler_c_o_CXX=no
15867    $RM -r conftest 2>/dev/null
15868    mkdir conftest
15869    cd conftest
15870    mkdir out
15871    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15872
15873    lt_compiler_flag="-o out/conftest2.$ac_objext"
15874    # Insert the option either (1) after the last *FLAGS variable, or
15875    # (2) before a word containing "conftest.", or (3) at the end.
15876    # Note that $ac_compile itself does not contain backslashes and begins
15877    # with a dollar sign (not a hyphen), so the echo should work correctly.
15878    lt_compile=`echo "$ac_compile" | $SED \
15879    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15880    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15881    -e 's:$: $lt_compiler_flag:'`
15882    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15883    (eval "$lt_compile" 2>out/conftest.err)
15884    ac_status=$?
15885    cat out/conftest.err >&5
15886    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15887    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15888    then
15889      # The compiler can only warn and ignore the option if not recognized
15890      # So say no if there are warnings
15891      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15892      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15893      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15894        lt_cv_prog_compiler_c_o_CXX=yes
15895      fi
15896    fi
15897    chmod u+w . 2>&5
15898    $RM conftest*
15899    # SGI C++ compiler will create directory out/ii_files/ for
15900    # template instantiation
15901    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15902    $RM out/* && rmdir out
15903    cd ..
15904    $RM -r conftest
15905    $RM conftest*
15906
15907 fi
15908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15909 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15910
15911
15912
15913
15914 hard_links="nottested"
15915 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15916   # do not overwrite the value of need_locks provided by the user
15917   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15918 $as_echo_n "checking if we can lock with hard links... " >&6; }
15919   hard_links=yes
15920   $RM conftest*
15921   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15922   touch conftest.a
15923   ln conftest.a conftest.b 2>&5 || hard_links=no
15924   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15926 $as_echo "$hard_links" >&6; }
15927   if test "$hard_links" = no; then
15928     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15929 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15930     need_locks=warn
15931   fi
15932 else
15933   need_locks=no
15934 fi
15935
15936
15937
15938     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15939 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15940
15941   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15942   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15943   case $host_os in
15944   aix[4-9]*)
15945     # If we're using GNU nm, then we don't want the "-C" option.
15946     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15947     # Also, AIX nm treats weak defined symbols like other global defined
15948     # symbols, whereas GNU nm marks them as "W".
15949     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15950       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'
15951     else
15952       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'
15953     fi
15954     ;;
15955   pw32*)
15956     export_symbols_cmds_CXX="$ltdll_cmds"
15957     ;;
15958   cygwin* | mingw* | cegcc*)
15959     case $cc_basename in
15960     cl*) ;;
15961     *)
15962       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'
15963       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15964       ;;
15965     esac
15966     ;;
15967   *)
15968     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15969     ;;
15970   esac
15971
15972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15973 $as_echo "$ld_shlibs_CXX" >&6; }
15974 test "$ld_shlibs_CXX" = no && can_build_shared=no
15975
15976 with_gnu_ld_CXX=$with_gnu_ld
15977
15978
15979
15980
15981
15982
15983 #
15984 # Do we need to explicitly link libc?
15985 #
15986 case "x$archive_cmds_need_lc_CXX" in
15987 x|xyes)
15988   # Assume -lc should be added
15989   archive_cmds_need_lc_CXX=yes
15990
15991   if test "$enable_shared" = yes && test "$GCC" = yes; then
15992     case $archive_cmds_CXX in
15993     *'~'*)
15994       # FIXME: we may have to deal with multi-command sequences.
15995       ;;
15996     '$CC '*)
15997       # Test whether the compiler implicitly links with -lc since on some
15998       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15999       # to ld, don't add -lc before -lgcc.
16000       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16001 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16002 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
16003   $as_echo_n "(cached) " >&6
16004 else
16005   $RM conftest*
16006         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16007
16008         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16009   (eval $ac_compile) 2>&5
16010   ac_status=$?
16011   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16012   test $ac_status = 0; } 2>conftest.err; then
16013           soname=conftest
16014           lib=conftest
16015           libobjs=conftest.$ac_objext
16016           deplibs=
16017           wl=$lt_prog_compiler_wl_CXX
16018           pic_flag=$lt_prog_compiler_pic_CXX
16019           compiler_flags=-v
16020           linker_flags=-v
16021           verstring=
16022           output_objdir=.
16023           libname=conftest
16024           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16025           allow_undefined_flag_CXX=
16026           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16027   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16028   ac_status=$?
16029   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16030   test $ac_status = 0; }
16031           then
16032             lt_cv_archive_cmds_need_lc_CXX=no
16033           else
16034             lt_cv_archive_cmds_need_lc_CXX=yes
16035           fi
16036           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16037         else
16038           cat conftest.err 1>&5
16039         fi
16040         $RM conftest*
16041
16042 fi
16043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16044 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
16045       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
16046       ;;
16047     esac
16048   fi
16049   ;;
16050 esac
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
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     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16116 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16117
16118 library_names_spec=
16119 libname_spec='lib$name'
16120 soname_spec=
16121 shrext_cmds=".so"
16122 postinstall_cmds=
16123 postuninstall_cmds=
16124 finish_cmds=
16125 finish_eval=
16126 shlibpath_var=
16127 shlibpath_overrides_runpath=unknown
16128 version_type=none
16129 dynamic_linker="$host_os ld.so"
16130 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16131 need_lib_prefix=unknown
16132 hardcode_into_libs=no
16133
16134 # when you set need_version to no, make sure it does not cause -set_version
16135 # flags to be left without arguments
16136 need_version=unknown
16137
16138 case $host_os in
16139 aix3*)
16140   version_type=linux
16141   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16142   shlibpath_var=LIBPATH
16143
16144   # AIX 3 has no versioning support, so we append a major version to the name.
16145   soname_spec='${libname}${release}${shared_ext}$major'
16146   ;;
16147
16148 aix[4-9]*)
16149   version_type=linux
16150   need_lib_prefix=no
16151   need_version=no
16152   hardcode_into_libs=yes
16153   if test "$host_cpu" = ia64; then
16154     # AIX 5 supports IA64
16155     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16156     shlibpath_var=LD_LIBRARY_PATH
16157   else
16158     # With GCC up to 2.95.x, collect2 would create an import file
16159     # for dependence libraries.  The import file would start with
16160     # the line `#! .'.  This would cause the generated library to
16161     # depend on `.', always an invalid library.  This was fixed in
16162     # development snapshots of GCC prior to 3.0.
16163     case $host_os in
16164       aix4 | aix4.[01] | aix4.[01].*)
16165       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16166            echo ' yes '
16167            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16168         :
16169       else
16170         can_build_shared=no
16171       fi
16172       ;;
16173     esac
16174     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16175     # soname into executable. Probably we can add versioning support to
16176     # collect2, so additional links can be useful in future.
16177     if test "$aix_use_runtimelinking" = yes; then
16178       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16179       # instead of lib<name>.a to let people know that these are not
16180       # typical AIX shared libraries.
16181       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16182     else
16183       # We preserve .a as extension for shared libraries through AIX4.2
16184       # and later when we are not doing run time linking.
16185       library_names_spec='${libname}${release}.a $libname.a'
16186       soname_spec='${libname}${release}${shared_ext}$major'
16187     fi
16188     shlibpath_var=LIBPATH
16189   fi
16190   ;;
16191
16192 amigaos*)
16193   case $host_cpu in
16194   powerpc)
16195     # Since July 2007 AmigaOS4 officially supports .so libraries.
16196     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16197     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16198     ;;
16199   m68k)
16200     library_names_spec='$libname.ixlibrary $libname.a'
16201     # Create ${libname}_ixlibrary.a entries in /sys/libs.
16202     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'
16203     ;;
16204   esac
16205   ;;
16206
16207 beos*)
16208   library_names_spec='${libname}${shared_ext}'
16209   dynamic_linker="$host_os ld.so"
16210   shlibpath_var=LIBRARY_PATH
16211   ;;
16212
16213 bsdi[45]*)
16214   version_type=linux
16215   need_version=no
16216   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16217   soname_spec='${libname}${release}${shared_ext}$major'
16218   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16219   shlibpath_var=LD_LIBRARY_PATH
16220   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16221   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16222   # the default ld.so.conf also contains /usr/contrib/lib and
16223   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16224   # libtool to hard-code these into programs
16225   ;;
16226
16227 cygwin* | mingw* | pw32* | cegcc*)
16228   version_type=windows
16229   shrext_cmds=".dll"
16230   need_version=no
16231   need_lib_prefix=no
16232
16233   case $GCC,$cc_basename in
16234   yes,*)
16235     # gcc
16236     library_names_spec='$libname.dll.a'
16237     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16238     postinstall_cmds='base_file=`basename \${file}`~
16239       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16240       dldir=$destdir/`dirname \$dlpath`~
16241       test -d \$dldir || mkdir -p \$dldir~
16242       $install_prog $dir/$dlname \$dldir/$dlname~
16243       chmod a+x \$dldir/$dlname~
16244       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16245         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16246       fi'
16247     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16248       dlpath=$dir/\$dldll~
16249        $RM \$dlpath'
16250     shlibpath_overrides_runpath=yes
16251
16252     case $host_os in
16253     cygwin*)
16254       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16255       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16256
16257       ;;
16258     mingw* | cegcc*)
16259       # MinGW DLLs use traditional 'lib' prefix
16260       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16261       ;;
16262     pw32*)
16263       # pw32 DLLs use 'pw' prefix rather than 'lib'
16264       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16265       ;;
16266     esac
16267     dynamic_linker='Win32 ld.exe'
16268     ;;
16269
16270   *,cl*)
16271     # Native MSVC
16272     libname_spec='$name'
16273     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16274     library_names_spec='${libname}.dll.lib'
16275
16276     case $build_os in
16277     mingw*)
16278       sys_lib_search_path_spec=
16279       lt_save_ifs=$IFS
16280       IFS=';'
16281       for lt_path in $LIB
16282       do
16283         IFS=$lt_save_ifs
16284         # Let DOS variable expansion print the short 8.3 style file name.
16285         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16286         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16287       done
16288       IFS=$lt_save_ifs
16289       # Convert to MSYS style.
16290       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16291       ;;
16292     cygwin*)
16293       # Convert to unix form, then to dos form, then back to unix form
16294       # but this time dos style (no spaces!) so that the unix form looks
16295       # like /cygdrive/c/PROGRA~1:/cygdr...
16296       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16297       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16298       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16299       ;;
16300     *)
16301       sys_lib_search_path_spec="$LIB"
16302       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16303         # It is most probably a Windows format PATH.
16304         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16305       else
16306         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16307       fi
16308       # FIXME: find the short name or the path components, as spaces are
16309       # common. (e.g. "Program Files" -> "PROGRA~1")
16310       ;;
16311     esac
16312
16313     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16314     postinstall_cmds='base_file=`basename \${file}`~
16315       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16316       dldir=$destdir/`dirname \$dlpath`~
16317       test -d \$dldir || mkdir -p \$dldir~
16318       $install_prog $dir/$dlname \$dldir/$dlname'
16319     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16320       dlpath=$dir/\$dldll~
16321        $RM \$dlpath'
16322     shlibpath_overrides_runpath=yes
16323     dynamic_linker='Win32 link.exe'
16324     ;;
16325
16326   *)
16327     # Assume MSVC wrapper
16328     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16329     dynamic_linker='Win32 ld.exe'
16330     ;;
16331   esac
16332   # FIXME: first we should search . and the directory the executable is in
16333   shlibpath_var=PATH
16334   ;;
16335
16336 darwin* | rhapsody*)
16337   dynamic_linker="$host_os dyld"
16338   version_type=darwin
16339   need_lib_prefix=no
16340   need_version=no
16341   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16342   soname_spec='${libname}${release}${major}$shared_ext'
16343   shlibpath_overrides_runpath=yes
16344   shlibpath_var=DYLD_LIBRARY_PATH
16345   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16346
16347   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16348   ;;
16349
16350 dgux*)
16351   version_type=linux
16352   need_lib_prefix=no
16353   need_version=no
16354   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16355   soname_spec='${libname}${release}${shared_ext}$major'
16356   shlibpath_var=LD_LIBRARY_PATH
16357   ;;
16358
16359 freebsd1*)
16360   dynamic_linker=no
16361   ;;
16362
16363 freebsd* | dragonfly*)
16364   # DragonFly does not have aout.  When/if they implement a new
16365   # versioning mechanism, adjust this.
16366   if test -x /usr/bin/objformat; then
16367     objformat=`/usr/bin/objformat`
16368   else
16369     case $host_os in
16370     freebsd[123]*) objformat=aout ;;
16371     *) objformat=elf ;;
16372     esac
16373   fi
16374   version_type=freebsd-$objformat
16375   case $version_type in
16376     freebsd-elf*)
16377       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16378       need_version=no
16379       need_lib_prefix=no
16380       ;;
16381     freebsd-*)
16382       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16383       need_version=yes
16384       ;;
16385   esac
16386   shlibpath_var=LD_LIBRARY_PATH
16387   case $host_os in
16388   freebsd2*)
16389     shlibpath_overrides_runpath=yes
16390     ;;
16391   freebsd3.[01]* | freebsdelf3.[01]*)
16392     shlibpath_overrides_runpath=yes
16393     hardcode_into_libs=yes
16394     ;;
16395   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16396   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16397     shlibpath_overrides_runpath=no
16398     hardcode_into_libs=yes
16399     ;;
16400   *) # from 4.6 on, and DragonFly
16401     shlibpath_overrides_runpath=yes
16402     hardcode_into_libs=yes
16403     ;;
16404   esac
16405   ;;
16406
16407 gnu*)
16408   version_type=linux
16409   need_lib_prefix=no
16410   need_version=no
16411   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16412   soname_spec='${libname}${release}${shared_ext}$major'
16413   shlibpath_var=LD_LIBRARY_PATH
16414   hardcode_into_libs=yes
16415   ;;
16416
16417 haiku*)
16418   version_type=linux
16419   need_lib_prefix=no
16420   need_version=no
16421   dynamic_linker="$host_os runtime_loader"
16422   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16423   soname_spec='${libname}${release}${shared_ext}$major'
16424   shlibpath_var=LIBRARY_PATH
16425   shlibpath_overrides_runpath=yes
16426   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16427   hardcode_into_libs=yes
16428   ;;
16429
16430 hpux9* | hpux10* | hpux11*)
16431   # Give a soname corresponding to the major version so that dld.sl refuses to
16432   # link against other versions.
16433   version_type=sunos
16434   need_lib_prefix=no
16435   need_version=no
16436   case $host_cpu in
16437   ia64*)
16438     shrext_cmds='.so'
16439     hardcode_into_libs=yes
16440     dynamic_linker="$host_os dld.so"
16441     shlibpath_var=LD_LIBRARY_PATH
16442     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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     if test "X$HPUX_IA64_MODE" = X32; then
16446       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16447     else
16448       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16449     fi
16450     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16451     ;;
16452   hppa*64*)
16453     shrext_cmds='.sl'
16454     hardcode_into_libs=yes
16455     dynamic_linker="$host_os dld.sl"
16456     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16457     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16458     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16459     soname_spec='${libname}${release}${shared_ext}$major'
16460     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16461     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16462     ;;
16463   *)
16464     shrext_cmds='.sl'
16465     dynamic_linker="$host_os dld.sl"
16466     shlibpath_var=SHLIB_PATH
16467     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16468     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16469     soname_spec='${libname}${release}${shared_ext}$major'
16470     ;;
16471   esac
16472   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16473   postinstall_cmds='chmod 555 $lib'
16474   # or fails outright, so override atomically:
16475   install_override_mode=555
16476   ;;
16477
16478 interix[3-9]*)
16479   version_type=linux
16480   need_lib_prefix=no
16481   need_version=no
16482   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16483   soname_spec='${libname}${release}${shared_ext}$major'
16484   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16485   shlibpath_var=LD_LIBRARY_PATH
16486   shlibpath_overrides_runpath=no
16487   hardcode_into_libs=yes
16488   ;;
16489
16490 irix5* | irix6* | nonstopux*)
16491   case $host_os in
16492     nonstopux*) version_type=nonstopux ;;
16493     *)
16494         if test "$lt_cv_prog_gnu_ld" = yes; then
16495                 version_type=linux
16496         else
16497                 version_type=irix
16498         fi ;;
16499   esac
16500   need_lib_prefix=no
16501   need_version=no
16502   soname_spec='${libname}${release}${shared_ext}$major'
16503   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16504   case $host_os in
16505   irix5* | nonstopux*)
16506     libsuff= shlibsuff=
16507     ;;
16508   *)
16509     case $LD in # libtool.m4 will add one of these switches to LD
16510     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16511       libsuff= shlibsuff= libmagic=32-bit;;
16512     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16513       libsuff=32 shlibsuff=N32 libmagic=N32;;
16514     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16515       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16516     *) libsuff= shlibsuff= libmagic=never-match;;
16517     esac
16518     ;;
16519   esac
16520   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16521   shlibpath_overrides_runpath=no
16522   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16523   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16524   hardcode_into_libs=yes
16525   ;;
16526
16527 # No shared lib support for Linux oldld, aout, or coff.
16528 linux*oldld* | linux*aout* | linux*coff*)
16529   dynamic_linker=no
16530   ;;
16531
16532 # This must be Linux ELF.
16533 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16534   version_type=linux
16535   need_lib_prefix=no
16536   need_version=no
16537   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16538   soname_spec='${libname}${release}${shared_ext}$major'
16539   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16540   shlibpath_var=LD_LIBRARY_PATH
16541   shlibpath_overrides_runpath=no
16542
16543   # Some binutils ld are patched to set DT_RUNPATH
16544   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16545   $as_echo_n "(cached) " >&6
16546 else
16547   lt_cv_shlibpath_overrides_runpath=no
16548     save_LDFLAGS=$LDFLAGS
16549     save_libdir=$libdir
16550     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16551          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16552     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16553 /* end confdefs.h.  */
16554
16555 int
16556 main ()
16557 {
16558
16559   ;
16560   return 0;
16561 }
16562 _ACEOF
16563 if ac_fn_cxx_try_link "$LINENO"; then :
16564   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16565   lt_cv_shlibpath_overrides_runpath=yes
16566 fi
16567 fi
16568 rm -f core conftest.err conftest.$ac_objext \
16569     conftest$ac_exeext conftest.$ac_ext
16570     LDFLAGS=$save_LDFLAGS
16571     libdir=$save_libdir
16572
16573 fi
16574
16575   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16576
16577   # This implies no fast_install, which is unacceptable.
16578   # Some rework will be needed to allow for fast_install
16579   # before this can be enabled.
16580   hardcode_into_libs=yes
16581
16582   # Add ABI-specific directories to the system library path.
16583   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16584
16585   # Append ld.so.conf contents to the search path
16586   if test -f /etc/ld.so.conf; then
16587     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' ' '`
16588     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16589
16590   fi
16591
16592   # We used to test for /lib/ld.so.1 and disable shared libraries on
16593   # powerpc, because MkLinux only supported shared libraries with the
16594   # GNU dynamic linker.  Since this was broken with cross compilers,
16595   # most powerpc-linux boxes support dynamic linking these days and
16596   # people can always --disable-shared, the test was removed, and we
16597   # assume the GNU/Linux dynamic linker is in use.
16598   dynamic_linker='GNU/Linux ld.so'
16599   ;;
16600
16601 netbsd*)
16602   version_type=sunos
16603   need_lib_prefix=no
16604   need_version=no
16605   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16606     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16607     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16608     dynamic_linker='NetBSD (a.out) ld.so'
16609   else
16610     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16611     soname_spec='${libname}${release}${shared_ext}$major'
16612     dynamic_linker='NetBSD ld.elf_so'
16613   fi
16614   shlibpath_var=LD_LIBRARY_PATH
16615   shlibpath_overrides_runpath=yes
16616   hardcode_into_libs=yes
16617   ;;
16618
16619 newsos6)
16620   version_type=linux
16621   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16622   shlibpath_var=LD_LIBRARY_PATH
16623   shlibpath_overrides_runpath=yes
16624   ;;
16625
16626 *nto* | *qnx*)
16627   version_type=qnx
16628   need_lib_prefix=no
16629   need_version=no
16630   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16631   soname_spec='${libname}${release}${shared_ext}$major'
16632   shlibpath_var=LD_LIBRARY_PATH
16633   shlibpath_overrides_runpath=no
16634   hardcode_into_libs=yes
16635   dynamic_linker='ldqnx.so'
16636   ;;
16637
16638 openbsd*)
16639   version_type=sunos
16640   sys_lib_dlsearch_path_spec="/usr/lib"
16641   need_lib_prefix=no
16642   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16643   case $host_os in
16644     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16645     *)                          need_version=no  ;;
16646   esac
16647   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16648   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16649   shlibpath_var=LD_LIBRARY_PATH
16650   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16651     case $host_os in
16652       openbsd2.[89] | openbsd2.[89].*)
16653         shlibpath_overrides_runpath=no
16654         ;;
16655       *)
16656         shlibpath_overrides_runpath=yes
16657         ;;
16658       esac
16659   else
16660     shlibpath_overrides_runpath=yes
16661   fi
16662   ;;
16663
16664 os2*)
16665   libname_spec='$name'
16666   shrext_cmds=".dll"
16667   need_lib_prefix=no
16668   library_names_spec='$libname${shared_ext} $libname.a'
16669   dynamic_linker='OS/2 ld.exe'
16670   shlibpath_var=LIBPATH
16671   ;;
16672
16673 osf3* | osf4* | osf5*)
16674   version_type=osf
16675   need_lib_prefix=no
16676   need_version=no
16677   soname_spec='${libname}${release}${shared_ext}$major'
16678   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16679   shlibpath_var=LD_LIBRARY_PATH
16680   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16681   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16682   ;;
16683
16684 rdos*)
16685   dynamic_linker=no
16686   ;;
16687
16688 solaris*)
16689   version_type=linux
16690   need_lib_prefix=no
16691   need_version=no
16692   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16693   soname_spec='${libname}${release}${shared_ext}$major'
16694   shlibpath_var=LD_LIBRARY_PATH
16695   shlibpath_overrides_runpath=yes
16696   hardcode_into_libs=yes
16697   # ldd complains unless libraries are executable
16698   postinstall_cmds='chmod +x $lib'
16699   ;;
16700
16701 sunos4*)
16702   version_type=sunos
16703   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16704   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16705   shlibpath_var=LD_LIBRARY_PATH
16706   shlibpath_overrides_runpath=yes
16707   if test "$with_gnu_ld" = yes; then
16708     need_lib_prefix=no
16709   fi
16710   need_version=yes
16711   ;;
16712
16713 sysv4 | sysv4.3*)
16714   version_type=linux
16715   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16716   soname_spec='${libname}${release}${shared_ext}$major'
16717   shlibpath_var=LD_LIBRARY_PATH
16718   case $host_vendor in
16719     sni)
16720       shlibpath_overrides_runpath=no
16721       need_lib_prefix=no
16722       runpath_var=LD_RUN_PATH
16723       ;;
16724     siemens)
16725       need_lib_prefix=no
16726       ;;
16727     motorola)
16728       need_lib_prefix=no
16729       need_version=no
16730       shlibpath_overrides_runpath=no
16731       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16732       ;;
16733   esac
16734   ;;
16735
16736 sysv4*MP*)
16737   if test -d /usr/nec ;then
16738     version_type=linux
16739     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16740     soname_spec='$libname${shared_ext}.$major'
16741     shlibpath_var=LD_LIBRARY_PATH
16742   fi
16743   ;;
16744
16745 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16746   version_type=freebsd-elf
16747   need_lib_prefix=no
16748   need_version=no
16749   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16750   soname_spec='${libname}${release}${shared_ext}$major'
16751   shlibpath_var=LD_LIBRARY_PATH
16752   shlibpath_overrides_runpath=yes
16753   hardcode_into_libs=yes
16754   if test "$with_gnu_ld" = yes; then
16755     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16756   else
16757     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16758     case $host_os in
16759       sco3.2v5*)
16760         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16761         ;;
16762     esac
16763   fi
16764   sys_lib_dlsearch_path_spec='/usr/lib'
16765   ;;
16766
16767 tpf*)
16768   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16769   version_type=linux
16770   need_lib_prefix=no
16771   need_version=no
16772   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16773   shlibpath_var=LD_LIBRARY_PATH
16774   shlibpath_overrides_runpath=no
16775   hardcode_into_libs=yes
16776   ;;
16777
16778 uts4*)
16779   version_type=linux
16780   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16781   soname_spec='${libname}${release}${shared_ext}$major'
16782   shlibpath_var=LD_LIBRARY_PATH
16783   ;;
16784
16785 *)
16786   dynamic_linker=no
16787   ;;
16788 esac
16789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16790 $as_echo "$dynamic_linker" >&6; }
16791 test "$dynamic_linker" = no && can_build_shared=no
16792
16793 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16794 if test "$GCC" = yes; then
16795   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16796 fi
16797
16798 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16799   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16800 fi
16801 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16802   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16803 fi
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16843 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16844 hardcode_action_CXX=
16845 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16846    test -n "$runpath_var_CXX" ||
16847    test "X$hardcode_automatic_CXX" = "Xyes" ; then
16848
16849   # We can hardcode non-existent directories.
16850   if test "$hardcode_direct_CXX" != no &&
16851      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16852      # have to relink, otherwise we might link with an installed library
16853      # when we should be linking with a yet-to-be-installed one
16854      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16855      test "$hardcode_minus_L_CXX" != no; then
16856     # Linking always hardcodes the temporary library directory.
16857     hardcode_action_CXX=relink
16858   else
16859     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16860     hardcode_action_CXX=immediate
16861   fi
16862 else
16863   # We cannot hardcode anything, or else we can only hardcode existing
16864   # directories.
16865   hardcode_action_CXX=unsupported
16866 fi
16867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16868 $as_echo "$hardcode_action_CXX" >&6; }
16869
16870 if test "$hardcode_action_CXX" = relink ||
16871    test "$inherit_rpath_CXX" = yes; then
16872   # Fast installation is not supported
16873   enable_fast_install=no
16874 elif test "$shlibpath_overrides_runpath" = yes ||
16875      test "$enable_shared" = no; then
16876   # Fast installation is not necessary
16877   enable_fast_install=needless
16878 fi
16879
16880
16881
16882
16883
16884
16885
16886   fi # test -n "$compiler"
16887
16888   CC=$lt_save_CC
16889   CFLAGS=$lt_save_CFLAGS
16890   LDCXX=$LD
16891   LD=$lt_save_LD
16892   GCC=$lt_save_GCC
16893   with_gnu_ld=$lt_save_with_gnu_ld
16894   lt_cv_path_LDCXX=$lt_cv_path_LD
16895   lt_cv_path_LD=$lt_save_path_LD
16896   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16897   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16898 fi # test "$_lt_caught_CXX_error" != yes
16899
16900 ac_ext=c
16901 ac_cpp='$CPP $CPPFLAGS'
16902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918         ac_config_commands="$ac_config_commands libtool"
16919
16920
16921
16922
16923 # Only expand once:
16924
16925
16926 if test "x$CC" != xcc; then
16927   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
16928 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
16929 else
16930   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
16931 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
16932 fi
16933 set dummy $CC; ac_cc=`$as_echo "$2" |
16934                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
16935 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
16936   $as_echo_n "(cached) " >&6
16937 else
16938   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16939 /* end confdefs.h.  */
16940
16941 int
16942 main ()
16943 {
16944
16945   ;
16946   return 0;
16947 }
16948 _ACEOF
16949 # Make sure it works both with $CC and with simple cc.
16950 # We do the test twice because some compilers refuse to overwrite an
16951 # existing .o file with -o, though they will create one.
16952 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
16953 rm -f conftest2.*
16954 if { { case "(($ac_try" in
16955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16956   *) ac_try_echo=$ac_try;;
16957 esac
16958 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16959 $as_echo "$ac_try_echo"; } >&5
16960   (eval "$ac_try") 2>&5
16961   ac_status=$?
16962   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16963   test $ac_status = 0; } &&
16964    test -f conftest2.$ac_objext && { { case "(($ac_try" in
16965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16966   *) ac_try_echo=$ac_try;;
16967 esac
16968 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16969 $as_echo "$ac_try_echo"; } >&5
16970   (eval "$ac_try") 2>&5
16971   ac_status=$?
16972   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16973   test $ac_status = 0; };
16974 then
16975   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
16976   if test "x$CC" != xcc; then
16977     # Test first that cc exists at all.
16978     if { ac_try='cc -c conftest.$ac_ext >&5'
16979   { { case "(($ac_try" in
16980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16981   *) ac_try_echo=$ac_try;;
16982 esac
16983 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16984 $as_echo "$ac_try_echo"; } >&5
16985   (eval "$ac_try") 2>&5
16986   ac_status=$?
16987   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16988   test $ac_status = 0; }; }; then
16989       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
16990       rm -f conftest2.*
16991       if { { case "(($ac_try" in
16992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16993   *) ac_try_echo=$ac_try;;
16994 esac
16995 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16996 $as_echo "$ac_try_echo"; } >&5
16997   (eval "$ac_try") 2>&5
16998   ac_status=$?
16999   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17000   test $ac_status = 0; } &&
17001          test -f conftest2.$ac_objext && { { case "(($ac_try" in
17002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17003   *) ac_try_echo=$ac_try;;
17004 esac
17005 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17006 $as_echo "$ac_try_echo"; } >&5
17007   (eval "$ac_try") 2>&5
17008   ac_status=$?
17009   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17010   test $ac_status = 0; };
17011       then
17012         # cc works too.
17013         :
17014       else
17015         # cc exists but doesn't like -o.
17016         eval ac_cv_prog_cc_${ac_cc}_c_o=no
17017       fi
17018     fi
17019   fi
17020 else
17021   eval ac_cv_prog_cc_${ac_cc}_c_o=no
17022 fi
17023 rm -f core conftest*
17024
17025 fi
17026 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
17027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17028 $as_echo "yes" >&6; }
17029 else
17030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17031 $as_echo "no" >&6; }
17032
17033 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
17034
17035 fi
17036
17037 # FIXME: we rely on the cache variable name because
17038 # there is no other way.
17039 set dummy $CC
17040 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
17041 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
17042 if test "$am_t" != yes; then
17043    # Losing compiler, so override with the script.
17044    # FIXME: It is wrong to rewrite CC.
17045    # But if we don't then we get into trouble of one sort or another.
17046    # A longer-term fix would be to have automake use am__CC in this case,
17047    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
17048    CC="$am_aux_dir/compile $CC"
17049 fi
17050
17051
17052
17053 if test "x$cross_compiling" = "xno"; then
17054         CC_FOR_BUILD=${CC_FOR_BUILD-${CC-gcc}}
17055 else
17056         CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
17057 fi
17058
17059
17060
17061 if test -n "$ac_tool_prefix"; then
17062   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
17063 set dummy ${ac_tool_prefix}ar; ac_word=$2
17064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17065 $as_echo_n "checking for $ac_word... " >&6; }
17066 if ${ac_cv_prog_AR+:} false; then :
17067   $as_echo_n "(cached) " >&6
17068 else
17069   if test -n "$AR"; then
17070   ac_cv_prog_AR="$AR" # Let the user override the test.
17071 else
17072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17073 for as_dir in $PATH
17074 do
17075   IFS=$as_save_IFS
17076   test -z "$as_dir" && as_dir=.
17077     for ac_exec_ext in '' $ac_executable_extensions; do
17078   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17079     ac_cv_prog_AR="${ac_tool_prefix}ar"
17080     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17081     break 2
17082   fi
17083 done
17084   done
17085 IFS=$as_save_IFS
17086
17087 fi
17088 fi
17089 AR=$ac_cv_prog_AR
17090 if test -n "$AR"; then
17091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
17092 $as_echo "$AR" >&6; }
17093 else
17094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17095 $as_echo "no" >&6; }
17096 fi
17097
17098
17099 fi
17100 if test -z "$ac_cv_prog_AR"; then
17101   ac_ct_AR=$AR
17102   # Extract the first word of "ar", so it can be a program name with args.
17103 set dummy ar; ac_word=$2
17104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17105 $as_echo_n "checking for $ac_word... " >&6; }
17106 if ${ac_cv_prog_ac_ct_AR+:} false; then :
17107   $as_echo_n "(cached) " >&6
17108 else
17109   if test -n "$ac_ct_AR"; then
17110   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
17111 else
17112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17113 for as_dir in $PATH
17114 do
17115   IFS=$as_save_IFS
17116   test -z "$as_dir" && as_dir=.
17117     for ac_exec_ext in '' $ac_executable_extensions; do
17118   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17119     ac_cv_prog_ac_ct_AR="ar"
17120     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17121     break 2
17122   fi
17123 done
17124   done
17125 IFS=$as_save_IFS
17126
17127 fi
17128 fi
17129 ac_ct_AR=$ac_cv_prog_ac_ct_AR
17130 if test -n "$ac_ct_AR"; then
17131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
17132 $as_echo "$ac_ct_AR" >&6; }
17133 else
17134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17135 $as_echo "no" >&6; }
17136 fi
17137
17138   if test "x$ac_ct_AR" = x; then
17139     AR=""
17140   else
17141     case $cross_compiling:$ac_tool_warned in
17142 yes:)
17143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17144 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17145 ac_tool_warned=yes ;;
17146 esac
17147     AR=$ac_ct_AR
17148   fi
17149 else
17150   AR="$ac_cv_prog_AR"
17151 fi
17152
17153 if test -n "$ac_tool_prefix"; then
17154   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
17155 set dummy ${ac_tool_prefix}ld; ac_word=$2
17156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17157 $as_echo_n "checking for $ac_word... " >&6; }
17158 if ${ac_cv_prog_LD+:} false; then :
17159   $as_echo_n "(cached) " >&6
17160 else
17161   if test -n "$LD"; then
17162   ac_cv_prog_LD="$LD" # Let the user override the test.
17163 else
17164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17165 for as_dir in $PATH
17166 do
17167   IFS=$as_save_IFS
17168   test -z "$as_dir" && as_dir=.
17169     for ac_exec_ext in '' $ac_executable_extensions; do
17170   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17171     ac_cv_prog_LD="${ac_tool_prefix}ld"
17172     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17173     break 2
17174   fi
17175 done
17176   done
17177 IFS=$as_save_IFS
17178
17179 fi
17180 fi
17181 LD=$ac_cv_prog_LD
17182 if test -n "$LD"; then
17183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17184 $as_echo "$LD" >&6; }
17185 else
17186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17187 $as_echo "no" >&6; }
17188 fi
17189
17190
17191 fi
17192 if test -z "$ac_cv_prog_LD"; then
17193   ac_ct_LD=$LD
17194   # Extract the first word of "ld", so it can be a program name with args.
17195 set dummy ld; ac_word=$2
17196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17197 $as_echo_n "checking for $ac_word... " >&6; }
17198 if ${ac_cv_prog_ac_ct_LD+:} false; then :
17199   $as_echo_n "(cached) " >&6
17200 else
17201   if test -n "$ac_ct_LD"; then
17202   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
17203 else
17204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17205 for as_dir in $PATH
17206 do
17207   IFS=$as_save_IFS
17208   test -z "$as_dir" && as_dir=.
17209     for ac_exec_ext in '' $ac_executable_extensions; do
17210   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17211     ac_cv_prog_ac_ct_LD="ld"
17212     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17213     break 2
17214   fi
17215 done
17216   done
17217 IFS=$as_save_IFS
17218
17219 fi
17220 fi
17221 ac_ct_LD=$ac_cv_prog_ac_ct_LD
17222 if test -n "$ac_ct_LD"; then
17223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
17224 $as_echo "$ac_ct_LD" >&6; }
17225 else
17226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17227 $as_echo "no" >&6; }
17228 fi
17229
17230   if test "x$ac_ct_LD" = x; then
17231     LD=""
17232   else
17233     case $cross_compiling:$ac_tool_warned in
17234 yes:)
17235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17236 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17237 ac_tool_warned=yes ;;
17238 esac
17239     LD=$ac_ct_LD
17240   fi
17241 else
17242   LD="$ac_cv_prog_LD"
17243 fi
17244
17245
17246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
17247 $as_echo_n "checking for ANSI C header files... " >&6; }
17248 if ${ac_cv_header_stdc+:} false; then :
17249   $as_echo_n "(cached) " >&6
17250 else
17251   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17252 /* end confdefs.h.  */
17253 #include <stdlib.h>
17254 #include <stdarg.h>
17255 #include <string.h>
17256 #include <float.h>
17257
17258 int
17259 main ()
17260 {
17261
17262   ;
17263   return 0;
17264 }
17265 _ACEOF
17266 if ac_fn_c_try_compile "$LINENO"; then :
17267   ac_cv_header_stdc=yes
17268 else
17269   ac_cv_header_stdc=no
17270 fi
17271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17272
17273 if test $ac_cv_header_stdc = yes; then
17274   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
17275   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17276 /* end confdefs.h.  */
17277 #include <string.h>
17278
17279 _ACEOF
17280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17281   $EGREP "memchr" >/dev/null 2>&1; then :
17282
17283 else
17284   ac_cv_header_stdc=no
17285 fi
17286 rm -f conftest*
17287
17288 fi
17289
17290 if test $ac_cv_header_stdc = yes; then
17291   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
17292   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17293 /* end confdefs.h.  */
17294 #include <stdlib.h>
17295
17296 _ACEOF
17297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17298   $EGREP "free" >/dev/null 2>&1; then :
17299
17300 else
17301   ac_cv_header_stdc=no
17302 fi
17303 rm -f conftest*
17304
17305 fi
17306
17307 if test $ac_cv_header_stdc = yes; then
17308   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
17309   if test "$cross_compiling" = yes; then :
17310   :
17311 else
17312   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17313 /* end confdefs.h.  */
17314 #include <ctype.h>
17315 #include <stdlib.h>
17316 #if ((' ' & 0x0FF) == 0x020)
17317 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
17318 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
17319 #else
17320 # define ISLOWER(c) \
17321                    (('a' <= (c) && (c) <= 'i') \
17322                      || ('j' <= (c) && (c) <= 'r') \
17323                      || ('s' <= (c) && (c) <= 'z'))
17324 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
17325 #endif
17326
17327 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
17328 int
17329 main ()
17330 {
17331   int i;
17332   for (i = 0; i < 256; i++)
17333     if (XOR (islower (i), ISLOWER (i))
17334         || toupper (i) != TOUPPER (i))
17335       return 2;
17336   return 0;
17337 }
17338 _ACEOF
17339 if ac_fn_c_try_run "$LINENO"; then :
17340
17341 else
17342   ac_cv_header_stdc=no
17343 fi
17344 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17345   conftest.$ac_objext conftest.beam conftest.$ac_ext
17346 fi
17347
17348 fi
17349 fi
17350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
17351 $as_echo "$ac_cv_header_stdc" >&6; }
17352 if test $ac_cv_header_stdc = yes; then
17353
17354 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
17355
17356 fi
17357
17358
17359   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc2" >&5
17360 $as_echo_n "checking for GNU libc2... " >&6; }
17361   if ${knfsd_cv_glibc2+:} false; then :
17362   $as_echo_n "(cached) " >&6
17363 else
17364   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17365 /* end confdefs.h.  */
17366
17367       #include <features.h>
17368       #if !defined(__GLIBC__)
17369       # error Nope
17370       #endif
17371
17372 _ACEOF
17373 if ac_fn_c_try_cpp "$LINENO"; then :
17374   knfsd_cv_glibc2=yes
17375 else
17376   knfsd_cv_glibc2=no
17377 fi
17378 rm -f conftest.err conftest.i conftest.$ac_ext
17379 fi
17380
17381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $knfsd_cv_glibc2" >&5
17382 $as_echo "$knfsd_cv_glibc2" >&6; }
17383   if test $knfsd_cv_glibc2 = yes; then
17384     CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
17385     CPPFLAGS_FOR_BUILD="$CPPFLAGS_FOR_BUILD -D_GNU_SOURCE"
17386   fi
17387
17388
17389   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD signal semantics" >&5
17390 $as_echo_n "checking for BSD signal semantics... " >&6; }
17391   if ${knfsd_cv_bsd_signals+:} false; then :
17392   $as_echo_n "(cached) " >&6
17393 else
17394   if test "$cross_compiling" = yes; then :
17395
17396       case "$host_os" in
17397         *linux*) knfsd_cv_bsd_signals=no;;
17398         *bsd*)   knfsd_cv_bsd_signals=yes;;
17399         *)       as_fn_error $? "unable to guess signal semantics for $host_os; please set knfsd_cv_bsd_signals" "$LINENO" 5;;
17400       esac
17401
17402 else
17403   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17404 /* end confdefs.h.  */
17405
17406         #include <signal.h>
17407         #include <unistd.h>
17408         #include <sys/wait.h>
17409
17410         static int counter = 0;
17411         static RETSIGTYPE handler(int num) { counter++; }
17412
17413         int main()
17414         {
17415                 int     s;
17416                 if ((s = fork()) < 0) return 1;
17417                 if (s != 0) {
17418                         if (wait(&s) < 0) return 1;
17419                         return WIFSIGNALED(s)? 1 : 0;
17420                 }
17421
17422                 signal(SIGHUP, handler);
17423                 kill(getpid(), SIGHUP); kill(getpid(), SIGHUP);
17424                 return (counter == 2)? 0 : 1;
17425         }
17426
17427 _ACEOF
17428 if ac_fn_c_try_run "$LINENO"; then :
17429   knfsd_cv_bsd_signals=yes
17430 else
17431   knfsd_cv_bsd_signals=no
17432 fi
17433 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17434   conftest.$ac_objext conftest.beam conftest.$ac_ext
17435 fi
17436
17437 fi
17438      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $knfsd_cv_bsd_signals" >&5
17439 $as_echo "$knfsd_cv_bsd_signals" >&6; }
17440     test $knfsd_cv_bsd_signals = yes &&
17441 $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
17442
17443
17444
17445
17446 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
17447 if test "x$ac_cv_func_gethostbyname" = xyes; then :
17448
17449 else
17450   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
17451 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
17452 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
17453   $as_echo_n "(cached) " >&6
17454 else
17455   ac_check_lib_save_LIBS=$LIBS
17456 LIBS="-lnsl  $LIBS"
17457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17458 /* end confdefs.h.  */
17459
17460 /* Override any GCC internal prototype to avoid an error.
17461    Use char because int might match the return type of a GCC
17462    builtin and then its argument prototype would still apply.  */
17463 #ifdef __cplusplus
17464 extern "C"
17465 #endif
17466 char gethostbyname ();
17467 int
17468 main ()
17469 {
17470 return gethostbyname ();
17471   ;
17472   return 0;
17473 }
17474 _ACEOF
17475 if ac_fn_c_try_link "$LINENO"; then :
17476   ac_cv_lib_nsl_gethostbyname=yes
17477 else
17478   ac_cv_lib_nsl_gethostbyname=no
17479 fi
17480 rm -f core conftest.err conftest.$ac_objext \
17481     conftest$ac_exeext conftest.$ac_ext
17482 LIBS=$ac_check_lib_save_LIBS
17483 fi
17484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
17485 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
17486 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
17487   LIBNSL="-lnsl"
17488 fi
17489
17490 fi
17491
17492
17493
17494 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
17495 if test "x$ac_cv_func_connect" = xyes; then :
17496
17497 else
17498   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
17499 $as_echo_n "checking for connect in -lsocket... " >&6; }
17500 if ${ac_cv_lib_socket_connect+:} false; then :
17501   $as_echo_n "(cached) " >&6
17502 else
17503   ac_check_lib_save_LIBS=$LIBS
17504 LIBS="-lsocket $LIBNSL $LIBS"
17505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17506 /* end confdefs.h.  */
17507
17508 /* Override any GCC internal prototype to avoid an error.
17509    Use char because int might match the return type of a GCC
17510    builtin and then its argument prototype would still apply.  */
17511 #ifdef __cplusplus
17512 extern "C"
17513 #endif
17514 char connect ();
17515 int
17516 main ()
17517 {
17518 return connect ();
17519   ;
17520   return 0;
17521 }
17522 _ACEOF
17523 if ac_fn_c_try_link "$LINENO"; then :
17524   ac_cv_lib_socket_connect=yes
17525 else
17526   ac_cv_lib_socket_connect=no
17527 fi
17528 rm -f core conftest.err conftest.$ac_objext \
17529     conftest$ac_exeext conftest.$ac_ext
17530 LIBS=$ac_check_lib_save_LIBS
17531 fi
17532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
17533 $as_echo "$ac_cv_lib_socket_connect" >&6; }
17534 if test "x$ac_cv_lib_socket_connect" = xyes; then :
17535   LIBSOCKET="-lsocket"
17536 else
17537   as_fn_error $? "Function 'socket' not found." "$LINENO" 5
17538 fi
17539
17540 fi
17541
17542
17543 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
17544 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
17545
17546 else
17547   as_fn_error $? "Function 'getaddrinfo' not found." "$LINENO" 5
17548 fi
17549
17550
17551 ac_fn_c_check_func "$LINENO" "getrpcbynumber" "ac_cv_func_getrpcbynumber"
17552 if test "x$ac_cv_func_getrpcbynumber" = xyes; then :
17553
17554 else
17555   as_fn_error $? "Function 'getrpcbynumber' not found." "$LINENO" 5
17556 fi
17557
17558
17559 ac_fn_c_check_func "$LINENO" "getservbyname" "ac_cv_func_getservbyname"
17560 if test "x$ac_cv_func_getservbyname" = xyes; then :
17561
17562 else
17563   as_fn_error $? "Function 'getservbyname' not found." "$LINENO" 5
17564 fi
17565
17566
17567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
17568 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
17569 if ${ac_cv_lib_crypt_crypt+:} false; then :
17570   $as_echo_n "(cached) " >&6
17571 else
17572   ac_check_lib_save_LIBS=$LIBS
17573 LIBS="-lcrypt  $LIBS"
17574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17575 /* end confdefs.h.  */
17576
17577 /* Override any GCC internal prototype to avoid an error.
17578    Use char because int might match the return type of a GCC
17579    builtin and then its argument prototype would still apply.  */
17580 #ifdef __cplusplus
17581 extern "C"
17582 #endif
17583 char crypt ();
17584 int
17585 main ()
17586 {
17587 return crypt ();
17588   ;
17589   return 0;
17590 }
17591 _ACEOF
17592 if ac_fn_c_try_link "$LINENO"; then :
17593   ac_cv_lib_crypt_crypt=yes
17594 else
17595   ac_cv_lib_crypt_crypt=no
17596 fi
17597 rm -f core conftest.err conftest.$ac_objext \
17598     conftest$ac_exeext conftest.$ac_ext
17599 LIBS=$ac_check_lib_save_LIBS
17600 fi
17601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
17602 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
17603 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
17604   LIBCRYPT="-lcrypt"
17605 fi
17606
17607
17608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlclose in -ldl" >&5
17609 $as_echo_n "checking for dlclose in -ldl... " >&6; }
17610 if ${ac_cv_lib_dl_dlclose+:} false; then :
17611   $as_echo_n "(cached) " >&6
17612 else
17613   ac_check_lib_save_LIBS=$LIBS
17614 LIBS="-ldl  $LIBS"
17615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17616 /* end confdefs.h.  */
17617
17618 /* Override any GCC internal prototype to avoid an error.
17619    Use char because int might match the return type of a GCC
17620    builtin and then its argument prototype would still apply.  */
17621 #ifdef __cplusplus
17622 extern "C"
17623 #endif
17624 char dlclose ();
17625 int
17626 main ()
17627 {
17628 return dlclose ();
17629   ;
17630   return 0;
17631 }
17632 _ACEOF
17633 if ac_fn_c_try_link "$LINENO"; then :
17634   ac_cv_lib_dl_dlclose=yes
17635 else
17636   ac_cv_lib_dl_dlclose=no
17637 fi
17638 rm -f core conftest.err conftest.$ac_objext \
17639     conftest$ac_exeext conftest.$ac_ext
17640 LIBS=$ac_check_lib_save_LIBS
17641 fi
17642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlclose" >&5
17643 $as_echo "$ac_cv_lib_dl_dlclose" >&6; }
17644 if test "x$ac_cv_lib_dl_dlclose" = xyes; then :
17645   LIBDL="-ldl"
17646 fi
17647
17648
17649 if test "$enable_nfsv4" = yes; then
17650
17651
17652     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for event_dispatch in -levent" >&5
17653 $as_echo_n "checking for event_dispatch in -levent... " >&6; }
17654 if ${ac_cv_lib_event_event_dispatch+:} false; then :
17655   $as_echo_n "(cached) " >&6
17656 else
17657   ac_check_lib_save_LIBS=$LIBS
17658 LIBS="-levent  $LIBS"
17659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17660 /* end confdefs.h.  */
17661
17662 /* Override any GCC internal prototype to avoid an error.
17663    Use char because int might match the return type of a GCC
17664    builtin and then its argument prototype would still apply.  */
17665 #ifdef __cplusplus
17666 extern "C"
17667 #endif
17668 char event_dispatch ();
17669 int
17670 main ()
17671 {
17672 return event_dispatch ();
17673   ;
17674   return 0;
17675 }
17676 _ACEOF
17677 if ac_fn_c_try_link "$LINENO"; then :
17678   ac_cv_lib_event_event_dispatch=yes
17679 else
17680   ac_cv_lib_event_event_dispatch=no
17681 fi
17682 rm -f core conftest.err conftest.$ac_objext \
17683     conftest$ac_exeext conftest.$ac_ext
17684 LIBS=$ac_check_lib_save_LIBS
17685 fi
17686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_event_event_dispatch" >&5
17687 $as_echo "$ac_cv_lib_event_event_dispatch" >&6; }
17688 if test "x$ac_cv_lib_event_event_dispatch" = xyes; then :
17689   LIBEVENT=-levent
17690 else
17691   as_fn_error $? "libevent not found." "$LINENO" 5
17692 fi
17693
17694
17695
17696   for ac_header in event.h
17697 do :
17698   ac_fn_c_check_header_mongrel "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default"
17699 if test "x$ac_cv_header_event_h" = xyes; then :
17700   cat >>confdefs.h <<_ACEOF
17701 #define HAVE_EVENT_H 1
17702 _ACEOF
17703
17704 else
17705   as_fn_error $? "libevent headers not found." "$LINENO" 5
17706 fi
17707
17708 done
17709
17710
17711
17712
17713
17714
17715     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
17716 $as_echo_n "checking for nfs4_init_name_mapping in -lnfsidmap... " >&6; }
17717 if ${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+:} false; then :
17718   $as_echo_n "(cached) " >&6
17719 else
17720   ac_check_lib_save_LIBS=$LIBS
17721 LIBS="-lnfsidmap  $LIBS"
17722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17723 /* end confdefs.h.  */
17724
17725 /* Override any GCC internal prototype to avoid an error.
17726    Use char because int might match the return type of a GCC
17727    builtin and then its argument prototype would still apply.  */
17728 #ifdef __cplusplus
17729 extern "C"
17730 #endif
17731 char nfs4_init_name_mapping ();
17732 int
17733 main ()
17734 {
17735 return nfs4_init_name_mapping ();
17736   ;
17737   return 0;
17738 }
17739 _ACEOF
17740 if ac_fn_c_try_link "$LINENO"; then :
17741   ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
17742 else
17743   ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
17744 fi
17745 rm -f core conftest.err conftest.$ac_objext \
17746     conftest$ac_exeext conftest.$ac_ext
17747 LIBS=$ac_check_lib_save_LIBS
17748 fi
17749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
17750 $as_echo "$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6; }
17751 if test "x$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" = xyes; then :
17752   LIBNFSIDMAP=-lnfsidmap
17753 else
17754   as_fn_error $? "libnfsidmap not found." "$LINENO" 5
17755 fi
17756
17757
17758   for ac_header in nfsidmap.h
17759 do :
17760   ac_fn_c_check_header_mongrel "$LINENO" "nfsidmap.h" "ac_cv_header_nfsidmap_h" "$ac_includes_default"
17761 if test "x$ac_cv_header_nfsidmap_h" = xyes; then :
17762   cat >>confdefs.h <<_ACEOF
17763 #define HAVE_NFSIDMAP_H 1
17764 _ACEOF
17765
17766 else
17767   as_fn_error $? "libnfsidmap headers not found." "$LINENO" 5
17768 fi
17769
17770 done
17771
17772
17773     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nfs4_set_debug in -lnfsidmap" >&5
17774 $as_echo_n "checking for nfs4_set_debug in -lnfsidmap... " >&6; }
17775 if ${ac_cv_lib_nfsidmap_nfs4_set_debug+:} false; then :
17776   $as_echo_n "(cached) " >&6
17777 else
17778   ac_check_lib_save_LIBS=$LIBS
17779 LIBS="-lnfsidmap  $LIBS"
17780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17781 /* end confdefs.h.  */
17782
17783 /* Override any GCC internal prototype to avoid an error.
17784    Use char because int might match the return type of a GCC
17785    builtin and then its argument prototype would still apply.  */
17786 #ifdef __cplusplus
17787 extern "C"
17788 #endif
17789 char nfs4_set_debug ();
17790 int
17791 main ()
17792 {
17793 return nfs4_set_debug ();
17794   ;
17795   return 0;
17796 }
17797 _ACEOF
17798 if ac_fn_c_try_link "$LINENO"; then :
17799   ac_cv_lib_nfsidmap_nfs4_set_debug=yes
17800 else
17801   ac_cv_lib_nfsidmap_nfs4_set_debug=no
17802 fi
17803 rm -f core conftest.err conftest.$ac_objext \
17804     conftest$ac_exeext conftest.$ac_ext
17805 LIBS=$ac_check_lib_save_LIBS
17806 fi
17807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nfsidmap_nfs4_set_debug" >&5
17808 $as_echo "$ac_cv_lib_nfsidmap_nfs4_set_debug" >&6; }
17809 if test "x$ac_cv_lib_nfsidmap_nfs4_set_debug" = xyes; then :
17810
17811 $as_echo "#define HAVE_NFS4_SET_DEBUG 1" >>confdefs.h
17812
17813 fi
17814
17815
17816       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nfs4_owner_to_uid in -lnfsidmap" >&5
17817 $as_echo_n "checking for nfs4_owner_to_uid in -lnfsidmap... " >&6; }
17818 if ${ac_cv_lib_nfsidmap_nfs4_owner_to_uid+:} false; then :
17819   $as_echo_n "(cached) " >&6
17820 else
17821   ac_check_lib_save_LIBS=$LIBS
17822 LIBS="-lnfsidmap  $LIBS"
17823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17824 /* end confdefs.h.  */
17825
17826 /* Override any GCC internal prototype to avoid an error.
17827    Use char because int might match the return type of a GCC
17828    builtin and then its argument prototype would still apply.  */
17829 #ifdef __cplusplus
17830 extern "C"
17831 #endif
17832 char nfs4_owner_to_uid ();
17833 int
17834 main ()
17835 {
17836 return nfs4_owner_to_uid ();
17837   ;
17838   return 0;
17839 }
17840 _ACEOF
17841 if ac_fn_c_try_link "$LINENO"; then :
17842   ac_cv_lib_nfsidmap_nfs4_owner_to_uid=yes
17843 else
17844   ac_cv_lib_nfsidmap_nfs4_owner_to_uid=no
17845 fi
17846 rm -f core conftest.err conftest.$ac_objext \
17847     conftest$ac_exeext conftest.$ac_ext
17848 LIBS=$ac_check_lib_save_LIBS
17849 fi
17850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nfsidmap_nfs4_owner_to_uid" >&5
17851 $as_echo "$ac_cv_lib_nfsidmap_nfs4_owner_to_uid" >&6; }
17852 if test "x$ac_cv_lib_nfsidmap_nfs4_owner_to_uid" = xyes; then :
17853   :
17854 fi
17855
17856
17857
17858
17859
17860
17861
17862
17863     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for keyctl_instantiate in -lkeyutils" >&5
17864 $as_echo_n "checking for keyctl_instantiate in -lkeyutils... " >&6; }
17865 if ${ac_cv_lib_keyutils_keyctl_instantiate+:} false; then :
17866   $as_echo_n "(cached) " >&6
17867 else
17868   ac_check_lib_save_LIBS=$LIBS
17869 LIBS="-lkeyutils  $LIBS"
17870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17871 /* end confdefs.h.  */
17872
17873 /* Override any GCC internal prototype to avoid an error.
17874    Use char because int might match the return type of a GCC
17875    builtin and then its argument prototype would still apply.  */
17876 #ifdef __cplusplus
17877 extern "C"
17878 #endif
17879 char keyctl_instantiate ();
17880 int
17881 main ()
17882 {
17883 return keyctl_instantiate ();
17884   ;
17885   return 0;
17886 }
17887 _ACEOF
17888 if ac_fn_c_try_link "$LINENO"; then :
17889   ac_cv_lib_keyutils_keyctl_instantiate=yes
17890 else
17891   ac_cv_lib_keyutils_keyctl_instantiate=no
17892 fi
17893 rm -f core conftest.err conftest.$ac_objext \
17894     conftest$ac_exeext conftest.$ac_ext
17895 LIBS=$ac_check_lib_save_LIBS
17896 fi
17897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_keyutils_keyctl_instantiate" >&5
17898 $as_echo "$ac_cv_lib_keyutils_keyctl_instantiate" >&6; }
17899 if test "x$ac_cv_lib_keyutils_keyctl_instantiate" = xyes; then :
17900   LIBKEYUTILS=-lkeyutils
17901 fi
17902
17903
17904
17905   for ac_header in keyutils.h
17906 do :
17907   ac_fn_c_check_header_mongrel "$LINENO" "keyutils.h" "ac_cv_header_keyutils_h" "$ac_includes_default"
17908 if test "x$ac_cv_header_keyutils_h" = xyes; then :
17909   cat >>confdefs.h <<_ACEOF
17910 #define HAVE_KEYUTILS_H 1
17911 _ACEOF
17912
17913 fi
17914
17915 done
17916
17917
17918
17919
17920
17921   for ac_header in sqlite3.h
17922 do :
17923   ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
17924 if test "x$ac_cv_header_sqlite3_h" = xyes; then :
17925   cat >>confdefs.h <<_ACEOF
17926 #define HAVE_SQLITE3_H 1
17927 _ACEOF
17928
17929 fi
17930
17931 done
17932
17933
17934     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_libversion_number in -lsqlite3" >&5
17935 $as_echo_n "checking for sqlite3_libversion_number in -lsqlite3... " >&6; }
17936 if ${ac_cv_lib_sqlite3_sqlite3_libversion_number+:} false; then :
17937   $as_echo_n "(cached) " >&6
17938 else
17939   ac_check_lib_save_LIBS=$LIBS
17940 LIBS="-lsqlite3  $LIBS"
17941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17942 /* end confdefs.h.  */
17943
17944 /* Override any GCC internal prototype to avoid an error.
17945    Use char because int might match the return type of a GCC
17946    builtin and then its argument prototype would still apply.  */
17947 #ifdef __cplusplus
17948 extern "C"
17949 #endif
17950 char sqlite3_libversion_number ();
17951 int
17952 main ()
17953 {
17954 return sqlite3_libversion_number ();
17955   ;
17956   return 0;
17957 }
17958 _ACEOF
17959 if ac_fn_c_try_link "$LINENO"; then :
17960   ac_cv_lib_sqlite3_sqlite3_libversion_number=yes
17961 else
17962   ac_cv_lib_sqlite3_sqlite3_libversion_number=no
17963 fi
17964 rm -f core conftest.err conftest.$ac_objext \
17965     conftest$ac_exeext conftest.$ac_ext
17966 LIBS=$ac_check_lib_save_LIBS
17967 fi
17968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_libversion_number" >&5
17969 $as_echo "$ac_cv_lib_sqlite3_sqlite3_libversion_number" >&6; }
17970 if test "x$ac_cv_lib_sqlite3_sqlite3_libversion_number" = xyes; then :
17971   LIBSQLITE=-lsqlite3
17972 fi
17973
17974
17975
17976   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suitable sqlite3 version" >&5
17977 $as_echo_n "checking for suitable sqlite3 version... " >&6; }
17978
17979   if ${libsqlite3_cv_is_recent+:} false; then :
17980   $as_echo_n "(cached) " >&6
17981 else
17982
17983     saved_LIBS="$LIBS"
17984     LIBS=-lsqlite3
17985     if test "$cross_compiling" = yes; then :
17986   libsqlite3_cv_is_recent=unknown
17987 else
17988   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17989 /* end confdefs.h.  */
17990
17991         #include <stdio.h>
17992         #include <sqlite3.h>
17993         int main()
17994         {
17995                 int vers = sqlite3_libversion_number();
17996
17997                 return vers != SQLITE_VERSION_NUMBER ||
17998                         vers < 3003000;
17999         }
18000
18001 _ACEOF
18002 if ac_fn_c_try_run "$LINENO"; then :
18003   libsqlite3_cv_is_recent=yes
18004 else
18005   libsqlite3_cv_is_recent=no
18006 fi
18007 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18008   conftest.$ac_objext conftest.beam conftest.$ac_ext
18009 fi
18010
18011     LIBS="$saved_LIBS"
18012 fi
18013
18014
18015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libsqlite3_cv_is_recent" >&5
18016 $as_echo "$libsqlite3_cv_is_recent" >&6; }
18017    if test "$libsqlite3_cv_is_recent" = "yes"; then
18018   CONFIG_SQLITE3_TRUE=
18019   CONFIG_SQLITE3_FALSE='#'
18020 else
18021   CONFIG_SQLITE3_TRUE='#'
18022   CONFIG_SQLITE3_FALSE=
18023 fi
18024
18025
18026
18027   if test "$enable_nfsdcld" = "yes"; then
18028         for ac_header in libgen.h sys/inotify.h
18029 do :
18030   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18031 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18032 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18033   cat >>confdefs.h <<_ACEOF
18034 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18035 _ACEOF
18036
18037 else
18038   as_fn_error $? "Cannot find header needed for nfsdcld" "$LINENO" 5
18039 fi
18040
18041 done
18042
18043
18044         if test "$libsqlite3_cv_is_recent" != "yes" ; then
18045                 as_fn_error $? "nfsdcld requires sqlite3" "$LINENO" 5
18046         fi
18047   fi
18048
18049    if test "$enable_nfsdcld" = "yes" ; then
18050   CONFIG_NFSDCLD_TRUE=
18051   CONFIG_NFSDCLD_FALSE='#'
18052 else
18053   CONFIG_NFSDCLD_TRUE='#'
18054   CONFIG_NFSDCLD_FALSE=
18055 fi
18056
18057
18058       if test "$enable_gss" = yes; then
18059
18060
18061
18062
18063
18064
18065 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18066         if test -n "$ac_tool_prefix"; then
18067   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18068 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18070 $as_echo_n "checking for $ac_word... " >&6; }
18071 if ${ac_cv_path_PKG_CONFIG+:} false; then :
18072   $as_echo_n "(cached) " >&6
18073 else
18074   case $PKG_CONFIG in
18075   [\\/]* | ?:[\\/]*)
18076   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18077   ;;
18078   *)
18079   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18080 for as_dir in $PATH
18081 do
18082   IFS=$as_save_IFS
18083   test -z "$as_dir" && as_dir=.
18084     for ac_exec_ext in '' $ac_executable_extensions; do
18085   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18086     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18087     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18088     break 2
18089   fi
18090 done
18091   done
18092 IFS=$as_save_IFS
18093
18094   ;;
18095 esac
18096 fi
18097 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18098 if test -n "$PKG_CONFIG"; then
18099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18100 $as_echo "$PKG_CONFIG" >&6; }
18101 else
18102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18103 $as_echo "no" >&6; }
18104 fi
18105
18106
18107 fi
18108 if test -z "$ac_cv_path_PKG_CONFIG"; then
18109   ac_pt_PKG_CONFIG=$PKG_CONFIG
18110   # Extract the first word of "pkg-config", so it can be a program name with args.
18111 set dummy pkg-config; ac_word=$2
18112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18113 $as_echo_n "checking for $ac_word... " >&6; }
18114 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
18115   $as_echo_n "(cached) " >&6
18116 else
18117   case $ac_pt_PKG_CONFIG in
18118   [\\/]* | ?:[\\/]*)
18119   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
18120   ;;
18121   *)
18122   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18123 for as_dir in $PATH
18124 do
18125   IFS=$as_save_IFS
18126   test -z "$as_dir" && as_dir=.
18127     for ac_exec_ext in '' $ac_executable_extensions; do
18128   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18129     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18130     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18131     break 2
18132   fi
18133 done
18134   done
18135 IFS=$as_save_IFS
18136
18137   ;;
18138 esac
18139 fi
18140 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18141 if test -n "$ac_pt_PKG_CONFIG"; then
18142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
18143 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
18144 else
18145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18146 $as_echo "no" >&6; }
18147 fi
18148
18149   if test "x$ac_pt_PKG_CONFIG" = x; then
18150     PKG_CONFIG=""
18151   else
18152     case $cross_compiling:$ac_tool_warned in
18153 yes:)
18154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18155 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18156 ac_tool_warned=yes ;;
18157 esac
18158     PKG_CONFIG=$ac_pt_PKG_CONFIG
18159   fi
18160 else
18161   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18162 fi
18163
18164 fi
18165 if test -n "$PKG_CONFIG"; then
18166         _pkg_min_version=0.9.0
18167         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
18168 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
18169         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
18170                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18171 $as_echo "yes" >&6; }
18172         else
18173                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18174 $as_echo "no" >&6; }
18175                 PKG_CONFIG=""
18176         fi
18177 fi
18178
18179
18180
18181 pkg_failed=no
18182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSSGLUE" >&5
18183 $as_echo_n "checking for GSSGLUE... " >&6; }
18184
18185 if test -n "$GSSGLUE_CFLAGS"; then
18186     pkg_cv_GSSGLUE_CFLAGS="$GSSGLUE_CFLAGS"
18187  elif test -n "$PKG_CONFIG"; then
18188     if test -n "$PKG_CONFIG" && \
18189     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgssglue >= 0.3\""; } >&5
18190   ($PKG_CONFIG --exists --print-errors "libgssglue >= 0.3") 2>&5
18191   ac_status=$?
18192   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18193   test $ac_status = 0; }; then
18194   pkg_cv_GSSGLUE_CFLAGS=`$PKG_CONFIG --cflags "libgssglue >= 0.3" 2>/dev/null`
18195 else
18196   pkg_failed=yes
18197 fi
18198  else
18199     pkg_failed=untried
18200 fi
18201 if test -n "$GSSGLUE_LIBS"; then
18202     pkg_cv_GSSGLUE_LIBS="$GSSGLUE_LIBS"
18203  elif test -n "$PKG_CONFIG"; then
18204     if test -n "$PKG_CONFIG" && \
18205     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgssglue >= 0.3\""; } >&5
18206   ($PKG_CONFIG --exists --print-errors "libgssglue >= 0.3") 2>&5
18207   ac_status=$?
18208   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18209   test $ac_status = 0; }; then
18210   pkg_cv_GSSGLUE_LIBS=`$PKG_CONFIG --libs "libgssglue >= 0.3" 2>/dev/null`
18211 else
18212   pkg_failed=yes
18213 fi
18214  else
18215     pkg_failed=untried
18216 fi
18217
18218
18219
18220 if test $pkg_failed = yes; then
18221         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18222 $as_echo "no" >&6; }
18223
18224 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18225         _pkg_short_errors_supported=yes
18226 else
18227         _pkg_short_errors_supported=no
18228 fi
18229         if test $_pkg_short_errors_supported = yes; then
18230                 GSSGLUE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgssglue >= 0.3" 2>&1`
18231         else
18232                 GSSGLUE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgssglue >= 0.3" 2>&1`
18233         fi
18234         # Put the nasty error message in config.log where it belongs
18235         echo "$GSSGLUE_PKG_ERRORS" >&5
18236
18237         as_fn_error $? "Package requirements (libgssglue >= 0.3) were not met:
18238
18239 $GSSGLUE_PKG_ERRORS
18240
18241 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18242 installed software in a non-standard prefix.
18243
18244 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
18245 and GSSGLUE_LIBS to avoid the need to call pkg-config.
18246 See the pkg-config man page for more details." "$LINENO" 5
18247
18248 elif test $pkg_failed = untried; then
18249         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18250 $as_echo "no" >&6; }
18251         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18252 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18253 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18254 is in your PATH or set the PKG_CONFIG environment variable to the full
18255 path to pkg-config.
18256
18257 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
18258 and GSSGLUE_LIBS to avoid the need to call pkg-config.
18259 See the pkg-config man page for more details.
18260
18261 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18262 See \`config.log' for more details" "$LINENO" 5; }
18263
18264 else
18265         GSSGLUE_CFLAGS=$pkg_cv_GSSGLUE_CFLAGS
18266         GSSGLUE_LIBS=$pkg_cv_GSSGLUE_LIBS
18267         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18268 $as_echo "yes" >&6; }
18269
18270 fi
18271
18272     if test "$enable_tirpc" = no; then
18273
18274 pkg_failed=no
18275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RPCSECGSS" >&5
18276 $as_echo_n "checking for RPCSECGSS... " >&6; }
18277
18278 if test -n "$RPCSECGSS_CFLAGS"; then
18279     pkg_cv_RPCSECGSS_CFLAGS="$RPCSECGSS_CFLAGS"
18280  elif test -n "$PKG_CONFIG"; then
18281     if test -n "$PKG_CONFIG" && \
18282     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.16\""; } >&5
18283   ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.16") 2>&5
18284   ac_status=$?
18285   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18286   test $ac_status = 0; }; then
18287   pkg_cv_RPCSECGSS_CFLAGS=`$PKG_CONFIG --cflags "librpcsecgss >= 0.16" 2>/dev/null`
18288 else
18289   pkg_failed=yes
18290 fi
18291  else
18292     pkg_failed=untried
18293 fi
18294 if test -n "$RPCSECGSS_LIBS"; then
18295     pkg_cv_RPCSECGSS_LIBS="$RPCSECGSS_LIBS"
18296  elif test -n "$PKG_CONFIG"; then
18297     if test -n "$PKG_CONFIG" && \
18298     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.16\""; } >&5
18299   ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.16") 2>&5
18300   ac_status=$?
18301   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18302   test $ac_status = 0; }; then
18303   pkg_cv_RPCSECGSS_LIBS=`$PKG_CONFIG --libs "librpcsecgss >= 0.16" 2>/dev/null`
18304 else
18305   pkg_failed=yes
18306 fi
18307  else
18308     pkg_failed=untried
18309 fi
18310
18311
18312
18313 if test $pkg_failed = yes; then
18314         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18315 $as_echo "no" >&6; }
18316
18317 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18318         _pkg_short_errors_supported=yes
18319 else
18320         _pkg_short_errors_supported=no
18321 fi
18322         if test $_pkg_short_errors_supported = yes; then
18323                 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librpcsecgss >= 0.16" 2>&1`
18324         else
18325                 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --print-errors "librpcsecgss >= 0.16" 2>&1`
18326         fi
18327         # Put the nasty error message in config.log where it belongs
18328         echo "$RPCSECGSS_PKG_ERRORS" >&5
18329
18330         as_fn_error $? "Package requirements (librpcsecgss >= 0.16) were not met:
18331
18332 $RPCSECGSS_PKG_ERRORS
18333
18334 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18335 installed software in a non-standard prefix.
18336
18337 Alternatively, you may set the environment variables RPCSECGSS_CFLAGS
18338 and RPCSECGSS_LIBS to avoid the need to call pkg-config.
18339 See the pkg-config man page for more details." "$LINENO" 5
18340
18341 elif test $pkg_failed = untried; then
18342         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18343 $as_echo "no" >&6; }
18344         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18345 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18346 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18347 is in your PATH or set the PKG_CONFIG environment variable to the full
18348 path to pkg-config.
18349
18350 Alternatively, you may set the environment variables RPCSECGSS_CFLAGS
18351 and RPCSECGSS_LIBS to avoid the need to call pkg-config.
18352 See the pkg-config man page for more details.
18353
18354 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18355 See \`config.log' for more details" "$LINENO" 5; }
18356
18357 else
18358         RPCSECGSS_CFLAGS=$pkg_cv_RPCSECGSS_CFLAGS
18359         RPCSECGSS_LIBS=$pkg_cv_RPCSECGSS_LIBS
18360         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18361 $as_echo "yes" >&6; }
18362
18363 fi
18364   fi
18365
18366
18367   fi
18368 fi
18369
18370 if test "$enable_nfsv41" = yes; then
18371   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dm_task_create in -ldevmapper" >&5
18372 $as_echo_n "checking for dm_task_create in -ldevmapper... " >&6; }
18373 if ${ac_cv_lib_devmapper_dm_task_create+:} false; then :
18374   $as_echo_n "(cached) " >&6
18375 else
18376   ac_check_lib_save_LIBS=$LIBS
18377 LIBS="-ldevmapper  $LIBS"
18378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18379 /* end confdefs.h.  */
18380
18381 /* Override any GCC internal prototype to avoid an error.
18382    Use char because int might match the return type of a GCC
18383    builtin and then its argument prototype would still apply.  */
18384 #ifdef __cplusplus
18385 extern "C"
18386 #endif
18387 char dm_task_create ();
18388 int
18389 main ()
18390 {
18391 return dm_task_create ();
18392   ;
18393   return 0;
18394 }
18395 _ACEOF
18396 if ac_fn_c_try_link "$LINENO"; then :
18397   ac_cv_lib_devmapper_dm_task_create=yes
18398 else
18399   ac_cv_lib_devmapper_dm_task_create=no
18400 fi
18401 rm -f core conftest.err conftest.$ac_objext \
18402     conftest$ac_exeext conftest.$ac_ext
18403 LIBS=$ac_check_lib_save_LIBS
18404 fi
18405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_devmapper_dm_task_create" >&5
18406 $as_echo "$ac_cv_lib_devmapper_dm_task_create" >&6; }
18407 if test "x$ac_cv_lib_devmapper_dm_task_create" = xyes; then :
18408   LIBDEVMAPPER="-ldevmapper"
18409 else
18410   as_fn_error $? "libdevmapper needed" "$LINENO" 5
18411 fi
18412
18413   ac_fn_c_check_header_mongrel "$LINENO" "libdevmapper.h" "ac_cv_header_libdevmapper_h" "$ac_includes_default"
18414 if test "x$ac_cv_header_libdevmapper_h" = xyes; then :
18415
18416 else
18417   as_fn_error $? "Cannot find devmapper header file libdevmapper.h" "$LINENO" 5
18418 fi
18419
18420
18421 fi
18422
18423  if test "$ac_cv_header_keyutils_h$ac_cv_lib_nfsidmap_nfs4_owner_to_uid" = "yesyes"; then
18424   CONFIG_NFSIDMAP_TRUE=
18425   CONFIG_NFSIDMAP_FALSE='#'
18426 else
18427   CONFIG_NFSIDMAP_TRUE='#'
18428   CONFIG_NFSIDMAP_FALSE=
18429 fi
18430
18431
18432
18433 if test "$knfsd_cv_glibc2" = no; then
18434     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daemon in -lbsd" >&5
18435 $as_echo_n "checking for daemon in -lbsd... " >&6; }
18436 if ${ac_cv_lib_bsd_daemon+:} false; then :
18437   $as_echo_n "(cached) " >&6
18438 else
18439   ac_check_lib_save_LIBS=$LIBS
18440 LIBS="-lbsd  $LIBS"
18441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18442 /* end confdefs.h.  */
18443
18444 /* Override any GCC internal prototype to avoid an error.
18445    Use char because int might match the return type of a GCC
18446    builtin and then its argument prototype would still apply.  */
18447 #ifdef __cplusplus
18448 extern "C"
18449 #endif
18450 char daemon ();
18451 int
18452 main ()
18453 {
18454 return daemon ();
18455   ;
18456   return 0;
18457 }
18458 _ACEOF
18459 if ac_fn_c_try_link "$LINENO"; then :
18460   ac_cv_lib_bsd_daemon=yes
18461 else
18462   ac_cv_lib_bsd_daemon=no
18463 fi
18464 rm -f core conftest.err conftest.$ac_objext \
18465     conftest$ac_exeext conftest.$ac_ext
18466 LIBS=$ac_check_lib_save_LIBS
18467 fi
18468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_daemon" >&5
18469 $as_echo "$ac_cv_lib_bsd_daemon" >&6; }
18470 if test "x$ac_cv_lib_bsd_daemon" = xyes; then :
18471   LIBBSD="-lbsd"
18472 fi
18473
18474 fi
18475
18476 if test "$choose_blkid" != no; then
18477    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_library_version in -lblkid" >&5
18478 $as_echo_n "checking for blkid_get_library_version in -lblkid... " >&6; }
18479 if ${ac_cv_lib_blkid_blkid_get_library_version+:} false; then :
18480   $as_echo_n "(cached) " >&6
18481 else
18482   ac_check_lib_save_LIBS=$LIBS
18483 LIBS="-lblkid  $LIBS"
18484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18485 /* end confdefs.h.  */
18486
18487 /* Override any GCC internal prototype to avoid an error.
18488    Use char because int might match the return type of a GCC
18489    builtin and then its argument prototype would still apply.  */
18490 #ifdef __cplusplus
18491 extern "C"
18492 #endif
18493 char blkid_get_library_version ();
18494 int
18495 main ()
18496 {
18497 return blkid_get_library_version ();
18498   ;
18499   return 0;
18500 }
18501 _ACEOF
18502 if ac_fn_c_try_link "$LINENO"; then :
18503   ac_cv_lib_blkid_blkid_get_library_version=yes
18504 else
18505   ac_cv_lib_blkid_blkid_get_library_version=no
18506 fi
18507 rm -f core conftest.err conftest.$ac_objext \
18508     conftest$ac_exeext conftest.$ac_ext
18509 LIBS=$ac_check_lib_save_LIBS
18510 fi
18511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_library_version" >&5
18512 $as_echo "$ac_cv_lib_blkid_blkid_get_library_version" >&6; }
18513 if test "x$ac_cv_lib_blkid_blkid_get_library_version" = xyes; then :
18514   LIBBLKID="-lblkid"
18515 else
18516   as_fn_error $? "libblkid needed" "$LINENO" 5
18517 fi
18518
18519    ac_fn_c_check_header_mongrel "$LINENO" "blkid/blkid.h" "ac_cv_header_blkid_blkid_h" "$ac_includes_default"
18520 if test "x$ac_cv_header_blkid_blkid_h" = xyes; then :
18521
18522 else
18523   as_fn_error $? "Cannot find libblkid header file blkid/blkid.h" "$LINENO" 5
18524 fi
18525
18526
18527
18528   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suitable libblkid version" >&5
18529 $as_echo_n "checking for suitable libblkid version... " >&6; }
18530   if ${libblkid_cv_is_recent+:} false; then :
18531   $as_echo_n "(cached) " >&6
18532 else
18533
18534     saved_LIBS="$LIBS"
18535     LIBS=-lblkid
18536     if test "$cross_compiling" = yes; then :
18537   libblkid_cv_is_recent=unknown
18538 else
18539   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18540 /* end confdefs.h.  */
18541
18542         #include <blkid/blkid.h>
18543         int main()
18544         {
18545                 int vers = blkid_get_library_version(0, 0);
18546                 return vers >= 140 ? 0 : 1;
18547         }
18548
18549 _ACEOF
18550 if ac_fn_c_try_run "$LINENO"; then :
18551   libblkid_cv_is_recent=yes
18552 else
18553   libblkid_cv_is_recent=no
18554 fi
18555 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18556   conftest.$ac_objext conftest.beam conftest.$ac_ext
18557 fi
18558
18559     LIBS="$saved_LIBS"
18560 fi
18561
18562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libblkid_cv_is_recent" >&5
18563 $as_echo "$libblkid_cv_is_recent" >&6; }
18564
18565    if test $choose_blkid = yes; then
18566       use_blkid=1
18567       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
18568 $as_echo "$as_me: WARNING: libblkid is old and may cause mountd to leak memory" >&2;}
18569    else
18570       if test $libblkid_cv_is_recent = yes
18571       then use_blkid=1
18572       else use_blkid=0
18573            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: uuid support disabled as libblkid is too old" >&5
18574 $as_echo "$as_me: WARNING: uuid support disabled as libblkid is too old" >&2;}
18575       fi
18576     fi
18577
18578 cat >>confdefs.h <<_ACEOF
18579 #define USE_BLKID $use_blkid
18580 _ACEOF
18581
18582 fi
18583
18584
18585
18586
18587
18588
18589 if test "$enable_libmount" != no; then
18590    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mnt_context_do_mount in -lmount" >&5
18591 $as_echo_n "checking for mnt_context_do_mount in -lmount... " >&6; }
18592 if ${ac_cv_lib_mount_mnt_context_do_mount+:} false; then :
18593   $as_echo_n "(cached) " >&6
18594 else
18595   ac_check_lib_save_LIBS=$LIBS
18596 LIBS="-lmount  $LIBS"
18597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18598 /* end confdefs.h.  */
18599
18600 /* Override any GCC internal prototype to avoid an error.
18601    Use char because int might match the return type of a GCC
18602    builtin and then its argument prototype would still apply.  */
18603 #ifdef __cplusplus
18604 extern "C"
18605 #endif
18606 char mnt_context_do_mount ();
18607 int
18608 main ()
18609 {
18610 return mnt_context_do_mount ();
18611   ;
18612   return 0;
18613 }
18614 _ACEOF
18615 if ac_fn_c_try_link "$LINENO"; then :
18616   ac_cv_lib_mount_mnt_context_do_mount=yes
18617 else
18618   ac_cv_lib_mount_mnt_context_do_mount=no
18619 fi
18620 rm -f core conftest.err conftest.$ac_objext \
18621     conftest$ac_exeext conftest.$ac_ext
18622 LIBS=$ac_check_lib_save_LIBS
18623 fi
18624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mount_mnt_context_do_mount" >&5
18625 $as_echo "$ac_cv_lib_mount_mnt_context_do_mount" >&6; }
18626 if test "x$ac_cv_lib_mount_mnt_context_do_mount" = xyes; then :
18627   LIBMOUNT="-lmount"
18628 else
18629   as_fn_error $? "libmount needed" "$LINENO" 5
18630 fi
18631
18632    ac_fn_c_check_header_mongrel "$LINENO" "libmount/libmount.h" "ac_cv_header_libmount_libmount_h" "$ac_includes_default"
18633 if test "x$ac_cv_header_libmount_libmount_h" = xyes; then :
18634
18635 else
18636   as_fn_error $? "Cannot find libmount header file libmount/libmount.h" "$LINENO" 5
18637 fi
18638
18639
18640 fi
18641  if test "$enable_libmount" = "yes"; then
18642   CONFIG_LIBMOUNT_TRUE=
18643   CONFIG_LIBMOUNT_FALSE='#'
18644 else
18645   CONFIG_LIBMOUNT_TRUE='#'
18646   CONFIG_LIBMOUNT_FALSE=
18647 fi
18648
18649
18650
18651 if test "$enable_gss" = yes; then
18652     ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
18653 if test "x$ac_cv_func_getnameinfo" = xyes; then :
18654
18655 else
18656   as_fn_error $? "GSSAPI support requires 'getnameinfo' function" "$LINENO" 5
18657 fi
18658
18659
18660
18661
18662     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
18663 $as_echo_n "checking for nfs4_init_name_mapping in -lnfsidmap... " >&6; }
18664 if ${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+:} false; then :
18665   $as_echo_n "(cached) " >&6
18666 else
18667   ac_check_lib_save_LIBS=$LIBS
18668 LIBS="-lnfsidmap  $LIBS"
18669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18670 /* end confdefs.h.  */
18671
18672 /* Override any GCC internal prototype to avoid an error.
18673    Use char because int might match the return type of a GCC
18674    builtin and then its argument prototype would still apply.  */
18675 #ifdef __cplusplus
18676 extern "C"
18677 #endif
18678 char nfs4_init_name_mapping ();
18679 int
18680 main ()
18681 {
18682 return nfs4_init_name_mapping ();
18683   ;
18684   return 0;
18685 }
18686 _ACEOF
18687 if ac_fn_c_try_link "$LINENO"; then :
18688   ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
18689 else
18690   ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
18691 fi
18692 rm -f core conftest.err conftest.$ac_objext \
18693     conftest$ac_exeext conftest.$ac_ext
18694 LIBS=$ac_check_lib_save_LIBS
18695 fi
18696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
18697 $as_echo "$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6; }
18698 if test "x$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" = xyes; then :
18699   LIBNFSIDMAP=-lnfsidmap
18700 else
18701   as_fn_error $? "libnfsidmap not found." "$LINENO" 5
18702 fi
18703
18704
18705   for ac_header in nfsidmap.h
18706 do :
18707   ac_fn_c_check_header_mongrel "$LINENO" "nfsidmap.h" "ac_cv_header_nfsidmap_h" "$ac_includes_default"
18708 if test "x$ac_cv_header_nfsidmap_h" = xyes; then :
18709   cat >>confdefs.h <<_ACEOF
18710 #define HAVE_NFSIDMAP_H 1
18711 _ACEOF
18712
18713 else
18714   as_fn_error $? "libnfsidmap headers not found." "$LINENO" 5
18715 fi
18716
18717 done
18718
18719
18720     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nfs4_set_debug in -lnfsidmap" >&5
18721 $as_echo_n "checking for nfs4_set_debug in -lnfsidmap... " >&6; }
18722 if ${ac_cv_lib_nfsidmap_nfs4_set_debug+:} false; then :
18723   $as_echo_n "(cached) " >&6
18724 else
18725   ac_check_lib_save_LIBS=$LIBS
18726 LIBS="-lnfsidmap  $LIBS"
18727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18728 /* end confdefs.h.  */
18729
18730 /* Override any GCC internal prototype to avoid an error.
18731    Use char because int might match the return type of a GCC
18732    builtin and then its argument prototype would still apply.  */
18733 #ifdef __cplusplus
18734 extern "C"
18735 #endif
18736 char nfs4_set_debug ();
18737 int
18738 main ()
18739 {
18740 return nfs4_set_debug ();
18741   ;
18742   return 0;
18743 }
18744 _ACEOF
18745 if ac_fn_c_try_link "$LINENO"; then :
18746   ac_cv_lib_nfsidmap_nfs4_set_debug=yes
18747 else
18748   ac_cv_lib_nfsidmap_nfs4_set_debug=no
18749 fi
18750 rm -f core conftest.err conftest.$ac_objext \
18751     conftest$ac_exeext conftest.$ac_ext
18752 LIBS=$ac_check_lib_save_LIBS
18753 fi
18754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nfsidmap_nfs4_set_debug" >&5
18755 $as_echo "$ac_cv_lib_nfsidmap_nfs4_set_debug" >&6; }
18756 if test "x$ac_cv_lib_nfsidmap_nfs4_set_debug" = xyes; then :
18757
18758 $as_echo "#define HAVE_NFS4_SET_DEBUG 1" >>confdefs.h
18759
18760 fi
18761
18762
18763       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nfs4_owner_to_uid in -lnfsidmap" >&5
18764 $as_echo_n "checking for nfs4_owner_to_uid in -lnfsidmap... " >&6; }
18765 if ${ac_cv_lib_nfsidmap_nfs4_owner_to_uid+:} false; then :
18766   $as_echo_n "(cached) " >&6
18767 else
18768   ac_check_lib_save_LIBS=$LIBS
18769 LIBS="-lnfsidmap  $LIBS"
18770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18771 /* end confdefs.h.  */
18772
18773 /* Override any GCC internal prototype to avoid an error.
18774    Use char because int might match the return type of a GCC
18775    builtin and then its argument prototype would still apply.  */
18776 #ifdef __cplusplus
18777 extern "C"
18778 #endif
18779 char nfs4_owner_to_uid ();
18780 int
18781 main ()
18782 {
18783 return nfs4_owner_to_uid ();
18784   ;
18785   return 0;
18786 }
18787 _ACEOF
18788 if ac_fn_c_try_link "$LINENO"; then :
18789   ac_cv_lib_nfsidmap_nfs4_owner_to_uid=yes
18790 else
18791   ac_cv_lib_nfsidmap_nfs4_owner_to_uid=no
18792 fi
18793 rm -f core conftest.err conftest.$ac_objext \
18794     conftest$ac_exeext conftest.$ac_ext
18795 LIBS=$ac_check_lib_save_LIBS
18796 fi
18797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nfsidmap_nfs4_owner_to_uid" >&5
18798 $as_echo "$ac_cv_lib_nfsidmap_nfs4_owner_to_uid" >&6; }
18799 if test "x$ac_cv_lib_nfsidmap_nfs4_owner_to_uid" = xyes; then :
18800   :
18801 fi
18802
18803
18804
18805
18806
18807
18808
18809   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kerberos v5" >&5
18810 $as_echo_n "checking for Kerberos v5... " >&6; }
18811
18812 # Check whether --with-krb5 was given.
18813 if test "${with_krb5+set}" = set; then :
18814   withval=$with_krb5;  case "$withval" in
18815     yes|no)
18816        krb5_with=""
18817        ;;
18818     *)
18819        krb5_with="$withval"
18820        ;;
18821     esac
18822
18823 fi
18824
18825
18826   for dir in $krb5_with /usr /usr/kerberos /usr/local /usr/local/krb5 \
18827              /usr/krb5 /usr/heimdal /usr/local/heimdal /usr/athena ; do
18828             K5CONFIG=""
18829     if test -f $dir/bin/krb5-config; then
18830       K5CONFIG=$dir/bin/krb5-config
18831     elif test -f "/usr/kerberos/bin/krb5-config"; then
18832       K5CONFIG="/usr/kerberos/bin/krb5-config"
18833     elif test -f "/usr/lib/mit/bin/krb5-config"; then
18834       K5CONFIG="/usr/lib/mit/bin/krb5-config"
18835     fi
18836     if test "$K5CONFIG" != ""; then
18837       KRBCFLAGS=`$K5CONFIG --cflags`
18838       KRBLIBS=`$K5CONFIG --libs`
18839       K5VERS=`$K5CONFIG --version | head -n 1 | awk '{split($(4),v,"."); if (v["3"] == "") v["3"] = "0"; print v["1"]v["2"]v["3"] }'`
18840
18841 cat >>confdefs.h <<_ACEOF
18842 #define KRB5_VERSION $K5VERS
18843 _ACEOF
18844
18845       if test -f $dir/include/gssapi/gssapi_krb5.h -a \
18846                 \( -f $dir/lib/libgssapi_krb5.a -o \
18847                    -f $dir/lib64/libgssapi_krb5.a -o \
18848                    -f $dir/lib64/libgssapi_krb5.so -o \
18849                    -f $dir/lib/libgssapi_krb5.so \) ; then
18850
18851 $as_echo "#define HAVE_KRB5 1" >>confdefs.h
18852
18853          KRBDIR="$dir"
18854                      if test $K5VERS -le 131; then
18855
18856 $as_echo "#define USE_GSS_KRB5_CCACHE_NAME 1" >>confdefs.h
18857
18858          fi
18859          gssapi_lib=gssapi_krb5
18860          break
18861                   elif test \( -f $dir/include/heim_err.h -o\
18862                  -f $dir/include/heimdal/heim_err.h \) -a \
18863                 -f $dir/lib/libroken.a; then
18864
18865 $as_echo "#define HAVE_HEIMDAL 1" >>confdefs.h
18866
18867          KRBDIR="$dir"
18868          gssapi_lib=gssapi
18869         break
18870       fi
18871     fi
18872   done
18873     if test "x$KRBDIR" = "x"; then
18874     if test "x$krb5_with" = "x"; then
18875       as_fn_error $? "Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" "$LINENO" 5
18876     else
18877       as_fn_error $? "Kerberos v5 with GSS support not found at $krb5_with" "$LINENO" 5
18878     fi
18879   fi
18880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRBDIR" >&5
18881 $as_echo "$KRBDIR" >&6; }
18882
18883     echo "The current KRBDIR is $KRBDIR"
18884   if test "$KRBDIR/lib" = "/lib" -o "$KRBDIR/lib" = "/usr/lib" \
18885        -o "$KRBDIR/lib" = "//lib" -o "$KRBDIR/lib" = "/usr//lib" ; then
18886     KRBLDFLAGS="";
18887   elif /sbin/ldconfig -p | grep > /dev/null "=> $KRBDIR/lib/"; then
18888     KRBLDFLAGS="";
18889   else
18890     KRBLDFLAGS="-Wl,-rpath=$KRBDIR/lib"
18891   fi
18892
18893     as_ac_Lib=`$as_echo "ac_cv_lib_$gssapi_lib''_gss_krb5_export_lucid_sec_context" | $as_tr_sh`
18894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib" >&5
18895 $as_echo_n "checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib... " >&6; }
18896 if eval \${$as_ac_Lib+:} false; then :
18897   $as_echo_n "(cached) " >&6
18898 else
18899   ac_check_lib_save_LIBS=$LIBS
18900 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
18901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18902 /* end confdefs.h.  */
18903
18904 /* Override any GCC internal prototype to avoid an error.
18905    Use char because int might match the return type of a GCC
18906    builtin and then its argument prototype would still apply.  */
18907 #ifdef __cplusplus
18908 extern "C"
18909 #endif
18910 char gss_krb5_export_lucid_sec_context ();
18911 int
18912 main ()
18913 {
18914 return gss_krb5_export_lucid_sec_context ();
18915   ;
18916   return 0;
18917 }
18918 _ACEOF
18919 if ac_fn_c_try_link "$LINENO"; then :
18920   eval "$as_ac_Lib=yes"
18921 else
18922   eval "$as_ac_Lib=no"
18923 fi
18924 rm -f core conftest.err conftest.$ac_objext \
18925     conftest$ac_exeext conftest.$ac_ext
18926 LIBS=$ac_check_lib_save_LIBS
18927 fi
18928 eval ac_res=\$$as_ac_Lib
18929                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18930 $as_echo "$ac_res" >&6; }
18931 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18932
18933 $as_echo "#define HAVE_LUCID_CONTEXT_SUPPORT 1" >>confdefs.h
18934
18935 fi
18936
18937   as_ac_Lib=`$as_echo "ac_cv_lib_$gssapi_lib''_gss_krb5_set_allowable_enctypes" | $as_tr_sh`
18938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib" >&5
18939 $as_echo_n "checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib... " >&6; }
18940 if eval \${$as_ac_Lib+:} false; then :
18941   $as_echo_n "(cached) " >&6
18942 else
18943   ac_check_lib_save_LIBS=$LIBS
18944 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
18945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18946 /* end confdefs.h.  */
18947
18948 /* Override any GCC internal prototype to avoid an error.
18949    Use char because int might match the return type of a GCC
18950    builtin and then its argument prototype would still apply.  */
18951 #ifdef __cplusplus
18952 extern "C"
18953 #endif
18954 char gss_krb5_set_allowable_enctypes ();
18955 int
18956 main ()
18957 {
18958 return gss_krb5_set_allowable_enctypes ();
18959   ;
18960   return 0;
18961 }
18962 _ACEOF
18963 if ac_fn_c_try_link "$LINENO"; then :
18964   eval "$as_ac_Lib=yes"
18965 else
18966   eval "$as_ac_Lib=no"
18967 fi
18968 rm -f core conftest.err conftest.$ac_objext \
18969     conftest$ac_exeext conftest.$ac_ext
18970 LIBS=$ac_check_lib_save_LIBS
18971 fi
18972 eval ac_res=\$$as_ac_Lib
18973                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18974 $as_echo "$ac_res" >&6; }
18975 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18976
18977 $as_echo "#define HAVE_SET_ALLOWABLE_ENCTYPES 1" >>confdefs.h
18978
18979 fi
18980
18981   as_ac_Lib=`$as_echo "ac_cv_lib_$gssapi_lib''_gss_krb5_ccache_name" | $as_tr_sh`
18982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_ccache_name in -l$gssapi_lib" >&5
18983 $as_echo_n "checking for gss_krb5_ccache_name in -l$gssapi_lib... " >&6; }
18984 if eval \${$as_ac_Lib+:} false; then :
18985   $as_echo_n "(cached) " >&6
18986 else
18987   ac_check_lib_save_LIBS=$LIBS
18988 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
18989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18990 /* end confdefs.h.  */
18991
18992 /* Override any GCC internal prototype to avoid an error.
18993    Use char because int might match the return type of a GCC
18994    builtin and then its argument prototype would still apply.  */
18995 #ifdef __cplusplus
18996 extern "C"
18997 #endif
18998 char gss_krb5_ccache_name ();
18999 int
19000 main ()
19001 {
19002 return gss_krb5_ccache_name ();
19003   ;
19004   return 0;
19005 }
19006 _ACEOF
19007 if ac_fn_c_try_link "$LINENO"; then :
19008   eval "$as_ac_Lib=yes"
19009 else
19010   eval "$as_ac_Lib=no"
19011 fi
19012 rm -f core conftest.err conftest.$ac_objext \
19013     conftest$ac_exeext conftest.$ac_ext
19014 LIBS=$ac_check_lib_save_LIBS
19015 fi
19016 eval ac_res=\$$as_ac_Lib
19017                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19018 $as_echo "$ac_res" >&6; }
19019 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
19020
19021 $as_echo "#define HAVE_GSS_KRB5_CCACHE_NAME 1" >>confdefs.h
19022
19023 fi
19024
19025
19026     as_ac_Lib=`$as_echo "ac_cv_lib_$gssapi_lib''_krb5_get_error_message" | $as_tr_sh`
19027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_get_error_message in -l$gssapi_lib" >&5
19028 $as_echo_n "checking for krb5_get_error_message in -l$gssapi_lib... " >&6; }
19029 if eval \${$as_ac_Lib+:} false; then :
19030   $as_echo_n "(cached) " >&6
19031 else
19032   ac_check_lib_save_LIBS=$LIBS
19033 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
19034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19035 /* end confdefs.h.  */
19036
19037 /* Override any GCC internal prototype to avoid an error.
19038    Use char because int might match the return type of a GCC
19039    builtin and then its argument prototype would still apply.  */
19040 #ifdef __cplusplus
19041 extern "C"
19042 #endif
19043 char krb5_get_error_message ();
19044 int
19045 main ()
19046 {
19047 return krb5_get_error_message ();
19048   ;
19049   return 0;
19050 }
19051 _ACEOF
19052 if ac_fn_c_try_link "$LINENO"; then :
19053   eval "$as_ac_Lib=yes"
19054 else
19055   eval "$as_ac_Lib=no"
19056 fi
19057 rm -f core conftest.err conftest.$ac_objext \
19058     conftest$ac_exeext conftest.$ac_ext
19059 LIBS=$ac_check_lib_save_LIBS
19060 fi
19061 eval ac_res=\$$as_ac_Lib
19062                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19063 $as_echo "$ac_res" >&6; }
19064 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
19065
19066 $as_echo "#define HAVE_KRB5_GET_ERROR_MESSAGE 1" >>confdefs.h
19067
19068 fi
19069
19070
19071     as_ac_Lib=`$as_echo "ac_cv_lib_$gssapi_lib''_krb5_get_init_creds_opt_set_addressless" | $as_tr_sh`
19072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_get_init_creds_opt_set_addressless in -l$gssapi_lib" >&5
19073 $as_echo_n "checking for krb5_get_init_creds_opt_set_addressless in -l$gssapi_lib... " >&6; }
19074 if eval \${$as_ac_Lib+:} false; then :
19075   $as_echo_n "(cached) " >&6
19076 else
19077   ac_check_lib_save_LIBS=$LIBS
19078 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
19079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19080 /* end confdefs.h.  */
19081
19082 /* Override any GCC internal prototype to avoid an error.
19083    Use char because int might match the return type of a GCC
19084    builtin and then its argument prototype would still apply.  */
19085 #ifdef __cplusplus
19086 extern "C"
19087 #endif
19088 char krb5_get_init_creds_opt_set_addressless ();
19089 int
19090 main ()
19091 {
19092 return krb5_get_init_creds_opt_set_addressless ();
19093   ;
19094   return 0;
19095 }
19096 _ACEOF
19097 if ac_fn_c_try_link "$LINENO"; then :
19098   eval "$as_ac_Lib=yes"
19099 else
19100   eval "$as_ac_Lib=no"
19101 fi
19102 rm -f core conftest.err conftest.$ac_objext \
19103     conftest$ac_exeext conftest.$ac_ext
19104 LIBS=$ac_check_lib_save_LIBS
19105 fi
19106 eval ac_res=\$$as_ac_Lib
19107                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19108 $as_echo "$ac_res" >&6; }
19109 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
19110
19111 $as_echo "#define HAVE_KRB5_GET_INIT_CREDS_OPT_SET_ADDRESSLESS 1" >>confdefs.h
19112
19113 fi
19114
19115
19116     if test "x$krb5_with" != "x" -a "$krb5_with" != "$KRBDIR"; then
19117     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&5
19118 $as_echo "$as_me: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&2;}
19119   fi
19120
19121
19122
19123
19124
19125
19126
19127
19128
19129
19130
19131     if test "$enable_tirpc" = no; then
19132
19133         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for authgss_create_default in -lrpcsecgss" >&5
19134 $as_echo_n "checking for authgss_create_default in -lrpcsecgss... " >&6; }
19135 if ${ac_cv_lib_rpcsecgss_authgss_create_default+:} false; then :
19136   $as_echo_n "(cached) " >&6
19137 else
19138   ac_check_lib_save_LIBS=$LIBS
19139 LIBS="-lrpcsecgss  $LIBS"
19140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19141 /* end confdefs.h.  */
19142
19143 /* Override any GCC internal prototype to avoid an error.
19144    Use char because int might match the return type of a GCC
19145    builtin and then its argument prototype would still apply.  */
19146 #ifdef __cplusplus
19147 extern "C"
19148 #endif
19149 char authgss_create_default ();
19150 int
19151 main ()
19152 {
19153 return authgss_create_default ();
19154   ;
19155   return 0;
19156 }
19157 _ACEOF
19158 if ac_fn_c_try_link "$LINENO"; then :
19159   ac_cv_lib_rpcsecgss_authgss_create_default=yes
19160 else
19161   ac_cv_lib_rpcsecgss_authgss_create_default=no
19162 fi
19163 rm -f core conftest.err conftest.$ac_objext \
19164     conftest$ac_exeext conftest.$ac_ext
19165 LIBS=$ac_check_lib_save_LIBS
19166 fi
19167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpcsecgss_authgss_create_default" >&5
19168 $as_echo "$ac_cv_lib_rpcsecgss_authgss_create_default" >&6; }
19169 if test "x$ac_cv_lib_rpcsecgss_authgss_create_default" = xyes; then :
19170   librpcsecgss=1
19171 else
19172   as_fn_error $? "librpcsecgss not found." "$LINENO" 5
19173 fi
19174
19175
19176     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for authgss_set_debug_level in -lrpcsecgss" >&5
19177 $as_echo_n "checking for authgss_set_debug_level in -lrpcsecgss... " >&6; }
19178 if ${ac_cv_lib_rpcsecgss_authgss_set_debug_level+:} false; then :
19179   $as_echo_n "(cached) " >&6
19180 else
19181   ac_check_lib_save_LIBS=$LIBS
19182 LIBS="-lrpcsecgss  $LIBS"
19183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19184 /* end confdefs.h.  */
19185
19186 /* Override any GCC internal prototype to avoid an error.
19187    Use char because int might match the return type of a GCC
19188    builtin and then its argument prototype would still apply.  */
19189 #ifdef __cplusplus
19190 extern "C"
19191 #endif
19192 char authgss_set_debug_level ();
19193 int
19194 main ()
19195 {
19196 return authgss_set_debug_level ();
19197   ;
19198   return 0;
19199 }
19200 _ACEOF
19201 if ac_fn_c_try_link "$LINENO"; then :
19202   ac_cv_lib_rpcsecgss_authgss_set_debug_level=yes
19203 else
19204   ac_cv_lib_rpcsecgss_authgss_set_debug_level=no
19205 fi
19206 rm -f core conftest.err conftest.$ac_objext \
19207     conftest$ac_exeext conftest.$ac_ext
19208 LIBS=$ac_check_lib_save_LIBS
19209 fi
19210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&5
19211 $as_echo "$ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&6; }
19212 if test "x$ac_cv_lib_rpcsecgss_authgss_set_debug_level" = xyes; then :
19213
19214 $as_echo "#define HAVE_AUTHGSS_SET_DEBUG_LEVEL 1" >>confdefs.h
19215
19216 fi
19217
19218
19219   fi
19220
19221
19222
19223 fi
19224
19225
19226
19227   if test "$enable_ipv6" = yes; then
19228
19229         if test "$enable_tirpc" = no; then
19230       as_fn_error $? "'--enable-ipv6' requires TIRPC support." "$LINENO" 5
19231     fi
19232
19233         for ac_func in getifaddrs getnameinfo
19234 do :
19235   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19236 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19237 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19238   cat >>confdefs.h <<_ACEOF
19239 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19240 _ACEOF
19241
19242 else
19243   as_fn_error $? "Missing library functions needed for IPv6." "$LINENO" 5
19244 fi
19245 done
19246
19247
19248     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindresvport_sa in -ltirpc" >&5
19249 $as_echo_n "checking for bindresvport_sa in -ltirpc... " >&6; }
19250 if ${ac_cv_lib_tirpc_bindresvport_sa+:} false; then :
19251   $as_echo_n "(cached) " >&6
19252 else
19253   ac_check_lib_save_LIBS=$LIBS
19254 LIBS="-ltirpc  $LIBS"
19255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19256 /* end confdefs.h.  */
19257
19258 /* Override any GCC internal prototype to avoid an error.
19259    Use char because int might match the return type of a GCC
19260    builtin and then its argument prototype would still apply.  */
19261 #ifdef __cplusplus
19262 extern "C"
19263 #endif
19264 char bindresvport_sa ();
19265 int
19266 main ()
19267 {
19268 return bindresvport_sa ();
19269   ;
19270   return 0;
19271 }
19272 _ACEOF
19273 if ac_fn_c_try_link "$LINENO"; then :
19274   ac_cv_lib_tirpc_bindresvport_sa=yes
19275 else
19276   ac_cv_lib_tirpc_bindresvport_sa=no
19277 fi
19278 rm -f core conftest.err conftest.$ac_objext \
19279     conftest$ac_exeext conftest.$ac_ext
19280 LIBS=$ac_check_lib_save_LIBS
19281 fi
19282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tirpc_bindresvport_sa" >&5
19283 $as_echo "$ac_cv_lib_tirpc_bindresvport_sa" >&6; }
19284 if test "x$ac_cv_lib_tirpc_bindresvport_sa" = xyes; then :
19285   :
19286 else
19287   as_fn_error $? "Missing library functions needed for IPv6." "$LINENO" 5
19288 fi
19289
19290   fi
19291
19292
19293
19294 for ac_header in arpa/inet.h fcntl.h libintl.h limits.h \
19295                  malloc.h memory.h netdb.h netinet/in.h paths.h \
19296                  stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h \
19297                  sys/param.h sys/socket.h sys/time.h sys/vfs.h \
19298                  syslog.h unistd.h com_err.h et/com_err.h \
19299                  ifaddrs.h nfs-plugin.h
19300 do :
19301   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19302 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19303 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19304   cat >>confdefs.h <<_ACEOF
19305 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19306 _ACEOF
19307
19308 fi
19309
19310 done
19311
19312
19313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
19314 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
19315 if ${ac_cv_c_const+:} false; then :
19316   $as_echo_n "(cached) " >&6
19317 else
19318   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19319 /* end confdefs.h.  */
19320
19321 int
19322 main ()
19323 {
19324 /* FIXME: Include the comments suggested by Paul. */
19325 #ifndef __cplusplus
19326   /* Ultrix mips cc rejects this.  */
19327   typedef int charset[2];
19328   const charset cs;
19329   /* SunOS 4.1.1 cc rejects this.  */
19330   char const *const *pcpcc;
19331   char **ppc;
19332   /* NEC SVR4.0.2 mips cc rejects this.  */
19333   struct point {int x, y;};
19334   static struct point const zero = {0,0};
19335   /* AIX XL C 1.02.0.0 rejects this.
19336      It does not let you subtract one const X* pointer from another in
19337      an arm of an if-expression whose if-part is not a constant
19338      expression */
19339   const char *g = "string";
19340   pcpcc = &g + (g ? g-g : 0);
19341   /* HPUX 7.0 cc rejects these. */
19342   ++pcpcc;
19343   ppc = (char**) pcpcc;
19344   pcpcc = (char const *const *) ppc;
19345   { /* SCO 3.2v4 cc rejects this.  */
19346     char *t;
19347     char const *s = 0 ? (char *) 0 : (char const *) 0;
19348
19349     *t++ = 0;
19350     if (s) return 0;
19351   }
19352   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19353     int x[] = {25, 17};
19354     const int *foo = &x[0];
19355     ++foo;
19356   }
19357   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19358     typedef const int *iptr;
19359     iptr p = 0;
19360     ++p;
19361   }
19362   { /* AIX XL C 1.02.0.0 rejects this saying
19363        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19364     struct s { int j; const int *ap[3]; };
19365     struct s *b; b->j = 5;
19366   }
19367   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19368     const int foo = 10;
19369     if (!foo) return 0;
19370   }
19371   return !cs[0] && !zero.x;
19372 #endif
19373
19374   ;
19375   return 0;
19376 }
19377 _ACEOF
19378 if ac_fn_c_try_compile "$LINENO"; then :
19379   ac_cv_c_const=yes
19380 else
19381   ac_cv_c_const=no
19382 fi
19383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19384 fi
19385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
19386 $as_echo "$ac_cv_c_const" >&6; }
19387 if test $ac_cv_c_const = no; then
19388
19389 $as_echo "#define const /**/" >>confdefs.h
19390
19391 fi
19392
19393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
19394 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
19395 if ${ac_cv_type_uid_t+:} false; then :
19396   $as_echo_n "(cached) " >&6
19397 else
19398   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19399 /* end confdefs.h.  */
19400 #include <sys/types.h>
19401
19402 _ACEOF
19403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19404   $EGREP "uid_t" >/dev/null 2>&1; then :
19405   ac_cv_type_uid_t=yes
19406 else
19407   ac_cv_type_uid_t=no
19408 fi
19409 rm -f conftest*
19410
19411 fi
19412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
19413 $as_echo "$ac_cv_type_uid_t" >&6; }
19414 if test $ac_cv_type_uid_t = no; then
19415
19416 $as_echo "#define uid_t int" >>confdefs.h
19417
19418
19419 $as_echo "#define gid_t int" >>confdefs.h
19420
19421 fi
19422
19423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
19424 $as_echo_n "checking for inline... " >&6; }
19425 if ${ac_cv_c_inline+:} false; then :
19426   $as_echo_n "(cached) " >&6
19427 else
19428   ac_cv_c_inline=no
19429 for ac_kw in inline __inline__ __inline; do
19430   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19431 /* end confdefs.h.  */
19432 #ifndef __cplusplus
19433 typedef int foo_t;
19434 static $ac_kw foo_t static_foo () {return 0; }
19435 $ac_kw foo_t foo () {return 0; }
19436 #endif
19437
19438 _ACEOF
19439 if ac_fn_c_try_compile "$LINENO"; then :
19440   ac_cv_c_inline=$ac_kw
19441 fi
19442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19443   test "$ac_cv_c_inline" != no && break
19444 done
19445
19446 fi
19447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
19448 $as_echo "$ac_cv_c_inline" >&6; }
19449
19450 case $ac_cv_c_inline in
19451   inline | yes) ;;
19452   *)
19453     case $ac_cv_c_inline in
19454       no) ac_val=;;
19455       *) ac_val=$ac_cv_c_inline;;
19456     esac
19457     cat >>confdefs.h <<_ACEOF
19458 #ifndef __cplusplus
19459 #define inline $ac_val
19460 #endif
19461 _ACEOF
19462     ;;
19463 esac
19464
19465 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
19466 if test "x$ac_cv_type_off_t" = xyes; then :
19467
19468 else
19469
19470 cat >>confdefs.h <<_ACEOF
19471 #define off_t long int
19472 _ACEOF
19473
19474 fi
19475
19476 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
19477 if test "x$ac_cv_type_pid_t" = xyes; then :
19478
19479 else
19480
19481 cat >>confdefs.h <<_ACEOF
19482 #define pid_t int
19483 _ACEOF
19484
19485 fi
19486
19487 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19488 if test "x$ac_cv_type_size_t" = xyes; then :
19489
19490 else
19491
19492 cat >>confdefs.h <<_ACEOF
19493 #define size_t unsigned int
19494 _ACEOF
19495
19496 fi
19497
19498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
19499 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
19500 if ${ac_cv_header_time+:} false; then :
19501   $as_echo_n "(cached) " >&6
19502 else
19503   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19504 /* end confdefs.h.  */
19505 #include <sys/types.h>
19506 #include <sys/time.h>
19507 #include <time.h>
19508
19509 int
19510 main ()
19511 {
19512 if ((struct tm *) 0)
19513 return 0;
19514   ;
19515   return 0;
19516 }
19517 _ACEOF
19518 if ac_fn_c_try_compile "$LINENO"; then :
19519   ac_cv_header_time=yes
19520 else
19521   ac_cv_header_time=no
19522 fi
19523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19524 fi
19525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
19526 $as_echo "$ac_cv_header_time" >&6; }
19527 if test $ac_cv_header_time = yes; then
19528
19529 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
19530
19531 fi
19532
19533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
19534 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
19535 if ${ac_cv_struct_tm+:} false; then :
19536   $as_echo_n "(cached) " >&6
19537 else
19538   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19539 /* end confdefs.h.  */
19540 #include <sys/types.h>
19541 #include <time.h>
19542
19543 int
19544 main ()
19545 {
19546 struct tm tm;
19547                                      int *p = &tm.tm_sec;
19548                                      return !p;
19549   ;
19550   return 0;
19551 }
19552 _ACEOF
19553 if ac_fn_c_try_compile "$LINENO"; then :
19554   ac_cv_struct_tm=time.h
19555 else
19556   ac_cv_struct_tm=sys/time.h
19557 fi
19558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19559 fi
19560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
19561 $as_echo "$ac_cv_struct_tm" >&6; }
19562 if test $ac_cv_struct_tm = sys/time.h; then
19563
19564 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
19565
19566 fi
19567
19568
19569 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19570 # for constant arguments.  Useless!
19571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
19572 $as_echo_n "checking for working alloca.h... " >&6; }
19573 if ${ac_cv_working_alloca_h+:} false; then :
19574   $as_echo_n "(cached) " >&6
19575 else
19576   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19577 /* end confdefs.h.  */
19578 #include <alloca.h>
19579 int
19580 main ()
19581 {
19582 char *p = (char *) alloca (2 * sizeof (int));
19583                           if (p) return 0;
19584   ;
19585   return 0;
19586 }
19587 _ACEOF
19588 if ac_fn_c_try_link "$LINENO"; then :
19589   ac_cv_working_alloca_h=yes
19590 else
19591   ac_cv_working_alloca_h=no
19592 fi
19593 rm -f core conftest.err conftest.$ac_objext \
19594     conftest$ac_exeext conftest.$ac_ext
19595 fi
19596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
19597 $as_echo "$ac_cv_working_alloca_h" >&6; }
19598 if test $ac_cv_working_alloca_h = yes; then
19599
19600 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
19601
19602 fi
19603
19604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
19605 $as_echo_n "checking for alloca... " >&6; }
19606 if ${ac_cv_func_alloca_works+:} false; then :
19607   $as_echo_n "(cached) " >&6
19608 else
19609   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19610 /* end confdefs.h.  */
19611 #ifdef __GNUC__
19612 # define alloca __builtin_alloca
19613 #else
19614 # ifdef _MSC_VER
19615 #  include <malloc.h>
19616 #  define alloca _alloca
19617 # else
19618 #  ifdef HAVE_ALLOCA_H
19619 #   include <alloca.h>
19620 #  else
19621 #   ifdef _AIX
19622  #pragma alloca
19623 #   else
19624 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19625 void *alloca (size_t);
19626 #    endif
19627 #   endif
19628 #  endif
19629 # endif
19630 #endif
19631
19632 int
19633 main ()
19634 {
19635 char *p = (char *) alloca (1);
19636                                     if (p) return 0;
19637   ;
19638   return 0;
19639 }
19640 _ACEOF
19641 if ac_fn_c_try_link "$LINENO"; then :
19642   ac_cv_func_alloca_works=yes
19643 else
19644   ac_cv_func_alloca_works=no
19645 fi
19646 rm -f core conftest.err conftest.$ac_objext \
19647     conftest$ac_exeext conftest.$ac_ext
19648 fi
19649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
19650 $as_echo "$ac_cv_func_alloca_works" >&6; }
19651
19652 if test $ac_cv_func_alloca_works = yes; then
19653
19654 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19655
19656 else
19657   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19658 # that cause trouble.  Some versions do not even contain alloca or
19659 # contain a buggy version.  If you still want to use their alloca,
19660 # use ar to extract alloca.o from them instead of compiling alloca.c.
19661
19662 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19663
19664 $as_echo "#define C_ALLOCA 1" >>confdefs.h
19665
19666
19667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
19668 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
19669 if ${ac_cv_os_cray+:} false; then :
19670   $as_echo_n "(cached) " >&6
19671 else
19672   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19673 /* end confdefs.h.  */
19674 #if defined CRAY && ! defined CRAY2
19675 webecray
19676 #else
19677 wenotbecray
19678 #endif
19679
19680 _ACEOF
19681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19682   $EGREP "webecray" >/dev/null 2>&1; then :
19683   ac_cv_os_cray=yes
19684 else
19685   ac_cv_os_cray=no
19686 fi
19687 rm -f conftest*
19688
19689 fi
19690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
19691 $as_echo "$ac_cv_os_cray" >&6; }
19692 if test $ac_cv_os_cray = yes; then
19693   for ac_func in _getb67 GETB67 getb67; do
19694     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19695 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19696 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19697
19698 cat >>confdefs.h <<_ACEOF
19699 #define CRAY_STACKSEG_END $ac_func
19700 _ACEOF
19701
19702     break
19703 fi
19704
19705   done
19706 fi
19707
19708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
19709 $as_echo_n "checking stack direction for C alloca... " >&6; }
19710 if ${ac_cv_c_stack_direction+:} false; then :
19711   $as_echo_n "(cached) " >&6
19712 else
19713   if test "$cross_compiling" = yes; then :
19714   ac_cv_c_stack_direction=0
19715 else
19716   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19717 /* end confdefs.h.  */
19718 $ac_includes_default
19719 int
19720 find_stack_direction ()
19721 {
19722   static char *addr = 0;
19723   auto char dummy;
19724   if (addr == 0)
19725     {
19726       addr = &dummy;
19727       return find_stack_direction ();
19728     }
19729   else
19730     return (&dummy > addr) ? 1 : -1;
19731 }
19732
19733 int
19734 main ()
19735 {
19736   return find_stack_direction () < 0;
19737 }
19738 _ACEOF
19739 if ac_fn_c_try_run "$LINENO"; then :
19740   ac_cv_c_stack_direction=1
19741 else
19742   ac_cv_c_stack_direction=-1
19743 fi
19744 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19745   conftest.$ac_objext conftest.beam conftest.$ac_ext
19746 fi
19747
19748 fi
19749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
19750 $as_echo "$ac_cv_c_stack_direction" >&6; }
19751 cat >>confdefs.h <<_ACEOF
19752 #define STACK_DIRECTION $ac_cv_c_stack_direction
19753 _ACEOF
19754
19755
19756 fi
19757
19758 ac_header_dirent=no
19759 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19760   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
19762 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
19763 if eval \${$as_ac_Header+:} false; then :
19764   $as_echo_n "(cached) " >&6
19765 else
19766   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19767 /* end confdefs.h.  */
19768 #include <sys/types.h>
19769 #include <$ac_hdr>
19770
19771 int
19772 main ()
19773 {
19774 if ((DIR *) 0)
19775 return 0;
19776   ;
19777   return 0;
19778 }
19779 _ACEOF
19780 if ac_fn_c_try_compile "$LINENO"; then :
19781   eval "$as_ac_Header=yes"
19782 else
19783   eval "$as_ac_Header=no"
19784 fi
19785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19786 fi
19787 eval ac_res=\$$as_ac_Header
19788                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19789 $as_echo "$ac_res" >&6; }
19790 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19791   cat >>confdefs.h <<_ACEOF
19792 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19793 _ACEOF
19794
19795 ac_header_dirent=$ac_hdr; break
19796 fi
19797
19798 done
19799 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19800 if test $ac_header_dirent = dirent.h; then
19801   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
19802 $as_echo_n "checking for library containing opendir... " >&6; }
19803 if ${ac_cv_search_opendir+:} false; then :
19804   $as_echo_n "(cached) " >&6
19805 else
19806   ac_func_search_save_LIBS=$LIBS
19807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19808 /* end confdefs.h.  */
19809
19810 /* Override any GCC internal prototype to avoid an error.
19811    Use char because int might match the return type of a GCC
19812    builtin and then its argument prototype would still apply.  */
19813 #ifdef __cplusplus
19814 extern "C"
19815 #endif
19816 char opendir ();
19817 int
19818 main ()
19819 {
19820 return opendir ();
19821   ;
19822   return 0;
19823 }
19824 _ACEOF
19825 for ac_lib in '' dir; do
19826   if test -z "$ac_lib"; then
19827     ac_res="none required"
19828   else
19829     ac_res=-l$ac_lib
19830     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19831   fi
19832   if ac_fn_c_try_link "$LINENO"; then :
19833   ac_cv_search_opendir=$ac_res
19834 fi
19835 rm -f core conftest.err conftest.$ac_objext \
19836     conftest$ac_exeext
19837   if ${ac_cv_search_opendir+:} false; then :
19838   break
19839 fi
19840 done
19841 if ${ac_cv_search_opendir+:} false; then :
19842
19843 else
19844   ac_cv_search_opendir=no
19845 fi
19846 rm conftest.$ac_ext
19847 LIBS=$ac_func_search_save_LIBS
19848 fi
19849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
19850 $as_echo "$ac_cv_search_opendir" >&6; }
19851 ac_res=$ac_cv_search_opendir
19852 if test "$ac_res" != no; then :
19853   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19854
19855 fi
19856
19857 else
19858   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
19859 $as_echo_n "checking for library containing opendir... " >&6; }
19860 if ${ac_cv_search_opendir+:} false; then :
19861   $as_echo_n "(cached) " >&6
19862 else
19863   ac_func_search_save_LIBS=$LIBS
19864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19865 /* end confdefs.h.  */
19866
19867 /* Override any GCC internal prototype to avoid an error.
19868    Use char because int might match the return type of a GCC
19869    builtin and then its argument prototype would still apply.  */
19870 #ifdef __cplusplus
19871 extern "C"
19872 #endif
19873 char opendir ();
19874 int
19875 main ()
19876 {
19877 return opendir ();
19878   ;
19879   return 0;
19880 }
19881 _ACEOF
19882 for ac_lib in '' x; do
19883   if test -z "$ac_lib"; then
19884     ac_res="none required"
19885   else
19886     ac_res=-l$ac_lib
19887     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19888   fi
19889   if ac_fn_c_try_link "$LINENO"; then :
19890   ac_cv_search_opendir=$ac_res
19891 fi
19892 rm -f core conftest.err conftest.$ac_objext \
19893     conftest$ac_exeext
19894   if ${ac_cv_search_opendir+:} false; then :
19895   break
19896 fi
19897 done
19898 if ${ac_cv_search_opendir+:} false; then :
19899
19900 else
19901   ac_cv_search_opendir=no
19902 fi
19903 rm conftest.$ac_ext
19904 LIBS=$ac_func_search_save_LIBS
19905 fi
19906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
19907 $as_echo "$ac_cv_search_opendir" >&6; }
19908 ac_res=$ac_cv_search_opendir
19909 if test "$ac_res" != no; then :
19910   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19911
19912 fi
19913
19914 fi
19915
19916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
19917 $as_echo_n "checking whether closedir returns void... " >&6; }
19918 if ${ac_cv_func_closedir_void+:} false; then :
19919   $as_echo_n "(cached) " >&6
19920 else
19921   if test "$cross_compiling" = yes; then :
19922   ac_cv_func_closedir_void=yes
19923 else
19924   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19925 /* end confdefs.h.  */
19926 $ac_includes_default
19927 #include <$ac_header_dirent>
19928 #ifndef __cplusplus
19929 int closedir ();
19930 #endif
19931
19932 int
19933 main ()
19934 {
19935 return closedir (opendir (".")) != 0;
19936   ;
19937   return 0;
19938 }
19939 _ACEOF
19940 if ac_fn_c_try_run "$LINENO"; then :
19941   ac_cv_func_closedir_void=no
19942 else
19943   ac_cv_func_closedir_void=yes
19944 fi
19945 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19946   conftest.$ac_objext conftest.beam conftest.$ac_ext
19947 fi
19948
19949 fi
19950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
19951 $as_echo "$ac_cv_func_closedir_void" >&6; }
19952 if test $ac_cv_func_closedir_void = yes; then
19953
19954 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
19955
19956 fi
19957
19958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
19959 $as_echo_n "checking for error_at_line... " >&6; }
19960 if ${ac_cv_lib_error_at_line+:} false; then :
19961   $as_echo_n "(cached) " >&6
19962 else
19963   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19964 /* end confdefs.h.  */
19965 #include <error.h>
19966 int
19967 main ()
19968 {
19969 error_at_line (0, 0, "", 0, "an error occurred");
19970   ;
19971   return 0;
19972 }
19973 _ACEOF
19974 if ac_fn_c_try_link "$LINENO"; then :
19975   ac_cv_lib_error_at_line=yes
19976 else
19977   ac_cv_lib_error_at_line=no
19978 fi
19979 rm -f core conftest.err conftest.$ac_objext \
19980     conftest$ac_exeext conftest.$ac_ext
19981 fi
19982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
19983 $as_echo "$ac_cv_lib_error_at_line" >&6; }
19984 if test $ac_cv_lib_error_at_line = no; then
19985   case " $LIBOBJS " in
19986   *" error.$ac_objext "* ) ;;
19987   *) LIBOBJS="$LIBOBJS error.$ac_objext"
19988  ;;
19989 esac
19990
19991 fi
19992
19993 for ac_header in vfork.h
19994 do :
19995   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
19996 if test "x$ac_cv_header_vfork_h" = xyes; then :
19997   cat >>confdefs.h <<_ACEOF
19998 #define HAVE_VFORK_H 1
19999 _ACEOF
20000
20001 fi
20002
20003 done
20004
20005 for ac_func in fork vfork
20006 do :
20007   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20008 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20009 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20010   cat >>confdefs.h <<_ACEOF
20011 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20012 _ACEOF
20013
20014 fi
20015 done
20016
20017 if test "x$ac_cv_func_fork" = xyes; then
20018   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
20019 $as_echo_n "checking for working fork... " >&6; }
20020 if ${ac_cv_func_fork_works+:} false; then :
20021   $as_echo_n "(cached) " >&6
20022 else
20023   if test "$cross_compiling" = yes; then :
20024   ac_cv_func_fork_works=cross
20025 else
20026   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20027 /* end confdefs.h.  */
20028 $ac_includes_default
20029 int
20030 main ()
20031 {
20032
20033           /* By Ruediger Kuhlmann. */
20034           return fork () < 0;
20035
20036   ;
20037   return 0;
20038 }
20039 _ACEOF
20040 if ac_fn_c_try_run "$LINENO"; then :
20041   ac_cv_func_fork_works=yes
20042 else
20043   ac_cv_func_fork_works=no
20044 fi
20045 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20046   conftest.$ac_objext conftest.beam conftest.$ac_ext
20047 fi
20048
20049 fi
20050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
20051 $as_echo "$ac_cv_func_fork_works" >&6; }
20052
20053 else
20054   ac_cv_func_fork_works=$ac_cv_func_fork
20055 fi
20056 if test "x$ac_cv_func_fork_works" = xcross; then
20057   case $host in
20058     *-*-amigaos* | *-*-msdosdjgpp*)
20059       # Override, as these systems have only a dummy fork() stub
20060       ac_cv_func_fork_works=no
20061       ;;
20062     *)
20063       ac_cv_func_fork_works=yes
20064       ;;
20065   esac
20066   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
20067 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
20068 fi
20069 ac_cv_func_vfork_works=$ac_cv_func_vfork
20070 if test "x$ac_cv_func_vfork" = xyes; then
20071   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
20072 $as_echo_n "checking for working vfork... " >&6; }
20073 if ${ac_cv_func_vfork_works+:} false; then :
20074   $as_echo_n "(cached) " >&6
20075 else
20076   if test "$cross_compiling" = yes; then :
20077   ac_cv_func_vfork_works=cross
20078 else
20079   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20080 /* end confdefs.h.  */
20081 /* Thanks to Paul Eggert for this test.  */
20082 $ac_includes_default
20083 #include <sys/wait.h>
20084 #ifdef HAVE_VFORK_H
20085 # include <vfork.h>
20086 #endif
20087 /* On some sparc systems, changes by the child to local and incoming
20088    argument registers are propagated back to the parent.  The compiler
20089    is told about this with #include <vfork.h>, but some compilers
20090    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
20091    static variable whose address is put into a register that is
20092    clobbered by the vfork.  */
20093 static void
20094 #ifdef __cplusplus
20095 sparc_address_test (int arg)
20096 # else
20097 sparc_address_test (arg) int arg;
20098 #endif
20099 {
20100   static pid_t child;
20101   if (!child) {
20102     child = vfork ();
20103     if (child < 0) {
20104       perror ("vfork");
20105       _exit(2);
20106     }
20107     if (!child) {
20108       arg = getpid();
20109       write(-1, "", 0);
20110       _exit (arg);
20111     }
20112   }
20113 }
20114
20115 int
20116 main ()
20117 {
20118   pid_t parent = getpid ();
20119   pid_t child;
20120
20121   sparc_address_test (0);
20122
20123   child = vfork ();
20124
20125   if (child == 0) {
20126     /* Here is another test for sparc vfork register problems.  This
20127        test uses lots of local variables, at least as many local
20128        variables as main has allocated so far including compiler
20129        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
20130        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
20131        reuse the register of parent for one of the local variables,
20132        since it will think that parent can't possibly be used any more
20133        in this routine.  Assigning to the local variable will thus
20134        munge parent in the parent process.  */
20135     pid_t
20136       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
20137       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
20138     /* Convince the compiler that p..p7 are live; otherwise, it might
20139        use the same hardware register for all 8 local variables.  */
20140     if (p != p1 || p != p2 || p != p3 || p != p4
20141         || p != p5 || p != p6 || p != p7)
20142       _exit(1);
20143
20144     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
20145        from child file descriptors.  If the child closes a descriptor
20146        before it execs or exits, this munges the parent's descriptor
20147        as well.  Test for this by closing stdout in the child.  */
20148     _exit(close(fileno(stdout)) != 0);
20149   } else {
20150     int status;
20151     struct stat st;
20152
20153     while (wait(&status) != child)
20154       ;
20155     return (
20156          /* Was there some problem with vforking?  */
20157          child < 0
20158
20159          /* Did the child fail?  (This shouldn't happen.)  */
20160          || status
20161
20162          /* Did the vfork/compiler bug occur?  */
20163          || parent != getpid()
20164
20165          /* Did the file descriptor bug occur?  */
20166          || fstat(fileno(stdout), &st) != 0
20167          );
20168   }
20169 }
20170 _ACEOF
20171 if ac_fn_c_try_run "$LINENO"; then :
20172   ac_cv_func_vfork_works=yes
20173 else
20174   ac_cv_func_vfork_works=no
20175 fi
20176 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20177   conftest.$ac_objext conftest.beam conftest.$ac_ext
20178 fi
20179
20180 fi
20181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
20182 $as_echo "$ac_cv_func_vfork_works" >&6; }
20183
20184 fi;
20185 if test "x$ac_cv_func_fork_works" = xcross; then
20186   ac_cv_func_vfork_works=$ac_cv_func_vfork
20187   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
20188 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
20189 fi
20190
20191 if test "x$ac_cv_func_vfork_works" = xyes; then
20192
20193 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
20194
20195 else
20196
20197 $as_echo "#define vfork fork" >>confdefs.h
20198
20199 fi
20200 if test "x$ac_cv_func_fork_works" = xyes; then
20201
20202 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
20203
20204 fi
20205
20206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
20207 $as_echo_n "checking type of array argument to getgroups... " >&6; }
20208 if ${ac_cv_type_getgroups+:} false; then :
20209   $as_echo_n "(cached) " >&6
20210 else
20211   if test "$cross_compiling" = yes; then :
20212   ac_cv_type_getgroups=cross
20213 else
20214   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20215 /* end confdefs.h.  */
20216 /* Thanks to Mike Rendell for this test.  */
20217 $ac_includes_default
20218 #define NGID 256
20219 #undef MAX
20220 #define MAX(x, y) ((x) > (y) ? (x) : (y))
20221
20222 int
20223 main ()
20224 {
20225   gid_t gidset[NGID];
20226   int i, n;
20227   union { gid_t gval; long int lval; }  val;
20228
20229   val.lval = -1;
20230   for (i = 0; i < NGID; i++)
20231     gidset[i] = val.gval;
20232   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
20233                  gidset);
20234   /* Exit non-zero if getgroups seems to require an array of ints.  This
20235      happens when gid_t is short int but getgroups modifies an array
20236      of ints.  */
20237   return n > 0 && gidset[n] != val.gval;
20238 }
20239 _ACEOF
20240 if ac_fn_c_try_run "$LINENO"; then :
20241   ac_cv_type_getgroups=gid_t
20242 else
20243   ac_cv_type_getgroups=int
20244 fi
20245 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20246   conftest.$ac_objext conftest.beam conftest.$ac_ext
20247 fi
20248
20249 if test $ac_cv_type_getgroups = cross; then
20250         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20251 /* end confdefs.h.  */
20252 #include <unistd.h>
20253
20254 _ACEOF
20255 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20256   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
20257   ac_cv_type_getgroups=gid_t
20258 else
20259   ac_cv_type_getgroups=int
20260 fi
20261 rm -f conftest*
20262
20263 fi
20264 fi
20265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
20266 $as_echo "$ac_cv_type_getgroups" >&6; }
20267
20268 cat >>confdefs.h <<_ACEOF
20269 #define GETGROUPS_T $ac_cv_type_getgroups
20270 _ACEOF
20271
20272
20273 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
20274 if test "x$ac_cv_func_getgroups" = xyes; then :
20275
20276 fi
20277
20278
20279 # If we don't yet have getgroups, see if it's in -lbsd.
20280 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
20281 ac_save_LIBS=$LIBS
20282 if test $ac_cv_func_getgroups = no; then
20283   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
20284 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
20285 if ${ac_cv_lib_bsd_getgroups+:} false; then :
20286   $as_echo_n "(cached) " >&6
20287 else
20288   ac_check_lib_save_LIBS=$LIBS
20289 LIBS="-lbsd  $LIBS"
20290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20291 /* end confdefs.h.  */
20292
20293 /* Override any GCC internal prototype to avoid an error.
20294    Use char because int might match the return type of a GCC
20295    builtin and then its argument prototype would still apply.  */
20296 #ifdef __cplusplus
20297 extern "C"
20298 #endif
20299 char getgroups ();
20300 int
20301 main ()
20302 {
20303 return getgroups ();
20304   ;
20305   return 0;
20306 }
20307 _ACEOF
20308 if ac_fn_c_try_link "$LINENO"; then :
20309   ac_cv_lib_bsd_getgroups=yes
20310 else
20311   ac_cv_lib_bsd_getgroups=no
20312 fi
20313 rm -f core conftest.err conftest.$ac_objext \
20314     conftest$ac_exeext conftest.$ac_ext
20315 LIBS=$ac_check_lib_save_LIBS
20316 fi
20317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
20318 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
20319 if test "x$ac_cv_lib_bsd_getgroups" = xyes; then :
20320   GETGROUPS_LIB=-lbsd
20321 fi
20322
20323 fi
20324
20325 # Run the program to test the functionality of the system-supplied
20326 # getgroups function only if there is such a function.
20327 if test $ac_cv_func_getgroups = yes; then
20328   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
20329 $as_echo_n "checking for working getgroups... " >&6; }
20330 if ${ac_cv_func_getgroups_works+:} false; then :
20331   $as_echo_n "(cached) " >&6
20332 else
20333   if test "$cross_compiling" = yes; then :
20334   ac_cv_func_getgroups_works=no
20335 else
20336   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20337 /* end confdefs.h.  */
20338 $ac_includes_default
20339 int
20340 main ()
20341 {
20342 /* On Ultrix 4.3, getgroups (0, 0) always fails.  */
20343        return getgroups (0, 0) == -1;
20344   ;
20345   return 0;
20346 }
20347 _ACEOF
20348 if ac_fn_c_try_run "$LINENO"; then :
20349   ac_cv_func_getgroups_works=yes
20350 else
20351   ac_cv_func_getgroups_works=no
20352 fi
20353 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20354   conftest.$ac_objext conftest.beam conftest.$ac_ext
20355 fi
20356
20357
20358 fi
20359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
20360 $as_echo "$ac_cv_func_getgroups_works" >&6; }
20361 else
20362   ac_cv_func_getgroups_works=no
20363 fi
20364 if test $ac_cv_func_getgroups_works = yes; then
20365
20366 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
20367
20368 fi
20369 LIBS=$ac_save_LIBS
20370
20371 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
20372 # -lseq on Dynix/PTX, -lgen on Unixware.
20373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
20374 $as_echo_n "checking for library containing getmntent... " >&6; }
20375 if ${ac_cv_search_getmntent+:} false; then :
20376   $as_echo_n "(cached) " >&6
20377 else
20378   ac_func_search_save_LIBS=$LIBS
20379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20380 /* end confdefs.h.  */
20381
20382 /* Override any GCC internal prototype to avoid an error.
20383    Use char because int might match the return type of a GCC
20384    builtin and then its argument prototype would still apply.  */
20385 #ifdef __cplusplus
20386 extern "C"
20387 #endif
20388 char getmntent ();
20389 int
20390 main ()
20391 {
20392 return getmntent ();
20393   ;
20394   return 0;
20395 }
20396 _ACEOF
20397 for ac_lib in '' sun seq gen; do
20398   if test -z "$ac_lib"; then
20399     ac_res="none required"
20400   else
20401     ac_res=-l$ac_lib
20402     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20403   fi
20404   if ac_fn_c_try_link "$LINENO"; then :
20405   ac_cv_search_getmntent=$ac_res
20406 fi
20407 rm -f core conftest.err conftest.$ac_objext \
20408     conftest$ac_exeext
20409   if ${ac_cv_search_getmntent+:} false; then :
20410   break
20411 fi
20412 done
20413 if ${ac_cv_search_getmntent+:} false; then :
20414
20415 else
20416   ac_cv_search_getmntent=no
20417 fi
20418 rm conftest.$ac_ext
20419 LIBS=$ac_func_search_save_LIBS
20420 fi
20421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
20422 $as_echo "$ac_cv_search_getmntent" >&6; }
20423 ac_res=$ac_cv_search_getmntent
20424 if test "$ac_res" != no; then :
20425   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20426   ac_cv_func_getmntent=yes
20427
20428 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
20429
20430 else
20431   ac_cv_func_getmntent=no
20432 fi
20433
20434
20435 if test $ac_cv_c_compiler_gnu = yes; then
20436     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
20437 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
20438 if ${ac_cv_prog_gcc_traditional+:} false; then :
20439   $as_echo_n "(cached) " >&6
20440 else
20441     ac_pattern="Autoconf.*'x'"
20442   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20443 /* end confdefs.h.  */
20444 #include <sgtty.h>
20445 Autoconf TIOCGETP
20446 _ACEOF
20447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20448   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
20449   ac_cv_prog_gcc_traditional=yes
20450 else
20451   ac_cv_prog_gcc_traditional=no
20452 fi
20453 rm -f conftest*
20454
20455
20456   if test $ac_cv_prog_gcc_traditional = no; then
20457     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20458 /* end confdefs.h.  */
20459 #include <termio.h>
20460 Autoconf TCGETA
20461 _ACEOF
20462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20463   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
20464   ac_cv_prog_gcc_traditional=yes
20465 fi
20466 rm -f conftest*
20467
20468   fi
20469 fi
20470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
20471 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
20472   if test $ac_cv_prog_gcc_traditional = yes; then
20473     CC="$CC -traditional"
20474   fi
20475 fi
20476
20477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
20478 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
20479 if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
20480   $as_echo_n "(cached) " >&6
20481 else
20482   rm -f conftest.sym conftest.file
20483 echo >conftest.file
20484 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
20485   if test "$cross_compiling" = yes; then :
20486   ac_cv_func_lstat_dereferences_slashed_symlink=no
20487 else
20488   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20489 /* end confdefs.h.  */
20490 $ac_includes_default
20491 int
20492 main ()
20493 {
20494 struct stat sbuf;
20495      /* Linux will dereference the symlink and fail, as required by POSIX.
20496         That is better in the sense that it means we will not
20497         have to compile and use the lstat wrapper.  */
20498      return lstat ("conftest.sym/", &sbuf) == 0;
20499   ;
20500   return 0;
20501 }
20502 _ACEOF
20503 if ac_fn_c_try_run "$LINENO"; then :
20504   ac_cv_func_lstat_dereferences_slashed_symlink=yes
20505 else
20506   ac_cv_func_lstat_dereferences_slashed_symlink=no
20507 fi
20508 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20509   conftest.$ac_objext conftest.beam conftest.$ac_ext
20510 fi
20511
20512 else
20513   # If the `ln -s' command failed, then we probably don't even
20514   # have an lstat function.
20515   ac_cv_func_lstat_dereferences_slashed_symlink=no
20516 fi
20517 rm -f conftest.sym conftest.file
20518
20519 fi
20520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
20521 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
20522
20523 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
20524
20525 cat >>confdefs.h <<_ACEOF
20526 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
20527 _ACEOF
20528
20529
20530 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
20531   case " $LIBOBJS " in
20532   *" lstat.$ac_objext "* ) ;;
20533   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
20534  ;;
20535 esac
20536
20537 fi
20538
20539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
20540 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
20541 if ${ac_cv_func_lstat_empty_string_bug+:} false; then :
20542   $as_echo_n "(cached) " >&6
20543 else
20544   if test "$cross_compiling" = yes; then :
20545   ac_cv_func_lstat_empty_string_bug=yes
20546 else
20547   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20548 /* end confdefs.h.  */
20549 $ac_includes_default
20550 int
20551 main ()
20552 {
20553 struct stat sbuf;
20554   return lstat ("", &sbuf) == 0;
20555   ;
20556   return 0;
20557 }
20558 _ACEOF
20559 if ac_fn_c_try_run "$LINENO"; then :
20560   ac_cv_func_lstat_empty_string_bug=no
20561 else
20562   ac_cv_func_lstat_empty_string_bug=yes
20563 fi
20564 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20565   conftest.$ac_objext conftest.beam conftest.$ac_ext
20566 fi
20567
20568 fi
20569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
20570 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
20571 if test $ac_cv_func_lstat_empty_string_bug = yes; then
20572   case " $LIBOBJS " in
20573   *" lstat.$ac_objext "* ) ;;
20574   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
20575  ;;
20576 esac
20577
20578
20579 cat >>confdefs.h <<_ACEOF
20580 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
20581 _ACEOF
20582
20583 fi
20584
20585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
20586 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
20587 if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
20588   $as_echo_n "(cached) " >&6
20589 else
20590   rm -f conftest.sym conftest.file
20591 echo >conftest.file
20592 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
20593   if test "$cross_compiling" = yes; then :
20594   ac_cv_func_lstat_dereferences_slashed_symlink=no
20595 else
20596   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20597 /* end confdefs.h.  */
20598 $ac_includes_default
20599 int
20600 main ()
20601 {
20602 struct stat sbuf;
20603      /* Linux will dereference the symlink and fail, as required by POSIX.
20604         That is better in the sense that it means we will not
20605         have to compile and use the lstat wrapper.  */
20606      return lstat ("conftest.sym/", &sbuf) == 0;
20607   ;
20608   return 0;
20609 }
20610 _ACEOF
20611 if ac_fn_c_try_run "$LINENO"; then :
20612   ac_cv_func_lstat_dereferences_slashed_symlink=yes
20613 else
20614   ac_cv_func_lstat_dereferences_slashed_symlink=no
20615 fi
20616 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20617   conftest.$ac_objext conftest.beam conftest.$ac_ext
20618 fi
20619
20620 else
20621   # If the `ln -s' command failed, then we probably don't even
20622   # have an lstat function.
20623   ac_cv_func_lstat_dereferences_slashed_symlink=no
20624 fi
20625 rm -f conftest.sym conftest.file
20626
20627 fi
20628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
20629 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
20630
20631 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
20632
20633 cat >>confdefs.h <<_ACEOF
20634 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
20635 _ACEOF
20636
20637
20638 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
20639   case " $LIBOBJS " in
20640   *" lstat.$ac_objext "* ) ;;
20641   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
20642  ;;
20643 esac
20644
20645 fi
20646
20647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
20648 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
20649 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
20650   $as_echo_n "(cached) " >&6
20651 else
20652   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20653 /* end confdefs.h.  */
20654 #include <sys/types.h>
20655 int
20656 main ()
20657 {
20658 return makedev(0, 0);
20659   ;
20660   return 0;
20661 }
20662 _ACEOF
20663 if ac_fn_c_try_link "$LINENO"; then :
20664   ac_cv_header_sys_types_h_makedev=yes
20665 else
20666   ac_cv_header_sys_types_h_makedev=no
20667 fi
20668 rm -f core conftest.err conftest.$ac_objext \
20669     conftest$ac_exeext conftest.$ac_ext
20670
20671 fi
20672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
20673 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
20674
20675 if test $ac_cv_header_sys_types_h_makedev = no; then
20676 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
20677 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
20678
20679 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
20680
20681 fi
20682
20683
20684
20685   if test $ac_cv_header_sys_mkdev_h = no; then
20686     ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
20687 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
20688
20689 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
20690
20691 fi
20692
20693
20694   fi
20695 fi
20696
20697 #AC_FUNC_MALLOC
20698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
20699 $as_echo_n "checking for working memcmp... " >&6; }
20700 if ${ac_cv_func_memcmp_working+:} false; then :
20701   $as_echo_n "(cached) " >&6
20702 else
20703   if test "$cross_compiling" = yes; then :
20704   ac_cv_func_memcmp_working=no
20705 else
20706   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20707 /* end confdefs.h.  */
20708 $ac_includes_default
20709 int
20710 main ()
20711 {
20712
20713   /* Some versions of memcmp are not 8-bit clean.  */
20714   char c0 = '\100', c1 = '\200', c2 = '\201';
20715   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
20716     return 1;
20717
20718   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
20719      or more and with at least one buffer not starting on a 4-byte boundary.
20720      William Lewis provided this test program.   */
20721   {
20722     char foo[21];
20723     char bar[21];
20724     int i;
20725     for (i = 0; i < 4; i++)
20726       {
20727         char *a = foo + i;
20728         char *b = bar + i;
20729         strcpy (a, "--------01111111");
20730         strcpy (b, "--------10000000");
20731         if (memcmp (a, b, 16) >= 0)
20732           return 1;
20733       }
20734     return 0;
20735   }
20736
20737   ;
20738   return 0;
20739 }
20740 _ACEOF
20741 if ac_fn_c_try_run "$LINENO"; then :
20742   ac_cv_func_memcmp_working=yes
20743 else
20744   ac_cv_func_memcmp_working=no
20745 fi
20746 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20747   conftest.$ac_objext conftest.beam conftest.$ac_ext
20748 fi
20749
20750 fi
20751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
20752 $as_echo "$ac_cv_func_memcmp_working" >&6; }
20753 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
20754   *" memcmp.$ac_objext "* ) ;;
20755   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
20756  ;;
20757 esac
20758
20759
20760 #AC_FUNC_REALLOC
20761 for ac_header in sys/select.h sys/socket.h
20762 do :
20763   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20764 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20765 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20766   cat >>confdefs.h <<_ACEOF
20767 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20768 _ACEOF
20769
20770 fi
20771
20772 done
20773
20774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
20775 $as_echo_n "checking types of arguments for select... " >&6; }
20776 if ${ac_cv_func_select_args+:} false; then :
20777   $as_echo_n "(cached) " >&6
20778 else
20779   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
20780  for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
20781   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
20782    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20783 /* end confdefs.h.  */
20784 $ac_includes_default
20785 #ifdef HAVE_SYS_SELECT_H
20786 # include <sys/select.h>
20787 #endif
20788 #ifdef HAVE_SYS_SOCKET_H
20789 # include <sys/socket.h>
20790 #endif
20791
20792 int
20793 main ()
20794 {
20795 extern int select ($ac_arg1,
20796                                             $ac_arg234, $ac_arg234, $ac_arg234,
20797                                             $ac_arg5);
20798   ;
20799   return 0;
20800 }
20801 _ACEOF
20802 if ac_fn_c_try_compile "$LINENO"; then :
20803   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
20804 fi
20805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20806   done
20807  done
20808 done
20809 # Provide a safe default value.
20810 : "${ac_cv_func_select_args=int,int *,struct timeval *}"
20811
20812 fi
20813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
20814 $as_echo "$ac_cv_func_select_args" >&6; }
20815 ac_save_IFS=$IFS; IFS=','
20816 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
20817 IFS=$ac_save_IFS
20818 shift
20819
20820 cat >>confdefs.h <<_ACEOF
20821 #define SELECT_TYPE_ARG1 $1
20822 _ACEOF
20823
20824
20825 cat >>confdefs.h <<_ACEOF
20826 #define SELECT_TYPE_ARG234 ($2)
20827 _ACEOF
20828
20829
20830 cat >>confdefs.h <<_ACEOF
20831 #define SELECT_TYPE_ARG5 ($3)
20832 _ACEOF
20833
20834 rm -f conftest*
20835
20836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
20837 $as_echo_n "checking return type of signal handlers... " >&6; }
20838 if ${ac_cv_type_signal+:} false; then :
20839   $as_echo_n "(cached) " >&6
20840 else
20841   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20842 /* end confdefs.h.  */
20843 #include <sys/types.h>
20844 #include <signal.h>
20845
20846 int
20847 main ()
20848 {
20849 return *(signal (0, 0)) (0) == 1;
20850   ;
20851   return 0;
20852 }
20853 _ACEOF
20854 if ac_fn_c_try_compile "$LINENO"; then :
20855   ac_cv_type_signal=int
20856 else
20857   ac_cv_type_signal=void
20858 fi
20859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20860 fi
20861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
20862 $as_echo "$ac_cv_type_signal" >&6; }
20863
20864 cat >>confdefs.h <<_ACEOF
20865 #define RETSIGTYPE $ac_cv_type_signal
20866 _ACEOF
20867
20868
20869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
20870 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
20871 if ${ac_cv_func_stat_empty_string_bug+:} false; then :
20872   $as_echo_n "(cached) " >&6
20873 else
20874   if test "$cross_compiling" = yes; then :
20875   ac_cv_func_stat_empty_string_bug=yes
20876 else
20877   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20878 /* end confdefs.h.  */
20879 $ac_includes_default
20880 int
20881 main ()
20882 {
20883 struct stat sbuf;
20884   return stat ("", &sbuf) == 0;
20885   ;
20886   return 0;
20887 }
20888 _ACEOF
20889 if ac_fn_c_try_run "$LINENO"; then :
20890   ac_cv_func_stat_empty_string_bug=no
20891 else
20892   ac_cv_func_stat_empty_string_bug=yes
20893 fi
20894 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20895   conftest.$ac_objext conftest.beam conftest.$ac_ext
20896 fi
20897
20898 fi
20899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
20900 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
20901 if test $ac_cv_func_stat_empty_string_bug = yes; then
20902   case " $LIBOBJS " in
20903   *" stat.$ac_objext "* ) ;;
20904   *) LIBOBJS="$LIBOBJS stat.$ac_objext"
20905  ;;
20906 esac
20907
20908
20909 cat >>confdefs.h <<_ACEOF
20910 #define HAVE_STAT_EMPTY_STRING_BUG 1
20911 _ACEOF
20912
20913 fi
20914
20915 for ac_func in vprintf
20916 do :
20917   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
20918 if test "x$ac_cv_func_vprintf" = xyes; then :
20919   cat >>confdefs.h <<_ACEOF
20920 #define HAVE_VPRINTF 1
20921 _ACEOF
20922
20923 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
20924 if test "x$ac_cv_func__doprnt" = xyes; then :
20925
20926 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
20927
20928 fi
20929
20930 fi
20931 done
20932
20933
20934 for ac_func in alarm atexit dup2 fdatasync ftruncate getcwd \
20935                gethostbyaddr gethostbyname gethostname getmntent \
20936                getnameinfo getrpcbyname getifaddrs \
20937                gettimeofday hasmntopt inet_ntoa innetgr memset mkdir pathconf \
20938                realpath rmdir select socket strcasecmp strchr strdup \
20939                strerror strrchr strtol strtoul sigprocmask
20940 do :
20941   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20942 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20943 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20944   cat >>confdefs.h <<_ACEOF
20945 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20946 _ACEOF
20947
20948 fi
20949 done
20950
20951
20952
20953 # The cast to long int works around a bug in the HP C Compiler
20954 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20955 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20956 # This bug is HP SR number 8606223364.
20957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
20958 $as_echo_n "checking size of short... " >&6; }
20959 if ${ac_cv_sizeof_short+:} false; then :
20960   $as_echo_n "(cached) " >&6
20961 else
20962   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
20963
20964 else
20965   if test "$ac_cv_type_short" = yes; then
20966      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20967 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20968 as_fn_error 77 "cannot compute sizeof (short)
20969 See \`config.log' for more details" "$LINENO" 5; }
20970    else
20971      ac_cv_sizeof_short=0
20972    fi
20973 fi
20974
20975 fi
20976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
20977 $as_echo "$ac_cv_sizeof_short" >&6; }
20978
20979
20980
20981 cat >>confdefs.h <<_ACEOF
20982 #define SIZEOF_SHORT $ac_cv_sizeof_short
20983 _ACEOF
20984
20985
20986 # The cast to long int works around a bug in the HP C Compiler
20987 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20988 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20989 # This bug is HP SR number 8606223364.
20990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
20991 $as_echo_n "checking size of int... " >&6; }
20992 if ${ac_cv_sizeof_int+:} false; then :
20993   $as_echo_n "(cached) " >&6
20994 else
20995   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
20996
20997 else
20998   if test "$ac_cv_type_int" = yes; then
20999      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21000 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21001 as_fn_error 77 "cannot compute sizeof (int)
21002 See \`config.log' for more details" "$LINENO" 5; }
21003    else
21004      ac_cv_sizeof_int=0
21005    fi
21006 fi
21007
21008 fi
21009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
21010 $as_echo "$ac_cv_sizeof_int" >&6; }
21011
21012
21013
21014 cat >>confdefs.h <<_ACEOF
21015 #define SIZEOF_INT $ac_cv_sizeof_int
21016 _ACEOF
21017
21018
21019 # The cast to long int works around a bug in the HP C Compiler
21020 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21021 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21022 # This bug is HP SR number 8606223364.
21023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
21024 $as_echo_n "checking size of long... " >&6; }
21025 if ${ac_cv_sizeof_long+:} false; then :
21026   $as_echo_n "(cached) " >&6
21027 else
21028   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
21029
21030 else
21031   if test "$ac_cv_type_long" = yes; then
21032      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21033 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21034 as_fn_error 77 "cannot compute sizeof (long)
21035 See \`config.log' for more details" "$LINENO" 5; }
21036    else
21037      ac_cv_sizeof_long=0
21038    fi
21039 fi
21040
21041 fi
21042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
21043 $as_echo "$ac_cv_sizeof_long" >&6; }
21044
21045
21046
21047 cat >>confdefs.h <<_ACEOF
21048 #define SIZEOF_LONG $ac_cv_sizeof_long
21049 _ACEOF
21050
21051
21052 # The cast to long int works around a bug in the HP C Compiler
21053 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21054 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21055 # This bug is HP SR number 8606223364.
21056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
21057 $as_echo_n "checking size of size_t... " >&6; }
21058 if ${ac_cv_sizeof_size_t+:} false; then :
21059   $as_echo_n "(cached) " >&6
21060 else
21061   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
21062
21063 else
21064   if test "$ac_cv_type_size_t" = yes; then
21065      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21066 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21067 as_fn_error 77 "cannot compute sizeof (size_t)
21068 See \`config.log' for more details" "$LINENO" 5; }
21069    else
21070      ac_cv_sizeof_size_t=0
21071    fi
21072 fi
21073
21074 fi
21075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
21076 $as_echo "$ac_cv_sizeof_size_t" >&6; }
21077
21078
21079
21080 cat >>confdefs.h <<_ACEOF
21081 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
21082 _ACEOF
21083
21084
21085 # The cast to long int works around a bug in the HP C Compiler
21086 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21087 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21088 # This bug is HP SR number 8606223364.
21089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of socklen_t" >&5
21090 $as_echo_n "checking size of socklen_t... " >&6; }
21091 if ${ac_cv_sizeof_socklen_t+:} false; then :
21092   $as_echo_n "(cached) " >&6
21093 else
21094   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (socklen_t))" "ac_cv_sizeof_socklen_t"        "$ac_includes_default"; then :
21095
21096 else
21097   if test "$ac_cv_type_socklen_t" = yes; then
21098      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21099 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21100 as_fn_error 77 "cannot compute sizeof (socklen_t)
21101 See \`config.log' for more details" "$LINENO" 5; }
21102    else
21103      ac_cv_sizeof_socklen_t=0
21104    fi
21105 fi
21106
21107 fi
21108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_socklen_t" >&5
21109 $as_echo "$ac_cv_sizeof_socklen_t" >&6; }
21110
21111
21112
21113 cat >>confdefs.h <<_ACEOF
21114 #define SIZEOF_SOCKLEN_T $ac_cv_sizeof_socklen_t
21115 _ACEOF
21116
21117
21118
21119
21120
21121 cat >>confdefs.h <<_ACEOF
21122 #define NFS_STATEDIR "$statedir"
21123 _ACEOF
21124
21125
21126 cat >>confdefs.h <<_ACEOF
21127 #define NSM_DEFAULT_STATEDIR "$statdpath"
21128 _ACEOF
21129
21130
21131 if test "x$cross_compiling" = "xno"; then
21132         CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"$CFLAGS"}
21133         CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-"$CXXFLAGS"}
21134         CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
21135         LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-"$LDFLAGS"}
21136 else
21137         CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-""}
21138         CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-""}
21139         CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
21140         LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
21141 fi
21142
21143
21144
21145
21146
21147
21148
21149
21150
21151
21152
21153 case $host in
21154   *)
21155     ARCHFLAGS="" ;;
21156 esac
21157
21158 my_am_cflags="-Wall -Wextra -Wstrict-prototypes $ARCHFLAGS -pipe"
21159
21160 AM_CFLAGS="$my_am_cflags"
21161
21162
21163 # Make sure that $ACLOCAL_FLAGS are used during a rebuild
21164 ACLOCAL_AMFLAGS="-I $ac_macro_dir \$(ACLOCAL_FLAGS)"
21165
21166
21167 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/blkmapd/Makefile utils/nfsdcld/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 utils/osd_login/Makefile tests/Makefile tests/nsm_client/Makefile"
21168
21169 cat >confcache <<\_ACEOF
21170 # This file is a shell script that caches the results of configure
21171 # tests run on this system so they can be shared between configure
21172 # scripts and configure runs, see configure's option --config-cache.
21173 # It is not useful on other systems.  If it contains results you don't
21174 # want to keep, you may remove or edit it.
21175 #
21176 # config.status only pays attention to the cache file if you give it
21177 # the --recheck option to rerun configure.
21178 #
21179 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21180 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21181 # following values.
21182
21183 _ACEOF
21184
21185 # The following way of writing the cache mishandles newlines in values,
21186 # but we know of no workaround that is simple, portable, and efficient.
21187 # So, we kill variables containing newlines.
21188 # Ultrix sh set writes to stderr and can't be redirected directly,
21189 # and sets the high bit in the cache file unless we assign to the vars.
21190 (
21191   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21192     eval ac_val=\$$ac_var
21193     case $ac_val in #(
21194     *${as_nl}*)
21195       case $ac_var in #(
21196       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21197 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21198       esac
21199       case $ac_var in #(
21200       _ | IFS | as_nl) ;; #(
21201       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21202       *) { eval $ac_var=; unset $ac_var;} ;;
21203       esac ;;
21204     esac
21205   done
21206
21207   (set) 2>&1 |
21208     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21209     *${as_nl}ac_space=\ *)
21210       # `set' does not quote correctly, so add quotes: double-quote
21211       # substitution turns \\\\ into \\, and sed turns \\ into \.
21212       sed -n \
21213         "s/'/'\\\\''/g;
21214           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21215       ;; #(
21216     *)
21217       # `set' quotes correctly as required by POSIX, so do not add quotes.
21218       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21219       ;;
21220     esac |
21221     sort
21222 ) |
21223   sed '
21224      /^ac_cv_env_/b end
21225      t clear
21226      :clear
21227      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21228      t end
21229      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21230      :end' >>confcache
21231 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21232   if test -w "$cache_file"; then
21233     if test "x$cache_file" != "x/dev/null"; then
21234       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21235 $as_echo "$as_me: updating cache $cache_file" >&6;}
21236       if test ! -f "$cache_file" || test -h "$cache_file"; then
21237         cat confcache >"$cache_file"
21238       else
21239         case $cache_file in #(
21240         */* | ?:*)
21241           mv -f confcache "$cache_file"$$ &&
21242           mv -f "$cache_file"$$ "$cache_file" ;; #(
21243         *)
21244           mv -f confcache "$cache_file" ;;
21245         esac
21246       fi
21247     fi
21248   else
21249     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21250 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21251   fi
21252 fi
21253 rm -f confcache
21254
21255 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21256 # Let make expand exec_prefix.
21257 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21258
21259 DEFS=-DHAVE_CONFIG_H
21260
21261 ac_libobjs=
21262 ac_ltlibobjs=
21263 U=
21264 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21265   # 1. Remove the extension, and $U if already installed.
21266   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21267   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21268   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21269   #    will be set to the directory where LIBOBJS objects are built.
21270   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21271   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21272 done
21273 LIBOBJS=$ac_libobjs
21274
21275 LTLIBOBJS=$ac_ltlibobjs
21276
21277
21278  if test -n "$EXEEXT"; then
21279   am__EXEEXT_TRUE=
21280   am__EXEEXT_FALSE='#'
21281 else
21282   am__EXEEXT_TRUE='#'
21283   am__EXEEXT_FALSE=
21284 fi
21285
21286 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21287   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
21288 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21289 fi
21290 if test -z "${CONFIG_NFSV4_TRUE}" && test -z "${CONFIG_NFSV4_FALSE}"; then
21291   as_fn_error $? "conditional \"CONFIG_NFSV4\" was never defined.
21292 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21293 fi
21294 if test -z "${CONFIG_NFSV41_TRUE}" && test -z "${CONFIG_NFSV41_FALSE}"; then
21295   as_fn_error $? "conditional \"CONFIG_NFSV41\" was never defined.
21296 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21297 fi
21298 if test -z "${CONFIG_GSS_TRUE}" && test -z "${CONFIG_GSS_FALSE}"; then
21299   as_fn_error $? "conditional \"CONFIG_GSS\" was never defined.
21300 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21301 fi
21302 if test -z "${CONFIG_RPCGEN_TRUE}" && test -z "${CONFIG_RPCGEN_FALSE}"; then
21303   as_fn_error $? "conditional \"CONFIG_RPCGEN\" was never defined.
21304 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21305 fi
21306 if test -z "${CONFIG_MOUNT_TRUE}" && test -z "${CONFIG_MOUNT_FALSE}"; then
21307   as_fn_error $? "conditional \"CONFIG_MOUNT\" was never defined.
21308 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21309 fi
21310 if test -z "${CONFIG_IPV6_TRUE}" && test -z "${CONFIG_IPV6_FALSE}"; then
21311   as_fn_error $? "conditional \"CONFIG_IPV6\" was never defined.
21312 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21313 fi
21314 if test -z "${MOUNT_CONFIG_TRUE}" && test -z "${MOUNT_CONFIG_FALSE}"; then
21315   as_fn_error $? "conditional \"MOUNT_CONFIG\" was never defined.
21316 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21317 fi
21318 if test -z "${MOUNT_CONFIG_TRUE}" && test -z "${MOUNT_CONFIG_FALSE}"; then
21319   as_fn_error $? "conditional \"MOUNT_CONFIG\" was never defined.
21320 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21321 fi
21322 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21323   as_fn_error $? "conditional \"AMDEP\" was never defined.
21324 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21325 fi
21326 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21327   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21328 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21329 fi
21330 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21331   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
21332 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21333 fi
21334 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21335   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21336 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21337 fi
21338 if test -z "${CONFIG_SQLITE3_TRUE}" && test -z "${CONFIG_SQLITE3_FALSE}"; then
21339   as_fn_error $? "conditional \"CONFIG_SQLITE3\" was never defined.
21340 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21341 fi
21342 if test -z "${CONFIG_NFSDCLD_TRUE}" && test -z "${CONFIG_NFSDCLD_FALSE}"; then
21343   as_fn_error $? "conditional \"CONFIG_NFSDCLD\" was never defined.
21344 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21345 fi
21346 if test -z "${CONFIG_NFSIDMAP_TRUE}" && test -z "${CONFIG_NFSIDMAP_FALSE}"; then
21347   as_fn_error $? "conditional \"CONFIG_NFSIDMAP\" was never defined.
21348 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21349 fi
21350 if test -z "${CONFIG_LIBMOUNT_TRUE}" && test -z "${CONFIG_LIBMOUNT_FALSE}"; then
21351   as_fn_error $? "conditional \"CONFIG_LIBMOUNT\" was never defined.
21352 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21353 fi
21354
21355 : "${CONFIG_STATUS=./config.status}"
21356 ac_write_fail=0
21357 ac_clean_files_save=$ac_clean_files
21358 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21359 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21360 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21361 as_write_fail=0
21362 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21363 #! $SHELL
21364 # Generated by $as_me.
21365 # Run this file to recreate the current configuration.
21366 # Compiler output produced by configure, useful for debugging
21367 # configure, is in config.log if it exists.
21368
21369 debug=false
21370 ac_cs_recheck=false
21371 ac_cs_silent=false
21372
21373 SHELL=\${CONFIG_SHELL-$SHELL}
21374 export SHELL
21375 _ASEOF
21376 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21377 ## -------------------- ##
21378 ## M4sh Initialization. ##
21379 ## -------------------- ##
21380
21381 # Be more Bourne compatible
21382 DUALCASE=1; export DUALCASE # for MKS sh
21383 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21384   emulate sh
21385   NULLCMD=:
21386   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21387   # is contrary to our usage.  Disable this feature.
21388   alias -g '${1+"$@"}'='"$@"'
21389   setopt NO_GLOB_SUBST
21390 else
21391   case `(set -o) 2>/dev/null` in #(
21392   *posix*) :
21393     set -o posix ;; #(
21394   *) :
21395      ;;
21396 esac
21397 fi
21398
21399
21400 as_nl='
21401 '
21402 export as_nl
21403 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21404 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21405 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21406 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21407 # Prefer a ksh shell builtin over an external printf program on Solaris,
21408 # but without wasting forks for bash or zsh.
21409 if test -z "$BASH_VERSION$ZSH_VERSION" \
21410     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21411   as_echo='print -r --'
21412   as_echo_n='print -rn --'
21413 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21414   as_echo='printf %s\n'
21415   as_echo_n='printf %s'
21416 else
21417   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21418     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21419     as_echo_n='/usr/ucb/echo -n'
21420   else
21421     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21422     as_echo_n_body='eval
21423       arg=$1;
21424       case $arg in #(
21425       *"$as_nl"*)
21426         expr "X$arg" : "X\\(.*\\)$as_nl";
21427         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21428       esac;
21429       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21430     '
21431     export as_echo_n_body
21432     as_echo_n='sh -c $as_echo_n_body as_echo'
21433   fi
21434   export as_echo_body
21435   as_echo='sh -c $as_echo_body as_echo'
21436 fi
21437
21438 # The user is always right.
21439 if test "${PATH_SEPARATOR+set}" != set; then
21440   PATH_SEPARATOR=:
21441   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21442     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21443       PATH_SEPARATOR=';'
21444   }
21445 fi
21446
21447
21448 # IFS
21449 # We need space, tab and new line, in precisely that order.  Quoting is
21450 # there to prevent editors from complaining about space-tab.
21451 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21452 # splitting by setting IFS to empty value.)
21453 IFS=" ""        $as_nl"
21454
21455 # Find who we are.  Look in the path if we contain no directory separator.
21456 as_myself=
21457 case $0 in #((
21458   *[\\/]* ) as_myself=$0 ;;
21459   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21460 for as_dir in $PATH
21461 do
21462   IFS=$as_save_IFS
21463   test -z "$as_dir" && as_dir=.
21464     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21465   done
21466 IFS=$as_save_IFS
21467
21468      ;;
21469 esac
21470 # We did not find ourselves, most probably we were run as `sh COMMAND'
21471 # in which case we are not to be found in the path.
21472 if test "x$as_myself" = x; then
21473   as_myself=$0
21474 fi
21475 if test ! -f "$as_myself"; then
21476   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21477   exit 1
21478 fi
21479
21480 # Unset variables that we do not need and which cause bugs (e.g. in
21481 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
21482 # suppresses any "Segmentation fault" message there.  '((' could
21483 # trigger a bug in pdksh 5.2.14.
21484 for as_var in BASH_ENV ENV MAIL MAILPATH
21485 do eval test x\${$as_var+set} = xset \
21486   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21487 done
21488 PS1='$ '
21489 PS2='> '
21490 PS4='+ '
21491
21492 # NLS nuisances.
21493 LC_ALL=C
21494 export LC_ALL
21495 LANGUAGE=C
21496 export LANGUAGE
21497
21498 # CDPATH.
21499 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21500
21501
21502 # as_fn_error STATUS ERROR [LINENO LOG_FD]
21503 # ----------------------------------------
21504 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21505 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21506 # script with STATUS, using 1 if that was 0.
21507 as_fn_error ()
21508 {
21509   as_status=$1; test $as_status -eq 0 && as_status=1
21510   if test "$4"; then
21511     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21512     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21513   fi
21514   $as_echo "$as_me: error: $2" >&2
21515   as_fn_exit $as_status
21516 } # as_fn_error
21517
21518
21519 # as_fn_set_status STATUS
21520 # -----------------------
21521 # Set $? to STATUS, without forking.
21522 as_fn_set_status ()
21523 {
21524   return $1
21525 } # as_fn_set_status
21526
21527 # as_fn_exit STATUS
21528 # -----------------
21529 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21530 as_fn_exit ()
21531 {
21532   set +e
21533   as_fn_set_status $1
21534   exit $1
21535 } # as_fn_exit
21536
21537 # as_fn_unset VAR
21538 # ---------------
21539 # Portably unset VAR.
21540 as_fn_unset ()
21541 {
21542   { eval $1=; unset $1;}
21543 }
21544 as_unset=as_fn_unset
21545 # as_fn_append VAR VALUE
21546 # ----------------------
21547 # Append the text in VALUE to the end of the definition contained in VAR. Take
21548 # advantage of any shell optimizations that allow amortized linear growth over
21549 # repeated appends, instead of the typical quadratic growth present in naive
21550 # implementations.
21551 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
21552   eval 'as_fn_append ()
21553   {
21554     eval $1+=\$2
21555   }'
21556 else
21557   as_fn_append ()
21558   {
21559     eval $1=\$$1\$2
21560   }
21561 fi # as_fn_append
21562
21563 # as_fn_arith ARG...
21564 # ------------------
21565 # Perform arithmetic evaluation on the ARGs, and store the result in the
21566 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21567 # must be portable across $(()) and expr.
21568 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
21569   eval 'as_fn_arith ()
21570   {
21571     as_val=$(( $* ))
21572   }'
21573 else
21574   as_fn_arith ()
21575   {
21576     as_val=`expr "$@" || test $? -eq 1`
21577   }
21578 fi # as_fn_arith
21579
21580
21581 if expr a : '\(a\)' >/dev/null 2>&1 &&
21582    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21583   as_expr=expr
21584 else
21585   as_expr=false
21586 fi
21587
21588 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21589   as_basename=basename
21590 else
21591   as_basename=false
21592 fi
21593
21594 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21595   as_dirname=dirname
21596 else
21597   as_dirname=false
21598 fi
21599
21600 as_me=`$as_basename -- "$0" ||
21601 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21602          X"$0" : 'X\(//\)$' \| \
21603          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21604 $as_echo X/"$0" |
21605     sed '/^.*\/\([^/][^/]*\)\/*$/{
21606             s//\1/
21607             q
21608           }
21609           /^X\/\(\/\/\)$/{
21610             s//\1/
21611             q
21612           }
21613           /^X\/\(\/\).*/{
21614             s//\1/
21615             q
21616           }
21617           s/.*/./; q'`
21618
21619 # Avoid depending upon Character Ranges.
21620 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21621 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21622 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21623 as_cr_digits='0123456789'
21624 as_cr_alnum=$as_cr_Letters$as_cr_digits
21625
21626 ECHO_C= ECHO_N= ECHO_T=
21627 case `echo -n x` in #(((((
21628 -n*)
21629   case `echo 'xy\c'` in
21630   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21631   xy)  ECHO_C='\c';;
21632   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
21633        ECHO_T=' ';;
21634   esac;;
21635 *)
21636   ECHO_N='-n';;
21637 esac
21638
21639 rm -f conf$$ conf$$.exe conf$$.file
21640 if test -d conf$$.dir; then
21641   rm -f conf$$.dir/conf$$.file
21642 else
21643   rm -f conf$$.dir
21644   mkdir conf$$.dir 2>/dev/null
21645 fi
21646 if (echo >conf$$.file) 2>/dev/null; then
21647   if ln -s conf$$.file conf$$ 2>/dev/null; then
21648     as_ln_s='ln -s'
21649     # ... but there are two gotchas:
21650     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21651     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21652     # In both cases, we have to default to `cp -p'.
21653     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21654       as_ln_s='cp -p'
21655   elif ln conf$$.file conf$$ 2>/dev/null; then
21656     as_ln_s=ln
21657   else
21658     as_ln_s='cp -p'
21659   fi
21660 else
21661   as_ln_s='cp -p'
21662 fi
21663 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21664 rmdir conf$$.dir 2>/dev/null
21665
21666
21667 # as_fn_mkdir_p
21668 # -------------
21669 # Create "$as_dir" as a directory, including parents if necessary.
21670 as_fn_mkdir_p ()
21671 {
21672
21673   case $as_dir in #(
21674   -*) as_dir=./$as_dir;;
21675   esac
21676   test -d "$as_dir" || eval $as_mkdir_p || {
21677     as_dirs=
21678     while :; do
21679       case $as_dir in #(
21680       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21681       *) as_qdir=$as_dir;;
21682       esac
21683       as_dirs="'$as_qdir' $as_dirs"
21684       as_dir=`$as_dirname -- "$as_dir" ||
21685 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21686          X"$as_dir" : 'X\(//\)[^/]' \| \
21687          X"$as_dir" : 'X\(//\)$' \| \
21688          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21689 $as_echo X"$as_dir" |
21690     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21691             s//\1/
21692             q
21693           }
21694           /^X\(\/\/\)[^/].*/{
21695             s//\1/
21696             q
21697           }
21698           /^X\(\/\/\)$/{
21699             s//\1/
21700             q
21701           }
21702           /^X\(\/\).*/{
21703             s//\1/
21704             q
21705           }
21706           s/.*/./; q'`
21707       test -d "$as_dir" && break
21708     done
21709     test -z "$as_dirs" || eval "mkdir $as_dirs"
21710   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21711
21712
21713 } # as_fn_mkdir_p
21714 if mkdir -p . 2>/dev/null; then
21715   as_mkdir_p='mkdir -p "$as_dir"'
21716 else
21717   test -d ./-p && rmdir ./-p
21718   as_mkdir_p=false
21719 fi
21720
21721 if test -x / >/dev/null 2>&1; then
21722   as_test_x='test -x'
21723 else
21724   if ls -dL / >/dev/null 2>&1; then
21725     as_ls_L_option=L
21726   else
21727     as_ls_L_option=
21728   fi
21729   as_test_x='
21730     eval sh -c '\''
21731       if test -d "$1"; then
21732         test -d "$1/.";
21733       else
21734         case $1 in #(
21735         -*)set "./$1";;
21736         esac;
21737         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
21738         ???[sx]*):;;*)false;;esac;fi
21739     '\'' sh
21740   '
21741 fi
21742 as_executable_p=$as_test_x
21743
21744 # Sed expression to map a string onto a valid CPP name.
21745 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21746
21747 # Sed expression to map a string onto a valid variable name.
21748 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21749
21750
21751 exec 6>&1
21752 ## ----------------------------------- ##
21753 ## Main body of $CONFIG_STATUS script. ##
21754 ## ----------------------------------- ##
21755 _ASEOF
21756 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21757
21758 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21759 # Save the log message, to keep $0 and so on meaningful, and to
21760 # report actual input values of CONFIG_FILES etc. instead of their
21761 # values after options handling.
21762 ac_log="
21763 This file was extended by linux nfs-utils $as_me 1.2.6, which was
21764 generated by GNU Autoconf 2.68.  Invocation command line was
21765
21766   CONFIG_FILES    = $CONFIG_FILES
21767   CONFIG_HEADERS  = $CONFIG_HEADERS
21768   CONFIG_LINKS    = $CONFIG_LINKS
21769   CONFIG_COMMANDS = $CONFIG_COMMANDS
21770   $ $0 $@
21771
21772 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21773 "
21774
21775 _ACEOF
21776
21777 case $ac_config_files in *"
21778 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21779 esac
21780
21781 case $ac_config_headers in *"
21782 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21783 esac
21784
21785
21786 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21787 # Files that config.status was made for.
21788 config_files="$ac_config_files"
21789 config_headers="$ac_config_headers"
21790 config_commands="$ac_config_commands"
21791
21792 _ACEOF
21793
21794 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21795 ac_cs_usage="\
21796 \`$as_me' instantiates files and other configuration actions
21797 from templates according to the current configuration.  Unless the files
21798 and actions are specified as TAGs, all are instantiated by default.
21799
21800 Usage: $0 [OPTION]... [TAG]...
21801
21802   -h, --help       print this help, then exit
21803   -V, --version    print version number and configuration settings, then exit
21804       --config     print configuration, then exit
21805   -q, --quiet, --silent
21806                    do not print progress messages
21807   -d, --debug      don't remove temporary files
21808       --recheck    update $as_me by reconfiguring in the same conditions
21809       --file=FILE[:TEMPLATE]
21810                    instantiate the configuration file FILE
21811       --header=FILE[:TEMPLATE]
21812                    instantiate the configuration header FILE
21813
21814 Configuration files:
21815 $config_files
21816
21817 Configuration headers:
21818 $config_headers
21819
21820 Configuration commands:
21821 $config_commands
21822
21823 Report bugs to <linux-nfs@vger.kernel.org>."
21824
21825 _ACEOF
21826 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21827 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21828 ac_cs_version="\\
21829 linux nfs-utils config.status 1.2.6
21830 configured by $0, generated by GNU Autoconf 2.68,
21831   with options \\"\$ac_cs_config\\"
21832
21833 Copyright (C) 2010 Free Software Foundation, Inc.
21834 This config.status script is free software; the Free Software Foundation
21835 gives unlimited permission to copy, distribute and modify it."
21836
21837 ac_pwd='$ac_pwd'
21838 srcdir='$srcdir'
21839 INSTALL='$INSTALL'
21840 MKDIR_P='$MKDIR_P'
21841 AWK='$AWK'
21842 test -n "\$AWK" || AWK=awk
21843 _ACEOF
21844
21845 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21846 # The default lists apply if the user does not specify any file.
21847 ac_need_defaults=:
21848 while test $# != 0
21849 do
21850   case $1 in
21851   --*=?*)
21852     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21853     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21854     ac_shift=:
21855     ;;
21856   --*=)
21857     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21858     ac_optarg=
21859     ac_shift=:
21860     ;;
21861   *)
21862     ac_option=$1
21863     ac_optarg=$2
21864     ac_shift=shift
21865     ;;
21866   esac
21867
21868   case $ac_option in
21869   # Handling of the options.
21870   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21871     ac_cs_recheck=: ;;
21872   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21873     $as_echo "$ac_cs_version"; exit ;;
21874   --config | --confi | --conf | --con | --co | --c )
21875     $as_echo "$ac_cs_config"; exit ;;
21876   --debug | --debu | --deb | --de | --d | -d )
21877     debug=: ;;
21878   --file | --fil | --fi | --f )
21879     $ac_shift
21880     case $ac_optarg in
21881     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21882     '') as_fn_error $? "missing file argument" ;;
21883     esac
21884     as_fn_append CONFIG_FILES " '$ac_optarg'"
21885     ac_need_defaults=false;;
21886   --header | --heade | --head | --hea )
21887     $ac_shift
21888     case $ac_optarg in
21889     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21890     esac
21891     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21892     ac_need_defaults=false;;
21893   --he | --h)
21894     # Conflict between --help and --header
21895     as_fn_error $? "ambiguous option: \`$1'
21896 Try \`$0 --help' for more information.";;
21897   --help | --hel | -h )
21898     $as_echo "$ac_cs_usage"; exit ;;
21899   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21900   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21901     ac_cs_silent=: ;;
21902
21903   # This is an error.
21904   -*) as_fn_error $? "unrecognized option: \`$1'
21905 Try \`$0 --help' for more information." ;;
21906
21907   *) as_fn_append ac_config_targets " $1"
21908      ac_need_defaults=false ;;
21909
21910   esac
21911   shift
21912 done
21913
21914 ac_configure_extra_args=
21915
21916 if $ac_cs_silent; then
21917   exec 6>/dev/null
21918   ac_configure_extra_args="$ac_configure_extra_args --silent"
21919 fi
21920
21921 _ACEOF
21922 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21923 if \$ac_cs_recheck; then
21924   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21925   shift
21926   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21927   CONFIG_SHELL='$SHELL'
21928   export CONFIG_SHELL
21929   exec "\$@"
21930 fi
21931
21932 _ACEOF
21933 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21934 exec 5>>config.log
21935 {
21936   echo
21937   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21938 ## Running $as_me. ##
21939 _ASBOX
21940   $as_echo "$ac_log"
21941 } >&5
21942
21943 _ACEOF
21944 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21945 #
21946 # INIT-COMMANDS
21947 #
21948 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21949
21950
21951 # The HP-UX ksh and POSIX shell print the target directory to stdout
21952 # if CDPATH is set.
21953 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21954
21955 sed_quote_subst='$sed_quote_subst'
21956 double_quote_subst='$double_quote_subst'
21957 delay_variable_subst='$delay_variable_subst'
21958 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21959 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21960 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21961 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21962 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21963 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21964 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21965 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21966 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21967 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21968 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21969 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21970 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21971 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21972 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21973 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21974 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21975 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21976 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21977 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21978 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21979 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21980 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21981 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21982 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21983 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21984 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21985 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21986 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21987 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21988 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21989 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21990 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21991 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21992 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21993 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21994 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21995 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21996 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21997 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21998 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21999 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22000 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22001 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22002 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22003 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22004 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22005 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22006 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22007 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22008 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22009 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22010 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22011 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22012 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22013 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"`'
22014 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22015 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22016 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22017 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22018 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22019 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22020 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22021 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22022 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22023 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22024 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22025 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22026 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22027 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22028 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22029 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22030 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22031 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22032 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22033 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22034 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22035 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22036 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22037 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22038 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22039 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22040 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22041 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22042 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22043 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22044 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22045 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22046 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22047 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22048 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
22049 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22050 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22051 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22052 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22053 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22054 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22055 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22056 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22057 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22058 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22059 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22060 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22061 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22062 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22063 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22064 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22065 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22066 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22067 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22068 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22069 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22070 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22071 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22072 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22073 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22074 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22075 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22076 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22077 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22078 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22079 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22080 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22081 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
22082 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22083 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22084 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22085 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22086 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22087 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22088 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
22089 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
22090 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
22091 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
22092 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
22093 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
22094 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
22095 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
22096 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22097 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22098 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
22099 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
22100 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
22101 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
22102 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
22103 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
22104 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
22105 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
22106 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
22107 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22108 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22109 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
22110 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22111 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22112 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22113 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22114 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22115 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22116 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
22117 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22118 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22119 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22120 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
22121 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
22122 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
22123 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
22124 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
22125 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
22126 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
22127 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
22128 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
22129 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
22130 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22131 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22132 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22133 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22134 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22135 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
22136 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
22137 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
22138 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22139 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22140 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
22141 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
22142 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
22143
22144 LTCC='$LTCC'
22145 LTCFLAGS='$LTCFLAGS'
22146 compiler='$compiler_DEFAULT'
22147
22148 # A function that is used when there is no print builtin or printf.
22149 func_fallback_echo ()
22150 {
22151   eval 'cat <<_LTECHO_EOF
22152 \$1
22153 _LTECHO_EOF'
22154 }
22155
22156 # Quote evaled strings.
22157 for var in SHELL \
22158 ECHO \
22159 SED \
22160 GREP \
22161 EGREP \
22162 FGREP \
22163 LD \
22164 NM \
22165 LN_S \
22166 lt_SP2NL \
22167 lt_NL2SP \
22168 reload_flag \
22169 OBJDUMP \
22170 deplibs_check_method \
22171 file_magic_cmd \
22172 file_magic_glob \
22173 want_nocaseglob \
22174 DLLTOOL \
22175 sharedlib_from_linklib_cmd \
22176 AR \
22177 AR_FLAGS \
22178 archiver_list_spec \
22179 STRIP \
22180 RANLIB \
22181 CC \
22182 CFLAGS \
22183 compiler \
22184 lt_cv_sys_global_symbol_pipe \
22185 lt_cv_sys_global_symbol_to_cdecl \
22186 lt_cv_sys_global_symbol_to_c_name_address \
22187 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22188 nm_file_list_spec \
22189 lt_prog_compiler_no_builtin_flag \
22190 lt_prog_compiler_pic \
22191 lt_prog_compiler_wl \
22192 lt_prog_compiler_static \
22193 lt_cv_prog_compiler_c_o \
22194 need_locks \
22195 MANIFEST_TOOL \
22196 DSYMUTIL \
22197 NMEDIT \
22198 LIPO \
22199 OTOOL \
22200 OTOOL64 \
22201 shrext_cmds \
22202 export_dynamic_flag_spec \
22203 whole_archive_flag_spec \
22204 compiler_needs_object \
22205 with_gnu_ld \
22206 allow_undefined_flag \
22207 no_undefined_flag \
22208 hardcode_libdir_flag_spec \
22209 hardcode_libdir_flag_spec_ld \
22210 hardcode_libdir_separator \
22211 exclude_expsyms \
22212 include_expsyms \
22213 file_list_spec \
22214 variables_saved_for_relink \
22215 libname_spec \
22216 library_names_spec \
22217 soname_spec \
22218 install_override_mode \
22219 finish_eval \
22220 old_striplib \
22221 striplib \
22222 compiler_lib_search_dirs \
22223 predep_objects \
22224 postdep_objects \
22225 predeps \
22226 postdeps \
22227 compiler_lib_search_path \
22228 LD_CXX \
22229 reload_flag_CXX \
22230 compiler_CXX \
22231 lt_prog_compiler_no_builtin_flag_CXX \
22232 lt_prog_compiler_pic_CXX \
22233 lt_prog_compiler_wl_CXX \
22234 lt_prog_compiler_static_CXX \
22235 lt_cv_prog_compiler_c_o_CXX \
22236 export_dynamic_flag_spec_CXX \
22237 whole_archive_flag_spec_CXX \
22238 compiler_needs_object_CXX \
22239 with_gnu_ld_CXX \
22240 allow_undefined_flag_CXX \
22241 no_undefined_flag_CXX \
22242 hardcode_libdir_flag_spec_CXX \
22243 hardcode_libdir_flag_spec_ld_CXX \
22244 hardcode_libdir_separator_CXX \
22245 exclude_expsyms_CXX \
22246 include_expsyms_CXX \
22247 file_list_spec_CXX \
22248 compiler_lib_search_dirs_CXX \
22249 predep_objects_CXX \
22250 postdep_objects_CXX \
22251 predeps_CXX \
22252 postdeps_CXX \
22253 compiler_lib_search_path_CXX; do
22254     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22255     *[\\\\\\\`\\"\\\$]*)
22256       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
22257       ;;
22258     *)
22259       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22260       ;;
22261     esac
22262 done
22263
22264 # Double-quote double-evaled strings.
22265 for var in reload_cmds \
22266 old_postinstall_cmds \
22267 old_postuninstall_cmds \
22268 old_archive_cmds \
22269 extract_expsyms_cmds \
22270 old_archive_from_new_cmds \
22271 old_archive_from_expsyms_cmds \
22272 archive_cmds \
22273 archive_expsym_cmds \
22274 module_cmds \
22275 module_expsym_cmds \
22276 export_symbols_cmds \
22277 prelink_cmds \
22278 postlink_cmds \
22279 postinstall_cmds \
22280 postuninstall_cmds \
22281 finish_cmds \
22282 sys_lib_search_path_spec \
22283 sys_lib_dlsearch_path_spec \
22284 reload_cmds_CXX \
22285 old_archive_cmds_CXX \
22286 old_archive_from_new_cmds_CXX \
22287 old_archive_from_expsyms_cmds_CXX \
22288 archive_cmds_CXX \
22289 archive_expsym_cmds_CXX \
22290 module_cmds_CXX \
22291 module_expsym_cmds_CXX \
22292 export_symbols_cmds_CXX \
22293 prelink_cmds_CXX \
22294 postlink_cmds_CXX; do
22295     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22296     *[\\\\\\\`\\"\\\$]*)
22297       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
22298       ;;
22299     *)
22300       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22301       ;;
22302     esac
22303 done
22304
22305 ac_aux_dir='$ac_aux_dir'
22306 xsi_shell='$xsi_shell'
22307 lt_shell_append='$lt_shell_append'
22308
22309 # See if we are running on zsh, and set the options which allow our
22310 # commands through without removal of \ escapes INIT.
22311 if test -n "\${ZSH_VERSION+set}" ; then
22312    setopt NO_GLOB_SUBST
22313 fi
22314
22315
22316     PACKAGE='$PACKAGE'
22317     VERSION='$VERSION'
22318     TIMESTAMP='$TIMESTAMP'
22319     RM='$RM'
22320     ofile='$ofile'
22321
22322
22323
22324
22325
22326
22327 _ACEOF
22328
22329 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22330
22331 # Handling of arguments.
22332 for ac_config_target in $ac_config_targets
22333 do
22334   case $ac_config_target in
22335     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22336     "support/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS support/include/config.h" ;;
22337     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22338     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22339     "linux-nfs/Makefile") CONFIG_FILES="$CONFIG_FILES linux-nfs/Makefile" ;;
22340     "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
22341     "support/export/Makefile") CONFIG_FILES="$CONFIG_FILES support/export/Makefile" ;;
22342     "support/include/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/nfs/Makefile" ;;
22343     "support/include/rpcsvc/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/rpcsvc/Makefile" ;;
22344     "support/include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/fs/Makefile" ;;
22345     "support/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/Makefile" ;;
22346     "support/include/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/Makefile" ;;
22347     "support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES support/misc/Makefile" ;;
22348     "support/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/nfs/Makefile" ;;
22349     "support/nsm/Makefile") CONFIG_FILES="$CONFIG_FILES support/nsm/Makefile" ;;
22350     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
22351     "tools/locktest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/locktest/Makefile" ;;
22352     "tools/nlmtest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/nlmtest/Makefile" ;;
22353     "tools/rpcdebug/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcdebug/Makefile" ;;
22354     "tools/rpcgen/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcgen/Makefile" ;;
22355     "tools/mountstats/Makefile") CONFIG_FILES="$CONFIG_FILES tools/mountstats/Makefile" ;;
22356     "tools/nfs-iostat/Makefile") CONFIG_FILES="$CONFIG_FILES tools/nfs-iostat/Makefile" ;;
22357     "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
22358     "utils/blkmapd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/blkmapd/Makefile" ;;
22359     "utils/nfsdcld/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsdcld/Makefile" ;;
22360     "utils/exportfs/Makefile") CONFIG_FILES="$CONFIG_FILES utils/exportfs/Makefile" ;;
22361     "utils/gssd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/gssd/Makefile" ;;
22362     "utils/idmapd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/idmapd/Makefile" ;;
22363     "utils/mount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mount/Makefile" ;;
22364     "utils/mountd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mountd/Makefile" ;;
22365     "utils/nfsd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsd/Makefile" ;;
22366     "utils/nfsstat/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsstat/Makefile" ;;
22367     "utils/nfsidmap/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsidmap/Makefile" ;;
22368     "utils/showmount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/showmount/Makefile" ;;
22369     "utils/statd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/statd/Makefile" ;;
22370     "utils/osd_login/Makefile") CONFIG_FILES="$CONFIG_FILES utils/osd_login/Makefile" ;;
22371     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
22372     "tests/nsm_client/Makefile") CONFIG_FILES="$CONFIG_FILES tests/nsm_client/Makefile" ;;
22373
22374   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22375   esac
22376 done
22377
22378
22379 # If the user did not use the arguments to specify the items to instantiate,
22380 # then the envvar interface is used.  Set only those that are not.
22381 # We use the long form for the default assignment because of an extremely
22382 # bizarre bug on SunOS 4.1.3.
22383 if $ac_need_defaults; then
22384   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22385   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22386   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22387 fi
22388
22389 # Have a temporary directory for convenience.  Make it in the build tree
22390 # simply because there is no reason against having it here, and in addition,
22391 # creating and moving files from /tmp can sometimes cause problems.
22392 # Hook for its removal unless debugging.
22393 # Note that there is a small window in which the directory will not be cleaned:
22394 # after its creation but before its name has been assigned to `$tmp'.
22395 $debug ||
22396 {
22397   tmp= ac_tmp=
22398   trap 'exit_status=$?
22399   : "${ac_tmp:=$tmp}"
22400   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22401 ' 0
22402   trap 'as_fn_exit 1' 1 2 13 15
22403 }
22404 # Create a (secure) tmp directory for tmp files.
22405
22406 {
22407   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22408   test -d "$tmp"
22409 }  ||
22410 {
22411   tmp=./conf$$-$RANDOM
22412   (umask 077 && mkdir "$tmp")
22413 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22414 ac_tmp=$tmp
22415
22416 # Set up the scripts for CONFIG_FILES section.
22417 # No need to generate them if there are no CONFIG_FILES.
22418 # This happens for instance with `./config.status config.h'.
22419 if test -n "$CONFIG_FILES"; then
22420
22421
22422 ac_cr=`echo X | tr X '\015'`
22423 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22424 # But we know of no other shell where ac_cr would be empty at this
22425 # point, so we can use a bashism as a fallback.
22426 if test "x$ac_cr" = x; then
22427   eval ac_cr=\$\'\\r\'
22428 fi
22429 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22430 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22431   ac_cs_awk_cr='\\r'
22432 else
22433   ac_cs_awk_cr=$ac_cr
22434 fi
22435
22436 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22437 _ACEOF
22438
22439
22440 {
22441   echo "cat >conf$$subs.awk <<_ACEOF" &&
22442   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22443   echo "_ACEOF"
22444 } >conf$$subs.sh ||
22445   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22446 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22447 ac_delim='%!_!# '
22448 for ac_last_try in false false false false false :; do
22449   . ./conf$$subs.sh ||
22450     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22451
22452   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22453   if test $ac_delim_n = $ac_delim_num; then
22454     break
22455   elif $ac_last_try; then
22456     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22457   else
22458     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22459   fi
22460 done
22461 rm -f conf$$subs.sh
22462
22463 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22464 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22465 _ACEOF
22466 sed -n '
22467 h
22468 s/^/S["/; s/!.*/"]=/
22469 p
22470 g
22471 s/^[^!]*!//
22472 :repl
22473 t repl
22474 s/'"$ac_delim"'$//
22475 t delim
22476 :nl
22477 h
22478 s/\(.\{148\}\)..*/\1/
22479 t more1
22480 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22481 p
22482 n
22483 b repl
22484 :more1
22485 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22486 p
22487 g
22488 s/.\{148\}//
22489 t nl
22490 :delim
22491 h
22492 s/\(.\{148\}\)..*/\1/
22493 t more2
22494 s/["\\]/\\&/g; s/^/"/; s/$/"/
22495 p
22496 b
22497 :more2
22498 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22499 p
22500 g
22501 s/.\{148\}//
22502 t delim
22503 ' <conf$$subs.awk | sed '
22504 /^[^""]/{
22505   N
22506   s/\n//
22507 }
22508 ' >>$CONFIG_STATUS || ac_write_fail=1
22509 rm -f conf$$subs.awk
22510 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22511 _ACAWK
22512 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22513   for (key in S) S_is_set[key] = 1
22514   FS = "\a"
22515
22516 }
22517 {
22518   line = $ 0
22519   nfields = split(line, field, "@")
22520   substed = 0
22521   len = length(field[1])
22522   for (i = 2; i < nfields; i++) {
22523     key = field[i]
22524     keylen = length(key)
22525     if (S_is_set[key]) {
22526       value = S[key]
22527       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22528       len += length(value) + length(field[++i])
22529       substed = 1
22530     } else
22531       len += 1 + keylen
22532   }
22533
22534   print line
22535 }
22536
22537 _ACAWK
22538 _ACEOF
22539 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22540 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22541   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22542 else
22543   cat
22544 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22545   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22546 _ACEOF
22547
22548 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22549 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22550 # trailing colons and then remove the whole line if VPATH becomes empty
22551 # (actually we leave an empty line to preserve line numbers).
22552 if test "x$srcdir" = x.; then
22553   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
22554 h
22555 s///
22556 s/^/:/
22557 s/[      ]*$/:/
22558 s/:\$(srcdir):/:/g
22559 s/:\${srcdir}:/:/g
22560 s/:@srcdir@:/:/g
22561 s/^:*//
22562 s/:*$//
22563 x
22564 s/\(=[   ]*\).*/\1/
22565 G
22566 s/\n//
22567 s/^[^=]*=[       ]*$//
22568 }'
22569 fi
22570
22571 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22572 fi # test -n "$CONFIG_FILES"
22573
22574 # Set up the scripts for CONFIG_HEADERS section.
22575 # No need to generate them if there are no CONFIG_HEADERS.
22576 # This happens for instance with `./config.status Makefile'.
22577 if test -n "$CONFIG_HEADERS"; then
22578 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22579 BEGIN {
22580 _ACEOF
22581
22582 # Transform confdefs.h into an awk script `defines.awk', embedded as
22583 # here-document in config.status, that substitutes the proper values into
22584 # config.h.in to produce config.h.
22585
22586 # Create a delimiter string that does not exist in confdefs.h, to ease
22587 # handling of long lines.
22588 ac_delim='%!_!# '
22589 for ac_last_try in false false :; do
22590   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22591   if test -z "$ac_tt"; then
22592     break
22593   elif $ac_last_try; then
22594     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22595   else
22596     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22597   fi
22598 done
22599
22600 # For the awk script, D is an array of macro values keyed by name,
22601 # likewise P contains macro parameters if any.  Preserve backslash
22602 # newline sequences.
22603
22604 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22605 sed -n '
22606 s/.\{148\}/&'"$ac_delim"'/g
22607 t rset
22608 :rset
22609 s/^[     ]*#[    ]*define[       ][      ]*/ /
22610 t def
22611 d
22612 :def
22613 s/\\$//
22614 t bsnl
22615 s/["\\]/\\&/g
22616 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
22617 D["\1"]=" \3"/p
22618 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
22619 d
22620 :bsnl
22621 s/["\\]/\\&/g
22622 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
22623 D["\1"]=" \3\\\\\\n"\\/p
22624 t cont
22625 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22626 t cont
22627 d
22628 :cont
22629 n
22630 s/.\{148\}/&'"$ac_delim"'/g
22631 t clear
22632 :clear
22633 s/\\$//
22634 t bsnlc
22635 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22636 d
22637 :bsnlc
22638 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22639 b cont
22640 ' <confdefs.h | sed '
22641 s/'"$ac_delim"'/"\\\
22642 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22643
22644 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22645   for (key in D) D_is_set[key] = 1
22646   FS = "\a"
22647 }
22648 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22649   line = \$ 0
22650   split(line, arg, " ")
22651   if (arg[1] == "#") {
22652     defundef = arg[2]
22653     mac1 = arg[3]
22654   } else {
22655     defundef = substr(arg[1], 2)
22656     mac1 = arg[2]
22657   }
22658   split(mac1, mac2, "(") #)
22659   macro = mac2[1]
22660   prefix = substr(line, 1, index(line, defundef) - 1)
22661   if (D_is_set[macro]) {
22662     # Preserve the white space surrounding the "#".
22663     print prefix "define", macro P[macro] D[macro]
22664     next
22665   } else {
22666     # Replace #undef with comments.  This is necessary, for example,
22667     # in the case of _POSIX_SOURCE, which is predefined and required
22668     # on some systems where configure will not decide to define it.
22669     if (defundef == "undef") {
22670       print "/*", prefix defundef, macro, "*/"
22671       next
22672     }
22673   }
22674 }
22675 { print }
22676 _ACAWK
22677 _ACEOF
22678 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22679   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22680 fi # test -n "$CONFIG_HEADERS"
22681
22682
22683 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
22684 shift
22685 for ac_tag
22686 do
22687   case $ac_tag in
22688   :[FHLC]) ac_mode=$ac_tag; continue;;
22689   esac
22690   case $ac_mode$ac_tag in
22691   :[FHL]*:*);;
22692   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22693   :[FH]-) ac_tag=-:-;;
22694   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22695   esac
22696   ac_save_IFS=$IFS
22697   IFS=:
22698   set x $ac_tag
22699   IFS=$ac_save_IFS
22700   shift
22701   ac_file=$1
22702   shift
22703
22704   case $ac_mode in
22705   :L) ac_source=$1;;
22706   :[FH])
22707     ac_file_inputs=
22708     for ac_f
22709     do
22710       case $ac_f in
22711       -) ac_f="$ac_tmp/stdin";;
22712       *) # Look for the file first in the build tree, then in the source tree
22713          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22714          # because $ac_f cannot contain `:'.
22715          test -f "$ac_f" ||
22716            case $ac_f in
22717            [\\/$]*) false;;
22718            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22719            esac ||
22720            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22721       esac
22722       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22723       as_fn_append ac_file_inputs " '$ac_f'"
22724     done
22725
22726     # Let's still pretend it is `configure' which instantiates (i.e., don't
22727     # use $as_me), people would be surprised to read:
22728     #    /* config.h.  Generated by config.status.  */
22729     configure_input='Generated from '`
22730           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22731         `' by configure.'
22732     if test x"$ac_file" != x-; then
22733       configure_input="$ac_file.  $configure_input"
22734       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22735 $as_echo "$as_me: creating $ac_file" >&6;}
22736     fi
22737     # Neutralize special characters interpreted by sed in replacement strings.
22738     case $configure_input in #(
22739     *\&* | *\|* | *\\* )
22740        ac_sed_conf_input=`$as_echo "$configure_input" |
22741        sed 's/[\\\\&|]/\\\\&/g'`;; #(
22742     *) ac_sed_conf_input=$configure_input;;
22743     esac
22744
22745     case $ac_tag in
22746     *:-:* | *:-) cat >"$ac_tmp/stdin" \
22747       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22748     esac
22749     ;;
22750   esac
22751
22752   ac_dir=`$as_dirname -- "$ac_file" ||
22753 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22754          X"$ac_file" : 'X\(//\)[^/]' \| \
22755          X"$ac_file" : 'X\(//\)$' \| \
22756          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22757 $as_echo X"$ac_file" |
22758     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22759             s//\1/
22760             q
22761           }
22762           /^X\(\/\/\)[^/].*/{
22763             s//\1/
22764             q
22765           }
22766           /^X\(\/\/\)$/{
22767             s//\1/
22768             q
22769           }
22770           /^X\(\/\).*/{
22771             s//\1/
22772             q
22773           }
22774           s/.*/./; q'`
22775   as_dir="$ac_dir"; as_fn_mkdir_p
22776   ac_builddir=.
22777
22778 case "$ac_dir" in
22779 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22780 *)
22781   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22782   # A ".." for each directory in $ac_dir_suffix.
22783   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22784   case $ac_top_builddir_sub in
22785   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22786   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22787   esac ;;
22788 esac
22789 ac_abs_top_builddir=$ac_pwd
22790 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22791 # for backward compatibility:
22792 ac_top_builddir=$ac_top_build_prefix
22793
22794 case $srcdir in
22795   .)  # We are building in place.
22796     ac_srcdir=.
22797     ac_top_srcdir=$ac_top_builddir_sub
22798     ac_abs_top_srcdir=$ac_pwd ;;
22799   [\\/]* | ?:[\\/]* )  # Absolute name.
22800     ac_srcdir=$srcdir$ac_dir_suffix;
22801     ac_top_srcdir=$srcdir
22802     ac_abs_top_srcdir=$srcdir ;;
22803   *) # Relative name.
22804     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22805     ac_top_srcdir=$ac_top_build_prefix$srcdir
22806     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22807 esac
22808 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22809
22810
22811   case $ac_mode in
22812   :F)
22813   #
22814   # CONFIG_FILE
22815   #
22816
22817   case $INSTALL in
22818   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22819   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22820   esac
22821   ac_MKDIR_P=$MKDIR_P
22822   case $MKDIR_P in
22823   [\\/$]* | ?:[\\/]* ) ;;
22824   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22825   esac
22826 _ACEOF
22827
22828 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22829 # If the template does not know about datarootdir, expand it.
22830 # FIXME: This hack should be removed a few years after 2.60.
22831 ac_datarootdir_hack=; ac_datarootdir_seen=
22832 ac_sed_dataroot='
22833 /datarootdir/ {
22834   p
22835   q
22836 }
22837 /@datadir@/p
22838 /@docdir@/p
22839 /@infodir@/p
22840 /@localedir@/p
22841 /@mandir@/p'
22842 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22843 *datarootdir*) ac_datarootdir_seen=yes;;
22844 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22845   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22846 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22847 _ACEOF
22848 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22849   ac_datarootdir_hack='
22850   s&@datadir@&$datadir&g
22851   s&@docdir@&$docdir&g
22852   s&@infodir@&$infodir&g
22853   s&@localedir@&$localedir&g
22854   s&@mandir@&$mandir&g
22855   s&\\\${datarootdir}&$datarootdir&g' ;;
22856 esac
22857 _ACEOF
22858
22859 # Neutralize VPATH when `$srcdir' = `.'.
22860 # Shell code in configure.ac might set extrasub.
22861 # FIXME: do we really want to maintain this feature?
22862 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22863 ac_sed_extra="$ac_vpsub
22864 $extrasub
22865 _ACEOF
22866 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22867 :t
22868 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22869 s|@configure_input@|$ac_sed_conf_input|;t t
22870 s&@top_builddir@&$ac_top_builddir_sub&;t t
22871 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22872 s&@srcdir@&$ac_srcdir&;t t
22873 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22874 s&@top_srcdir@&$ac_top_srcdir&;t t
22875 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22876 s&@builddir@&$ac_builddir&;t t
22877 s&@abs_builddir@&$ac_abs_builddir&;t t
22878 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22879 s&@INSTALL@&$ac_INSTALL&;t t
22880 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22881 $ac_datarootdir_hack
22882 "
22883 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22884   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22885
22886 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22887   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22888   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
22889       "$ac_tmp/out"`; test -z "$ac_out"; } &&
22890   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22891 which seems to be undefined.  Please make sure it is defined" >&5
22892 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22893 which seems to be undefined.  Please make sure it is defined" >&2;}
22894
22895   rm -f "$ac_tmp/stdin"
22896   case $ac_file in
22897   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22898   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22899   esac \
22900   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22901  ;;
22902   :H)
22903   #
22904   # CONFIG_HEADER
22905   #
22906   if test x"$ac_file" != x-; then
22907     {
22908       $as_echo "/* $configure_input  */" \
22909       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22910     } >"$ac_tmp/config.h" \
22911       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22912     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22913       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22914 $as_echo "$as_me: $ac_file is unchanged" >&6;}
22915     else
22916       rm -f "$ac_file"
22917       mv "$ac_tmp/config.h" "$ac_file" \
22918         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22919     fi
22920   else
22921     $as_echo "/* $configure_input  */" \
22922       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22923       || as_fn_error $? "could not create -" "$LINENO" 5
22924   fi
22925 # Compute "$ac_file"'s index in $config_headers.
22926 _am_arg="$ac_file"
22927 _am_stamp_count=1
22928 for _am_header in $config_headers :; do
22929   case $_am_header in
22930     $_am_arg | $_am_arg:* )
22931       break ;;
22932     * )
22933       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22934   esac
22935 done
22936 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22937 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22938          X"$_am_arg" : 'X\(//\)[^/]' \| \
22939          X"$_am_arg" : 'X\(//\)$' \| \
22940          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22941 $as_echo X"$_am_arg" |
22942     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22943             s//\1/
22944             q
22945           }
22946           /^X\(\/\/\)[^/].*/{
22947             s//\1/
22948             q
22949           }
22950           /^X\(\/\/\)$/{
22951             s//\1/
22952             q
22953           }
22954           /^X\(\/\).*/{
22955             s//\1/
22956             q
22957           }
22958           s/.*/./; q'`/stamp-h$_am_stamp_count
22959  ;;
22960
22961   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22962 $as_echo "$as_me: executing $ac_file commands" >&6;}
22963  ;;
22964   esac
22965
22966
22967   case $ac_file$ac_mode in
22968     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22969   # Autoconf 2.62 quotes --file arguments for eval, but not when files
22970   # are listed without --file.  Let's play safe and only enable the eval
22971   # if we detect the quoting.
22972   case $CONFIG_FILES in
22973   *\'*) eval set x "$CONFIG_FILES" ;;
22974   *)   set x $CONFIG_FILES ;;
22975   esac
22976   shift
22977   for mf
22978   do
22979     # Strip MF so we end up with the name of the file.
22980     mf=`echo "$mf" | sed -e 's/:.*$//'`
22981     # Check whether this is an Automake generated Makefile or not.
22982     # We used to match only the files named `Makefile.in', but
22983     # some people rename them; so instead we look at the file content.
22984     # Grep'ing the first line is not enough: some people post-process
22985     # each Makefile.in and add a new line on top of each file to say so.
22986     # Grep'ing the whole file is not good either: AIX grep has a line
22987     # limit of 2048, but all sed's we know have understand at least 4000.
22988     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22989       dirpart=`$as_dirname -- "$mf" ||
22990 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22991          X"$mf" : 'X\(//\)[^/]' \| \
22992          X"$mf" : 'X\(//\)$' \| \
22993          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22994 $as_echo X"$mf" |
22995     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22996             s//\1/
22997             q
22998           }
22999           /^X\(\/\/\)[^/].*/{
23000             s//\1/
23001             q
23002           }
23003           /^X\(\/\/\)$/{
23004             s//\1/
23005             q
23006           }
23007           /^X\(\/\).*/{
23008             s//\1/
23009             q
23010           }
23011           s/.*/./; q'`
23012     else
23013       continue
23014     fi
23015     # Extract the definition of DEPDIR, am__include, and am__quote
23016     # from the Makefile without running `make'.
23017     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23018     test -z "$DEPDIR" && continue
23019     am__include=`sed -n 's/^am__include = //p' < "$mf"`
23020     test -z "am__include" && continue
23021     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23022     # When using ansi2knr, U may be empty or an underscore; expand it
23023     U=`sed -n 's/^U = //p' < "$mf"`
23024     # Find all dependency output files, they are included files with
23025     # $(DEPDIR) in their names.  We invoke sed twice because it is the
23026     # simplest approach to changing $(DEPDIR) to its actual value in the
23027     # expansion.
23028     for file in `sed -n "
23029       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23030          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23031       # Make sure the directory exists.
23032       test -f "$dirpart/$file" && continue
23033       fdir=`$as_dirname -- "$file" ||
23034 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23035          X"$file" : 'X\(//\)[^/]' \| \
23036          X"$file" : 'X\(//\)$' \| \
23037          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23038 $as_echo X"$file" |
23039     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23040             s//\1/
23041             q
23042           }
23043           /^X\(\/\/\)[^/].*/{
23044             s//\1/
23045             q
23046           }
23047           /^X\(\/\/\)$/{
23048             s//\1/
23049             q
23050           }
23051           /^X\(\/\).*/{
23052             s//\1/
23053             q
23054           }
23055           s/.*/./; q'`
23056       as_dir=$dirpart/$fdir; as_fn_mkdir_p
23057       # echo "creating $dirpart/$file"
23058       echo '# dummy' > "$dirpart/$file"
23059     done
23060   done
23061 }
23062  ;;
23063     "libtool":C)
23064
23065     # See if we are running on zsh, and set the options which allow our
23066     # commands through without removal of \ escapes.
23067     if test -n "${ZSH_VERSION+set}" ; then
23068       setopt NO_GLOB_SUBST
23069     fi
23070
23071     cfgfile="${ofile}T"
23072     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23073     $RM "$cfgfile"
23074
23075     cat <<_LT_EOF >> "$cfgfile"
23076 #! $SHELL
23077
23078 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
23079 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
23080 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23081 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23082 #
23083 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
23084 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
23085 #                 Inc.
23086 #   Written by Gordon Matzigkeit, 1996
23087 #
23088 #   This file is part of GNU Libtool.
23089 #
23090 # GNU Libtool is free software; you can redistribute it and/or
23091 # modify it under the terms of the GNU General Public License as
23092 # published by the Free Software Foundation; either version 2 of
23093 # the License, or (at your option) any later version.
23094 #
23095 # As a special exception to the GNU General Public License,
23096 # if you distribute this file as part of a program or library that
23097 # is built using GNU Libtool, you may include this file under the
23098 # same distribution terms that you use for the rest of that program.
23099 #
23100 # GNU Libtool is distributed in the hope that it will be useful,
23101 # but WITHOUT ANY WARRANTY; without even the implied warranty of
23102 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23103 # GNU General Public License for more details.
23104 #
23105 # You should have received a copy of the GNU General Public License
23106 # along with GNU Libtool; see the file COPYING.  If not, a copy
23107 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
23108 # obtained by writing to the Free Software Foundation, Inc.,
23109 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23110
23111
23112 # The names of the tagged configurations supported by this script.
23113 available_tags="CXX "
23114
23115 # ### BEGIN LIBTOOL CONFIG
23116
23117 # Which release of libtool.m4 was used?
23118 macro_version=$macro_version
23119 macro_revision=$macro_revision
23120
23121 # Whether or not to build shared libraries.
23122 build_libtool_libs=$enable_shared
23123
23124 # Whether or not to build static libraries.
23125 build_old_libs=$enable_static
23126
23127 # What type of objects to build.
23128 pic_mode=$pic_mode
23129
23130 # Whether or not to optimize for fast installation.
23131 fast_install=$enable_fast_install
23132
23133 # Shell to use when invoking shell scripts.
23134 SHELL=$lt_SHELL
23135
23136 # An echo program that protects backslashes.
23137 ECHO=$lt_ECHO
23138
23139 # The host system.
23140 host_alias=$host_alias
23141 host=$host
23142 host_os=$host_os
23143
23144 # The build system.
23145 build_alias=$build_alias
23146 build=$build
23147 build_os=$build_os
23148
23149 # A sed program that does not truncate output.
23150 SED=$lt_SED
23151
23152 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23153 Xsed="\$SED -e 1s/^X//"
23154
23155 # A grep program that handles long lines.
23156 GREP=$lt_GREP
23157
23158 # An ERE matcher.
23159 EGREP=$lt_EGREP
23160
23161 # A literal string matcher.
23162 FGREP=$lt_FGREP
23163
23164 # A BSD- or MS-compatible name lister.
23165 NM=$lt_NM
23166
23167 # Whether we need soft or hard links.
23168 LN_S=$lt_LN_S
23169
23170 # What is the maximum length of a command?
23171 max_cmd_len=$max_cmd_len
23172
23173 # Object file suffix (normally "o").
23174 objext=$ac_objext
23175
23176 # Executable file suffix (normally "").
23177 exeext=$exeext
23178
23179 # whether the shell understands "unset".
23180 lt_unset=$lt_unset
23181
23182 # turn spaces into newlines.
23183 SP2NL=$lt_lt_SP2NL
23184
23185 # turn newlines into spaces.
23186 NL2SP=$lt_lt_NL2SP
23187
23188 # convert \$build file names to \$host format.
23189 to_host_file_cmd=$lt_cv_to_host_file_cmd
23190
23191 # convert \$build files to toolchain format.
23192 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23193
23194 # An object symbol dumper.
23195 OBJDUMP=$lt_OBJDUMP
23196
23197 # Method to check whether dependent libraries are shared objects.
23198 deplibs_check_method=$lt_deplibs_check_method
23199
23200 # Command to use when deplibs_check_method = "file_magic".
23201 file_magic_cmd=$lt_file_magic_cmd
23202
23203 # How to find potential files when deplibs_check_method = "file_magic".
23204 file_magic_glob=$lt_file_magic_glob
23205
23206 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23207 want_nocaseglob=$lt_want_nocaseglob
23208
23209 # DLL creation program.
23210 DLLTOOL=$lt_DLLTOOL
23211
23212 # Command to associate shared and link libraries.
23213 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23214
23215 # The archiver.
23216 AR=$lt_AR
23217
23218 # Flags to create an archive.
23219 AR_FLAGS=$lt_AR_FLAGS
23220
23221 # How to feed a file listing to the archiver.
23222 archiver_list_spec=$lt_archiver_list_spec
23223
23224 # A symbol stripping program.
23225 STRIP=$lt_STRIP
23226
23227 # Commands used to install an old-style archive.
23228 RANLIB=$lt_RANLIB
23229 old_postinstall_cmds=$lt_old_postinstall_cmds
23230 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23231
23232 # Whether to use a lock for old archive extraction.
23233 lock_old_archive_extraction=$lock_old_archive_extraction
23234
23235 # A C compiler.
23236 LTCC=$lt_CC
23237
23238 # LTCC compiler flags.
23239 LTCFLAGS=$lt_CFLAGS
23240
23241 # Take the output of nm and produce a listing of raw symbols and C names.
23242 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23243
23244 # Transform the output of nm in a proper C declaration.
23245 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23246
23247 # Transform the output of nm in a C name address pair.
23248 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23249
23250 # Transform the output of nm in a C name address pair when lib prefix is needed.
23251 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23252
23253 # Specify filename containing input files for \$NM.
23254 nm_file_list_spec=$lt_nm_file_list_spec
23255
23256 # The root where to search for dependent libraries,and in which our libraries should be installed.
23257 lt_sysroot=$lt_sysroot
23258
23259 # The name of the directory that contains temporary libtool files.
23260 objdir=$objdir
23261
23262 # Used to examine libraries when file_magic_cmd begins with "file".
23263 MAGIC_CMD=$MAGIC_CMD
23264
23265 # Must we lock files when doing compilation?
23266 need_locks=$lt_need_locks
23267
23268 # Manifest tool.
23269 MANIFEST_TOOL=$lt_MANIFEST_TOOL
23270
23271 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23272 DSYMUTIL=$lt_DSYMUTIL
23273
23274 # Tool to change global to local symbols on Mac OS X.
23275 NMEDIT=$lt_NMEDIT
23276
23277 # Tool to manipulate fat objects and archives on Mac OS X.
23278 LIPO=$lt_LIPO
23279
23280 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23281 OTOOL=$lt_OTOOL
23282
23283 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23284 OTOOL64=$lt_OTOOL64
23285
23286 # Old archive suffix (normally "a").
23287 libext=$libext
23288
23289 # Shared library suffix (normally ".so").
23290 shrext_cmds=$lt_shrext_cmds
23291
23292 # The commands to extract the exported symbol list from a shared archive.
23293 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23294
23295 # Variables whose values should be saved in libtool wrapper scripts and
23296 # restored at link time.
23297 variables_saved_for_relink=$lt_variables_saved_for_relink
23298
23299 # Do we need the "lib" prefix for modules?
23300 need_lib_prefix=$need_lib_prefix
23301
23302 # Do we need a version for libraries?
23303 need_version=$need_version
23304
23305 # Library versioning type.
23306 version_type=$version_type
23307
23308 # Shared library runtime path variable.
23309 runpath_var=$runpath_var
23310
23311 # Shared library path variable.
23312 shlibpath_var=$shlibpath_var
23313
23314 # Is shlibpath searched before the hard-coded library search path?
23315 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23316
23317 # Format of library name prefix.
23318 libname_spec=$lt_libname_spec
23319
23320 # List of archive names.  First name is the real one, the rest are links.
23321 # The last name is the one that the linker finds with -lNAME
23322 library_names_spec=$lt_library_names_spec
23323
23324 # The coded name of the library, if different from the real name.
23325 soname_spec=$lt_soname_spec
23326
23327 # Permission mode override for installation of shared libraries.
23328 install_override_mode=$lt_install_override_mode
23329
23330 # Command to use after installation of a shared archive.
23331 postinstall_cmds=$lt_postinstall_cmds
23332
23333 # Command to use after uninstallation of a shared archive.
23334 postuninstall_cmds=$lt_postuninstall_cmds
23335
23336 # Commands used to finish a libtool library installation in a directory.
23337 finish_cmds=$lt_finish_cmds
23338
23339 # As "finish_cmds", except a single script fragment to be evaled but
23340 # not shown.
23341 finish_eval=$lt_finish_eval
23342
23343 # Whether we should hardcode library paths into libraries.
23344 hardcode_into_libs=$hardcode_into_libs
23345
23346 # Compile-time system search path for libraries.
23347 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23348
23349 # Run-time system search path for libraries.
23350 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23351
23352 # Whether dlopen is supported.
23353 dlopen_support=$enable_dlopen
23354
23355 # Whether dlopen of programs is supported.
23356 dlopen_self=$enable_dlopen_self
23357
23358 # Whether dlopen of statically linked programs is supported.
23359 dlopen_self_static=$enable_dlopen_self_static
23360
23361 # Commands to strip libraries.
23362 old_striplib=$lt_old_striplib
23363 striplib=$lt_striplib
23364
23365
23366 # The linker used to build libraries.
23367 LD=$lt_LD
23368
23369 # How to create reloadable object files.
23370 reload_flag=$lt_reload_flag
23371 reload_cmds=$lt_reload_cmds
23372
23373 # Commands used to build an old-style archive.
23374 old_archive_cmds=$lt_old_archive_cmds
23375
23376 # A language specific compiler.
23377 CC=$lt_compiler
23378
23379 # Is the compiler the GNU compiler?
23380 with_gcc=$GCC
23381
23382 # Compiler flag to turn off builtin functions.
23383 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23384
23385 # Additional compiler flags for building library objects.
23386 pic_flag=$lt_lt_prog_compiler_pic
23387
23388 # How to pass a linker flag through the compiler.
23389 wl=$lt_lt_prog_compiler_wl
23390
23391 # Compiler flag to prevent dynamic linking.
23392 link_static_flag=$lt_lt_prog_compiler_static
23393
23394 # Does compiler simultaneously support -c and -o options?
23395 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23396
23397 # Whether or not to add -lc for building shared libraries.
23398 build_libtool_need_lc=$archive_cmds_need_lc
23399
23400 # Whether or not to disallow shared libs when runtime libs are static.
23401 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23402
23403 # Compiler flag to allow reflexive dlopens.
23404 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23405
23406 # Compiler flag to generate shared objects directly from archives.
23407 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23408
23409 # Whether the compiler copes with passing no objects directly.
23410 compiler_needs_object=$lt_compiler_needs_object
23411
23412 # Create an old-style archive from a shared archive.
23413 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23414
23415 # Create a temporary old-style archive to link instead of a shared archive.
23416 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23417
23418 # Commands used to build a shared archive.
23419 archive_cmds=$lt_archive_cmds
23420 archive_expsym_cmds=$lt_archive_expsym_cmds
23421
23422 # Commands used to build a loadable module if different from building
23423 # a shared archive.
23424 module_cmds=$lt_module_cmds
23425 module_expsym_cmds=$lt_module_expsym_cmds
23426
23427 # Whether we are building with GNU ld or not.
23428 with_gnu_ld=$lt_with_gnu_ld
23429
23430 # Flag that allows shared libraries with undefined symbols to be built.
23431 allow_undefined_flag=$lt_allow_undefined_flag
23432
23433 # Flag that enforces no undefined symbols.
23434 no_undefined_flag=$lt_no_undefined_flag
23435
23436 # Flag to hardcode \$libdir into a binary during linking.
23437 # This must work even if \$libdir does not exist
23438 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23439
23440 # If ld is used when linking, flag to hardcode \$libdir into a binary
23441 # during linking.  This must work even if \$libdir does not exist.
23442 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
23443
23444 # Whether we need a single "-rpath" flag with a separated argument.
23445 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23446
23447 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23448 # DIR into the resulting binary.
23449 hardcode_direct=$hardcode_direct
23450
23451 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23452 # DIR into the resulting binary and the resulting library dependency is
23453 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23454 # library is relocated.
23455 hardcode_direct_absolute=$hardcode_direct_absolute
23456
23457 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23458 # into the resulting binary.
23459 hardcode_minus_L=$hardcode_minus_L
23460
23461 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23462 # into the resulting binary.
23463 hardcode_shlibpath_var=$hardcode_shlibpath_var
23464
23465 # Set to "yes" if building a shared library automatically hardcodes DIR
23466 # into the library and all subsequent libraries and executables linked
23467 # against it.
23468 hardcode_automatic=$hardcode_automatic
23469
23470 # Set to yes if linker adds runtime paths of dependent libraries
23471 # to runtime path list.
23472 inherit_rpath=$inherit_rpath
23473
23474 # Whether libtool must link a program against all its dependency libraries.
23475 link_all_deplibs=$link_all_deplibs
23476
23477 # Set to "yes" if exported symbols are required.
23478 always_export_symbols=$always_export_symbols
23479
23480 # The commands to list exported symbols.
23481 export_symbols_cmds=$lt_export_symbols_cmds
23482
23483 # Symbols that should not be listed in the preloaded symbols.
23484 exclude_expsyms=$lt_exclude_expsyms
23485
23486 # Symbols that must always be exported.
23487 include_expsyms=$lt_include_expsyms
23488
23489 # Commands necessary for linking programs (against libraries) with templates.
23490 prelink_cmds=$lt_prelink_cmds
23491
23492 # Commands necessary for finishing linking programs.
23493 postlink_cmds=$lt_postlink_cmds
23494
23495 # Specify filename containing input files.
23496 file_list_spec=$lt_file_list_spec
23497
23498 # How to hardcode a shared library path into an executable.
23499 hardcode_action=$hardcode_action
23500
23501 # The directories searched by this compiler when creating a shared library.
23502 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
23503
23504 # Dependencies to place before and after the objects being linked to
23505 # create a shared library.
23506 predep_objects=$lt_predep_objects
23507 postdep_objects=$lt_postdep_objects
23508 predeps=$lt_predeps
23509 postdeps=$lt_postdeps
23510
23511 # The library search path used internally by the compiler when linking
23512 # a shared library.
23513 compiler_lib_search_path=$lt_compiler_lib_search_path
23514
23515 # ### END LIBTOOL CONFIG
23516
23517 _LT_EOF
23518
23519   case $host_os in
23520   aix3*)
23521     cat <<\_LT_EOF >> "$cfgfile"
23522 # AIX sometimes has problems with the GCC collect2 program.  For some
23523 # reason, if we set the COLLECT_NAMES environment variable, the problems
23524 # vanish in a puff of smoke.
23525 if test "X${COLLECT_NAMES+set}" != Xset; then
23526   COLLECT_NAMES=
23527   export COLLECT_NAMES
23528 fi
23529 _LT_EOF
23530     ;;
23531   esac
23532
23533
23534 ltmain="$ac_aux_dir/ltmain.sh"
23535
23536
23537   # We use sed instead of cat because bash on DJGPP gets confused if
23538   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
23539   # text mode, it properly converts lines to CR/LF.  This bash problem
23540   # is reportedly fixed, but why not run on old versions too?
23541   sed '$q' "$ltmain" >> "$cfgfile" \
23542      || (rm -f "$cfgfile"; exit 1)
23543
23544   if test x"$xsi_shell" = xyes; then
23545   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
23546 func_dirname ()\
23547 {\
23548 \    case ${1} in\
23549 \      */*) func_dirname_result="${1%/*}${2}" ;;\
23550 \      *  ) func_dirname_result="${3}" ;;\
23551 \    esac\
23552 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
23553   && mv -f "$cfgfile.tmp" "$cfgfile" \
23554     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23555 test 0 -eq $? || _lt_function_replace_fail=:
23556
23557
23558   sed -e '/^func_basename ()$/,/^} # func_basename /c\
23559 func_basename ()\
23560 {\
23561 \    func_basename_result="${1##*/}"\
23562 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
23563   && mv -f "$cfgfile.tmp" "$cfgfile" \
23564     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23565 test 0 -eq $? || _lt_function_replace_fail=:
23566
23567
23568   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
23569 func_dirname_and_basename ()\
23570 {\
23571 \    case ${1} in\
23572 \      */*) func_dirname_result="${1%/*}${2}" ;;\
23573 \      *  ) func_dirname_result="${3}" ;;\
23574 \    esac\
23575 \    func_basename_result="${1##*/}"\
23576 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
23577   && mv -f "$cfgfile.tmp" "$cfgfile" \
23578     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23579 test 0 -eq $? || _lt_function_replace_fail=:
23580
23581
23582   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
23583 func_stripname ()\
23584 {\
23585 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
23586 \    # positional parameters, so assign one to ordinary parameter first.\
23587 \    func_stripname_result=${3}\
23588 \    func_stripname_result=${func_stripname_result#"${1}"}\
23589 \    func_stripname_result=${func_stripname_result%"${2}"}\
23590 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
23591   && mv -f "$cfgfile.tmp" "$cfgfile" \
23592     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23593 test 0 -eq $? || _lt_function_replace_fail=:
23594
23595
23596   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
23597 func_split_long_opt ()\
23598 {\
23599 \    func_split_long_opt_name=${1%%=*}\
23600 \    func_split_long_opt_arg=${1#*=}\
23601 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
23602   && mv -f "$cfgfile.tmp" "$cfgfile" \
23603     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23604 test 0 -eq $? || _lt_function_replace_fail=:
23605
23606
23607   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
23608 func_split_short_opt ()\
23609 {\
23610 \    func_split_short_opt_arg=${1#??}\
23611 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
23612 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
23613   && mv -f "$cfgfile.tmp" "$cfgfile" \
23614     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23615 test 0 -eq $? || _lt_function_replace_fail=:
23616
23617
23618   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
23619 func_lo2o ()\
23620 {\
23621 \    case ${1} in\
23622 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
23623 \      *)    func_lo2o_result=${1} ;;\
23624 \    esac\
23625 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
23626   && mv -f "$cfgfile.tmp" "$cfgfile" \
23627     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23628 test 0 -eq $? || _lt_function_replace_fail=:
23629
23630
23631   sed -e '/^func_xform ()$/,/^} # func_xform /c\
23632 func_xform ()\
23633 {\
23634     func_xform_result=${1%.*}.lo\
23635 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
23636   && mv -f "$cfgfile.tmp" "$cfgfile" \
23637     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23638 test 0 -eq $? || _lt_function_replace_fail=:
23639
23640
23641   sed -e '/^func_arith ()$/,/^} # func_arith /c\
23642 func_arith ()\
23643 {\
23644     func_arith_result=$(( $* ))\
23645 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
23646   && mv -f "$cfgfile.tmp" "$cfgfile" \
23647     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23648 test 0 -eq $? || _lt_function_replace_fail=:
23649
23650
23651   sed -e '/^func_len ()$/,/^} # func_len /c\
23652 func_len ()\
23653 {\
23654     func_len_result=${#1}\
23655 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
23656   && mv -f "$cfgfile.tmp" "$cfgfile" \
23657     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23658 test 0 -eq $? || _lt_function_replace_fail=:
23659
23660 fi
23661
23662 if test x"$lt_shell_append" = xyes; then
23663   sed -e '/^func_append ()$/,/^} # func_append /c\
23664 func_append ()\
23665 {\
23666     eval "${1}+=\\${2}"\
23667 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
23668   && mv -f "$cfgfile.tmp" "$cfgfile" \
23669     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23670 test 0 -eq $? || _lt_function_replace_fail=:
23671
23672
23673   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
23674 func_append_quoted ()\
23675 {\
23676 \    func_quote_for_eval "${2}"\
23677 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
23678 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
23679   && mv -f "$cfgfile.tmp" "$cfgfile" \
23680     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23681 test 0 -eq $? || _lt_function_replace_fail=:
23682
23683
23684   # Save a `func_append' function call where possible by direct use of '+='
23685   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
23686     && mv -f "$cfgfile.tmp" "$cfgfile" \
23687       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23688   test 0 -eq $? || _lt_function_replace_fail=:
23689 else
23690   # Save a `func_append' function call even when '+=' is not available
23691   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
23692     && mv -f "$cfgfile.tmp" "$cfgfile" \
23693       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23694   test 0 -eq $? || _lt_function_replace_fail=:
23695 fi
23696
23697 if test x"$_lt_function_replace_fail" = x":"; then
23698   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
23699 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
23700 fi
23701
23702
23703    mv -f "$cfgfile" "$ofile" ||
23704     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23705   chmod +x "$ofile"
23706
23707
23708     cat <<_LT_EOF >> "$ofile"
23709
23710 # ### BEGIN LIBTOOL TAG CONFIG: CXX
23711
23712 # The linker used to build libraries.
23713 LD=$lt_LD_CXX
23714
23715 # How to create reloadable object files.
23716 reload_flag=$lt_reload_flag_CXX
23717 reload_cmds=$lt_reload_cmds_CXX
23718
23719 # Commands used to build an old-style archive.
23720 old_archive_cmds=$lt_old_archive_cmds_CXX
23721
23722 # A language specific compiler.
23723 CC=$lt_compiler_CXX
23724
23725 # Is the compiler the GNU compiler?
23726 with_gcc=$GCC_CXX
23727
23728 # Compiler flag to turn off builtin functions.
23729 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
23730
23731 # Additional compiler flags for building library objects.
23732 pic_flag=$lt_lt_prog_compiler_pic_CXX
23733
23734 # How to pass a linker flag through the compiler.
23735 wl=$lt_lt_prog_compiler_wl_CXX
23736
23737 # Compiler flag to prevent dynamic linking.
23738 link_static_flag=$lt_lt_prog_compiler_static_CXX
23739
23740 # Does compiler simultaneously support -c and -o options?
23741 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
23742
23743 # Whether or not to add -lc for building shared libraries.
23744 build_libtool_need_lc=$archive_cmds_need_lc_CXX
23745
23746 # Whether or not to disallow shared libs when runtime libs are static.
23747 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
23748
23749 # Compiler flag to allow reflexive dlopens.
23750 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
23751
23752 # Compiler flag to generate shared objects directly from archives.
23753 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
23754
23755 # Whether the compiler copes with passing no objects directly.
23756 compiler_needs_object=$lt_compiler_needs_object_CXX
23757
23758 # Create an old-style archive from a shared archive.
23759 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
23760
23761 # Create a temporary old-style archive to link instead of a shared archive.
23762 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
23763
23764 # Commands used to build a shared archive.
23765 archive_cmds=$lt_archive_cmds_CXX
23766 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
23767
23768 # Commands used to build a loadable module if different from building
23769 # a shared archive.
23770 module_cmds=$lt_module_cmds_CXX
23771 module_expsym_cmds=$lt_module_expsym_cmds_CXX
23772
23773 # Whether we are building with GNU ld or not.
23774 with_gnu_ld=$lt_with_gnu_ld_CXX
23775
23776 # Flag that allows shared libraries with undefined symbols to be built.
23777 allow_undefined_flag=$lt_allow_undefined_flag_CXX
23778
23779 # Flag that enforces no undefined symbols.
23780 no_undefined_flag=$lt_no_undefined_flag_CXX
23781
23782 # Flag to hardcode \$libdir into a binary during linking.
23783 # This must work even if \$libdir does not exist
23784 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
23785
23786 # If ld is used when linking, flag to hardcode \$libdir into a binary
23787 # during linking.  This must work even if \$libdir does not exist.
23788 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
23789
23790 # Whether we need a single "-rpath" flag with a separated argument.
23791 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
23792
23793 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23794 # DIR into the resulting binary.
23795 hardcode_direct=$hardcode_direct_CXX
23796
23797 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23798 # DIR into the resulting binary and the resulting library dependency is
23799 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23800 # library is relocated.
23801 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
23802
23803 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23804 # into the resulting binary.
23805 hardcode_minus_L=$hardcode_minus_L_CXX
23806
23807 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23808 # into the resulting binary.
23809 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
23810
23811 # Set to "yes" if building a shared library automatically hardcodes DIR
23812 # into the library and all subsequent libraries and executables linked
23813 # against it.
23814 hardcode_automatic=$hardcode_automatic_CXX
23815
23816 # Set to yes if linker adds runtime paths of dependent libraries
23817 # to runtime path list.
23818 inherit_rpath=$inherit_rpath_CXX
23819
23820 # Whether libtool must link a program against all its dependency libraries.
23821 link_all_deplibs=$link_all_deplibs_CXX
23822
23823 # Set to "yes" if exported symbols are required.
23824 always_export_symbols=$always_export_symbols_CXX
23825
23826 # The commands to list exported symbols.
23827 export_symbols_cmds=$lt_export_symbols_cmds_CXX
23828
23829 # Symbols that should not be listed in the preloaded symbols.
23830 exclude_expsyms=$lt_exclude_expsyms_CXX
23831
23832 # Symbols that must always be exported.
23833 include_expsyms=$lt_include_expsyms_CXX
23834
23835 # Commands necessary for linking programs (against libraries) with templates.
23836 prelink_cmds=$lt_prelink_cmds_CXX
23837
23838 # Commands necessary for finishing linking programs.
23839 postlink_cmds=$lt_postlink_cmds_CXX
23840
23841 # Specify filename containing input files.
23842 file_list_spec=$lt_file_list_spec_CXX
23843
23844 # How to hardcode a shared library path into an executable.
23845 hardcode_action=$hardcode_action_CXX
23846
23847 # The directories searched by this compiler when creating a shared library.
23848 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
23849
23850 # Dependencies to place before and after the objects being linked to
23851 # create a shared library.
23852 predep_objects=$lt_predep_objects_CXX
23853 postdep_objects=$lt_postdep_objects_CXX
23854 predeps=$lt_predeps_CXX
23855 postdeps=$lt_postdeps_CXX
23856
23857 # The library search path used internally by the compiler when linking
23858 # a shared library.
23859 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
23860
23861 # ### END LIBTOOL TAG CONFIG: CXX
23862 _LT_EOF
23863
23864  ;;
23865
23866   esac
23867 done # for ac_tag
23868
23869
23870 as_fn_exit 0
23871 _ACEOF
23872 ac_clean_files=$ac_clean_files_save
23873
23874 test $ac_write_fail = 0 ||
23875   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23876
23877
23878 # configure is writing to config.log, and then calls config.status.
23879 # config.status does its own redirection, appending to config.log.
23880 # Unfortunately, on DOS this fails, as config.log is still kept open
23881 # by configure, so config.status won't be able to write to it; its
23882 # output is simply discarded.  So we exec the FD to /dev/null,
23883 # effectively closing config.log, so it can be properly (re)opened and
23884 # appended to by config.status.  When coming back to configure, we
23885 # need to make the FD available again.
23886 if test "$no_create" != yes; then
23887   ac_cs_success=:
23888   ac_config_status_args=
23889   test "$silent" = yes &&
23890     ac_config_status_args="$ac_config_status_args --quiet"
23891   exec 5>/dev/null
23892   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23893   exec 5>>config.log
23894   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23895   # would make configure fail if this is the last instruction.
23896   $ac_cs_success || as_fn_exit 1
23897 fi
23898 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23899   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23900 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23901 fi
23902
23903